mlsanityData to 7 Oct 2026

Disentangling Recall and Reasoning in Transformer Models through Layer-wise Attention and Activation Analysis

arXiv 2510.03366 ↗First posted 3 Oct 2025cs.LG cs.AIcited by 4

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Transformer-based language models excel at both recall (retrieving memorized facts) and reasoning (performing multi-step inference), but whether these abilities rely on distinct internal mechanisms remains unclear. Distinguishing recall from reasoning is crucial for predicting model generalization, designing targeted evaluations, and building safer interventions that affect one ability without disrupting the other.We approach this question through mechanistic interpretability, using controlled datasets of synthetic linguistic puzzles to probe transformer models at the layer, head, and neuron level. Our pipeline combines activation patching and structured ablations to causally measure component contributions to each task type. Across two model families (Qwen and LLaMA), we find that interventions on distinct layers and attention heads lead to selective impairments: disabling identified "recall circuits" reduces fact-retrieval accuracy by up to 15% while leaving reasoning intact, whereas disabling "reasoning circuits" reduces multi-step inference by a comparable margin. At the neuron level, we observe task-specific firing patterns, though these effects are less robust, consistent with neuronal polysemanticity.Our results provide the first causal evidence that recall and reasoning rely on separable but interacting circuits in transformer models. These findings advance mechanistic interpretability by linking circuit-level structure to functional specialization and demonstrate how controlled datasets and causal interventions can yield mechanistic insights into model cognition, informing safer deployment of large language models.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 13 of its 35 references that are in the map. First posted on arXiv 3 Oct 2025.

Builds on

13 of 35 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025UNVEILING: What Makes Linguistics Olympiad Puzzles Tricky for LLMs?15 Aug
  2. 2024Linguini: A benchmark for language-agnostic linguistic reasoning18 Sep
  3. 2024LINGOLY: A Benchmark of Olympiad-Level Linguistic Reasoning Puzzles in Low-Resource and Extinct Languages10 Jun

Other references · 10

  1. 2022Emergent Abilities of Large Language Modelscited by 2,483
  2. 2019Language Models as Knowledge Bases?cited by 1,922
  3. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  4. 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,081
  5. 2022In-context Learning and Induction Headscited by 930
  6. 2025Reasoning Models Don't Always Say What They Thinkcited by 388
  7. 2020A Survey on Neural Network Interpretabilitycited by 291
  8. 2023Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretabilitycited by 194
  9. 2024Sycophancy to Subterfuge: Investigating Reward-Tampering in Large Language Modelscited by 158
  10. 2020PuzzLing Machines: A Challenge on Learning From Small Datacited by 15

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026NeuReasoner: Theory-grounded Mapping of Reasoning Elicitation Boundaries
  2. 2025Causal Head Gating: A Framework for Interpreting Roles of Attention Heads in Transformers
  3. 2025Reason to Rote: Rethinking Memorization in Reasoning
  4. 2026Neural Activation Patterns Across Language Model Architectures: A Comprehensive Analysis of Cognitive Task Performance
  5. 2025Generalization or Hallucination? Understanding Out-of-Context Reasoning in Transformers
  6. 2026Dissecting Hierarchical Reasoning Models: A Mechanistic Study
  7. 2025An Analysis for Reasoning Bias of Language Models with Small Initialization
  8. 2025Too Big to Think: Capacity, Memorization, and Generalization in Pre-Trained Transformers