paper-with-me

Papers

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

2025-10-03 · Harshwardhan Fartale, Ashish Kattamuri, Rahul Raja, Arpita Vats, Ishita Prasad, Akshata Kishore Moharir 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.

📄 PDF Abstract BibTeX arXiv:2510.03366

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Disentangling Mathematical Reasoning in LLMs: A Methodological Investigation of Internal Mechanisms

2026-04-17 · Tanja Baeumel, Josef van Genabith, Simon Ostermann arxiv

Large language models (LLMs) have demonstrated impressive capabilities, yet their internal mechanisms for handling reasoning-intensive tasks remain underexplored. To advance the understanding of model-internal processing…

Mathematical Reasoning

Disentangling Memory and Reasoning Ability in Large Language Models

2024-11-20 · Mingyu Jin, Weidi Luo, Sitao Cheng, Xinyi Wang 외

Large Language Models (LLMs) have demonstrated strong performance in handling complex tasks requiring both extensive knowledge and reasoning abilities. However, the existing LLM inference pipeline operates as an opaque p…

Decision MakingRetrieval

Layer Importance for Mathematical Reasoning is Forged in Pre-Training and Invariant after Post-Training

2025-06-27 · Aadim Nepal, Safal Shrestha, Anubhav Shrestha, Minwu Kim 외

Large language models can exhibit improved mathematical reasoning capabilities following post-training with instruction tuning, reinforcement learning, or knowledge distillation. However, it remains unclear whether these…

Knowledge DistillationMathematical Reasoningreinforcement-learningReinforcement Learning

Revisiting associative recall in modern recurrent models

2025-08-26 · Destiny Okpekpe, Antonio Orvieto arxiv

Despite the advantageous subquadratic complexity of modern recurrent deep learning models -- such as state-space models (SSMs) -- recent studies have highlighted their potential shortcomings compared to transformers on r…

Native Hybrid Attention for Efficient Sequence Modeling

2025-10-08 · Jusen Du, Jiaxi Hu, Tao Zhang, Weigao Sun 외 arxiv

Transformers excel at sequence modeling but face quadratic complexity, while linear attention offers improved efficiency but often compromises recall accuracy over long contexts. In this work, we introduce Native Hybrid …