Transformer Quality in Linear Time

困惑 变压器 计算机科学 语言模型 算法 计算机工程 人工智能 电气工程 工程类 电压
作者
Weizhe Hua,Dai, Zihang,Liu, Hanxiao,Quoc Viet Le
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:166
标识
DOI:10.48550/arxiv.2202.10447
摘要

We revisit the design choices in Transformers, and propose methods to address their weaknesses in handling long sequences. First, we propose a simple layer named gated attention unit, which allows the use of a weaker single-head attention with minimal quality loss. We then propose a linear approximation method complementary to this new layer, which is accelerator-friendly and highly competitive in quality. The resulting model, named FLASH, matches the perplexity of improved Transformers over both short (512) and long (8K) context lengths, achieving training speedups of up to 4.9$\times$ on Wiki-40B and 12.1$\times$ on PG-19 for auto-regressive language modeling, and 4.8$\times$ on C4 for masked language modeling.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
茶多酚发布了新的文献求助10
刚刚
茶多酚发布了新的文献求助10
1秒前
1秒前
茶多酚发布了新的文献求助10
1秒前
茶多酚发布了新的文献求助10
1秒前
茶多酚发布了新的文献求助10
1秒前
ran完成签到,获得积分10
1秒前
JadeFu完成签到 ,获得积分10
1秒前
茶多酚发布了新的文献求助10
1秒前
2秒前
2秒前
nini发布了新的文献求助10
2秒前
yuzhongLuo发布了新的文献求助10
2秒前
叫你吃布丁完成签到,获得积分10
3秒前
jianji完成签到,获得积分10
3秒前
Estelle_Chan完成签到,获得积分20
3秒前
暴躁的柜子完成签到,获得积分20
3秒前
4秒前
leo发布了新的文献求助10
4秒前
茶多酚发布了新的文献求助10
4秒前
茶多酚发布了新的文献求助10
4秒前
茶多酚发布了新的文献求助10
4秒前
IAz发布了新的文献求助10
4秒前
5秒前
5秒前
mac发布了新的文献求助10
5秒前
Miranda完成签到,获得积分10
5秒前
星辰大海的应助被醒晨采纳,获得10
6秒前
怕黑的南烟完成签到,获得积分10
6秒前
7秒前
7秒前
7秒前
snail完成签到,获得积分10
7秒前
8秒前
8秒前
8秒前
Miranda发布了新的文献求助10
8秒前
JamesPei的应助被暴躁的柜子采纳,获得10
8秒前
9秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Spec 401: Standards for Jet Fuel Facility and Equipment Commissioning and Flushing at Airports, 2026.1 (Original Issue) 1000
Spec 103: Standard for Jet Fuel Quality Control at Airports, Revision 2026.1 1000
Chinese Traditional Wisdom and Contemporary Education Values 600
AI Disclosure in Annual Reports: Evolution, Determinants, and Capital Market Participants’ Perceptions 500
5th World Conference on Detergents: Reinventing the Industry : Opportunities and Challenges 500
Erzählte Gnade 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8105539
求助须知:如何正确求助?哪些是违规求助? 9514621
关于积分的说明 21492931
捐赠科研通 7682120
什么是DOI,文献DOI怎么找? 3409757
关于科研通互助平台的介绍 2537367
邀请新用户注册赠送积分活动 2449698