LGAIOct 3, 2025

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

arXiv:2510.03366v15 citationsh-index: 9
Originality Incremental advance
AI Analysis

This addresses the need for safer and more interpretable AI by providing causal evidence for functional specialization in transformers, though it is incremental as it builds on existing mechanistic interpretability methods.

The study tackled the problem of distinguishing recall and reasoning mechanisms in transformer models, finding through causal interventions that disabling specific circuits reduced fact-retrieval accuracy by up to 15% and multi-step inference by a comparable margin, showing these abilities rely on separable circuits.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes