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

Xukai Liu, Ye Liu, Jipeng Zhang, Yanghai Zhang, Kai Zhang +1 more
1/7/2026
1 citation
cs.CLcs.AI

Official code: laquabe/Layer-Order-Inversion (0 stars, Python, MIT, last commit 2026-06-04).

Abstract

Large language models (LLMs) perform well on multi-hop reasoning, yet how they internally compose multiple facts remains unclear. Recent work proposes \emph{hop-aligned circuit hypothesis}, suggesting that bridge entities are computed sequentially across layers before later-hop answers.

Show full abstract

Through systematic analyses on real-world multi-hop queries, we show that this hop-aligned assumption does not generalize: later-hop answer entities can become decodable earlier than bridge entities, a phenomenon we call \emph{layer-order inversion}, which strengthens with total hops. To explain this behavior, we propose a \emph{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. This framework is empirically validated through systematic probing analyses, reinterpreting prior layer-wise decoding evidence, explaining chain-of-thought gains, and providing a mechanistic diagnosis of multi-hop failures despite correct single-hop knowledge. Code is available at https://github.com/laquabe/Layer-Order-Inversion.

View on arXivView PDF

Code Implementations(1)

MIT
00Python, ShellJan 2, 20266 months agoMIT

Similar Papers

Cite this paper

@article{liu2026layerorder,
  title  = {Layer-Order Inversion: Rethinking Latent Multi-Hop Reasoning in Large Language Models},
  author = {Xukai Liu and Ye Liu and Jipeng Zhang and Yanghai Zhang and Kai Zhang and Qi Liu},
  year   = {2026},
  eprint = {2601.03542},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.03542v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.03542.svg)](https://codeofpaper.com/paper/2601.03542)

Discussion