亲爱的研友该休息了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!身体可是革命的本钱,早点休息,好梦!

Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free

Softmax函数 门控 计算机科学 人工智能 外推法 钥匙(锁) 任务(项目管理) 机器学习 机制(生物学) 特征(语言学) 缩放比例 架空(工程) 语言模型 简单(哲学) 模式识别(心理学) 语音识别 自然语言处理 安全性令牌 注意力网络 乙状窦函数 任务分析 国家(计算机科学)
作者
Qiu, Zihan,Wang, Zekun,Zheng Bo,Huang Ze-yu,Wen, Kaiyue,Yang Song-lin,Men Rui,Yu Le,Huang Fei,Huang, Suozhi,Liu, Dayiheng,Zhou, Jingren,Lin, Junyang
出处
期刊:Cornell University - arXiv [Cornell University]
标识
DOI:10.48550/arxiv.2505.06708
摘要

Gating mechanisms have been widely utilized, from early models like LSTMs and Highway Networks to recent state space models, linear attention, and also softmax attention. Yet, existing literature rarely examines the specific effects of gating. In this work, we conduct comprehensive experiments to systematically investigate gating-augmented softmax attention variants. Specifically, we perform a comprehensive comparison over 30 variants of 15B Mixture-of-Experts (MoE) models and 1.7B dense models trained on a 3.5 trillion token dataset. Our central finding is that a simple modification-applying a head-specific sigmoid gate after the Scaled Dot-Product Attention (SDPA)-consistently improves performance. This modification also enhances training stability, tolerates larger learning rates, and improves scaling properties. By comparing various gating positions and computational variants, we attribute this effectiveness to two key factors: (1) introducing non-linearity upon the low-rank mapping in the softmax attention, and (2) applying query-dependent sparse gating scores to modulate the SDPA output. Notably, we find this sparse gating mechanism mitigates 'attention sink' and enhances long-context extrapolation performance, and we also release related $\href{https://github.com/qiuzh20/gated_attention}{codes}$ and $\href{https://huggingface.co/QwQZh/gated_attention}{models}$ to facilitate future research.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
天天快乐应助oleskarabach采纳,获得10
13秒前
19秒前
jasonwee发布了新的文献求助10
24秒前
zhaokkkk发布了新的文献求助20
25秒前
朱砂完成签到,获得积分10
45秒前
wanci应助细腻冥王星采纳,获得30
45秒前
zhaokkkk完成签到,获得积分10
1分钟前
1分钟前
moomomomomo发布了新的文献求助20
1分钟前
2分钟前
2分钟前
oleskarabach发布了新的文献求助10
2分钟前
QXH发布了新的文献求助30
2分钟前
独特浩然完成签到 ,获得积分10
3分钟前
Copyright应助科研通管家采纳,获得10
3分钟前
zyy完成签到 ,获得积分10
3分钟前
Artin完成签到,获得积分10
4分钟前
Copyright应助科研通管家采纳,获得10
5分钟前
Lucas应助科研通管家采纳,获得10
5分钟前
Copyright应助科研通管家采纳,获得10
5分钟前
5分钟前
5分钟前
Fung发布了新的文献求助10
5分钟前
MchemG完成签到,获得积分0
6分钟前
淡淡的白羊完成签到 ,获得积分10
6分钟前
852应助Fung采纳,获得10
6分钟前
Kao应助科研通管家采纳,获得10
7分钟前
Owen应助科研通管家采纳,获得10
7分钟前
顾矜应助科研通管家采纳,获得10
7分钟前
7分钟前
Fung发布了新的文献求助10
7分钟前
A29964095完成签到 ,获得积分10
8分钟前
阿甘完成签到,获得积分10
8分钟前
8分钟前
YYj发布了新的文献求助10
9分钟前
9分钟前
在水一方应助YYj采纳,获得10
9分钟前
飞行的子弹完成签到,获得积分10
9分钟前
Copyright应助科研通管家采纳,获得10
9分钟前
9分钟前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Arthritis and Related Conditions, An Issue of Orthopedic Clinics 1000
Development of a Bridge Weigh-In-Motion System: A technology to convert the bridge response to the passage of traffic into data on vehicle configurations, speeds, times of travel and weights 1000
ズームレンズの光学設計に関する研究 800
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 700
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7290034
求助须知:如何正确求助?哪些是违规求助? 8909366
关于积分的说明 18856790
捐赠科研通 6957868
什么是DOI,文献DOI怎么找? 3209085
关于科研通互助平台的介绍 2378835
邀请新用户注册赠送积分活动 2184863