Language models that reason step by step, writing their working out before answering (chain-of-thought), fail in a specific way when given retrieved context. If a retrieved snippet is wrong, the model does not throw it out. It carries the false statement into its reasoning and then spends many tokens building an argument around it. This proposal puts the check at the moment the premise enters the reasoning. Each time the model copies or closely paraphrases a span of context into its reasoning, we treat that as a checkpoint. We verify the span in a separate, short query that contains no chain-of-thought. If the span fails, we roll back to just before the copy and lower the model's ability to point at that span again.
The model's internal confidence cannot serve as the trigger, because chain-of-thought corrupts exactly those signals. We instead use a structural event, the import of a context span, that is easy to observe. We borrow the gate from pointer-generator networks, which mix "generate from the vocabulary" with "copy from the input," and give it a trust weight for each source span. Copying then becomes selective rather than uniformly encouraged.
Core Claim
In context-augmented reasoning, most of the harm from bad context passes through a small number of copy events. Checking those events at the moment they happen gets most of the benefit of checking all the context. It should also clearly beat end-of-chain checking and confidence-triggered decoding control. Localized rollback, rather than restarting the whole chain, should keep the token cost close to plain chain-of-thought.
Three findings motivate the claim. Thinking in a Crowd shows the "rationalization trap" on SciAux. Qwen3-8B answers 96.22% correctly with no auxiliary context. With two misleading snippets its accuracy falls to 77.03% with reasoning on and 74.87% with reasoning off, so neither mode protects it. When LLMs Copy to Think shows that reasoning models routinely copy prompt spans into their reasoning. It also shows that adversarial triggers imported this way reach 100% success at causing loops or false conclusions. Copying is therefore the channel through which bad input takes hold. Chain-of-Thought Prompting Obscures Hallucination Cues finds that detection quality dropped under chain-of-thought in 465 of 768 detector configurations. The cause is that chain-of-thought lowers entropy and inflates confidence on wrong statements.
That third finding limits our design. We rule out triggering on in-chain uncertainty. We also run the verification query outside the chain, where the paper's evidence suggests calibration is less damaged.
Two works supply the method. LargePiG shows that a pretrained decoder can act as a pointer-generator without training. It sets a copy probability from the divergence between intermediate-layer and final-layer predictions and blends in attention over the input. LargePiG treats copying as purely beneficial and was tested only on short query generation. We keep its blending but make copying conditional. LLM-Based Rust Code Generation with On-the-Fly Compiler Feedback shows the value of moving feedback from the end of generation to the middle. Compared with post-hoc compiler feedback, it reports 48.8% fewer compiler errors, +11 points of functional correctness, and about half the median runtime. However, it restarts whole segments on failure and works on code, not natural-language reasoning. We move its "check during generation" idea to reasoning chains and replace segment restarts with rollback to the start of the offending copy.
Mechanism
Detecting a copy event. During decoding we watch for spans of the reasoning that import context. A span counts when either of two things happens:
- the generated text matches a context n-gram of at least a few tokens verbatim;
- LargePiG's copy signal is high while attention concentrates on one context sentence for several consecutive tokens. This second route catches paraphrased imports.
Verifying the span. For each detected span, we pose the imported context sentence to the same model as a standalone true/false question. The side query has no chain-of-thought and no other auxiliary context. We use the probability of "true" as the verdict. As an alternative verifier, we use a single-pass hidden-state probe in the style of HARP. HARP projects hidden states onto a small "reasoning" subspace of the unembedding matrix and reports detection AUROC of 92.9% on TriviaQA. HARP is purely an after-the-fact detector; here it becomes a trigger inside decoding.
Acting on a failed span. If the span fails, decoding rolls back to the token before the copy event began. The source span's trust weight is then set to zero in the pointer mixture:
$$P(w) = p_{gen}\,P_{vocab}(w) + (1-p_{gen})\,\frac{\sum_{i:\,w_i=w} \tau_{s(i)}\,a_i}{\sum_i \tau_{s(i)}\,a_i}$$
The symbols are as follows:
- $P_{vocab}$ is the model's ordinary next-token distribution.
- $a_i$ is the attention weight on context token $w_i$.
- $p_{gen}$ is the generate-versus-copy gate, computed as in LargePiG.
- $s(i)$ is the context sentence containing token $i$.
- $\tau_{s} \in [0,1]$ is that sentence's trust weight. It starts at 1 and is updated only by verification verdicts.
We also mask the model's own attention to failed spans for the rest of decoding. Otherwise the model could re-read the span through its normal attention even after pointer copying is blocked. Verified spans keep $\tau=1$ and are never re-checked, so each span costs at most one verifier call.
Research Program
The work has three stages.
Stage 1: test the premise that harm flows through copy events. On SciAux with misleading snippets, we log the copy events in Qwen3-8B's reasoning chains. We then measure what fraction of rationalization-trap failures contain an early import of the misleading snippet. If most failures show no detectable import, the idea is wrong and we stop. This makes Stage 1 a cheap kill test.
Stage 2: compare triggers inside chain-of-thought. We compare copy-event triggers with the entropy and internal-state triggers that Cheng et al. show degrade. The measure is how well each flags the reasoning step at which a chain goes wrong. This directly tests whether a structural trigger avoids the obscuration effect.
Stage 3: the full system. We run the complete decoder and measure accuracy, total generated tokens, verifier calls, wall-clock time, and rollback depth.
Adversarial stress test. We ask whether suppressing unverified imports lowers the success rate of copy-guided attacks on DeepSeek-R1-Distill-Qwen-1.5B. For attack triggers, "verification" means a check of whether the span belongs to the task. We treat this as exploratory, because a truth-value verifier is poorly suited to gibberish triggers.
Baselines
Naive reference points. These are plain chain-of-thought and reasoning-off decoding on the same model and prompts. For Qwen3-8B on SciAux with two misleading snippets, Thinking in a Crowd reports 77.03% and 74.87%, against a 96.22% no-context ceiling. We re-run both to confirm we reproduce these numbers before comparing anything.
End-of-chain verify-and-retry. This follows the "FINAL" setup in the Rust on-the-fly paper. The full chain is generated, every context sentence it used is checked with the same verifier, and the model retries once with failed sentences removed. It isolates the effect of feedback latency: the verifier is identical and only the timing and rollback depth differ. We give it the same verifier-call budget. Our method beats it if it reaches equal or higher accuracy with clearly fewer generated tokens.
Token-Guard. Token-Guard prunes and refines tokens using hidden-state consistency scores during decoding. It is the strongest existing low-latency hallucination controller. On Meta-Llama-3.1-8B-Instruct it reports an average F1 of 51.0 versus 28.3 for the base model, across FinanceBench, DROP, CovidQA, PubMedQA, and RAGTruth. We run it with its published thresholds, adapted to Qwen3-8B and Llama-3.1-8B. On its own benchmarks we report both systems against the 51.0 figure. Beating it on SciAux, and matching it on those benchmarks, would support the claim that a structural trigger outperforms an internal-confidence trigger once reasoning is on.
Missing reported results. We found no reported result on Lacuna for any mitigation method on SciAux, so this comparison is new.
Ablations. Each isolates one ingredient:
- LargePiG copying inside chain-of-thought with no verification. This is uniform copy promotion, which we predict worsens the trap.
- Our trigger with segment restart instead of span rollback.
- Our system with the verification query run inside the chain rather than in a clean side context.
- The string-match trigger alone versus the attention-based trigger.
Why not just…?
Why not just verify every context sentence before reasoning starts? This is the most serious threat, and it may win when context is short. With two snippets per question, checking everything upfront costs two calls and could match our accuracy. Our argument rests on scale: models typically import only a few of many retrieved sentences, so copy-time checking should need far fewer verifier calls as context grows. We test this directly by varying the number of auxiliary snippets on SciAux (2, 5, and 20, padded with neutral and helpful distractors). At each size we compare accuracy and verifier calls against upfront filtering with the same verifier. If upfront filtering matches us on both measures at every size, the honest conclusion is that timing does not matter, and we will report it that way.
Why not just turn reasoning off when context is present? The SciAux numbers already rule this out. Reasoning-off falls to 74.87%, slightly below reasoning-on, and both are about twenty points under the no-context ceiling (Thinking in a Crowd). The misleading premise is harmful in either mode.
Why not just use a confidence-triggered decoder such as Token-Guard? Cheng et al. find that chain-of-thought inflates confidence on wrong statements and degrades most internal-state detectors. A rationalization built on a false premise should therefore look confident to exactly the signals Token-Guard relies on. Stage 2 measures this directly as step-localization quality, and Token-Guard is a full baseline in Stage 3. If it matches us on SciAux, our trigger adds nothing.
Why not just prompt the model to quote evidence and check the quotes at the end? This is the end-of-chain baseline above, with explicit quoting. By the time the check runs, the chain has already spent its tokens on the rationalization. That is the cost the Rust study quantifies when it compares post-hoc and on-the-fly feedback (Rust on-the-fly paper). We measure whether the same token and accuracy gap appears in natural-language reasoning.
Decisive Checks
The kill test. Stage 1 decides whether the premise holds: most rationalization-trap failures on SciAux must begin with a detectable import of the misleading snippet. If they do not, the method cannot work, whatever its engineering.
Main result. Full success means three things on Qwen3-8B:
- SciAux accuracy under misleading context recovers a large share of the gap between 77.03% and 96.22%;
- this happens with fewer generated tokens than plain chain-of-thought, since cut-off rationalizations are short;
- accuracy stays at or above plain chain-of-thought when snippets are helpful, because the method must not reject good context.
Latency test. The claim about feedback timing stands or falls on two comparisons:
- the scaling experiment against upfront filtering;
- the comparison against end-of-chain retry at equal verifier budget.
Stress test. The copy-guided attack results show whether the per-span trust gate carries over from factual errors to adversarial inputs. We report them as a secondary finding whether they succeed or fail.
References
- Thinking in a Crowd: How Auxiliary Information Shapes LLM Reasoning
- When LLMs Copy to Think: Uncovering Copy-Guided Attacks in Reasoning LLMs
- Chain-of-Thought Prompting Obscures Hallucination Cues in Large Language Models: An Empirical Evaluation
- LargePiG: Your Large Language Model is Secretly a Pointer Generator
- LLM-Based Rust Code Generation with On-the-Fly Compiler Feedback
- HARP: Hallucination Detection via Reasoning Subspace Projection
- Token-Guard: Towards Token-Level Hallucination Control via Self-Checking Decoding