FNet: Mixing Tokens with Fourier Transforms

变压器 计算机科学 编码器 算法 水准点(测量) 傅里叶变换 并行计算 计算机工程 工程类 数学 电气工程 地图学 电压 操作系统 数学分析 地理
作者
James Lee-Thorp,Joshua Ainslie,Ilya Eckstein,Santiago Ontañón
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:16
标识
DOI:10.48550/arxiv.2105.03824
摘要

We show that Transformer encoder architectures can be sped up, with limited accuracy costs, by replacing the self-attention sublayers with simple linear transformations that "mix" input tokens. These linear mixers, along with standard nonlinearities in feed-forward layers, prove competent at modeling semantic relationships in several text classification tasks. Most surprisingly, we find that replacing the self-attention sublayer in a Transformer encoder with a standard, unparameterized Fourier Transform achieves 92-97% of the accuracy of BERT counterparts on the GLUE benchmark, but trains 80% faster on GPUs and 70% faster on TPUs at standard 512 input lengths. At longer input lengths, our FNet model is significantly faster: when compared to the "efficient" Transformers on the Long Range Arena benchmark, FNet matches the accuracy of the most accurate models, while outpacing the fastest models across all sequence lengths on GPUs (and across relatively shorter lengths on TPUs). Finally, FNet has a light memory footprint and is particularly efficient at smaller model sizes; for a fixed speed and accuracy budget, small FNet models outperform Transformer counterparts.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
ALIN完成签到,获得积分10
刚刚
yan发布了新的文献求助30
刚刚
1秒前
兰先生完成签到 ,获得积分10
1秒前
枫叶发布了新的文献求助10
2秒前
纪尔蓝完成签到,获得积分10
2秒前
permission完成签到 ,获得积分10
2秒前
lan发布了新的文献求助10
2秒前
2秒前
3秒前
3秒前
rodion完成签到 ,获得积分10
3秒前
百世沙发布了新的文献求助10
4秒前
田田完成签到 ,获得积分0
4秒前
5秒前
AamirAli完成签到,获得积分10
5秒前
5秒前
TKY完成签到 ,获得积分10
6秒前
6秒前
哈哈哈哈完成签到,获得积分10
7秒前
李健的小迷弟的应助被undergo采纳,获得10
7秒前
拼搏飞柏发布了新的文献求助10
7秒前
8秒前
11秒前
魔法甜甜发布了新的文献求助10
11秒前
Liu发布了新的文献求助10
12秒前
林克完成签到,获得积分10
12秒前
王WWWWWWWW发布了新的文献求助10
12秒前
13秒前
野猪佩奇完成签到,获得积分10
14秒前
15秒前
爱吃土豆的小浣熊完成签到,获得积分10
16秒前
LIU完成签到,获得积分20
17秒前
鞥翁完成签到,获得积分10
18秒前
18秒前
与我常在发布了新的文献求助10
19秒前
19秒前
科研通AI6.4的应助被lan采纳,获得10
19秒前
打打的应助被康子浩采纳,获得10
19秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Aspects of Post-SPE Phonology 2000
Nanocomposite Removal of Pesticides from Wastewater 1000
Performance standards for antimicrobial disk and dilution susceptibility tests for bacteria isolated from animals 888
Rosenblum, Global Change Biology 800
Holistic Discourse Analysis, Second Edition by Robert E. Longacre (2012-09-10) 666
Final Report for the 2-D Test of Model 901 Rotor and Wing Airfoils (BSWT 592) 528
热门求助领域 (近24小时)
化学 材料科学 医学 生物 计算机科学 工程类 纳米技术 物理 有机化学 化学工程 内科学 生物化学 复合材料 催化作用 心理学 细胞生物学 无机化学 电极 光电子学 人工智能
热门帖子
关注 科研通微信公众号,转发送积分 7892740
求助须知:如何正确求助?哪些是违规求助? 9403263
关于积分的说明 20856559
捐赠科研通 7496013
什么是DOI,文献DOI怎么找? 3358612
关于科研通互助平台的介绍 2496883
邀请新用户注册赠送积分活动 2387618