Lune

ICLR2025顶会

MLPs Learn In-Context on Regression and Classification Tasks

William Lingxiao Tong, Cengiz Pehlevan

摘要

In-context learning (ICL), the remarkable ability to solve a task from only input exemplars, is often assumed to be a unique hallmark of Transformer models. By examining commonly employed synthetic ICL tasks, we demonstrate that multi-layer perceptrons (MLPs) can also learn in-context. Moreover, MLPs, and the closely related MLP-Mixer models, learn in-context comparably with Transformers under the same compute budget in this setting. We further show that MLPs outperform Transformers on a series of classical tasks from psychology designed to test relational reasoning, which are closely related to in-context classification. These results underscore a need for studying in-context learning beyond attention-based architectures, while also challenging prior arguments against MLPs' ability to solve relational tasks. Altogether, our results highlight the unexpected competence of MLPs in a synthetic setting, and support the growing interest in all-MLP alternatives to Transformer architectures. It remains unclear how MLPs perform against Transformers at scale on real-world tasks, and where a performance gap may originate. We encourage further exploration of these architectures in more complex settings to better understand the potential comparative advantage of attention-based schemes.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Pretrain–Test Task Alignment Governs Generalization in In-Context Learning 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • An Explanation of In-context Learning as Implicit Bayesian Inference 引用了 Language Models are Few-Shot Learners
  • Competition Dynamics Shape Algorithmic Phases of In-Context Learning 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • Competition Dynamics Shape Algorithmic Phases of In-Context Learning 引用了 Language Models are Few-Shot Learners
  • Competition Dynamics Shape Algorithmic Phases of In-Context Learning 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • Linear Transformers Implicitly Discover Unified Numerical Algorithms 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • Linear Transformers Implicitly Discover Unified Numerical Algorithms 引用了 Language Models are Few-Shot Learners
  • Linear Transformers Implicitly Discover Unified Numerical Algorithms 引用了 What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
  • Training Dynamics of In-Context Learning in Linear Attention 引用了 Language Models are Few-Shot Learners
  • Training Dynamics of In-Context Learning in Linear Attention 引用了 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 引用了 Pretrain–Test Task Alignment Governs Generalization in In-Context Learning
  • Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time 引用了 Training Dynamics of In-Context Learning in Linear Attention
  • 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 引用了 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 引用了 An Explanation of In-context Learning as Implicit Bayesian Inference
  • What Can Transformers Learn In-Context? A Case Study of Simple Function Classes 引用了 Language Models are Few-Shot Learners
  • Pay Attention to MLPs 引用了 MLP-Mixer: An all-MLP Architecture for Vision
  • Pay Attention to MLPs 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and TimeBlake Bordelon, Mary I. Letey, Cengiz PehlevanICLR 2026 · 14 次引用
  2. Pretrain–Test Task Alignment Governs Generalization in In-Context LearningMary Letey, Jacob A Zavatone-Veth, Yue M. Lu, Cengiz PehlevanICLR 2026 · 6 次引用
  3. Linear Transformers Implicitly Discover Unified Numerical AlgorithmsPatrick Lutz, Aditya Gangrade, Hadi Daneshmand, Venkatesh SaligramaNeurIPS 2025 · 3 次引用
  4. Competition Dynamics Shape Algorithmic Phases of In-Context LearningCore Francisco Park, Ekdeep Singh Lubana, Hidenori TanakaICLR 2025
  5. Training Dynamics of In-Context Learning in Linear AttentionYedi Zhang, Aaditya K. Singh, Peter E. Latham, Andrew M. SaxeICML 2025

它引用的 Paper19

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. MLP-Mixer: An all-MLP Architecture for VisionIlya O. Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer 等NeurIPS 2021 · 3,862 次引用
  3. An Explanation of In-context Learning as Implicit Bayesian InferenceSang Michael Xie, Aditi Raghunathan, Percy Liang, Tengyu MaICLR 2022 · 1,030 次引用
  4. Pay Attention to MLPsHanxiao Liu, Zihang Dai, David R. So, Quoc V. LeNeurIPS 2021 · 912 次引用
  5. What Can Transformers Learn In-Context? A Case Study of Simple Function ClassesShivam Garg, Dimitris Tsipras, Percy Liang, Gregory ValiantNeurIPS 2022 · 883 次引用

相关 Paper

  1. Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning AbilityIvan Lee, Nan Jiang, Taylor Berg-KirkpatrickICLR 2024 · 16 次引用
  2. Scaling MLPs: A Tale of Inductive BiasGregor Bachmann, Sotiris Anagnostidis, Thomas HofmannNeurIPS 2023 · 71 次引用
  3. How Do Transformers Learn In-Context Beyond Simple Functions? A Case Study on Learning with RepresentationsTianyu Guo, Wei Hu, Song Mei, Huan Wang 等ICLR 2024 · 80 次引用
  4. On the generalization capacity of neural networks during generic multimodal reasoningTakuya Ito, Soham Dan, Mattia Rigotti, James R. Kozloski 等ICLR 2024 · 4 次引用
  5. Differential learning kinetics govern the transition from memorization to generalization during in-context learningAlex Nguyen, Gautam ReddyICLR 2025
黄昏的海面,两侧是细线勾勒的悬崖