When a language model answers a two-step question like "Who is the spouse of the director of Jaws?" without writing out its reasoning, it has to work out the intermediate entity (Spielberg) partway through its stack of layers and then use the layers that remain to look up the final answer. Hopping Too Late showed that many such failures happen for a mechanical reason: the intermediate entity is resolved so late that too few layers are left for the second lookup. The authors fixed 32% to 66% of these errors by hand. They took a late-layer hidden state and injected it back into an earlier layer, a technique they call back-patching, which gives the model extra depth to finish the job. They also said plainly that this is not a usable inference method, because nothing tells you when to patch or which layers to patch between.
This proposal builds that missing decision. A small probe watches the model's hidden states during a single forward pass and predicts whether back-patching would change a wrong answer into a right one. When the probe fires, the model re-runs part of its stack starting from a patched earlier layer, and only for that query. The claim is narrow and testable. For multi-hop factual errors caused by too little depth, a cheap internal signal can decide when to add depth and where to add it. Doing so recovers a large share of the manual back-patching gains while rarely breaking answers that were already correct, and it costs far less extra computation than falling back to written-out reasoning.
Core Claim and What Is New
Three lines of prior work each have one piece of this. Hopping Too Late supplies the intervention and the diagnosis, but it picked layer pairs after the fact with knowledge of the correct answer. Dr.LLM supplies a way to change depth at inference on frozen weights. It attaches small routers that skip, execute, or repeat each layer once, and it trains them on execution paths found by tree search to improve task accuracy. Its routers never look at whether an intermediate fact has been computed, and its reported tendency to skip middle layers conflicts with Hopping Too Late's finding that those layers carry the intermediate entity to the final token. CLAP supplies a gate: a small attention model over all layers' hidden states flags a finished answer as a likely hallucination and only then triggers contrastive decoding. It reads states only after generation, and its remedy reweights output probabilities rather than adding computation.
Our method differs from each of them. Unlike Hopping Too Late, the decision is automatic and is made before the model commits to a token. Unlike Dr.LLM, the added depth feeds a later representation back into an earlier layer, rather than repeating a layer on its own output, and the trigger is trained on whether this specific intervention fixes the answer, not on overall task reward. Unlike CLAP gating contrastive decoding, the remedy creates computation the model never did. DoLa contrasts late-layer and early-layer output distributions. It cannot supply computation that never happened, so it limits what logit-level fixes can do in exactly this failure mode.
Research Program
The first component is a patch-benefit probe. For each training query from the Multi-Hop Wikidata dataset of Hopping Too Late (82,020 two-hop queries filtered so that the model answers each single hop correctly in isolation), we run the model once. We then run a coarse grid of about 50 back-patch pairs (source layer $s$, target layer $t < s$) at the final prompt token. The label records whether any pair turns a wrong answer right and, if so, which pair works best. About 50 extra forward passes per example is roughly a fifth of the tree-search cost Dr.LLM reports, which was about one million passes for 4,000 prompts.
The probe itself is a small attention model over layer states, in the style of CLAP. It is given only layers up to a point $k$, so that it can decide mid-pass. It outputs two things: the probability $p$ that patching helps, and a distribution over which pair $(s,t)$ to use. When $p > \tau$, with threshold $\tau$ set on held-out data, we copy the hidden state from layer $s$ into layer $t$ and re-run layers $t$ through $L$. The added cost is $L - t$ layer executions, counted in every result.
The second component extends the method beyond single-token two-hop answers. We build three-hop Wikidata queries by chaining relations, using the same filtering for single-hop correctness. Here a query may need two late resolutions, and we allow the probe to fire up to twice. This directly tests Dr.LLM's untested question of whether depth added on a data-driven trigger should go beyond a single repeat.
We also run the method closed-book on HotpotQA questions (no retrieved paragraphs) and on StrategyQA, applying the probe at the first token of each answer. The third component is a dissociation test on TruthfulQA. Its errors come from models copying human misconceptions, and larger models do worse (TruthfulQA), so depth is not the missing ingredient. We therefore predict the probe will rarely fire there and will give no gain. A gain on TruthfulQA would suggest the probe is detecting generic uncertainty rather than depth shortfall.
As an interpretability side analysis, we ask whether the probe's decisions track the bridge-resolution layer found by Patchscopes-style decoding in Hopping Too Late. We also compare its signal with the intrinsic-dimension peak that FEPoID uses to select layers for hallucination detection. This bears on the disagreement in the file about whether factual signal appears early (FEPoID) or late (DoLa).
Models are LLaMA 2 7B and 13B and LLaMA 3 8B, which match Hopping Too Late so that its 32–66% range serves as the reference ceiling.
Baselines
The do-nothing reference is the frozen model answering in a single pass. By construction of the Wikidata dataset, its accuracy on the evaluation split is the failure set, so we report the fraction of those failures fixed and the fraction of originally correct answers broken.
The oracle reference is manual back-patching with the best pair chosen per example using the gold answer, as in Hopping Too Late, which reports fixing "32% to 66% of previously incorrect cases across various models." The file gives no per-model breakdown, so we recompute the oracle on our own split. Success means the learned probe recovers at least half of the oracle's fixes at a break rate under 2% on correct answers.
Unconditional back-patching applies the single best fixed pair, chosen on the dev set, to every query. This ablation isolates the probe. If it matches the probe on net accuracy, the gating adds nothing.
Random-pair gated patching uses the same trigger but picks a random layer pair. It isolates the probe's choice of where to patch from its choice of when.
CLAP-gated DoLa (+CLAP-II from CLAP) is the strongest existing detect-then-fix method using internal states. We retrain CLAP's detector on the same training split with the same probe budget. On this Wikidata multi-hop split, the file reports only CLAP's detection gain ("up to 6.3% AUC" over standard probes), and there is no reported result found on Lacuna for DoLa or +CLAP-II answer accuracy. We therefore run both ourselves.
A Dr.LLM-style router (Dr.LLM, reporting "up to +3.4 percentage points" on ARC and DART) is retrained on our Wikidata training data with its skip, execute, and repeat actions and a matched budget of mined forward passes. It tests whether generic depth reallocation does as well as mechanism-targeted patching.
Written-out reasoning (chain of thought), and a detector-gated version that falls back to chain of thought only when CLAP flags an answer, serve as the accuracy upper reference. They are compared on extra compute per query, measured in layer executions, with generated tokens counted as $L$ layer executions each plus attention cost. No reported result found on Lacuna for chain-of-thought accuracy on the Multi-Hop Wikidata dataset.
Why not just…?
Why not just use chain of thought? For two-hop questions, writing out the intermediate entity will probably match or beat us on accuracy. That is a real threat, and we do not claim otherwise. Our claim concerns cost and scope. A triggered partial re-run adds under $L$ layer executions on only the queries that fire. Chain of thought adds many full passes and a growing memory cache on every query, the cost Accordion-Thinking targets, and each written token can lock in an early mistake. If detector-gated chain of thought reaches equal accuracy at comparable compute, our approach has no practical advantage, and we will report that result as such.
Why not just gate DoLa with a hallucination detector? Contrasting output distributions can only reweight what the final layer already computed. Hopping Too Late locates this failure in the target entity never being extracted. We predict +CLAP-II will fix a small fraction of the Wikidata failures that back-patching fixes. If its fix rate matches ours, the depth-shortfall story is wrong for these errors.
Why not just retrain a depth router on the new data? A Dr.LLM-style router has more actions but no representation of the intermediate fact, and its habit of skipping middle layers may cut the pathway that carries it. The matched-budget router baseline settles this directly.
Why not just use a bigger model? Hopping Too Late reports the same late-resolution failures in LLaMA 3 70B, so scale does not remove the problem. We apply the method to 8B and 13B models and, where compute allows, check whether it closes the gap to the next model size.
Decisive Checks
The central result is the fix-versus-break curve as $\tau$ varies on held-out Wikidata two-hop queries, plotted against the oracle, unconditional, and random-pair ablations. A second test is whether probe-triggered patching still helps on the self-built three-hop set, where two triggers may be needed. A third is whether the probe fires in step with the Patchscopes-measured bridge resolution layer. The last is the TruthfulQA dissociation: little firing and no gain would support the claim that we detect missing depth rather than generic error. The project fails if the probe cannot beat unconditional patching or cannot recover half the oracle fixes without breaking correct answers.
References
- Hopping Too Late: Exploring the Limitations of Large Language Models on Multi-Hop Queries
- Dr.LLM: Dynamic Layer Routing in LLMs
- Cross-Layer Attention Probing for Fine-Grained Hallucination Detection
- DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Models
- TruthfulQA: Measuring How Models Mimic Human Falsehoods
- Automatic Layer Selection for Hallucination Detection
- Accordion-Thinking: Self-Regulated Step Summaries for Efficient and Readable LLM Reasoning