TL;DR
The "two-hop curse" describes a phenomenon where large language models (LLMs) can repeat a newly learned fact but fail to use it in multi-hop reasoning. This paper demonstrates that the issue isn't a reasoning deficit but a "write-time failure": standard fine-tuning stores facts as text to be output, whereas reasoning requires them to be stored as entities to be read. Their proposed method, LEGIBLE, fixes this by aligning internal representations, allowing models to reason with new facts even better than they do with their original knowledge.
What Problem Does This Paper Address?
When you fine-tune an LLM on a new fact—for example, "Lena Hart is a citizen of Japan"—the model can correctly answer "Where is Lena Hart from?". However, if you then ask "What is the currency of Lena Hart's country?", the model often reverts to her old country (e.g., answering "Euro" because it still thinks she is French). This is the two-hop curse.
Existing research often assumes this is a reasoning failure and tries to fix it by training the model on synthesized multi-hop reasoning data. The authors of this paper argue otherwise: the model's reasoning capabilities are intact, but the way the new information is "written" into the model's weights during fine-tuning is incompatible with how the model "reads" information during reasoning. Specifically, fine-tuning modifies the late layers to produce the correct output string, but multi-hop reasoning starts "reading" the bridge entity (the country) from the middle layers.
Methods
The authors propose a new editing objective called LEGIBLE (read-equivalent writing). The core idea is the read–write contract: a "write" operation must produce the representation that downstream computation "reads."
LEGIBLE introduces two primary loss terms:
- $L_{read}$ (Read-Equivalent Loss): This term ensures that the hidden state of a "bridge phrase" (e.g., "the country of citizenship of Lena Hart") at a specific layer $t$ matches the model's own internal representation of the target entity (e.g., "Japan") when that entity is read in a neutral context.
- $L_{keep}$ (Locality Loss): This ensures that the edit is precise. It constrains the model so that the representations for other subjects in the same relation (e.g., other people's citizenships) remain unchanged.
Crucially, LEGIBLE requires no external LLMs, no multi-hop training data, and no manual templates. It uses the model's own internal states to define the targets for the edit.
Datasets
The researchers evaluated LEGIBLE across several prominent benchmarks and models (Qwen2.5, Llama-3, and Qwen3):
- MQuAKE-CF-3k-v2: A benchmark specifically designed to test multi-hop reasoning after knowledge editing.
- RippleEdits: A dataset focused on the "ripple effects" of edits, testing if changes propagate to related facts.
- Balesni’s semi-synthetic benchmark: The original benchmark that named the "two-hop curse," involving fictional people linked to real-world entities.
Key Insights and Ideas
- The Reading Window: The authors discovered a specific "reading window" in the model's architecture. Multi-hop reasoning begins extracting the bridge entity in the middle layers. Standard fine-tuning misses this window, only updating the representation near the output.
- Reasoning is Intact: By manually "patching" the correct entity representation into the middle layers, the authors showed the model could suddenly reason correctly. This proved the reasoning "circuits" weren't broken; they just weren't receiving the right input from the first hop.
- Composition Follows Reading: The paper demonstrates a strong correlation ($r=0.96$) between how much a bridge "reads like" the new entity and the model's success in multi-hop reasoning.
Key Results
- Superior Accuracy: On the MQuAKE two-hop-curse questions, LEGIBLE achieved 0.71 accuracy (Qwen2.5-7B), significantly outperforming plain fine-tuning (0.30) and the state-of-the-art editor CaKE (0.27). Remarkably, it even exceeded the model's accuracy on its own original knowledge (0.54).
- Efficiency: LEGIBLE reaches 1.8–2.6× the bridge accuracy of CaKE without requiring any multi-hop training data or external LLM calls.
- Scalability: The benefits held true as the model size increased, lifting the curse on the Qwen2.5-14B model.
- Locality: LEGIBLE showed the best "locality" among fine-tuning-based writers, meaning it was the least likely to accidentally corrupt unrelated facts.
Limitations and Future Work
- Layer Selection: The method relies on identifying the correct layer $t$ where the "reading" of the bridge entity finishes. While the authors found a robust rule for this, it might vary across different model architectures.
- Entity Knowledge: LEGIBLE assumes the "bridge" (the target of the first hop) is an entity the model already knows. It is unclear how this would perform when introducing entirely new, fictional entities for both hops.
- Beyond Two Hops: While the paper focuses on the two-hop curse, future work could explore whether this "read-write" alignment naturally extends to longer reasoning chains (3+ hops).
Summary updated