Skip to content

OrthoPurify purifies backdoored vision-language models with a single orthogonal projectionPurifying Backdoored Large Vision-Language Models by Removing Hijacked Directions

arXiv: Jailbreaks, Prompt Injection, Poisoning & Defenses· arXiv:2610.09941· Bojun Yang, Haochen Zhou, Zhifang Zhang, Haobo Wang, Songze Li, Lei Feng·Indexed by this site · 2026-10-08· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

OrthoPurify performs a single projection on LLaVA and Qwen3-VL, and the ASR for the six attacks in Tables 1–2 is 0%.

Threat modelThe attacker fully controls the data and optimization of adapter fine-tuning, but can only modify the adapter parameters P, using triggered poisoned samples to make the model output specified content when the trigger appears. The defender only has the public pretrained weights W_pre, the suspected backdoored weights W_bd, and a small number of clean samples, and purifies before deployment.

Questions
LVLM downstream adaptation is often outsourced or uses untrusted data, and a small amount of poisoning can implant a visual trigger backdoor. Post-training defenses require retraining, while test-time defenses have per-query overhead and do not modify weights.
Methods
OrthoPurify uses a few clean samples for a few steps of fine-tuning to obtain a pseudo-benign weight update subspace, marks backdoor-specific directions by principal angles, and then applies a single orthogonal projection to the backdoor weight update.
Experiments and results
In Tables 1–2, LLaVA-1.5-7B and Qwen3-VL-8B have an ASR of 0% across two tasks and six attacks. In Table 3, LoRA TrojVLM leaves 1.56% and BadVision leaves 6.84%. Under alignment regularization with θ=20°, the ASR in Table 9 is 0%.
Limitations and future work
The paper does not specifically discuss limitations. Experiments cover two main models, six attacks, COCO and VQAv2 (512 images per setting), as well as adaptive attacks and ImageNet classification; the main table does not report the number of repetitions.
Experimental setupLLaVA-1.5-7B、Qwen3-VL-8B et al. · COCO、VQAv2 et al. · ASR、CIDEr et al.
Evaluated models
LLaVA-1.5-7BQwen3-VL-8BLLaVA-1.5-13BQwen3-VL-4BCLIP ViT-L/14@336
Benchmarks
COCOVQAv2ImageNet-1K
Metrics
ASRCIDErV-scoretop-1 accuracyhijacked energy retention ratio
AI summaryThe researchers propose OrthoPurify, which purifies backdoored vision-language model weights with a single orthogonal projection. The authors perform a structural analysis of the backdoored weight update and find that the backdoor consists of a small number of weight update directions being hijacked from task adaptation to backdoor shortcut encoding, a phenomenon they call direction hijacking. Identifying these hijacked directions requires a benign reference model, which the defender usually cannot obtain; the authors approximate it with a pseudo-benign model obtained by fine-tuning the pretrained weights on a small number of clean samples, because the principal update directions stabilize within the first few gradient steps. Experiments show the method reduces attack success rate to near zero while maintaining original performance on multiple benchmarks, without retraining the poisoned model and without introducing inference-time overhead. Code is publicly available.

