Transformer-based models have demonstrated remarkable in-context learning capabilities, prompting extensive research into its underlying mechanisms. Recent studies have suggested that Transformers can implement first-order optimization algorithms for in-context learning and even second order ones for the case of linear regression. In this work, we study whether Transformers can perform higher order optimization methods, beyond the case of linear regression. We establish that linear attention Transformers with ReLU layers can approximate second order optimization algorithms for the task of logistic regression and achieve $ε$ error with only a logarithmic to the error more layers. As a by-product we demonstrate the ability of even linear attention-only Transformers in implementing a single step of Newton's iteration for matrix inversion with merely two layers. These results suggest the ability of the Transformer architecture to implement complex algorithms, beyond gradient descent.
In-Context Algorithm Emulation in Fixed-Weight Transformers
Center for Foundation Models and Generative AI, Northwestern University(西北大学基础模型与生成式人工智能中心);Department of Computer Science, Northwestern University(西北大学计算机科学系);Ensemble AI;Engineering Science, University of Toronto(多伦多大学工程科学系);Department of Statistics and Data Science, Northwestern University(西北大学统计与数据科学系)
Department of Computing and Mathematical Sciences, California Institute of Technology(加州理工学院计算与数学科学部);Department of Applied Mathematics, Illinois Institute of Technology(伊利诺伊理工学院应用数学系);Department of Applied Mathematics, University of Washington(华盛顿大学应用数学系)
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(香港大学)
In-Context Reinforcement Learning From Suboptimal Historical Data
Department of Electrical and Computer Engineering, Duke University, Durham, US(电气与计算机工程系,杜克大学,达勒姆,美国);Department of Biostatistics and Bioinformatics, Duke University, Durham, US(生物统计学与生物信息学系,杜克大学,达勒姆,美国);Department of Statistics and Data Science, Yale University, New Haven, US(统计学与数据科学系,耶鲁大学,新 Haven,美国)
Layer-Parallel Inference Reduces Encrypted Nonlinear Depth in Transformers
MBZUAI IFM(穆罕默德·本·扎耶德人工智能大学智能未来研究院);Red Hat AI Innovation(红帽人工智能创新实验室);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);Core AI, IBM(IBM核心人工智能部门);University of Texas at Dallas(德克萨斯大学达拉斯分校)