mlsanityData to 14 Oct 2026

Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Ability

arXiv 2310.08049 ↗First posted 12 Oct 2023cs.LGcited by 17

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
  6. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  8. 2020GLU Variants Improve Transformercited by 1,804
  9. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  10. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  11. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  12. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
14 more
  1. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  2. 2020Efficient Transformers: A Surveycited by 790
  3. 2022Transformers learn in-context by gradient descentcited by 732
  4. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  5. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  6. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
  7. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
  8. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
  9. 2019Pay Less Attention with Lightweight and Dynamic Convolutionscited by 211
  10. 2016Using Fast Weights to Attend to the Recent Pastcited by 170
  11. 2018Sharp Nearby, Fuzzy Far Away: How Neural Language Models Use Contextcited by 113
  12. 2021An Attention Free Transformercited by 112
  13. 2019The Omniglot challenge: a 3-year progress reportcited by 54
  14. 2014Rigid-Motion Scattering for Texture Classificationcited by 52

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 11; 2025: 3; 2026: 2.

17 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2022Rethinking the Role of Scale for In-Context Learning: An Interpretability-based Case Study at 66 Billion Scale
  2. 2024Does In-Context Learning Really Learn? Rethinking How Large Language Models Respond and Solve Tasks via In-Context Learning
  3. 2025From Compression to Expression: A Layerwise Analysis of In-Context Learning
  4. 2023The Mystery of In-Context Learning: A Comprehensive Survey on Interpretation and Analysis
  5. 2025Illusion or Algorithm? Investigating Memorization, Emergence, and Symbolic Processing in In-Context Learning
  6. 2025Probing In-Context Learning: Impact of Task Complexity and Model Architecture on Generalization and Efficiency
  7. 2025Is In-Context Learning Learning?
  8. 2025On the Relationship Between the Choice of Representation and In-Context Learning