Token Statistics Transformer: Linear-Time Attention via Variational Rate Reduction

安全性令牌 统计 还原(数学) 变压器 数学 计算机科学 计量经济学 电气工程 计算机网络 工程类 几何学 电压
作者
Ziyang Wu,Tianjiao Ding,Yifu Lu,Druv Pai,Jingyuan Zhang,Weida Wang,Yaodong Yu,Yi Ma,Benjamin D. Haeffele
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:1
标识
DOI:10.48550/arxiv.2412.17810
摘要

The attention operator is arguably the key distinguishing factor of transformer architectures, which have demonstrated state-of-the-art performance on a variety of tasks. However, transformer attention operators often impose a significant computational burden, with the computational complexity scaling quadratically with the number of tokens. In this work, we propose a novel transformer attention operator whose computational complexity scales linearly with the number of tokens. We derive our network architecture by extending prior work which has shown that a transformer style architecture naturally arises by "white-box" architecture design, where each layer of the network is designed to implement an incremental optimization step of a maximal coding rate reduction objective (MCR$^2$). Specifically, we derive a novel variational form of the MCR$^2$ objective and show that the architecture that results from unrolled gradient descent of this variational objective leads to a new attention module called Token Statistics Self-Attention (TSSA). TSSA has linear computational and memory complexity and radically departs from the typical attention architecture that computes pairwise similarities between tokens. Experiments on vision, language, and long sequence tasks show that simply swapping TSSA for standard self-attention, which we refer to as the Token Statistics Transformer (ToST), achieves competitive performance with conventional transformers while being significantly more computationally efficient and interpretable. Our results also somewhat call into question the conventional wisdom that pairwise similarity style attention mechanisms are critical to the success of transformer architectures. Code will be available at https://github.com/RobinWu218/ToST.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
dan发布了新的文献求助10
1秒前
1秒前
agnes完成签到,获得积分10
1秒前
凡空发布了新的文献求助10
1秒前
magiczhu完成签到,获得积分10
2秒前
2秒前
bx完成签到,获得积分10
2秒前
yue完成签到,获得积分10
3秒前
4秒前
个性的夏云完成签到,获得积分20
4秒前
5秒前
5秒前
5秒前
wangyue发布了新的文献求助10
5秒前
6秒前
zzz发布了新的文献求助10
7秒前
7秒前
唠叨的觅海完成签到,获得积分10
7秒前
8秒前
8秒前
8秒前
meethaha发布了新的文献求助10
8秒前
wangying发布了新的文献求助10
10秒前
11秒前
myb发布了新的文献求助10
12秒前
宋相甫发布了新的文献求助10
12秒前
dan完成签到,获得积分10
13秒前
Hello应助舒服的尔槐采纳,获得10
14秒前
天天快乐应助平泽唯采纳,获得10
14秒前
L_Watcher应助卜卜采纳,获得10
14秒前
16秒前
笨笨听寒应助林深沉采纳,获得10
16秒前
彭于晏应助动听的一曲采纳,获得10
16秒前
17秒前
17秒前
17秒前
JamesPei应助付乐乐采纳,获得10
17秒前
桐桐应助小谢同学采纳,获得10
18秒前
科研通AI6.2应助6484采纳,获得10
18秒前
21秒前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
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
Molecular Mechanisms of Photosynthesis, 4th Edition 1000
Organic Reactions, Volume 116 1000
Current concepts in cutaneous toxicity : proceedings of the Fourth Conference on Cutaneous Toxicity, Washington, D.C., May 9-11, 1979 1000
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7262284
求助须知:如何正确求助?哪些是违规求助? 8883635
关于积分的说明 18774326
捐赠科研通 6941511
什么是DOI,文献DOI怎么找? 3202426
关于科研通互助平台的介绍 2375644
邀请新用户注册赠送积分活动 2178128