Distributional Associations vs In-Context Reasoning: A Study of Feed-forward and Attention Layers
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
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
- 2023The Truth is in There: Improving Reasoning in Language Models with Layer-Selective Rank Reductioncited by 120
- 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 115
- 2022Unveiling Transformers with LEGO: a synthetic reasoning taskcited by 105
- 2019Augmenting Self-attention with Persistent Memorycited by 92
- 2024In-Context Language Learning: Architectures and Algorithmscited by 86
5 more
- 2024Transformers, parallel computation, and logarithmic depthcited by 75
- 2023How Two-Layer Neural Networks Learn, One (Giant) Step at a Timecited by 67
- 2021Approximating How Single Head Attention Learnscited by 38
- 2024Learning Associative Memories with Gradient Descentcited by 14
- 2023Training Dynamics of Contextual N-Grams in Language Modelscited by 7
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 5.
12 papers.
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformercited by 12
- 2026HTMuon: Improving Muon via Heavy-Tailed Spectral Correctioncited by 11
- 2025Transmuting prompts into weightscited by 3
- 2025Facts in Stats: Impacts of Pretraining Diversity on Language Model Generalizationcited by 3
- 2025On the Emergence of Induction Heads for In-Context Learningcited by 3
- 2026Sparse Growing Transformer: Training-Time Sparse Depth Allocation via Progressive Attention Loopingcited by 3
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledgecited by 2
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalizationcited by 1
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMscited by 1
- 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 1
- 2024Rethinking Associative Memory Mechanism in Induction Headcited by 0
- 2025GSM-Agent: Understanding Agentic Reasoning Using Controllable Environmentscited by 0
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMs14 Apr 2026
- 2026Sparse Growing Transformer: Training-Time Sparse Depth Allocation via Progressive Attention Looping25 Mar 2026
- 2026Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge21 Mar 2026
- 2026HTMuon: Improving Muon via Heavy-Tailed Spectral Correction10 Mar 2026
- 2025On the Emergence of Induction Heads for In-Context Learning2 Nov 2025
- 2025Facts in Stats: Impacts of Pretraining Diversity on Language Model Generalization17 Oct 2025
- 2025Transmuting prompts into weights9 Oct 2025
- 2025GSM-Agent: Understanding Agentic Reasoning Using Controllable Environments26 Sep 2025
- 2025Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer1 Jun 2025
- 2025How Transformers Learn In-Context Recall Tasks? Optimality, Training Dynamics and Generalization21 May 2025
- 2024Rethinking Associative Memory Mechanism in Induction Head16 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2026Unveiling the Reasoning Process of Large Language Models
- 2023Is attention required for ICL? Exploring the Relationship Between Model Architecture and In-Context Learning Ability
- 2025An Analysis for Reasoning Bias of Language Models with Small Initialization
- 2025Generalization or Hallucination? Understanding Out-of-Context Reasoning in Transformers
- 2026A Systematic Study of Small Language Models on Abstract Reasoning Tasks
- 2025Rethinking the Chain-of-Thought: The Roles of In-Context Learning and Pre-trained Priors
- 2025Transformers Pretrained on Procedural Data Contain Modular Structures for Algorithmic Reasoning
- 2024From Sparse Dependence to Sparse Attention: Unveiling How Chain-of-Thought Enhances Transformer Sample Efficiency