Towards Interpreting Language Models: A Case Study in Multi-Hop Reasoning
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
Abstract (arXiv)
Answering multi-hop reasoning questions requires retrieving and synthesizing information from diverse sources. Language models (LMs) struggle to perform such reasoning consistently. We propose an approach to pinpoint and rectify multi-hop reasoning failures through targeted memory injections on LM attention heads. First, we analyze the per-layer activations of GPT-2 models in response to single- and multi-hop prompts. We then propose a mechanism that allows users to inject relevant prompt-specific information, which we refer to as "memories," at critical LM locations during inference. By thus enabling the LM to incorporate additional relevant information during inference, we enhance the quality of multi-hop prompt completions. We empirically show that a simple, efficient, and targeted memory injection into a key attention layer often increases the probability of the desired next token in multi-hop tasks, by up to 424%. We observe that small subsets of attention heads can significantly impact the model prediction during multi-hop reasoning. To more faithfully interpret these heads, we develop Attention Lens: an open source tool that translates the outputs of attention heads into vocabulary tokens via learned transformations called lenses. We demonstrate the use of lenses to reveal how a model arrives at its answer and use them to localize sources of model failures such as in the case of biased and malicious language generation.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. First posted on arXiv 6 Nov 2024.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2025Empowering Scientific Workflows with Federated Agentscited by 17
- 2025How do Transformers Learn Implicit Reasoning?cited by 16
- 2025Hop, Skip, and Overthink: Diagnosing Why Reasoning Models Fumble during Multi-Hop Analysiscited by 3
- 2026ReGraM: Region-First Knowledge Graph Reasoning for Medical Question Answeringcited by 0
- 2026ReGraM: Region-First Knowledge Graph Reasoning for Medical Question Answering14 Jan 2026
- 2025Hop, Skip, and Overthink: Diagnosing Why Reasoning Models Fumble during Multi-Hop Analysis6 Aug 2025
- 2025How do Transformers Learn Implicit Reasoning?29 May 2025
- 2025Empowering Scientific Workflows with Federated Agents8 May 2025
Similar, not cited
Close in wording, no citation either way
- 2023Memory Injections: Correcting Multi-Hop Reasoning Failures during Inference in Transformer-Based Language Models
- 2025Back Attention: Understanding and Enhancing Multi-Hop Reasoning in Large Language Models
- 2026Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Models
- 2024Large Language Models Still Face Challenges in Multi-Hop Reasoning with External Knowledge
- 2023Uncertainty Guided Global Memory Improves Multi-Hop Question Answering
- 2024Enhancing Multi-hop Reasoning through Knowledge Erasure in Large Language Model Editing
- 2026Scaling Reasoning Hop Exposes Weaknesses: Demystifying and Improving Hop Generalization in Large Language Models
- 2024Seemingly Plausible Distractors in Multi-Hop Reasoning: Are Large Language Models Attentive Readers?