Metraipolis › archive › dc_a145ec83d614

Why Knowing Both Hops Is Not Enough: Understanding Two-Hop Generalization in Language Models — arXiv:2608.07261

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.07261
License (as archived)
CC0-1.0
Archived
2026-10-19T09:46:57.687Z
SHA-256 of the archived text
424caece6b7508aa9730bf649a3371b1d78dc15d60545cbe22836cbd64b1b59e
Stable URL of this page
https://metraipolis.com/documento/dc_a145ec83d614

How to cite

Why Knowing Both Hops Is Not Enough: Understanding Two-Hop Generalization in Language Models — arXiv:2608.07261 — arXiv (en), https://arxiv.org/abs/2608.07261 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a145ec83d614 (Metraipolis archive dc_a145ec83d614, sha256 424caece6b7508aa9730bf649a3371b1d78dc15d60545cbe22836cbd64b1b59e)
BibTeX
@misc{dca145ec83d614,
  title = {Why Knowing Both Hops Is Not Enough: Understanding Two-Hop Generalization in Language Models — arXiv:2608.07261},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.07261},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a145ec83d614; sha256 424caece6b7508aa9730bf649a3371b1d78dc15d60545cbe22836cbd64b1b59e},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.07261. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large language models (LLMs) can solve complex multi-hop problems yet exhibit puzzling failures on simple two-hop queries: although a model may correctly store each individual hop, it often fails to combine them. To understand the internal mechanisms of this phenomenon, we train transformers from scratch in a controlled symbolic environment. Our experiments reveal a pattern in two-hop generalization: models generalize reliably when the second hop follows the training distribution, but always fail when it deviates. Through mechanistic analysis, we provide a complete explanation for these distinct generalization behaviors: in settings where models generalize successfully, performance is driven by the emergence of consistent intermediate representations for the same entities across contexts, whereas failures on settings where the second hop is out-of-distribution arise from a mismatch across layers: lower layers correctly construct these intermediate representations, but upper layers, while trained on corresponding atomic facts, primarily learn to map them to outputs rather than to reason over them. Driven by this insight, we propose a recurrent-style training strategy, which enables transformers to reuse their reasoning circuitry across input forms and substantially improves generalization on out-of-distribution two-hop queries. Our data and code are available at this https URL .

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-10 in cs.CL).
Categorie arXiv: Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2608.07261 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-19T09:46:37.241Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-08-10?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).