Lune

NeurIPS2024顶会

On Mesa-Optimization in Autoregressively Trained Transformers: Emergence and Capability

Chenyu Zheng, Wei Huang, Rongzhen Wang, Guoqiang Wu, Jun Zhu, Chongxuan Li

摘要

Autoregressively trained transformers have brought a profound revolution to the world, especially with their in-context learning (ICL) ability to address downstream tasks. Recently, several studies suggest that transformers learn a mesa-optimizer during autoregressive (AR) pretraining to implement ICL. Namely, the forward pass of the trained transformer is equivalent to optimizing an inner objective function in-context. However, whether the practical non-convex training dynamics will converge to the ideal mesa-optimizer is still unclear. Towards filling this gap, we investigate the non-convex dynamics of a one-layer linear causal selfattention model autoregressively trained by gradient flow, where the sequences are generated by an AR process x t+1 = W x t . First, under a certain condition of data distribution, we prove that an autoregressively trained transformer learns W by implementing one step of gradient descent to minimize an ordinary least squares (OLS) problem in-context. It then applies the learned W for next-token prediction, thereby verifying the mesa-optimization hypothesis. Next, under the same data conditions, we explore the capability limitations of the obtained mesa-optimizer. We show that a stronger assumption related to the moments of data is the sufficient and necessary condition that the learned mesa-optimizer recovers the distribution. Besides, we conduct exploratory analyses beyond the first data condition and prove that generally, the trained transformer will not perform vanilla gradient descent for the OLS problem. Finally, our simulation results verify the theoretical results, and the code is available at https://github.com/ML-GSAI/MesaOpt-AR-Transformer.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Trained Mamba Emulates Online Gradient Descent in In-Context Linear Regression 引用了 Language Models are Few-Shot Learners
  • Trained Mamba Emulates Online Gradient Descent in In-Context Linear Regression 引用了 Provably Transformers Harness Multi-Concept Word Semantics for Efficient In-Context Learning
  • In-context Learning of Linear Dynamical Systems with Transformers: Approximation Bounds and Depth-separation 引用了 Generative Pretraining From Pixels
  • In-context Learning of Linear Dynamical Systems with Transformers: Approximation Bounds and Depth-separation 引用了 Zero-Shot Text-to-Image Generation
  • Visual Instruction Tuning 引用了 Language Models are Few-Shot Learners
  • Zero-Shot Text-to-Image Generation 引用了 Generative Pretraining From Pixels
  • Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction 引用了 Generative Pretraining From Pixels
  • Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction 引用了 Visual Instruction Tuning
  • Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction 引用了 Zero-Shot Text-to-Image Generation
  • Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction 引用了 Language Models are Few-Shot Learners
  • Prior Forgetting and In-Context Overfitting 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper9

  1. Provably Transformers Harness Multi-Concept Word Semantics for Efficient In-Context LearningDake Bu, Wei Huang, Andi Han, Atsushi Nitanda 等NeurIPS 2024 · 11 次引用
  2. Scaling Diffusion Transformers Efficiently via μPChenyu Zheng, Xinyu Zhang, Rongzhen Wang, Wei Huang 等NeurIPS 2025 · 7 次引用
  3. Trained Mamba Emulates Online Gradient Descent in In-Context Linear RegressionJiarui Jiang, Wei Huang, Miao Zhang, Taiji Suzuki 等NeurIPS 2025 · 2 次引用
  4. In-context Learning of Linear Dynamical Systems with Transformers: Approximation Bounds and Depth-separationFrank Cole, Yuxuan Zhao, Yulong Lu, Tianhao ZhangNeurIPS 2025 · 1 次引用
  5. Prior Forgetting and In-Context OverfittingSungyoon LeeNeurIPS 2025 · 1 次引用

它引用的 Paper33

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Visual Instruction TuningHaotian Liu, Chunyuan Li, Qingyang Wu, Yong Jae LeeNeurIPS 2023 · 11,349 次引用
  3. Zero-Shot Text-to-Image GenerationAditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray 等ICML 2021 · 6,356 次引用
  4. Generative Pretraining From PixelsMark Chen, Alec Radford, Rewon Child, Jeffrey Wu 等ICML 2020 · 1,773 次引用
  5. Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale PredictionKeyu Tian, Yi Jiang, Zehuan Yuan, Bingyue Peng 等NeurIPS 2024 · 1,199 次引用

相关 Paper

  1. Transformers Learn In-Context by Gradient DescentJohannes von Oswald, Eyvind Niklasson, Ettore Randazzo, João Sacramento 等ICML 2023 · 729 次引用
  2. Optimality and NP-Hardness of Transformers in Learning Markovian Dynamical FunctionsYanna Ding, Songtao Lu, Yingdong Lu, Tomasz Nowicki 等NeurIPS 2025 · 1 次引用
  3. How Transformers Learn Causal Structure with Gradient DescentEshaan Nichani, Alex Damian, Jason D. LeeICML 2024 · 117 次引用
  4. How do Transformers Perform In-Context Autoregressive Learning ?Michael Eli Sander, Raja Giryes, Taiji Suzuki, Mathieu Blondel 等ICML 2024 · 21 次引用
  5. How Transformers Utilize Multi-Head Attention in In-Context Learning? A Case Study on Sparse Linear RegressionXingwu Chen, Lei Zhao, Difan ZouNeurIPS 2024 · 19 次引用
黄昏的海面,两侧是细线勾勒的悬崖