Detecting chain-of-thought hijacking in backdoored multimodal large reasoning modelsDetecting Chain-of-Thought Hijacking in Backdoored Multimodal Large Reasoning Models
InertiaGuard uses visual belief inertia to detect CoT hijacking, with average AUROC 0.993 in-domain and 0.979 out-of-domain.
The attacker poisons the reasoning trajectories of an MLRM (via SFT or RL) so that inputs containing a visual trigger steer the chain of thought to an attacker-chosen answer; at deployment, only trigger inputs can be submitted. The defender controls deployment, can read logits and re-score, does not know the trigger or attack method, and has only a small clean validation set.
- Multimodal large reasoning models solve problems with chain of thought, and visual triggers can also steer the answer toward the attacker's goal mid-reasoning; direct-answer backdoor detection and looking only at chain wording both struggle to distinguish such hijacking from normal self-correction.
- InertiaGuard computes the cumulative next-token entropy over reasoning intervals minus the KL divergence of answer beliefs, keeps only intervals containing image-related tokens and takes the minimum, then calibrates on 50 clean trajectories at a 5% false positive rate.
- On Qwen2.5-VL-7B, across four hijacking attacks and four benchmarks, Table 2 average AUROC is 0.993 in-domain and 0.979 out-of-domain. The authors state that most hijacking is still detected under open-ended and five adaptive attacks; gradual drift AUROC is .856 (Table 5).
- The authors note that models larger than Qwen2.5-VL-32B were not tested, adaptive attacks cover only the five in Table 5, and the main evaluation follows multiple-choice questions. Experiments compare 11 baselines on 200 questions per benchmark across four benchmarks; open-ended only on A-OKVQA with three attacks.
- Evaluated models
- Qwen2.5-VL-7BQwen2.5-VL-3BQwen2.5-VL-32BQwen3-VL-8B-ThinkingInternVL3.5-8B
- Benchmarks
- A-OKVQAScienceQAMathVistaMMMU
- Metrics
- AUROCTPR@5%FPRASR
The paper proposes InertiaGuard, a training-free test-time detector for discovering chain-of-thought hijacking in backdoored multimodal large reasoning models (MLRMs). Attackers implant backdoors through poisoning fine-tuning, where a visual trigger induces a hijacking round that redirects the originally faithful reasoning chain toward an attacker-chosen answer; because the hijacking occurs within the reasoning chain and formally resembles honest self-correction, backdoor defenses targeting directly-answering multimodal models struggle to detect it. The authors find that honest reasoning typically corrects answers at high-entropy "aha moments," whereas hijacking overturns confident answers in near-deterministic rounds, and they formalize this difference as belief inertia, then restrict it to image-dependent reasoning segments to obtain visual belief inertia (VBI). InertiaGuard calibrates a threshold using a small number of clean trajectories, and trajectories with VBI below the threshold are flagged; the paper claims its detection performance exceeds existing baselines across multiple attacks and benchmarks, and generalizes to different model architectures and trigger types.
Paper analysis
What problem does this paper attempt to solve?
Visual triggers can rewrite answers within the reasoning chain, making direct-answer backdoor detection difficult to identify.
A visual trigger can change the answer mid-chain in multimodal reasoning to an attacker-chosen result, and backdoor detection designed for direct-answer models struggles to identify it.
- Scenario: The authors argue that MLRMs first write intermediate reasoning about the image before answering, enabling CoT hijacking: the adversary uses a visual trigger and a reasoning chain that steers conclusions to the attacker's answer via poisoned fine-tuning, and at inference reroutes on trigger inputs. The authors argue that the steering embedded in a plausible chain is harder to recognize than traditional multimodal backdoors that directly change the answer.
- Existing shortcomings: CleanSight and TCAP are direct-answer-oriented MLLMs. The authors argue that attack-induced belief rewrites and legitimate rewrites are similar within the chain, and hijack turns can resemble ordinary self-correction, so looking only at the chain cannot separate them.
- Observation: The authors find that in clean trajectories, larger answer belief rewrites are often accompanied by higher cumulative next-token entropy, while hijacking can overturn a confident answer with little entropy. This contrast is formalized as belief inertia, and the authors say hijack intervals take lower values.
- Method: Propose a training-free, test-time detector InertiaGuard. It computes belief inertia only over intervals containing image-related tokens, yielding visual belief inertia (VBI), and calibrates a threshold with a small set of clean trajectories.
- Threat model:
- Victim system: MLRMs fine-tuned with long CoT SFT or RL that reason before answering. Main setting is multiple-choice, answers are option letters.
- Goal: implant a CoT backdoor. Clean inputs answer normally; when the image contains the predetermined trigger, the chain itself must lead to an attacker-chosen result different from the original answer. It also pursues trigger success rate, clean accuracy, and chains that appear to users and monitors to justify their answers.
- Capabilities: full control of training and weight release, including trajectory poisoning and SFT or RL. After deployment, only trigger inputs can be submitted; cannot modify the reasoning process.
- Defender: controls deployment, can read logits and re-score modified inputs; has no poisoned samples, does not know the trigger, target, or attack method; has a small clean validation set. The paper says this corresponds to third-party model deployment.
What related research exists?
Related work is divided into multimodal backdoors, reasoning-level backdoors, and chain-of-thought faithfulness, and compares 11 detection baselines.
Related discussion centers on multimodal backdoors, reasoning-level backdoors, and chain-of-thought faithfulness; the authors use the contrast between cumulative entropy and answer belief rewriting as a detection signal.
Backdoor attacks and defenses in multimodal models
- TrojVLM (Lyu et al., 2024), VL-Trojan (Liang et al., 2024), etc. implant attacker-specified text with poisoned instructions; BadToken (Yuan et al., 2025) replaces or appends output tokens. The appendix also mentions Shadowcast, AnyDoor, BadVision, and BackdoorVLM (Li et al., 2025a) which aggregates final answer string attacks.
- Spectral signatures (Tran et al., 2018), activation clustering (Chen et al., 2018) find poisoned samples in representation space; Neural Cleanse (Wang et al., 2019) reverse-engineers minimal triggers for output classes. The paper says these methods require training data or a smaller output space, which its deployment setting does not provide.
- Test-time detection or purification includes STRIP (Gao et al., 2019), CleanSight (Zhang et al., 2026b), BDetCLIP (Niu et al., 2025), TCAP (Liu et al., 2026); post-training mitigation includes CleanCLIP (Bansal et al., 2023) and RVPT (Zhang et al., 2024a). The main text says these methods mainly inspect data, representations, or output behavior, not answer belief changes in intermediate reasoning.
Backdoors in reasoning models
- In text-only settings, BadChain (Xiang et al., 2024) inserts malicious reasoning steps with poisoned in-context examples; DarkMind (Guo et al., 2025) places triggers inside reasoning; ShadowCoT (Zhao et al., 2025), MirageBackdoor (Zeng et al., 2026) rewrite reasoning or let correct reasoning be followed by wrong answers. The paper says readable reasoning itself does not guarantee trustworthy answers. Severi et al., 2026 uses model poisoning against chain-of-thought monitors.
- In multimodal settings, ReShift (Dou et al., 2026) preserves initially correct reasoning, then uses a reflection-like turn to steer to a fixed target, with its RL stage rewarding entropy rebound in that turn. ReWire (Li et al., 2025b) inserts a procedural pivot after correct initial reasoning to explain away the correct answer.
- TraceGuard (Guo et al., 2026) trains a verifier to read text-only trajectories and locate the broken step. The paper distinguishes its setting: it only needs to score a single multimodal trajectory, calibrates with a small clean validation set, and requires no known triggers, poisoned samples, or training data.
Multimodal reasoning and chain-of-thought faithfulness
- Longer reasoning may weaken visual anchoring (Favero et al., 2024; Liu et al., 2025). Huang et al., 2025a and Wang et al., 2025c measure visual dependence with per-token image-substitution divergence. The paper follows the observation that high visual-dependence tokens are sparse, but uses them to select measurement locations rather than treating visual dependence itself as a detection score.
- Turpin et al., 2023 discuss that explanations may omit factors influencing predictions; Uppaal et al., 2025 discuss that correct answers need not come from visually faithful intermediate steps. Lanham et al., 2023 truncate chains and force answers to probe answer dependence on intermediate reasoning. The paper uses the same readout, comparing belief changes against the entropy accumulated in the intervening text.
Baselines and benchmarks
- Experiments compare 11 baselines: first-token entropy, image attention, peak and average image dependence, trajectory perplexity, entropy rebound, STRIP, CleanSight, TCAP, and two chain-of-thought monitors (gpt-oss-120b, GLM-4.5V; Baker et al., 2025). Benchmarks are in-domain A-OKVQA, ScienceQA, out-of-domain MathVista, MMMU.
The authors position the paper after visual-dependence metrics and early-answer probes: detecting multimodal CoT hijacking with belief inertia over image-related intervals, rather than another direct-answer backdoor detector.
How does the paper address this problem?
InertiaGuard compares entropy and belief rewriting over image-related intervals and calibrates a threshold with clean trajectories.
InertiaGuard reads answer distributions at sentence boundaries at test time, compares cumulative entropy and belief rewriting only over intervals containing image-related tokens, and calibrates a threshold with clean trajectories. Figure 2 illustrates with a traffic sign question: the model first leans toward one option, a hijack turn changes to another option, and the low-inertia interval is flagged.
Reading Answer Belief
- Cut points: trajectories are split at sentence boundaries. Readouts are before reasoning, at each sentence end, and at the final answer. Steps of at most two tokens are merged into the next step.
- Forced answering: append an answer prompt after the prefix, read the next-token distribution over option letters and renormalize, smoothed to 10^{-4}. p0 is the distribution before any reasoning. The change from pk−1 to pk at a single step indicates how much belief that step rewrites. The authors note that both hijacking and honest self-correction change belief, so rewrite magnitude alone is insufficient.
- Default decoding (Appendix C.4): greedy, max 640 new tokens, repetition penalty 1.05; image max about 1280·28·28.
Belief Inertia
The caption says hijack steps cause large belief rewrites B at low entropy cost H (Figure 1). The caption also labels InertiaGuard: AUROC = 0.995; the paper does not specify the model, attack, or benchmark for that validation-set scatter. The belief inertia of interval (i, j] is cumulative next-token entropy minus the KL divergence of endpoint answer distributions:
BI(i,j)=Hij−Bij
Hij is the sum of next-token entropies of all tokens in the interval, Bij is DKL(pj ∥ pi). Low values indicate rewrites that are large relative to the entropy spent.
Proposition 1: under greedy decoding and when readouts are self-consistent with the model's own continuations, realized intervals satisfy BI(i, j) ≥ 0. The authors treat cumulative entropy as an entropy budget for belief rewriting. Forced-answer readouts need not be self-consistent, so the proposition does not guarantee non-negativity on actual trajectories. Appendix B decomposes the margin into decoding, path, and concentration terms, to argue that honest reasoning and hijacking can both satisfy the bound but with different margins; this motivates the signal, not requiring every hijack's inertia to be negative.
Image Dependence and Visual Belief Inertia
- Why localize: convergence sentences in clean reasoning, or arithmetic on numbers already extracted from the image, can also be low-inertia, and step-by-step inspection would false-positive. The caption says hijack steps also have strong image dependence (Figure 1). The authors also say image-related tokens are sparse in clean reasoning.
- Metric: for each token, compare the next-token distribution under the original image and a black-frame substitute image I′, given the same prefix, using KL divergence. The substitute uses the same patch grid. An interval is checked only if the maximum KL within it exceeds τ; its VBI equals belief inertia, otherwise it is positive infinity. Localization does not change the inertia value of selected intervals. Default τ = 1 nat.
- Whole trajectory: interval search over all cut-point pairs. Belief rewriting is not additive; a single step may split steering and subsequent answer changes (Appendix B.5). The trajectory's VBI is the minimum of these intervals' VBIs:
VBI(r)=min0≤ i<j≤ KVBI(i,j)
若没有任何区间含图像相关token,则不标记。
打分、标定与判定
- 分数:score(r) = −VBI(r)。无局部化区间时分数置−50,永不标记。score(r) > θα then it is flagged as hijacked.
- Calibration: θα is the (1−α) quantile of scores from 50 clean validation trajectories of the same model and dataset, α = 0.05, targeting a 5% false positive rate. Only clean inputs from the deployment task are needed, not triggers, attack methods, or poisoned data. τ selects intervals, θα flags anomalies.
- Authors' note on calibration: calibration absorbs variation in clean scores, including deviations from the ideal bound; Appendix B.4 states this does not guarantee all deviations from ideal assumptions are covered.
- Whether an attack succeeds (for evaluation, not detector input): a trigger trajectory contains a hijack turn and the final answer is the attacker-chosen answer, different from the clean answer. At detection, positives are successful hijack trajectories, negatives are all clean trajectories from the same model and dataset, not paired by question.
What experiments did the paper conduct?
On Qwen2.5-VL-7B, Table 2 in-domain average AUROC is 0.993 and out-of-domain 0.979.
Experimental Setup
- Victim models: Main results on Qwen2.5-VL-7B. Table 3 also includes 3B, Qwen2.5-VL-32B (LoRA only), Qwen3-VL-8B-Thinking, InternVL3.5-8B; the paper does not write the full model name for 3B, and Limitations writes the same table's 32B as Qwen2.5-VL-32B. Attacks are retrained on each backbone. ISSBA is generated by the StegaStamp encoder.
- Attacks and data: ReShiftsft, ReShiftrl, BadToken, ReWire. In-domain are A-OKVQA, ScienceQA, poisoned with their respective training sets; out-of-domain are MathVista's testmini multiple-choice questions and MMMU's single-image validation questions with text options. For each benchmark, a fixed seed shuffles and takes the first 200 qualifying multiple-choice questions; all models use the same set. Default is ReShiftrl except for main results.
- Baselines: 11. Token-level: first-token entropy, image attention, peak and average image dependence, trajectory perplexity, entropy rebound. Input-level: STRIP, CleanSight, TCAP. Chain-of-thought monitors: gpt-oss-120b without image, outputs 0–100 score; GLM-4.5V with image, score is log P(Yes) − log P(No). The paper takes the highest average TPR among up to four readout formats and adds small random jitter to integer scores.
- Labels: A successful hijack must contain a hijack turn and the answer must be the attacker-chosen answer, different from the clean answer. Appendix C.3 additionally requires different from ground truth and matches turns using the attack's opening words, which are not repeated here. ASR is the proportion of trigger trajectories satisfying the condition.
- Metrics and calibration: AUROC and TPR@5%FPR. τ = 1 nat, substitute image is black frame, α = 0.05, calibrated on 50 clean trajectories per model per dataset. Appendix D uses 2000 per-question bootstrap for 95% intervals.
- Unspecified: TPR is averaged over R random splits of questions, but the paper does not give R, nor does it report the poisoning proportion.
Main Results
The table below shows InertiaGuard's AUROC / TPR@5%FPR from Table 1, model Qwen2.5-VL-7B, each column calibrated on that dataset's clean trajectories. Per-cell results for the 11 baselines are in Table 1, not listed here.
Swipe horizontally to read the table
Attack A-OKVQA ScienceQA MathVista MMMU ReShiftsft .994 / .992 .998 / .985 .994 / .952 .996 / .962 ReShiftrl .999 / .993 .995 / .946 .993 / .902 .984 / .826 BadToken .999 / .996 .978 / .937 .976 / .898 .979 / .868 ReWire .990 / .981 .989 / .952 .961 / .867 .948 / .883 - The authors say InertiaGuard is most effective for every attack: AUROC is highest or tied for highest in every setting, and TPR@5%FPR is highest in almost all settings. The exception in Table 1 is ReShiftrl on ScienceQA: VLM monitor's TPR is .986, higher than InertiaGuard's in the table, with both AUROC .995.
- The authors say input-level and token-level monitors capture how a specific attack perturbs trajectories, not the hijack itself, so none works across attacks. The authors say entropy-only monitors are near random on BadToken and ReWire, e.g., first-token entropy AUROC .562 and .507 on A-OKVQA, and argue that the low entropy of templated hijack turns alone does not expose hijacking.
- The authors say chain-of-thought monitors are the strongest baselines, but VLM monitor's in-domain average TPR still lags, most notably on ReWire (its TPR on ScienceQA is .626). The authors say detection drops only slightly on MathVista and MMMU, while other detectors drop more. According to Table 1, the lowest ASR is .305 for ReShiftrl on MathVista, the highest is .950 for ReShiftsft on A-OKVQA. Some baselines have AUROC below 0.5, e.g., CleanSight on A-OKVQA, ReShiftsft is .245.
Component Ablation
- What was tested: Table 2 averages over four backdoors and two datasets per domain, removing image localization, entropy budget, belief rewriting, or interval search respectively.
- Results: Full method in-domain .993 / .972, out-of-domain .979 / .895. Removing localization gives .989 / .941 and .959 / .789; removing entropy gives in-domain AUROC .909, out-of-domain .915; removing belief rewriting gives TPR .409 and .187; removing interval search gives TPR .706 and .567. All four removals reduce both AUROC and TPR.
- Authors' interpretation: Localization removes false positives from pure-text low-inertia intervals, otherwise the calibration threshold is raised, with the largest out-of-domain benefit. Without the entropy budget, honest reasoning also changes answers. Without belief rewriting, the score only reflects how confidently image-related intervals are written, and honest perception can be confident. Interval search is needed because steering and answer changes can span consecutive steps.
Across Triggers, Backbones, Open-Ended, and Reflection
- Triggers and backbones (Table 3, A-OKVQA, ReShiftsft): logo, blended, ISSBA .994 / .992, .995 / .990, .999 / .993, ASR .950, .945, .660. 3B, 32B, Qwen3-VL, InternVL3.5 .997 / 1.000, .995 / .988, .959 / .907, .998 / 1.000, ASR .850, .910, .805, .825. The authors say detection varies little across triggers, with only a moderate drop on Qwen3-VL.
- Open-ended (Table 4, options removed, Qwen2.5-VL-7B, A-OKVQA): retrained ReShiftsft, BadToken, ReWire. Clean accuracy .660, .575, .635, ASR .835, .760, .725. InertiaGuard .980 / .822, .962 / .694, .969 / .710. Belief is read from short answers in the trajectory, final answer, and remaining answer classes; the score is the log ratio of final answer probabilities. The authors argue open-ended hijacks must fabricate wrong answers, ending with more diffuse beliefs and smaller detectable rewrites, so TPR at low false positive rates is lower than multiple-choice, more so for BadToken.
- Reflection comparison: The authors say honest reflection's entropy rises with image dependence, while hijacking has entropy falling and image attention dropping more; image dependence rises at the steering word then falls, and the three differences are statistically significant. Figure 3's caption only states entropy, image dependence, and image attention relative to baseline near sentence starts, with 95% bootstrap intervals; the text does not give endpoint values.
Adaptive Attacks
- Setup (Table 5, Appendix F; Qwen2.5-VL-7B, A-OKVQA): five attacks target entropy budget, image localization, belief readout, and score. High-entropy steering uses grammar-randomized wording; gradual drift splits rewrites into honest reasoning (trained 800 steps, median single-step max increase is 36% of the attacker-answer readout's total increase); black-frame co-trigger makes the backdoor also respond to substitute images; readout poisoning uses LoRA to bias pre-reasoning readout; score-aware resampling keeps the lowest-scoring successful hijack among 32 continuations at temperature 1. The authors say the last requires controlling reasoning, beyond the threat model. The appendix gives specific sentences, not repeated here.
- Results: ASR .880, .800, .835, .935, .985; AUROC / TPR .983 / .963, .856 / .784, .948 / .908, .947 / .870, .993 / .973. The authors say each maintains high ASR and InertiaGuard still detects most hijacks; gradual drift is strongest, but most of its hijacks are still caught.
- Appendix E.5's answer-prompt experiment targets the original attacks and does not evaluate changing prompts under readout poisoning.
Other Ablations and Analyses
- Latency (Table 8, 384 trajectories, H20, batch size 1): original generation mean 4.91 s; InertiaGuard adds 0.81 s, no extra GPU; LLM monitor adds 1.42 s, 2 extra GPUs; VLM monitor adds 0.14 s, 4 extra GPUs.
- Appendix D Table 7, averaged over four backdoors: A-OKVQA InertiaGuard TPR .991 [.914, .996], AUROC .996 [.992, .999].
- ScienceQA: TPR .955 [.920, .974], AUROC .990 [.984, .995].
- MathVista: TPR .905 [.858, .942], AUROC .981 [.972, .989].
- MMMU: TPR .885 [.777, .934], AUROC .977 [.966, .986].
- Decoding temperature T = 0.3 to 1.2 (Appendix E.7): the authors say detection is close to greedy reference for T ≤ 1, and TPR drops more on MathVista at T = 1.2; the main text does not give AUROC per temperature.
What are some points that can be further explored?
The authors note that larger MLRMs were not tested, adaptive attacks cover only five, and the main evaluation follows multiple-choice questions.
Limitations and future directions noted by the authors
- Model scale: The largest backdoored model evaluated is Qwen2.5-VL-32B; the authors state that InertiaGuard has not yet been tested on larger MLRMs (Limitations, corresponding to Table 3).
- Adaptive attack scope: The adaptive evaluation covers the five attacks in Table 5; the authors say future work could consider a broader range of adaptive attacks (Limitations).
- Question type: The authors state that existing CoT hijacking attacks mainly target multiple-choice benchmarks, so the main evaluation follows that setting (Limitations).
Experimental coverage
- Main results are on Qwen2.5-VL-7B, with 200 multiple-choice questions each for four attacks (ReShiftsft, ReShiftrl, BadToken, ReWire) and four benchmarks (A-OKVQA, ScienceQA, MathVista, MMMU), comparing AUROC and TPR@5%FPR against 11 baselines (Sec. 5.1–5.2, Table 1).
- Table 3 additionally reports 3B, Qwen2.5-VL-32B, Qwen3-VL-8B-Thinking, InternVL3.5-8B, and logo, blended, ISSBA; 32B uses only LoRA. Appendix E.4 also varies logo size, shape, and position. The paper does not write out the full model name for 3B.
- Open-ended evaluation only retrains ReShiftsft, BadToken, ReWire on A-OKVQA and Qwen2.5-VL-7B (Table 4). The five adaptive attacks are only on Qwen2.5-VL-7B and A-OKVQA (Table 5); the authors state that score-aware resampling requires controlled reasoning and falls outside the stated threat model.
- Calibration uses 50 clean trajectories per model per dataset, α = 0.05. Appendix D reports intervals using 2000 per-question bootstrap resamples. Chain-of-thought monitoring uses gpt-oss-120b and GLM-4.5V.
- The paper does not report the number of splits R in the TPR protocol, nor the poisoning sample proportion. Appendix E scans localization thresholds, calibration set size, surrogate graphs, answer prompts, interval upper bounds, smoothing, and temperature; the main text does not give AUROC or TPR at each point.
Summarize the main content of the paper
InertiaGuard uses visual belief inertia to detect inference hijacking; the authors report average AUROC of 0.993 in-distribution and 0.979 out-of-distribution.
InertiaGuard detects chain-of-thought hijacking in backdoored multimodal large reasoning models at test time: a visual trigger steers reasoning from the original answer to an attacker-chosen answer.
The difficulty to address is that the steering occurs within the reasoning chain, can formally resemble self-correction, and backdoor detection designed for direct-answer models does not look at intermediate answer belief changes. The attacker controls training and weight release, and after deployment can only submit trigger inputs; the defender can read logits and re-score, but has no poisoned samples and does not know the trigger.
The approach is to force reading out the option distribution at sentence boundaries, subtract the KL divergence of endpoint distributions from the cumulative next-token entropy within intervals, take the minimum of this value only over intervals containing image-related tokens, and calibrate on 50 clean trajectories at a 5% false positive rate.
- Main results: On Qwen2.5-VL-7B, Table 2 averages over four backdoors and two benchmarks per domain: AUROC in-domain .993, out-of-domain .979; TPR@5%FPR in-domain .972, out-of-domain .895.
- Per-setting: In Table 1, its AUROC is highest or tied for highest in all settings. On ScienceQA, ReShiftrl's TPR is lower than VLM monitor's .986.
- Generalization: Table 3 on A-OKVQA: logo, blended, ISSBA AUROC .994, .995, .999; Qwen3-VL-8B-Thinking .959 / .907, authors call the drop moderate.
- Harder settings: Open-ended BadToken TPR@5%FPR .694 (Table 4). Among five adaptive attacks, gradual drift AUROC .856, TPR .784 (Table 5); authors say ASR remains high and most hijacks are still flagged.
- Authors' conclusion: The authors argue that comparing belief rewriting within image-related intervals against an entropy budget can flag suspicious answer shifts missed by token-level monitoring; ablations removing localization, entropy budget, belief rewriting, or interval search all reduce AUROC and TPR.