Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Ability
Not on the map. Why?
Abstract (arXiv)
What is the relationship between model architecture and the ability to perform in-context learning? In this empirical study, we take the first steps toward answering this question. We evaluate thirteen model architectures capable of causal language modeling across a suite of synthetic in-context learning tasks. These selected architectures represent a broad range of paradigms, including recurrent and convolution-based neural networks, transformers, state space model inspired, and other emerging attention alternatives. We discover that all the considered architectures can perform in-context learning under a wider range of conditions than previously documented. Additionally, we observe stark differences in statistical efficiency and consistency by varying the number of in-context examples and task difficulty. We also measure each architecture's predisposition towards in-context learning when presented with the option to memorize rather than leverage in-context examples. Finally, and somewhat surprisingly, we find that several attention alternatives are sometimes competitive with or better in-context learners than transformers. However, no single architecture demonstrates consistency across all tasks, with performance either plateauing or declining when confronted with a significantly larger number of in-context examples than those encountered during gradient-based training.
Key facts. Cited by 17 papers in the map (data through 14 Oct 2026). Builds on 26 of its 33 references that are in the map. First posted on arXiv 12 Oct 2023.
Builds on
26 of 33 references.
References · 26
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020GLU Variants Improve Transformercited by 1,804
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
14 more
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2020Efficient Transformers: A Surveycited by 790
- 2022Transformers learn in-context by gradient descentcited by 732
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
- 2016Using Fast Weights to Attend to the Recent Pastcited by 170
- 2018Sharp Nearby, Fuzzy Far Away: How Neural Language Models Use Contextcited by 113
- 2021An Attention Free Transformercited by 112
- 2019The Omniglot challenge: a 3-year progress reportcited by 54
- 2014Rigid-Motion Scattering for Texture Classificationcited by 52
Built on by
Citing papers per year: 2023: 1; 2024: 11; 2025: 3; 2026: 2.
17 papers.
Sort:
By area:
- 2024A Survey on Efficient Inference for Large Language Modelscited by 205
- 2024In-Context Language Learning: Architectures and Algorithmscited by 89
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regressioncited by 49
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2024Is Mamba Capable of In-Context Learning?cited by 45
- 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyondcited by 24
- 2024Linking In-context Learning in Transformers to Human Episodic Memorycited by 15
- 2024MLPs Learn In-Context on Regression and Classification Taskscited by 13
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attentioncited by 8
- 2024Small-E: Small Language Model with Linear Attention for Efficient Speech Synthesiscited by 6
- 2024A Survey of RWKVcited by 6
- 2025Weight-Space Linear Recurrent Neural Networkscited by 5
5 more
- 2024Is In-Context Learning a Type of Error-Driven Learning? Evidence from the Inverse Frequency Effect in Structural Primingcited by 4
- 2024Mamba State-Space Models Are Lyapunov-Stable Learnerscited by 3
- 2024Can Custom Models Learn In-Context? An Exploration of Hybrid Architecture Performance on In-Context Learning Taskscited by 0
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Inductioncited by 0
- 2026An all-transistor physical-learning transformer can be trained to perform in-context learningcited by 0
- 2026An all-transistor physical-learning transformer can be trained to perform in-context learning8 Oct 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attention26 Sep 2025
- 2025Weight-Space Linear Recurrent Neural Networks1 Jun 2025
- 2025Training Dynamics of In-Context Learning in Linear Attention27 Jan 2025
- 2024A Survey of RWKV19 Dec 2024
- 2024Can Custom Models Learn In-Context? An Exploration of Hybrid Architecture Performance on In-Context Learning Tasks6 Nov 2024
- 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyond13 Jul 2024
- 2024Is In-Context Learning a Type of Error-Driven Learning? Evidence from the Inverse Frequency Effect in Structural Priming26 Jun 2024
- 2024Small-E: Small Language Model with Linear Attention for Efficient Speech Synthesis6 Jun 2024
- 2024Mamba State-Space Models Are Lyapunov-Stable Learners31 May 2024
- 2024MLPs Learn In-Context on Regression and Classification Tasks24 May 2024
5 more
- 2024Linking In-context Learning in Transformers to Human Episodic Memory23 May 2024
- 2024A Survey on Efficient Inference for Large Language Models22 Apr 2024
- 2024Is Mamba Capable of In-Context Learning?5 Feb 2024
- 2024In-Context Language Learning: Architectures and Algorithms23 Jan 2024
- 2023Transformers Learn to Achieve Second-Order Convergence Rates for In-Context Linear Regression26 Oct 2023
- 2024A Survey on Efficient Inference for Large Language Modelscited by 205
- 2024A Survey on Efficient Inference for Large Language Models22 Apr 2024
- 2024In-Context Language Learning: Architectures and Algorithmscited by 89
- 2025Training Dynamics of In-Context Learning in Linear Attentioncited by 46
- 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyondcited by 24
- 2024Linking In-context Learning in Transformers to Human Episodic Memorycited by 15
- 2024MLPs Learn In-Context on Regression and Classification Taskscited by 13
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attentioncited by 8
- 2024Small-E: Small Language Model with Linear Attention for Efficient Speech Synthesiscited by 6
- 2024A Survey of RWKVcited by 6
- 2025Weight-Space Linear Recurrent Neural Networkscited by 5
- 2024Is In-Context Learning a Type of Error-Driven Learning? Evidence from the Inverse Frequency Effect in Structural Primingcited by 4
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Inductioncited by 0
- 2026An all-transistor physical-learning transformer can be trained to perform in-context learningcited by 0
- 2026An all-transistor physical-learning transformer can be trained to perform in-context learning8 Oct 2026
- 2026Gaussian Match-and-Copy: A Minimalist Benchmark for Studying Transformer Induction7 Feb 2026
- 2025Train Once, Reuse Everywhere: Generalizable Implicit In-Context Learning by Routing Attention26 Sep 2025
- 2025Weight-Space Linear Recurrent Neural Networks1 Jun 2025
- 2025Training Dynamics of In-Context Learning in Linear Attention27 Jan 2025
- 2024A Survey of RWKV19 Dec 2024
- 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyond13 Jul 2024
- 2024Is In-Context Learning a Type of Error-Driven Learning? Evidence from the Inverse Frequency Effect in Structural Priming26 Jun 2024
- 2024Small-E: Small Language Model with Linear Attention for Efficient Speech Synthesis6 Jun 2024
- 2024MLPs Learn In-Context on Regression and Classification Tasks24 May 2024
- 2024Linking In-context Learning in Transformers to Human Episodic Memory23 May 2024
- 2024In-Context Language Learning: Architectures and Algorithms23 Jan 2024
Similar, not cited
Close in wording, no citation either way
- 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale
- 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
- 2025From Compression to Expression: A Layerwise Analysis of In-Context Learning
- 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysis
- 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learning
- 2025Probing In-Context Learning: Impact of Task Complexity and Model Architecture on Generalization and Efficiency
- 2025Is In-Context Learning Learning?
- 2025On the Relationship Between the Choice of Representation and In-Context Learning