Fastformer: Additive Attention Can Be All You Need

作者
Chuhan Wu,Fangzhao Wu,Tao Qi,Yongfeng Huang,Xing Xie
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:166
标识
DOI:10.48550/arxiv.2108.09084
摘要

Transformer is a powerful model for text understanding. However, it is inefficient due to its quadratic complexity to input sequence length. Although there are many methods on Transformer acceleration, they are still either inefficient on long sequences or not effective enough. In this paper, we propose Fastformer, which is an efficient Transformer model based on additive attention. In Fastformer, instead of modeling the pair-wise interactions between tokens, we first use additive attention mechanism to model global contexts, and then further transform each token representation based on its interaction with global context representations. In this way, Fastformer can achieve effective context modeling with linear complexity. Extensive experiments on five datasets show that Fastformer is much more efficient than many existing Transformer models and can meanwhile achieve comparable or even better long text modeling performance.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
1秒前
1秒前
冷酷雪碧完成签到 ,获得积分10
1秒前
feifeiaym发布了新的文献求助10
2秒前
feifeiaym发布了新的文献求助10
2秒前
2秒前
lzd发布了新的文献求助10
2秒前
2秒前
feifeiaym发布了新的文献求助20
2秒前
lqq关闭了lqq的文献求助
3秒前
feifeiaym发布了新的文献求助10
3秒前
3秒前
yyw完成签到,获得积分10
3秒前
feifeiaym发布了新的文献求助10
3秒前
Dovine完成签到,获得积分10
4秒前
4秒前
4秒前
4秒前
4秒前
linyudie发布了新的文献求助10
4秒前
5秒前
慧子发布了新的文献求助30
5秒前
feifeiaym发布了新的文献求助10
5秒前
feifeiaym发布了新的文献求助30
5秒前
feifeiaym发布了新的文献求助10
6秒前
baoni完成签到,获得积分10
6秒前
言仙儿发布了新的文献求助10
6秒前
feifeiaym发布了新的文献求助10
7秒前
yyw发布了新的文献求助10
7秒前
陆路露禄完成签到,获得积分10
8秒前
wacoxu完成签到 ,获得积分10
8秒前
9秒前
feifeiaym发布了新的文献求助10
9秒前
Engen完成签到,获得积分10
9秒前
feifeiaym发布了新的文献求助30
9秒前
feifeiaym发布了新的文献求助10
9秒前
9秒前
9秒前
可爱画板完成签到,获得积分10
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小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8104650
求助须知:如何正确求助?哪些是违规求助? 9513927
关于积分的说明 21489968
捐赠科研通 7681147
什么是DOI,文献DOI怎么找? 3409516
关于科研通互助平台的介绍 2537264
邀请新用户注册赠送积分活动 2449390