Write Facts the Way Models Read Them: Lifting the Two-Hop Curse

Zhiyun Shi

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.

Figure 1. A fine-tuned fact can be said but not used. (1) Fine-tuned on a new fact, the model says it, yet answers every two-hop question about Lena Hart for her old country. (2) The second hop reads its bridge in the middle layers (light gold), still as the old country; fine-tuning writes near the output (blue). (3) Existing fixes write a word to be said (blue); LEGIBLE writes the entity as the model reads it (dark gold). (4) Learned facts then compose more often than the model’s own knowledge (Qwen2.5-7B; §4.2). Illustrative example.

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:

  1. $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.
  2. $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.
Figure 4. Multi-hop accuracy is directly tied to how well the bridge representation matches the model's natural "reading" of the entity.

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

Abstract

A language model that learns a new fact by fine-tuning can repeat it but cannot reason with it: taught that a person is a citizen of a new country, it still cannot say, without chain-of-thought, who the head of state of that person's country is. This two-hop curse is widely treated as a reasoning deficit, and the strongest knowledge editors answer it with synthesized reasoning data. We show that the reasoning is intact and the writing is wrong. Fine-tuning writes a new fact as an answer to be said, whereas the second hop reads the bridge ("that person's country") as an entity, from the middle layers on: patching the model's own representation of the entity into the bridge at those layers largely restores the second hop, yet after fine-tuning the bridge there is no closer to the new entity than before the edit. We therefore propose read-equivalent writing (Legible): one loss term makes the bridge phrase, at the layer where the second hop finishes reading it, match the model's own reading of the new entity, and keeps the same relation's other subjects unchanged. Phrases and targets come from the edited model itself, and no multi-hop training data is used. Across Qwen2.5, Llama-3 and Qwen3, Legible (I) composes learned facts more often than the model composes its own knowledge, on MQuAKE's two-hop-curse questions; (II) reaches 1.8-2.6x the bridge accuracy of CaKE, whose reasoning data composes no better than plain fine-tuning, and has the best average over composition, accuracy and locality against four families of writers; and (III) lifts the curse on RippleEdits, on the benchmark of Balesni et al., who named the curse, and at 14B.
BibTeX
@misc{shi2026write,
  author = {Zhiyun Shi},
  title = {{Write Facts the Way Models Read Them: Lifting the Two-Hop Curse}},
  year = {2026},
  eprint = {2611.01519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.01519},
}
Figure