← Latest papers
💬 NLP

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

This paper challenges the prevailing "hop-aligned" hypothesis of multi-hop reasoning in LLMs by demonstrating "layer-order inversion," where later-hop answers can be decoded before intermediate bridge entities, and proposes a "probabilistic recall-and-extract" framework to explain this phenomenon through broad shallow recall followed by selective deep extraction.

Original authors: Xukai Liu, Ye Liu, Jipeng Zhang, Yanghai Zhang, Kai Zhang, Qi Liu

Published 2026-08-27
📖 5 min read🧠 Deep dive

Original authors: Xukai Liu, Ye Liu, Jipeng Zhang, Yanghai Zhang, Kai Zhang, Qi Liu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Large language models are the digital minds behind the most advanced artificial intelligence systems today. They are trained on vast amounts of text, learning to predict the next word in a sentence with remarkable accuracy. This ability allows them to answer questions, write stories, and solve problems that require connecting different pieces of information. One of the most impressive feats these models perform is multi-hop reasoning. This is the process of answering a question that cannot be solved with a single fact, but instead requires chaining together several pieces of knowledge. For instance, to answer "What country is the sport that Stephen Curry plays originally from?", a model must first identify the sport, then find the origin of that sport, and finally combine those two facts to reach the answer. For years, scientists believed these models solved such puzzles by following a strict, step-by-step internal path, much like a human solving a math problem one equation at a time. They thought the model would first figure out the intermediate fact, store it, and then use it to find the final answer. Understanding exactly how these machines perform this mental gymnastics is crucial, not just for improving their intelligence, but for knowing when and why they might fail.

A team of researchers from the University of Science and Technology of China and the Hong Kong University of Science and Technology has now challenged this long-held belief. By peering inside the internal workings of large language models, they discovered that these systems do not always follow the orderly, step-by-step path that was previously assumed. Instead, they found a phenomenon they call layer-order inversion. In a standard, step-by-step process, you would expect the model to figure out the middle piece of information before it can figure out the final answer. However, the researchers observed that in many cases, the model seems to "know" the final answer before it has fully figured out the intermediate steps. This happens as the questions become more complex, involving more links in the chain of reasoning. The deeper the question goes, the more likely it is that the model will have the final answer ready in its internal memory before it has explicitly processed the bridge facts that connect the dots.

To uncover this, the researchers used a technique called Patchscopes, which acts like a microscope for the model's internal thoughts. They fed the models complex questions with up to four steps of reasoning and watched how the information emerged as the data passed through the model's layers. They looked at two specific points: the beginning of the question, where the subject is introduced, and the very end of the question, where the model prepares to generate an answer. They found that while the model often processed the first step of the reasoning near the beginning, the final answer often appeared in the model's internal state much earlier than expected, sometimes even before the intermediate facts were fully formed. This contradicts the idea that the model builds a rigid circuit where each step must be completed before the next one begins. Instead, it suggests a more fluid process where the model can recall the final answer directly, almost like a gut feeling, before it has fully constructed the logical path to get there.

The researchers propose a new way to understand this behavior, which they call a probabilistic recall-and-extract framework. Rather than a rigid machine following a fixed set of rules, they suggest the model works more like a vast library where information is recalled based on probability. In this view, the model does not just move vertically through its layers, solving one step at a time. It also moves horizontally across the words in the sentence. The researchers found that in the shallow layers of the model, near the end of the sentence, there is a broad, intuitive recall of the final answer. This recall acts like a signal or a hunch that points toward the correct solution. This signal is not the result of a completed logical chain, but rather a direct association that the model picks up on. In weaker models or for very difficult questions, this intuitive signal becomes even more dominant, sometimes leading the model to the right answer even if it hasn't fully reasoned through the steps, or conversely, leading it astray if the signal is misleading.

This new perspective helps explain why models sometimes succeed or fail in ways that were previously confusing. When a model gets a multi-hop question right, it might be because this intuitive signal was strong enough to guide the final answer, even if the step-by-step reasoning was incomplete. Conversely, when a model fails, it is often not because it lacks the facts, but because it failed to retrieve the final answer through this intuitive signal or failed to extract the correct information from the accumulated knowledge. The study shows that the model's ability to answer complex questions relies on a balance between this broad, intuitive recall and a more focused, deep extraction of the specific answer. This discovery suggests that the internal logic of artificial intelligence is less like a rigid assembly line and more like a dynamic process of memory and association, where the destination can sometimes be seen before the path is fully walked.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →