mlsanityData to 14 Oct 2026

Towards Interpreting Language Models: A Case Study in Multi-Hop Reasoning

arXiv 2411.05037 ↗First posted 6 Nov 2024cs.CL cs.AI cs.LGcited by 4

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 1.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Memory Injections: Correcting Multi-Hop Reasoning Failures during Inference in Transformer-Based Language Models
  2. 2025Back Attention: Understanding and Enhancing Multi-Hop Reasoning in Large Language Models
  3. 2026Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Models
  4. 2024Large Language Models Still Face Challenges in Multi-Hop Reasoning with External Knowledge
  5. 2023Uncertainty Guided Global Memory Improves Multi-Hop Question Answering
  6. 2024Enhancing Multi-hop Reasoning through Knowledge Erasure in Large Language Model Editing
  7. 2026Scaling Reasoning Hop Exposes Weaknesses: Demystifying and Improving Hop Generalization in Large Language Models
  8. 2024Seemingly Plausible Distractors in Multi-Hop Reasoning: Are Large Language Models Attentive Readers?