Purifying Backdoored Large Vision-Language Models by Removing Hijacked Directions

Bojun Yang, Haochen Zhou, Zhifang Zhang, Haobo Wang, Songze Li, Lei FengarXiv 2026

TL;DR

OrthoPurify is a highly efficient weight-space defense that eliminates backdoors in Large Vision-Language Models (LVLMs) via a single orthogonal projection. By identifying and removing a small number of "hijacked" weight update directions, it reduces attack success rates to near zero while preserving model performance, requiring only a handful of clean samples and zero inference-time overhead.

What Problem Does This Paper Address?

Large Vision-Language Models (LVLMs) like LLaVA are increasingly used in safety-critical tasks, but they are often fine-tuned on potentially untrusted third-party data. This opens the door to backdoor attacks, where an adversary injects poisoned samples so the model behaves normally on clean inputs but produces a specific malicious output when a "trigger" (like a specific patch or image warp) is present.

Existing defenses are problematic:

  1. Post-training methods (retraining or pruning) are computationally expensive, require significant clean data, and often degrade the model's original performance.
  2. Test-time methods (input perturbation) add significant latency to every single query and leave the underlying weights compromised.

The authors seek a "middle ground": a way to permanently purify the model weights quickly and effectively without the heavy cost of retraining.

Methods

The core of the paper is the discovery of Direction Hijacking. Through Singular Value Decomposition (SVD) of weight updates, the authors found that backdoor training doesn't fundamentally change the "energy" of the model's updates. Instead, it "hijacks" a tiny number of update directions, diverting them from task adaptation to encoding the backdoor shortcut.

Figure 1: Overview of OrthoPurify. SVD analysis of the backdoored weight update reveals direction hijacking: most principal directions are shared with a benign reference (θ < 30◦), while a few are nearly orthogonal (θ > 70◦) and encode the backdoor exclusively. A pseudo-benign reference, obtained by fine-tuning pretrained weights on a small clean set for a few gradient steps, provides a sufficient approximation. OrthoPurify identifies the hijacked directions via principal angle thresholding and removes them through a single orthogonal projection.

The OrthoPurify algorithm follows three main steps:

  1. Pseudo-benign Subspace Construction: To identify hijacked directions, you need a "clean" reference. Since a clean version of the fine-tuned model doesn't exist, the authors create a pseudo-benign model by fine-tuning the original pretrained weights on just ~64 clean samples for a few gradient steps. They prove that the dominant update directions stabilize very early in training, making this a reliable reference.
  2. Hijacked Direction Identification: The algorithm compares the subspaces of the backdoored update and the pseudo-benign update using Principal Angle Analysis. Directions in the backdoored update that are nearly orthogonal (angle > 50°) to the benign subspace are flagged as hijacked.
  3. One-Step Projection: These hijacked directions are projected out of the backdoored weight update in a single matrix operation, effectively "deleting" the backdoor from the weights.

Datasets

The authors evaluated their method across several standard benchmarks and tasks:

  • MSCOCO: Used for image captioning experiments.
  • VQAv2: Used for visual question answering.
  • ImageNet-1K: Used to demonstrate the method's generality in image classification (using CLIP).
  • Attacks: They tested against six different attack types, including classical ones (BadNet, Blended, WaNet, ISSBA) and LVLM-specific ones (TrojVLM, VLOOD).

Key Insights and Ideas

  • Subspace Sparsity: Backdoors are surprisingly "sparse" in the weight update space. Only a few directions (often fewer than 10) are responsible for the malicious behavior.
  • Directional Stability: A key "aha" moment is that you don't need a fully trained benign model to know where the benign updates would go. The dominant directions of a gradient update emerge almost immediately, allowing for the "pseudo-benign" shortcut.
  • Failure of Traditional Pruning: The paper shows that standard defenses like Fine-Pruning or CLP often fail because they operate at the neuron or channel level. They don't target the specific directions in the weight space, sometimes even amplifying the backdoor energy relative to the task-aligned energy.
Figure 2: Direction hijacking in backdoor weights. (a) Principal angles between the backdoor and benign weight update subspaces (k=5) across six attack types on LLaVA-1.5-7B. Most directions are well aligned (< 30◦), while one direction consistently exceeds 70◦(red), indicating direction hijacking. The dashed line marks the 50◦threshold used in our method. (b) Hijacked energy retention ratio after applying each defense method. Values below 1.0 indicate removal of hijacked energy; values above 1.0 indicate amplification. All existing defenses retain or amplify the hijacked energy, while OrthoPurify removes most of it.

Key Results

  • Near-Zero ASR: Across LLaVA-1.5 and Qwen3-VL, OrthoPurify reduced the Attack Success Rate (ASR) from near 100% to 0% in almost every scenario.
  • Utility Preservation: Unlike retraining, which can cause "catastrophic forgetting," OrthoPurify often improved clean utility (CU) because it removed the noisy, task-irrelevant backdoor directions.
  • Extreme Efficiency: Purification takes roughly 46 seconds on a single RTX 3090 GPU. In contrast, retraining-based defenses can take hours and require multiple GPUs.
  • Robustness to Adaptive Attacks: Even when an attacker tries to hide the backdoor by regularizing it to stay close to the benign subspace, they face a "backdoor collapse" trade-off where the attack loses its effectiveness before it becomes invisible to OrthoPurify.

Limitations and Future Work

  • Pretrained Weight Access: The method assumes the defender has access to the original, untainted pretrained weights. While usually true for open-source LVLMs, this might be a hurdle for proprietary or closed-loop systems.
  • Clean Data Requirement: Although minimal (64 samples), the defender still needs some task-relevant clean data.
  • Future Directions: The authors suggest exploring how this directional analysis could be used to detect backdoors proactively in model marketplaces before a user even downloads a model.

Summary updated

BibTeX
@misc{yang2026purifying,
  author = {Bojun Yang and Haochen Zhou and Zhifang Zhang and Haobo Wang and Songze Li and Lei Feng},
  title = {{Purifying Backdoored Large Vision-Language Models by Removing Hijacked Directions}},
  year = {2026},
  eprint = {2610.09941},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.09941},
}
Figure