Transformers can optimally learn regression mixture models
Reese Pathak, Rajat Sen, Weihao Kong, Abhimanyu Das
摘要
Mixture models arise in many regression problems, but most methods have seen limited adoption partly due to these algorithms' highly-tailored and model-specific nature. On the other hand, transformers are flexible, neural sequence models that present the intriguing possibility of providing general-purpose prediction methods, even in this mixture setting. In this work, we investigate the hypothesis that transformers can learn an optimal predictor for mixtures of regressions. We construct a generative process for a mixture of linear regressions for which the decision-theoretic optimal procedure is given by data-driven exponential weights on a finite set of parameters. We observe that transformers achieve low meansquared error on data generated via this process. By probing the transformer's output at inference time, we also show that transformers typically make predictions that are close to the optimal predictor. Our experiments also demonstrate that transformers can learn mixtures of regressions in a sample-efficient fashion and are somewhat robust to distribution shifts. We complement our experimental observations by proving constructively that the decision-theoretic optimal procedure is indeed implementable by a transformer.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Transformers as Algorithms: Generalization and Stability in In-context Learning 引用了 Language Models are Few-Shot Learners
- Transformers as Algorithms: Generalization and Stability in In-context Learning 引用了 Transformers Learn In-Context by Gradient Descent
- Transformers as Algorithms: Generalization and Stability in In-context Learning 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
- A Theoretical Understanding of Self-Correction through In-context Alignment 引用了 Transformers as Algorithms: Generalization and Stability in In-context Learning
- A Theoretical Understanding of Self-Correction through In-context Alignment 引用了 Transformers Learn In-Context by Gradient Descent
- A Theoretical Understanding of Self-Correction through In-context Alignment 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
- Transformers Can Do Bayesian Inference 引用了 Language Models are Few-Shot Learners
- Linear Transformers are Versatile In-Context Learners 引用了 Transformers as Algorithms: Generalization and Stability in In-context Learning
- Linear Transformers are Versatile In-Context Learners 引用了 Language Models are Few-Shot Learners
- Linear Transformers are Versatile In-Context Learners 引用了 Transformers Learn In-Context by Gradient Descent
- Linear Transformers are Versatile In-Context Learners 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
- On the Robustness of Transformers against Context Hijacking for Linear Classification 引用了 Transformers as Algorithms: Generalization and Stability in In-context Learning
- On the Robustness of Transformers against Context Hijacking for Linear Classification 引用了 Language Models are Few-Shot Learners
- On the Robustness of Transformers against Context Hijacking for Linear Classification 引用了 In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initialization
- On the Robustness of Transformers against Context Hijacking for Linear Classification 引用了 Transformers Learn In-Context by Gradient Descent
- On the Robustness of Transformers against Context Hijacking for Linear Classification 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
- In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initialization 引用了 Transformers as Algorithms: Generalization and Stability in In-context Learning
- In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initialization 引用了 Language Models are Few-Shot Learners
- In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initialization 引用了 Transformers Learn In-Context by Gradient Descent
- In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD Initialization 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
- Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time 引用了 Transformers as Algorithms: Generalization and Stability in In-context Learning
- Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time 引用了 Linear Transformers are Versatile In-Context Learners
- Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time 引用了 Language Models are Few-Shot Learners
- Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time 引用了 Transformers Learn In-Context by Gradient Descent
- Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
- Transformers Learn In-Context by Gradient Descent 引用了 Language Models are Few-Shot Learners
- Transformers Learn In-Context by Gradient Descent 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
- What Can Transformers Learn In-Context? A Case Study of Simple Function Classes 引用了 Transformers Can Do Bayesian Inference
- What Can Transformers Learn In-Context? A Case Study of Simple Function Classes 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper9
- A Theoretical Understanding of Self-Correction through In-context AlignmentYifei Wang, Yuyang Wu, Zeming Wei, Stefanie Jegelka 等NeurIPS 2024 · 69 次引用
- Linear Transformers are Versatile In-Context LearnersMax Vladymyrov, Johannes von Oswald, Mark Sandler, Rong GeNeurIPS 2024 · 37 次引用
- In-Context Learning of a Linear Transformer Block: Benefits of the MLP Component and One-Step GD InitializationRuiqi Zhang, Jingfeng Wu, Peter L. BartlettNeurIPS 2024 · 37 次引用
- Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and TimeBlake Bordelon, Mary I. Letey, Cengiz PehlevanICLR 2026 · 14 次引用
- On the Robustness of Transformers against Context Hijacking for Linear ClassificationTianle Li, Chenyang Zhang, Xingwu Chen, Yuan Cao 等NeurIPS 2025 · 7 次引用
它引用的 Paper10
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- What Can Transformers Learn In-Context? A Case Study of Simple Function ClassesShivam Garg, Dimitris Tsipras, Percy Liang, Gregory ValiantNeurIPS 2022 · 883 次引用
- Transformers Learn In-Context by Gradient DescentJohannes von Oswald, Eyvind Niklasson, Ettore Randazzo, João Sacramento 等ICML 2023 · 729 次引用
- Transformers Can Do Bayesian InferenceSamuel Müller, Noah Hollmann, Sebastian Pineda-Arango, Josif Grabocka 等ICLR 2022 · 287 次引用
- Transformers as Algorithms: Generalization and Stability in In-context LearningYingcong Li, Muhammed Emrullah Ildiz, Dimitris Papailiopoulos, Samet OymakICML 2023 · 242 次引用
相关 Paper
- Distribution Transformers: Fast Approximate Bayesian Inference With On-The-Fly Prior AdaptationGeorge Whittle, Juliusz Ziomek, Jacob Rawling, Michael A OsborneICML 2026 · 13 次引用
- Decision Transformer: Reinforcement Learning via Sequence ModelingLili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee 等NeurIPS 2021 · 2,557 次引用
- Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm SelectionYu Bai, Fan Chen, Huan Wang, Caiming Xiong 等NeurIPS 2023 · 356 次引用
- Supervised Pretraining Can Learn In-Context Reinforcement LearningJonathan Lee, Annie Xie, Aldo Pacchiano, Yash Chandak 等NeurIPS 2023 · 170 次引用
- What learning algorithm is in-context learning? Investigations with linear modelsEkin Akyürek, Dale Schuurmans, Jacob Andreas, Tengyu Ma 等ICLR 2023 · 85 次引用