The researchers propose OrthoPurify, which purifies backdoored vision-language model weights with a single orthogonal projection. The authors perform a structural analysis of the backdoored weight update and find that the backdoor consists of a small number of weight update directions being hijacked from task adaptation to backdoor shortcut encoding, a phenomenon they call direction hijacking. Identifying these hijacked directions requires a benign reference model, which the defender usually cannot obtain; the authors approximate it with a pseudo-benign model obtained by fine-tuning the pretrained weights on a small number of clean samples, because the principal update directions stabilize within the first few gradient steps. Experiments show the method reduces attack success rate to near zero while maintaining original performance on multiple benchmarks, without retraining the poisoned model and without introducing inference-time overhead. Code is publicly available.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Backdoor fine-tuning hijacks a small number of weight directions; OrthoPurify removes them with a single projection.

    Adapter fine-tuning of LVLMs can be poisoned to implant backdoors; existing defenses either retrain or intervene per query at inference time.

    • Scenario: The authors state that LVLMs are used in safety-critical applications such as medical diagnosis and autonomous driving. Downstream adaptation is often outsourced or uses untrusted data, and a small amount of poisoning can make the model output specified content when a visual trigger appears, while clean inputs remain normal.
    • Existing limitations: The authors state that post-training methods typically require hundreds of clean samples, have high computational cost, and often degrade original performance. Test-time methods avoid retraining but have per-query overhead, and the backdoor remains in the weights.
    • Core observation: The authors state that backdoor fine-tuning does not increase the rank or energy of the update, but instead shifts a few directions from task adaptation to a shortcut, called direction hijacking. In Figure 2(a), on LLaVA-1.5-7B, k=5, and six attacks, most principal angles are less than 30°, with one direction exceeding 70°.
    • Proposed method: Propose OrthoPurify, which uses short fine-tuning on a few clean samples to construct a pseudo-benign reference, identifies hijacked directions via principal angles, and then applies a single orthogonal projection to the weight update.
    • Threat model:
      • Victim system: encoder–adapter–LLM. The main setting freezes the vision encoder and LLM, fine-tuning only the adapter P.
      • Attacker: full control over fine-tuning data and optimization, but can only modify the adapter P. Public encoder and LLM weights can be compared against, and unauthorized modifications can be detected. The poisoned set contains clean samples, as well as samples with triggers and specified outputs.
      • Defender: holds public pre-trained adapter weights W_pre, suspected backdoored weights W_bd, and a few clean samples, and purifies before deployment. Typically, there is no benign model trained on clean data.
  2. What related research exists?

    Related work is divided into attacks, defenses, and weight subspaces; the authors distinguish their work from these with a single projection.

    Vision-language backdoor attacks

    • Trigger design: BadNet (Gu et al., 2019) uses local patches, Blended (Chen et al., 2017) does global blending; WaNet (Nguyen and Tran, 2021), ISSBA (Li et al., 2021d), and Barni et al. (2019), Nguyen and Tran (2020) cover warping, sinusoidal signals, and sample-specific encoding. Liang et al. (2025) study the transfer of these classifier attacks to LVLM fine-tuning.
    • LVLM attacks: TrojVLM (Lyu et al., 2024) adds a semantic preservation loss on patch triggers to maintain description quality. VLOOD (Lyu et al., 2025) studies implanting backdoors with out-of-distribution data.

    Backdoor defenses

    • Post-training: Fine-Pruning (Liu et al., 2018), ANP (Wu and Wang, 2021), NAD (Li et al., 2021b), ABL (Li et al., 2021a), I-BAU (Zeng et al., 2022), Min et al. (2025), and Neural Cleanse (Wang et al., 2019) from the introduction. The authors state these methods typically require hundreds of clean samples and often degrade clean task performance.
    • Test-time: STRIP (Gao et al., 2019), activation clustering (Chen et al., 2018); the introduction also lists Li et al. (2021c) and Shi et al. (2023). The authors state they have per-query overhead and the backdoor remains in the weights.
    • LVLM-oriented: Rong et al. (2025), PurMM (Jiang et al., 2026), SRD (Xu et al., 2025), CleanSight (Zhang et al., 2026b), Zhang et al. (2025), and He et al. (2025). The authors state these works handle backdoors through fine-tuning-stage cleaning, attention analysis, or input perturbation.

    Structural analysis of weight updates

    • Activations rather than weights: Spectral Signatures (Tran et al., 2018) performs SVD on the covariance of hidden representations to find poisoned samples.
    • Channels or neurons: CLP (Zheng et al., 2022) and LPP (Wang et al., 2025) prune channels by spectral norm; TSBD (Lin et al., 2024) monitors weight changes during unlearning to locate backdoor neurons. The authors state these methods collapse weights into scalar scores and do not analyze the subspace of the full update.

    Baselines and benchmarks

    • Baseline methods: Clean Fine-tuning, Fine-Pruning, ANP, CLP; test-time comparisons are PurMM and CleanSight.
    • Benchmarks/datasets: COCO image captioning, VQAv2; Appendix L additionally uses ImageNet-1K for classification.

    The authors state existing methods either iteratively retrain or intervene at every inference step; this paper isolates backdoor-specific directions on the subspace using principal angles and purifies with a single matrix projection.

  3. How does the paper address this problem?

    The hijacked directions are located using the principal angles of a pseudo-benign subspace, followed by a single orthogonal projection.

    OrthoPurify completes purification in one pass: use a pseudo-benign reference to find the backdoor-specific update direction, then remove it via orthogonal projection.

    Weight update and principal angles

    • Update: The pretrained adapter weights are denoted W_pre, the fine-tuned weights are denoted W, and the update is the difference between the two. Perform a thin SVD on the two-dimensional weight matrix; the first k columns of the right singular vectors form the principal subspace.
    • Principal angles: The principal angles between two k-dimensional subspaces come from the SVD of the product of the basis matrices, Vbd⊤ Vpb = P diag(cos θ1, …, cos θk) Q⊤. An angle close to 0 indicates shared directions, and an angle close to a right angle indicates a direction unique to one side.
    • Scope: The main setting only handles adapters. Section 4.4 states that the same per-matrix SVD can be applied to vision encoders, mixed fine-tuning, and full-model fine-tuning without changing the algorithm.

    Direction hijacking

    • Baseline: Section 3.1 temporarily uses a benign model trained only on clean data to compare the principal subspaces of the backdoor update and the benign update; Section 3.2 removes this assumption.
    • Phenomenon: The authors state that the backdoor does not introduce extra rank or energy, but instead shifts a few directions from task adaptation to a shortcut. The condition in Figure 2(a) is LLaVA-1.5-7B, k=5, and six attacks: most principal angles are less than 30°, one direction exceeds 70°, and the dashed line is 50°. The authors state that in Figure 4(a), the singular value spectra of each attack and the benign update are close.
    • Role test: The authors remove these directions from the update, or keep only these directions, and then examine the ASR. The authors state that when only these directions are kept, the backdoor cannot act alone but relies on surrounding task directions (Figure 3). The numbers are placed in Question 4 and Table 6.
    • Energy ratio: The hijacked energy retention rate is the ratio of Frobenius energy along the hijacked directions after defense versus before defense, per layer, used to check whether existing defenses remove these directions.

    Pseudo-benign reference

    • Construction: Starting from W_pre, fine-tune on a small clean set with the conventional objective for T steps, with a typical range of 2–16 steps in the paper, to obtain W_pb, then take the top-k principal subspace. The experimental default is T=8, batch size 16, and 64 clean samples in total.
    • Reason given by the authors: The T-step update is the learning rate times the sum of the gradients at each step; the principal direction is determined by the direction in which the gradients concentrate, not by the update magnitude. On same-distribution data, the dominant direction appears in the first few steps, and subsequent steps mainly increase the magnitude.
    • Appendix N: The premise is that the parameters are still close to W_pre in the first few steps, and the gradients are approximately independent and identically distributed. The authors use matrix concentration inequalities and Wedin's sin Θ theorem to show that the deviation of the top-k right singular subspace from the subspace corresponding to the population average gradient is controlled by the gap between the k-th and (k+1)-th singular values, independent of the update norm.

    One projection

    • Filtering: Directions with a principal angle above the threshold θ are treated as hijacked. In practice, θ=50°, which lies between the less than 30° and greater than 70° described in Section 3.1. The direction matrix D is obtained by multiplying the backdoor right singular basis by the corresponding columns of P.
    • Projection: Wpur = Wbd − Δ Wbd D D⊤. Subtract the component of the update on D, and keep the rest. The order in Algorithm 1 is extracting the backdoor subspace, constructing the pseudo-benign subspace, threshold filtering, and then projection.
    • Default parameters: The experiments apply the above steps separately to every two-dimensional weight matrix of the adapter, with subspace dimension k=10. The authors state that in Section 4, the results are insensitive to this angle choice; the numbers are in the ablation.
  4. What experiments did the paper conduct?

    In Tables 1–2 the ASR after purification is 0%; settings such as LoRA and BadVision are not 0%.

    Experimental Setup

    • Models under test: The main experiments use LLaVA-1.5-7B (CLIP ViT-L/336, Vicuna-7B, two-layer MLP projector) and the instruct version of Qwen3-VL-8B (Merger and DeepStack). Extensions include LLaVA-1.5-13B, the instruct version of Qwen3-VL-4B, LLaVA-7B in Table 3 (LoRA, mixed 324M, full model 7.06B), and ImageNet classification with CLIP ViT-L/14.
    • Tasks and attacks: COCO captioning, VQAv2. Each attack uses 3000 image-query-answer samples to fine-tune the adapter. The attacks are BadNet, Blended, WaNet, ISSBA, TrojVLM, and VLOOD. The first four replace the original answer with the target text; the latter two insert the original content. The default poisoning rate is 0.1. Non-default values in Appendix Table 4: on LLaVA, Blended/VQAv2 is 0.3, ISSBA/COCO is 0.15, ISSBA/VQAv2 is 0.2, VLOOD/VQAv2 is 0.2; on Qwen3-VL-8B, VLOOD is 0.2 for both COCO and VQAv2.
    • Baselines: Clean Fine-tuning uses 1000 clean samples, learning rate 2×10^{-4}, AdamW, 2 epochs. Fine-Pruning selects, from 10% to 95%, the largest pruning ratio at which clean utility is not more than 2.5% lower than the baseline, then fine-tunes with the same settings. ANP uses 500 samples, perturbation budget 0.012, pruning threshold 0.5; for Qwen3-VL-8B it uses 128 samples. CLP uses no clean data and no retraining, with threshold multiplier u=1. Test-time comparisons are PurMM and CleanSight.
    • Metrics and criteria: ASR is the proportion of triggered test inputs whose generated text contains the target phrase (case-insensitive substring). CU is CIDEr for the captioning task and V-score for VQA. Each setting in the main tables uses 512 held-out test images. The paper does not report the number of repetitions or statistical tests for the main tables.
    • Our settings: All adapters are two-dimensional weight matrices, k=10, θ=50°, T=8, batch size 16, 64 clean samples in total. The GPU is an NVIDIA RTX 3090. In Appendix D, retraining baselines are timed on two 3090s, and our method on one.

    Main Results

    The table below shows ASR (%). The OrthoPurify column is the same as in the table across all cells of Tables 1–2. Clean Fine-tuning is not included, nor is each attack; omitted models are described later.

    | Setting | No defense | Fine-Pruning | ANP | CLP | OrthoPurify | | LLaVA COCO BadNet (Table 1) | 99.41 | 0.59 | 74.20 | 59.77 | 0 | | LLaVA COCO Blended (Table 1) | 97.85 | 86.91 | 86.00 | 51.76 | 0 | | Qwen COCO BadNet (Table 1) | 99.80 | 96.88 | 99.80 | 100.00 | 0 | | Qwen COCO WaNet (Table 1) | 99.80 | 1.17 | 99.80 | 99.22 | 0 | | LLaVA VQA ISSBA (Table 2) | 99.22 | 89.45 | 0.20 | 92.19 | 0 | | Qwen VQA Blended (Table 2) | 97.46 | 62.50 | 96.88 | 93.36 | 0 | | Qwen VQA VLOOD (Table 2) | 100.00 | 0 | 100.00 | 100.00 | 0 |

    • The authors state that no baseline in Tables 1–2 likewise removes the backdoor across all settings. Clean Fine-tuning is not included in the table above: the authors state that on LLaVA COCO, its ASR remains above 83% for five of the six attacks; on Qwen3-VL VQAv2, Blended's ASR drops to 0.20% and CU drops from 83.56 to 8.66. The authors attribute this to overwriting learned representations rather than only removing the backdoor.
    • The authors state that clean utility is maintained or improved in most settings. For LLaVA COCO TrojVLM, CIDEr goes from 107.66 to 130.08. Cells that decrease include LLaVA VQA VLOOD (70.18 to 61.39) and Qwen3-VL VQA BadNet (84.24 to 79.95). For Qwen3-VL COCO VLOOD, CU is already 24.97 before purification and 25.03 after; the authors attribute this to the attack's auxiliary training loss.
    • The authors state that ANP and CLP have ASR above 93% for every attack on Qwen3-VL. On LLaVA VQA, ANP's CU goes from 66.41 to 17.97 for ISSBA, and its CU for VLOOD is 0.13. The table above does not include LLaVA-1.5-13B, Qwen3-VL-4B, LoRA/mixed/full model, or CLIP; non-zero post-purification ASR includes LoRA TrojVLM (1.56%) and BadVision (6.84%) in Table 3.

    Fine-tuning Scope and Adaptive Attacks

    • Table 3: On Adapter, Mixed (324M), and Full (7.06B), post-purification ASR is 0 for BadNet; for TrojVLM it is also 0 except for LLaVA-7B LoRA at 1.56%. Qwen3-VL-4B's CU goes from 62.57 to 55.01 (BadNet) and from 60.60 to 58.41 (TrojVLM). For mixed fine-tuning TrojVLM, CU goes from 122.87 to 120.79.
    • BadVision: Only the CLIP vision encoder is backdoored; the adapter and LLM are frozen. ASR goes from 96.88% to 6.84%, which the authors state is close to the clean false-positive rate of 2.73%; CIDEr goes from 121.09 to 123.12.
    • Alignment regularization: The attacker penalizes update energy falling outside the pseudo-benign subspace; the defender lowers θ from 50° to 20°. In Table 9, at θ=20°, ASR is 0% for each λ. For λ≤0.27, no-defense ASR is not below 93%; for λ≥0.28, no-defense ASR is not above 5.5%. At θ=50° and λ=0.1, post-purification ASR is 95.3%; at λ=0.27 it is 91.4%; at λ=0.28 it is 0.8%. The authors state that at θ=30°, ASR reaches up to 25.0% (λ=0.25).

    Test-time Defenses and Benign Models

    • Table 7 (LLaVA-1.5-7B, COCO, 512 images): On BadNet, ASR is 0% for PurMM, CleanSight, and OrthoPurify. On TrojVLM, PurMM is 50.0%, CleanSight is 11.7%, and OrthoPurify is 0%. Latency: no defense and OrthoPurify are 1469 ms/query, PurMM is 4692 (+219%), CleanSight is 2202 (+50%). The authors state that it becomes cheaper than PurMM after about 16 queries and cheaper than CleanSight after about 68 queries. Appendix I states a one-time overhead of about 50 seconds; Table 5 gives 46 seconds.
    • Table 8 (poisoning rate 0, default k and θ): LLaVA COCO CIDEr goes from 125.23 to 133.07; Qwen3-VL COCO from 67.61 to 70.07; LLaVA VQA from 71.03 to 66.93; Qwen3-VL VQA from 84.24 to 85.87. The authors state that most settings are maintained or slightly improved, and that the selected directions do not carry task-critical information.
    • Figure 2(b): The hijack energy retention rate of existing defenses is not below 0.93, while that of OrthoPurify is at most 0.17. Figure 4(b) uses batch size 8; the authors state that cosine similarity exceeds 0.97 within 2 steps.

    Other Ablations and Analyses

    • Figure 5 (LLaVA-1.5-7B, COCO, four attacks): ASR=0% with as few as 8 clean samples; ASR=0% for θ between 30° and 70°; ASR is 0% from the first step, and CU only stabilizes after T≥2; the authors state that ASR remains high for several attacks at k=3, and is 0% for all after k≥10.
    • Table 6 (k=10, θ=50°, random over 5 seeds): After removing the hijack directions, ASR is 0.0% for the six attacks. The authors state that randomly removing the same number of directions gives ASR ranging from 0% to 100% across seeds; the most-aligned directions give ASR of 4.49%–93.36% on four attacks, 0% on WaNet and ISSBA, but lower CIDEr. The authors state that the most-aligned condition removes 2–5 times the adapter energy of the hijack condition, with CU 5–15 CIDEr points lower.
    • Table 10 energy dispersion (BadNet): The largest singular value goes from 3.94 to 1.46, and no-defense ASR remains 99.4%–100.0%; after purification, ASR is 0% except for 7.6% at λ=0.1, and the number of hijack directions within top-k increases from 7 to 17. Figure 8: re-poisoning with 10–500 samples, the authors state that baselines recover high ASR with as few as 50 samples, while OrthoPurify rises more slowly.
    • Table 11: When the pseudo-benign data is replaced with COCO, Flickr30k, Compact COCO, or VQAv2, ASR is 0.0% for both BadNet and TrojVLM. CIDEr rises in some cases and falls in others, e.g., on Flickr30k BadNet goes from 121.48 to 111.80.
    • Table 12: Adding noise with σ=0.01 to the proxy weights, at a magnitude of 66.9% of the adapter Frobenius norm, post-transfer ASR is 100.0%, post-purification 0.0%, and CIDEr goes from 127.55 to 126.72. In Table 13, overall ASR for three different targets goes from 99.8% to 0.0%, and CIDEr from 124.71 to 126.95.
    • Table 14: For poisoning rates 0.0–1.0, post-purification ASR is 0%; at pr=1.0, CIDEr goes from 52.33 to 72.51. For CLIP ViT-L/14@336 on ImageNet-1K, BadNet's ASR goes from 95.29% to 0.0%, and top-1 from 70.70% to 70.90%. Table 5: our method uses 64 samples, 46 seconds, ASR 0; ANP uses 9367 seconds, ASR 74.2%.
  5. What are some points that can be further explored?

    The paper does not specifically discuss limitations or future directions.

    Limitations and future directions noted by the authors

    The paper does not specifically discuss limitations. Conclusion, Ethics, and Reproducibility do not frame any result as a shortcoming or future work.

    Experimental coverage

    • Main results are for LLaVA-1.5-7B and Qwen3-VL-8B, COCO and VQAv2, six attacks, with 512 test images per setting (Tables 1–2, Appendix C.3).
    • Weight-space comparisons are Clean Fine-tuning, Fine-Pruning, ANP, CLP; also compared with PurMM and CleanSight on BadNet and TrojVLM (Table 7).
    • Fine-tuning scope includes adapter, mixed (324M), and full model (7.06B), as well as BadVision which backdoors only the vision encoder (Section 4.4, Table 3).
    • The appendix additionally covers clean data mismatch, surrogate weight transfer, multi-target, poisoning rates 0.0–1.0, ImageNet-1K classification, and two adaptive strategies; the adaptive experiments are BadNet, LLaVA-1.5-7B, COCO (Appendices K–L).
    • ASR is determined by case-insensitive substring matching of the target phrase. The paper does not report LLM review, human agreement, or the number of repetitions for the main tables. The Figure 5 ablation covers four attacks; the random direction comparison uses 5 seeds (Table 6).
  6. Summarize the main content of the paper

    A single projection removes the hijacked direction; the main table shows 0% ASR, with residuals in extended settings.

    OrthoPurify is a pre-deployment LVLM backdoor purification method that removes hijacked weight update directions with a single orthogonal projection.

    • Problem: Adapter fine-tuning can be poisoned so that a visual trigger elicits a specified output while clean inputs remain normal. The authors state that post-training defenses require large amounts of clean data and retraining, and test-time defenses have per-query overhead and do not modify the weights.
    • Approach: The authors describe the backdoor as direction hijacking, where a few update directions leave task adaptation to encode a shortcut, with little change in the singular value spectrum. Starting from the public pretrained weights, the defender does a short fine-tuning with a small number of clean samples, marks these directions with a principal angle threshold, and removes them by projection.
    • Main results: In Tables 1 and 2, for LLaVA-1.5-7B and Qwen3-VL-8B on COCO, VQAv2, and six attacks, the ASR after purification is 0%. The authors state that the baselines cannot remove the backdoor equally across all settings. On Qwen3-VL VQAv2, Clean Fine-tuning reduces Blended's CU from 83.56 to 8.66.
    • Nonzero residuals: In Table 3, for LLaVA-7B LoRA TrojVLM the ASR after purification is 1.56%. BadVision goes from 96.88% to 6.84%, which the authors state is close to the clean false positive rate of 2.73%. With energy dispersion at λ=0.1 the ASR after purification is 7.6% (Table 10). Under alignment regularization, at θ=20° the ASR is 0% for each λ in Table 9; at θ=50° and λ=0.27 it remains 91.4%.
    • Authors' conclusion: The authors believe direction hijacking is a structural property of fine-tuning-based backdoors, and projecting these directions out of the weight update can defend against LVLM backdoors without retraining and without inference overhead. In Figure 4(b), the cosine similarity between pseudo-benign and true benign hijacked directions exceeds 0.97 within 2 steps. In Table 5, BadNet purification for LLaVA-1.5-7B uses 64 clean samples and 46 seconds.

Related papers

Show 3 more papers
Read originalarxiv.org