mlsanityData to 7 Oct 2026

Distributional Associations vs In-Context Reasoning: A Study of Feed-forward and Attention Layers

arXiv 2406.03068 ↗First posted 5 Jun 2024cs.LG cs.AI cs.CLcited by 12

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Large language models have been successful at tasks involving basic forms of in-context reasoning, such as generating coherent language, as well as storing vast amounts of knowledge. At the core of the Transformer architecture behind such models are feed-forward and attention layers, which are often associated to knowledge and reasoning, respectively. In this paper, we study this distinction empirically and theoretically in a controlled synthetic setting where certain next-token predictions involve both distributional and in-context information. We find that feed-forward layers tend to learn simple distributional associations such as bigrams, while attention layers focus on in-context reasoning. Our theoretical analysis identifies the noise in the gradients as a key factor behind this discrepancy. Finally, we illustrate how similar disparities emerge in pre-trained models through ablations on the Pythia model family on simple reasoning tasks.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 17 of its 53 references that are in the map. First posted on arXiv 5 Jun 2024.

Builds on

17 of 53 references.

References · 17

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  5. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  6. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
  7. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  8. 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reductioncited by 120
  9. 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
  10. 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
  11. 2019Augmenting Self-attention with Persistent Memorycited by 92
  12. 2024In-Context Language Learning: Architectures and Algorithmscited by 86
5 more
  1. 2024Transformers, parallel computation, and logarithmic depthcited by 75
  2. 2023How Two-Layer Neural Networks Learn, One (Giant) Step at a Timecited by 67
  3. 2021Approximating How Single Head Attention Learnscited by 38
  4. 2024Learning Associative Memories with Gradient Descentcited by 14
  5. 2023Training Dynamics of Contextual N-Grams in Language Modelscited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 6; 2026: 5.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Unveiling the Reasoning Process of Large Language Models
  2. 2023Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Ability
  3. 2025An Analysis for Reasoning Bias of Language Models with Small Initialization
  4. 2025Generalization or Hallucination? Understanding Out-of-Context Reasoning in Transformers
  5. 2026A Systematic Study of Small Language Models on Abstract Reasoning Tasks
  6. 2025Rethinking the Chain-of-Thought: The Roles of In-Context Learning and Pre-trained Priors
  7. 2025Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoning
  8. 2024From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiency