Do Large Language Models Latently Perform Multi-Hop Reasoning?

Sohee Yang, Elena Gribovskaya, Nora Kassner, Mor Geva, Sebastian Riedel
2/26/2024
cs.CL

No official code found. Best implementation: google-deepmind/latent-multi-hop-reasoning (92 stars, Apache-2.0, last commit 2025-03-18).

Abstract

We study whether Large Language Models (LLMs) latently perform multi-hop reasoning with complex prompts such as "The mother of the singer of 'Superstition' is". We look for evidence of a latent reasoning pathway where an LLM (1) latently identifies "the singer of 'Superstition'" as Stevie Wonder, the bridge entity, and (2) uses its knowledge of Stevie Wonder's mother to complete the prompt. We analyze these two hops individually and consider their co-occurrence as indicative of latent multi-hop reasoning. For the first hop, we test if changing the prompt to indirectly mention the bridge entity instead of any other entity increases the LLM's internal recall of the bridge entity. For the second hop, we test if increasing this recall causes the LLM to better utilize what it knows about the bridge entity. We find strong evidence of latent multi-hop reasoning for the prompts of certain relation types, with the reasoning pathway used in more than 80% of the prompts. However, the utilization is highly contextual, varying across different types of prompts. Also, on average, the evidence for the second hop and the full multi-hop traversal is rather moderate and only substantial for the first hop. Moreover, we find a clear scaling trend with increasing model size for the first hop of reasoning but not for the second hop. Our experimental findings suggest potential challenges and opportunities for future development and applications of LLMs.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ACL 2024] Do Large Language Models Latently Perform Multi-Hop Reasoning?

9210PythonMar 18, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{yang2024large,
  title  = {Do Large Language Models Latently Perform Multi-Hop Reasoning?},
  author = {Sohee Yang and Elena Gribovskaya and Nora Kassner and Mor Geva and Sebastian Riedel},
  year   = {2024},
  eprint = {2402.16837},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.16837v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.16837.svg)](https://codeofpaper.com/paper/2402.16837)

Discussion