Language models can learn implicit multi-hop reasoning, but only if they have lots of training data

Yuekun Yao, Yupei Du, Dawei Zhu, Michael Hahn, Alexander Koller
5/23/2025
cs.CL

No confident code implementation found for this paper.

Abstract

Implicit reasoning is the ability of a language model to solve multi-hop reasoning tasks in a single forward pass, without chain of thought. We investigate this capability using GPT2-style language models trained from scratch on controlled $k$-hop reasoning datasets ($k = 2, 3, 4$). We show that while such models can indeed learn implicit $k$-hop reasoning, the required training data grows exponentially in $k$, and the required number of transformer layers grows linearly in $k$. We offer a theoretical explanation for why this depth growth is necessary. We further find that the data requirement can be mitigated, but not eliminated, through curriculum learning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{yao2025language,
  title  = {Language models can learn implicit multi-hop reasoning, but only if they have lots of training data},
  author = {Yuekun Yao and Yupei Du and Dawei Zhu and Michael Hahn and Alexander Koller},
  year   = {2025},
  eprint = {2505.17923},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.17923v2}
}

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/2505.17923.svg)](https://codeofpaper.com/paper/2505.17923)

Discussion