The success of transformers is attributed to several factors, including their capacity to express formal languages over variable-length inputs, and ability of the attention mechanism to focus on relevant input features. However, there is limited understanding of the training dynamics of shallow transformers, specifically how to decouple the learning of the attention and the output (feedforward) layer. A natural extension of the theory of one-step gradient feature learning in feedforward networks suggests that one could first learn the attention weights with a single gradient step, and then train the output layer. We show that this fails for a shallow transformer trained to recognize a star-free language from unbounded-length input. We prove that the transformer can be trained to recognize the language with a three-phase gradient descent: the output layer is updated first, followed by an attention update, and the output layer is fine-tuned in the third phase. In contrast, the language cannot be learned by training only the attention or output layer, or by a single attention-layer update followed by finetuning the output layer. We empirically show that ``attention learning lagging output layer learning" is beneficial in other language recognition, regression, and in-context learning tasks as well.
WorldParticle: Unified World Simulation of Lagrangian Particle Dynamics via Transformer
University of British Columbia(不列颠哥伦比亚大学);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Georgia Institute of Technology(佐治亚理工学院);Inria(法国国家信息与自动化技术研究院);Meta;Independent Researcher(独立研究者);University of Pennsylvania(宾夕法尼亚大学);University of Utah(犹他大学);University of California Los Angeles(加州大学洛杉矶分校);University of Hong Kong(香港大学)
Correlated Attention in Transformers for Multivariate Time Series
Massachusetts Institute of Technology(麻省理工学院);IBM Research(IBM研究院);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);Thomas J. Watson Research Center(托马斯·J·沃森研究中心)
Logical Languages Accepted by Transformer Encoders with Hard Attention
Institute for Mathematical and Computational Engineering, Universidad Católica de Chile(智利天主教大学数学与计算工程研究所);IMFD Chile(智利数学与计算工程研究所);CENIA(智利国家人工智能中心);TU Kaiserslautern(凯泽斯劳滕工业大学);Max Planck Institute for Software Systems(马克斯·普朗克软件系统研究所);Steklov Mathematical Institute of Russian Academy of Sciences(俄罗斯科学院斯捷克洛夫数学研究所)
SenseTime Research(商汤科技研究院);Australian National University(澳大利亚国立大学);OPPO Research Institute(OPPO研究院);Shanghai AI Laboratory(上海人工智能实验室);The University of Hong Kong(香港大学)
VCformer: Variable Correlation Transformer with Inherent Lagged Correlation for Multivariate Time Series Forecasting
College of Computer Science and Software Engineering, Shenzhen University(深圳大学计算机与软件学院);National Engineering Laboratory for Big Data System Computing Technology, Shenzhen University(深圳大学国家大数据系统计算技术工程实验室)
How Many Different Outputs Can a Transformer Generate?
Department of Mathematics, National University of Singapore, Singapore, 117543(新加坡国立大学数学系);School of Computing, National University of Singapore, Singapore, 117543(新加坡国立大学计算学院);Aix Marseille Univ, CNRS, I2M, Marseille, France(法国马赛大学、国家科学研究中心、I2M研究所);Department of Electrical and Computer Engineering, National University of Singapore(新加坡国立大学电子与计算机工程系)
School of Mathematical Sciences, Capital Normal University, 100048 Beijing, China(首都师范大学数学学院);Advanced Institute of Information Technology, Peking University(北京大学信息科学技术高级研究院);Wangxuan Institute of Computer Technology, Peking University, China, 100871(北京大学王先计算机技术研究所);PKU-Wuhan Institute for Artificial Intelligence(北大-武汉人工智能研究所);Xiangjiang Laboratory, Changsha 410000, China(湘江实验室);Guanghua School of Management, Peking University, Beijing, China, 100871(北京大学光华管理学院);School of Artificial Intelligence, Beihang University, 100191 Beijing, China(北航人工智能学院)