Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queries

Eden Biran, Daniela Gottesman, Sohee Yang, Mor Geva, Amir Globerson · OpenReview

Abstract

Large language models (LLMs) can solve complex multi-step problems, but little is known about how these computations are implemented internally. Motivated by this, we study how LLMs answer multi-hop queries such as "The spouse of the performer of Imagine is". These queries require two information extraction steps: a latent one for resolving the first hop ("the performer of Imagine") into the bridge entity (John Lennon), and one for resolving the second hop ("the spouse of John Lennon") into the target entity (Yoko Ono). Understanding how the latent step is computed internally is key to understanding the overall computation. By carefully analyzing the internal computations of transformer-based LLMs, we discover that the bridge entity is resolved in the early layers of the model. Then, only after this resolution, the two-hop query is solved in the later layers. Because the second hop commences in later layers, there could be cases where these layers no longer encode the necessary knowledge for correctly predicting the answer. Motivated by this, we propose a novel "back-patching" analysis method whereby a hidden representation from a later layer is patched back to an earlier layer. We find that in up to 57% of previously incorrect cases there exists a back-patch that results in the correct generation of the answer, showing that the later layers indeed sometimes lack the needed functionality. Overall our methods and findings open further opportunities for understanding and improving latent reasoning in transformer-based LLMs.

Introduction

Large Language Models (LLMs) have demonstrated a remarkable ability to perform multi-hop reasoning, connecting disparate facts to arrive at a conclusion. For instance, to answer "Who is the spouse of the performer of Imagine?", a model must identify the performer (John Lennon) and subsequently identify his spouse (Yoko Ono). However, the internal mechanics of this process—specifically how the model manages these sequential steps within its fixed-depth architecture—remain poorly understood. This paper investigates the internal "latent reasoning" pathway of LLMs, revealing that reasoning failures often stem from a temporal bottleneck: the model simply runs out of layers to complete the computation.

The Sequential Reasoning Pathway

Through mechanistic interpretability tools, we identify a consistent sequential pathway across various transformer architectures, including LLaMA 2, LLaMA 3, and Pythia. The process resembles a relay race across the model's layers:

  1. Hop 1 Resolution: The model resolves the "bridge entity" (e.g., John Lennon) in the early layers, typically within the first 25-30% of the network. This occurs at the position of the last token of the first sub-query ($t_1$).
  2. Information Propagation: During the middle layers, this resolved information propagates from the $t_1$ position to the final token of the query ($t_2$).
  3. Hop 2 Resolution: The second hop is resolved in the late layers at the $t_2$ position, leading to the final prediction of the target entity.

The "Hopping Too Late" Hypothesis

Our central finding is that many multi-hop reasoning failures are not due to a lack of factual knowledge, but rather a lack of "computational room." In many failed cases, the model successfully identifies the bridge entity, but it does so too deep in the network.

Because transformer layers often exhibit specialization—where certain layers are better at specific types of knowledge extraction—resolving the first hop at, for example, layer 25 of a 32-layer model may leave insufficient layers to perform the second hop. If the necessary functionality for the second hop resides in the middle layers, the model effectively "misses its window" to complete the reasoning chain. This suggests that the model's fixed depth acts as a bottleneck for sequential composition.

Methodology: Probing the Latent State

To map this internal pathway and test the depth bottleneck, we utilized several diagnostic techniques:

  • Patchscopes: This method decodes hidden representations into natural language, allowing us to inspect which entity the model is "thinking" about at any given layer.
  • Attention Knockout: By systematically blocking information flow between tokens, we localized where the bridge entity information is stored and how it moves through the network.
  • Back-patching: We introduced this novel technique to test the depth bottleneck hypothesis. We take a hidden representation from a late layer (where the bridge entity has been resolved) and "patch" it back into an earlier layer. This effectively grants the model additional layers to process the second hop.

Experimental Results

We evaluated our hypotheses using a new benchmark of 82,020 two-hop queries derived from Wikidata, specifically filtered to ensure that models could not rely on simple correlations or "shortcuts" (e.g., guessing Yoko Ono simply because Imagine was mentioned).

Our back-patching analysis yielded striking results. By rewinding the computation to an earlier layer once the bridge entity was identified, we successfully recovered the correct answer in 32% to 66% of previously failed cases. In the Pythia 6.9B model, this intervention fixed 66% of errors, providing strong evidence that the model "knew" the components of the answer but failed to compose them within the standard forward pass because it "hopped too late."

Conclusion

Our research demonstrates that the fixed depth of transformer models creates a fundamental bottleneck for multi-hop reasoning. The "Hopping Too Late" phenomenon suggests that improving LLM performance on complex tasks may require more than just larger datasets; it may require architectural innovations that allow for more flexible computational budgets, such as dynamic depth or recurrent processing. By understanding the sequential nature of latent reasoning, we can begin to design models that manage their internal "computational budget" more effectively.

Summary updated

BibTeX
@inproceedings{biran2024hopping,
  author = {Eden Biran and Daniela Gottesman and Sohee Yang and Mor Geva and Amir Globerson},
  title = {{Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queries}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.781},
}
Figure