arXiv AI By Pengxiao Lin, Zheng-An Chen, Zhi-Qin John Xu

Unveiling the Mechanisms of Multi-Hop Reasoning in Transformers via Identity Bridge

Read the original on arXiv AI →

arXiv:2509. 24653v2 Announce Type: replace-cross Abstract: Large Language Models (LLMs) excel at multi-hop reasoning in distribution, yet fail on unseen compositions, a phenomenon known as the curse of two-hop reasoning.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv Computation and Language
Aug 27

Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Models

The paper investigates how large language models (LLMs) perform multi‑hop reasoning and challenges the prevailing hop‑aligned circuit hypothesis, which posits that bridge entities are computed sequentially across layers. Through systematic analyses of real‑world multi‑hop queries, the authors discover a phenomenon called layer‑order inversion, where later‑hop answer entities become decodable earlier than bridge entities, and this effect grows with the number of hops. They propose a probabilistic recall‑and‑extract framework that models multi‑hop reasoning as broad probabilistic recall in shallow MLP layers followed by selective extraction in deeper attention layers, and validate this framework with probing analyses that reinterpret prior evidence, explain chain‑of‑thought gains, and diagnose multi‑hop failures.

By Xukai Liu, Ye Liu, Jipeng Zhang, Yanghai Zhang, Kai Zhang, Qi Liu
arXiv Computation and Language
Aug 28

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

Large language models can solve complex multi‑hop tasks but often fail on simple two‑hop queries, even when each hop is individually correct. In a controlled symbolic setting, the authors find that models generalize reliably when the second hop follows the training distribution, but always fail when it deviates. Mechanistic analysis shows that successful generalization relies on consistent intermediate representations across contexts, whereas failures arise from a mismatch between lower‑layer representation construction and upper‑layer mapping to outputs. The study proposes a recurrent‑style training strategy that improves out‑of‑distribution two‑hop generalization.

By Zili Zhang, Yilin Wang, Heng Wang, Herun Wan, Minnan Luo
Hugging Face Trending Papers
Oct 28

Implicit Reasoning in Transformers: Bridging the Compositionality Gap in GPT-2-like Models

The paper investigates why transformer language models, like GPT‑2, struggle with compositional generalization when faced with out‑of‑distribution (OOD) knowledge. By training a GPT‑2‑like model from scratch in a controlled two‑hop reasoning task and aligning the presentation of both in‑distribution (ID) and OOD atomic facts with the second‑hop retrieval step of a known compositional circuit, the authors demonstrate that the model can transfer its learned ID compositional behavior to OOD facts. This intervention closes the compositionality gap without altering the model architecture or adding explicit OOD supervision, suggesting that the gap is not an inherent architectural limitation but can be mitigated through informed training distribution design.

arXiv AI
Oct 31

Implicit Reasoning in Transformers: Bridging the Compositionality Gap in GPT-2-like Models

The paper examines the compositionality gap in GPT‑2‑like transformers, where models can combine known facts in‑distribution but fail to generalize to out‑of‑distribution knowledge. By aligning the training distribution so that both ID and OOD atomic facts appear in the same positional format as the second‑hop retrieval step of a known compositional circuit, the authors show that the model can transfer its learned compositional behavior to unseen OOD facts. This demonstrates that the gap is not an inherent architectural limitation but can be addressed through targeted training distribution design.

By Davide Venuto, Leonardo Venuto