Viewing Transformers as interacting particle systems, we describe the geometry of learned representations when the weights are not time dependent. We show that particles, representing tokens, tend to cluster toward particular limiting objects as time tends to infinity. Cluster locations are determined by the initial tokens, confirming context-awareness of representations learned by Transformers. Using techniques from dynamical systems and partial differential equations, we show that the type of limiting object that emerges depends on the spectrum of the value matrix. Additionally, in the one-dimensional case we prove that the self-attention matrix converges to a low-rank Boolean matrix. The combination of these results mathematically confirms the empirical observation made by Vaswani et al. [VSP'17] that leaders appear in a sequence of tokens when processed by Transformers.
Phase Transitions in Attention: A Bayesian Theory of Copy Head Emergence
Racah Institute of Physics, Hebrew University of Jerusalem(拉卡学院物理研究所,耶路撒冷希伯来大学);John A. Paulson School of Engineering and Applied Sciences, Harvard University(约翰·A·保罗森工程与应用科学学校,哈佛大学);Institute for Advanced Simulation (IAS-6), Computational and Systems Neuroscience, Jülich Research Center(高级模拟研究所(IAS-6),计算与系统神经科学,茹里奇研究中心);Institute of AI for Health, Helmholtz Munich(健康人工智能研究所,海德堡-穆恩);RWTH Aachen University(亚琛工业大学);Department of Physics, Faculty 1, RWTH Aachen University(物理系,亚琛工业大学)
Outcome-Driven Clustering of Acute Coronary Syndrome Patients using Multi-Task Neural Network with Attention
IBM Research – China, IBM(IBM中国研究院(IBM));Beijing Anzhen Hospital, Capital Medical University(首都医科大学附属北京安贞医院);AstraZeneca China(阿斯利康中国);The First Affiliated Hospital, Zhengzhou University(郑州大学第一附属医院)
Cluster-Level Attention-Guided Parallel Decoding for Masked Diffusion Language Models
Zhejiang University(浙江大学);RIKEN Center for Advanced Intelligence Project(日本理化学研究院先进智能项目中心);The Institute of Statistical Mathematics(统计数学研究所);Agency for Science, Technology and Research (A ⋆ \star STAR)(科技研究局(A ⋆ STAR))
Bipartite Graph Attention-based Clustering for Large-scale scRNA-seq Data
Institute of Intelligent Information Processing, Shanxi University(山西大学智能信息处理研究院);Alliance Manchester Business School, The University of Manchester(曼彻斯特大学阿联酋商业学院)
EMAGN: Efficient Multi-Attention Graph Network via Learned Clustering for Scalable Traffic Forecasting
Shanghai Jiao Tong University(上海交通大学);University of Michigan, Ann Arbor(密歇根大学安娜堡分校);University of California, Berkeley(加利福尼亚大学伯克利分校);Cornell University(康奈尔大学);Technische Universität Dresden(德累斯顿工业大学);Carnegie Mellon University(卡内基梅隆大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校);University of Wisconsin–Madison(威斯康星大学麦迪逊分校)
Attention Beyond Neighborhoods: Reviving Transformer for Graph Clustering
School of Computer Science and Engineering, University of Electronic Science and Technology of China(电子科技大学计算机科学与工程学院);Michigan State University(密歇根州立大学);Alibaba Group(阿里巴巴集团)