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.
Introduction
Most complex reasoning in Large Language Models (LLMs) today relies on Chain-of-Thought (CoT), where the model explicitly writes out intermediate steps. While effective, CoT is slow and computationally expensive. This paper investigates a fundamental alternative: implicit reasoning. Can a transformer learn to perform multi-hop logic internally, jumping directly from a query like "Who is the instructor of the advisor of Jennifer?" to the answer in a single forward pass?
While prior work showed success for 2-hop questions, the scalability of this capability to more complex $k$-hop problems—and the associated costs—remained poorly understood.
Methods and Datasets
The authors trained GPT-2 style transformers from scratch on synthetic knowledge-based datasets.
- Architecture: Standard decoder-only transformers (GPT-2 Small, Medium, and Large) using Rotary Position Embeddings (RoPE).
- Task: The model is provided with "entity profiles" (e.g., Jennifer’s advisor is Miller) and subsequently tested on $k$-hop reasoning queries ($k=2, 3, 4$).
- Benchmarks: Two synthetic datasets were used: $k\text{-hop}_{\text{small}}$ (250 entities, 10 relations) and $k\text{-hop}_{\text{large}}$ (500 entities, 20 relations).
Key Results
The Exponential Data Wall
The research reveals that while models can reach ~100% accuracy on 4-hop reasoning without CoT, the data cost is prohibitive. As the number of reasoning steps ($k$) increases, the required training data grows exponentially.
For the $k\text{-hop}_{\text{large}}$ dataset, moving from 2-hop to 4-hop reasoning required 100 times more data to achieve high accuracy. This suggests a fundamental scaling bottleneck for implicit reasoning.
Mechanistic Analysis: Layer-Wise Sequentialism
Through mechanistic probing and activation patching, the authors found that the model does not solve the problem all at once. Instead, it employs a "layer-wise lookup" behavior: the 1st hop is resolved in early layers, the 2nd hop in middle layers, and so on.
This observation is formalized in Theorem 5.1, which proves that for a transformer to solve a $k$-hop task, its number of layers ($L$) must grow linearly with $k$. Depth is a non-negotiable requirement for multi-hop logic.
Curriculum Learning as a "Circuit Builder"
The study found that training on easier tasks (2-hop and 3-hop) before 4-hop tasks significantly reduces the data budget. Using curriculum learning, the 4-hop task could be solved with only a $\times 5$ budget instead of $\times 100$. Mechanistically, this works because the model builds the "early hop" circuits first and then stacks the "later hop" circuits on top of them.
Discussion and Limitations
While these findings provide a clear picture of the costs of implicit reasoning, several limitations remain. The study uses synthetic, template-based data; real-world language is significantly noisier. Additionally, the study only explores up to $k=4$ and models up to 770M parameters. Future research is needed to determine if multi-billion parameter models exhibit different scaling laws or if these constraints explain why current LLMs often fail at complex implicit reasoning despite their massive size.
Summary updated