This paper investigates a fundamental challenge in how Large Language Models (LLMs) reason: latent fact composition. While LLMs are excellent at recalling individual facts, they often struggle to combine them internally (e.g., knowing "A's mother is B" and "B was born in C" to answer "Where was A's mother born?" without explicitly stating B).
The authors discover that the standard training objective for LLMs—predicting the next token for every word in a sentence—might actually be the culprit behind why models fail to maintain multi-hop reasoning capabilities over time.
TL;DR
The authors introduce the Baton architecture, a looped transformer that successfully performs "latent" two-hop reasoning by passing intermediate results as token embeddings. However, they reveal a surprising "rise and decline" in reasoning accuracy under standard next-token training, suggesting that the common LLM training objective may actively undermine long-term generalization for multi-hop tasks.
What Problem Does This Paper Address?
In "latent" two-hop reasoning, a model must compose two facts in a single forward pass without writing out the intermediate "bridge" entity. Previous controlled studies typically used answer-only loss, where the model is only trained on the final answer. Real-world LLMs use next-token loss, training on every word in a sequence.
The authors identify a major gap: models that generalize well under answer-only loss often fail on Out-of-Distribution (OOD) questions—questions where the bridge entity never appeared as a bridge during training. They ask: Can models learn OOD generalization under next-token training, and is that generalization stable?
Methods
The researchers developed the Baton architecture family, a set of looped transformers designed to facilitate latent reasoning.
- The Core Idea: A looped transformer runs the same layers twice. Baton variants take the "bridge" entity predicted in the first loop and feed it into the second loop specifically as a token embedding. This ensures the second hop of reasoning treats the latent bridge exactly like a physical input token.
- Design Hypothesis: They propose three conditions for OOD success:
- Both reasoning hops must use the same underlying computation.
- The bridge must enter the second hop as a token embedding.
- The model must be prevented from simply "copy-pasting" a result from the first loop to the final answer.
- Gradient Analysis: To understand why next-token loss causes failures, they decomposed the loss gradient into three terms: $g^{ref}$ (moving toward a general reference distribution), $g^R$ (moving toward specific training set frequencies), and $g^\epsilon$ (label noise).
Datasets
The study uses a controlled synthetic "two-graph" task:
- World: Two disjoint graphs ($G_A$ and $G_B$) with 500 entities and 50 relations each.
- Training: The model is trained on all atomic facts for both graphs, but only sees two-hop sentences for graph $G_A$.
- Evaluation:
- ID Accuracy: New two-hop questions from $G_A$.
- OOD Accuracy: Two-hop questions from $G_B$. Success here proves the model has learned a general composition rule rather than just memorizing training chains.
Key Insights and Ideas
- Architecture Matters: Standard transformers and previous looped models (like DiscoLoop) failed OOD questions almost entirely (<1.2% accuracy). The Baton mechanism of passing embeddings is crucial for "handing off" the latent bridge.
- The "Rise and Decline" Phenomenon: Under next-token loss, OOD accuracy often peaks early and then declines as training continues. This happens even though the model still perfectly recalls the underlying atomic facts.
- Context Targets are Distractors: In next-token training, the model is forced to predict "context" tokens (like relations) that aren't logically determined by the facts. The model starts memorizing these arbitrary training set statistics, which eventually "crowds out" the general reasoning circuit.
- The Second Hop is the Weak Link: Analysis shows the decline happens specifically in the second loop at the answer position. The first loop continues to find the correct bridge entity, but the second loop loses the ability to use it.
Key Results
- Answer-Only Loss: Baton variants reached ~100% OOD accuracy and maintained it stably.
- Next-Token Loss: The best variant (Baton-Q0) peaked at 78% OOD accuracy but eventually fell to 49%.
- Gradient Surgery: Removing the "label noise" ($g^\epsilon$) and "training frequency" ($g^R$) terms from the gradient improved the peak OOD accuracy to 93%, but the late-stage decline persisted.
- Baseline Failure: Standard 8-layer transformers (TF8) and simple looped models (LOOP) never exceeded 1.2% OOD accuracy, regardless of the loss used.
Limitations and Future Work
The study is limited to a synthetic setting with a single sentence template and relatively small models. In natural language, the "noise" in context tokens is much higher, which might exacerbate or alter the observed decline.
The authors note that the exact physical mechanism of the decline in the second hop remains an open question. Future work will likely explore how to "protect" reasoning circuits from the interference of next-token training in larger, more complex models.
Summary updated