arXiv:2610.09941cs.CVOct 2026

Manuscript Offprint

arXiv:2610.09941

Purifying Backdoored Large Vision-Language Models by Removing Hijacked Directions

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Large vision-language models (LVLMs) are increasingly deployed in safety-critical applications, yet they remain vulnerable to backdoor attacks. Defending against such attacks remains costly, as existing methods require either extensive retraining on clean data or per-query intervention at inference time. To address this limitation, we propose OrthoPurify, a more efficient method to purify backdoored model weights via one-step orthogonal projection. Specifically, through structural analysis of backdoor weight updates, we find that the backdoor is encoded by diverting a small number of weight update directions from task adaptation to backdoor shortcut encoding, a phenomenon we term direction hijacking. However, identifying these hijacked directions requires a benign reference model, which is typically inaccessible to the defender. We show that a pseudo-benign model, obtained by fine-tuning the pretrained weights on only a small set of clean samples, provides a sufficient approximation, as the dominant update directions stabilize within the first few gradient steps. OrthoPurify uses this pseudo-benign reference to isolate the hijacked directions and removes them through a single projection on the weight update. Extensive experiments show that OrthoPurify reduces the attack success rate to near zero while preserving the original performance across diverse benchmarks, without retraining the backdoored model or introducing inference-time overhead. Our code is publicly available at this repository.

1 INTRODUCTION

Large vision–language models (LVLMs) (Liu et al., 2024; Dai et al., 2023; Bai et al., 2025) have demonstrated strong multimodal capabilities and are increasingly deployed in safety-critical applications such as medical diagnosis (Guo & Terzopoulos, 2025; Van et al., 2024) and autonomous driving (Zhou et al., 2024; Gao et al., 2025). To adapt to downstream tasks, these models are typically fine-tuned via their lightweight adapter module on task-specific data (Zhu et al., 2024; Li et al., 2023; Ye et al., 2024), a process that is often outsourced to third-party services or performed on data from untrusted sources (Hong et al., 2022; Chen et al., 2020). However, this practice introduces a security risk known as backdoor attack (Ma et al., 2025; Ye et al., 2025; Zhao et al., 2025): by injecting a small number of poisoned samples into the fine-tuning data, an adversary can implant a backdoor (Gu et al., 2019) that causes the model to produce attacker-specified outputs whenever a visual trigger appears at inference time, while behaving normally on clean inputs.

Existing defenses against LVLM backdoors can be broadly categorized into post-training and test-time approaches. Post-training methods (Liu et al., 2018; Min et al., 2025; Wu & Wang, 2021; Wang et al., 2019; Li et al., 2021a) retrain or prune the backdoored model on clean data, but they typically demand hundreds of clean samples, incur substantial computation, and often degrade the original performance. Test-time methods (Li et al., 2021c; Shi et al., 2023; Zhang et al., 2026b; Gao et al., 2019) instead perturb inputs or manipulate internal model signals during inference, avoiding retraining but introducing per-query overhead and leaving the backdoor intact in model weights.

To address these limitations, we propose OrthoPurify, an efficient weight-space purification method that removes backdoor effects through a single orthogonal projection. Rather than intervening on

†^{\dagger}Equal contribution. ∗^{*}Corresponding author.

Figure

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∘\theta < 30^\circ), while a few are nearly orthogonal ( θ>70∘\theta > 70^\circ) 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.

inputs or activations, we turn to the structure of the weight update itself. By comparing the principal subspaces of backdoored and benign weight updates, we find that backdoor fine-tuning does not substantially change the singular-value spectrum of the update. Instead, it diverts a small number of update directions away from task adaptation to the encoding of a backdoor shortcut, while leaving most directions aligned with benign fine-tuning to preserve clean-task performance, a phenomenon we term direction hijacking. As shown in Figure 2(a), when we compare the principal directions of the backdoored and benign weight updates, most are well aligned (<30°), while one direction is nearly orthogonal (>70°), and this pattern is consistent across all six attacks. To verify that this direction encodes the backdoor, we conduct a controlled experiment (Figure 3): removing it from the weight update reduces the attack success rate to 0%, while retaining only this direction partially restores the attack. A natural question is whether existing defenses remove these hijacked directions. To answer this, we measure how much energy along the hijacked directions survives in the weight update after defense. Specifically, we define the hijacked energy retention ratio:

r=∑l∥(ΔW′(l))⊤D(l)∥F2∑l∥(ΔW(l))⊤D(l)∥F2,(1)r=\frac{\sum_{l}\|(\Delta\mathbf{W}^{\prime(l)})^{\top}\mathbf{D}^{(l)}\|_{F}^{2}}{\sum_{l}\|(\Delta\mathbf{W}^{(l)})^{\top}\mathbf{D}^{(l)}\|_{F}^{2}}, \tag{1}

where ΔW(l)\Delta\mathbf{W}^{(l)} and ΔW′(l)\Delta\mathbf{W}'^{(l)} are the weight updates of layer ll before and after defense, and D(l)\mathbf{D}^{(l)} collects the hijacked direction vectors of that layer. As shown in Figure 2(b), all baseline defenses retain or amplify the hijacked energy ( r≥0.93r \geq 0.93), whereas OrthoPurify reduces it to at most 0.17. Together with their residual ASR in Figure 3, this suggests that existing post-training defenses fail to reliably remove the backdoor at its weight-space source, as they do not directly eliminate the hijacked directions from the weight updates.

Since the hijacked directions are few and well separated from the task-relevant ones, OrthoPurify eliminates the backdoor by directly identifying and projecting them out of the weight update in a single pass. The main practical challenge is that identifying these directions requires comparing the backdoored weight update against a benign reference, which is typically inaccessible to the defender. We show that a pseudo-benign model, obtained by fine-tuning the pretrained weights for just a few gradient steps on a small amount of data, is sufficient to recover the benign directions needed for this comparison. This is because the dominant directions of the weight update stabilize within the first few gradient steps, well before the model converges, as we analyze in detail in Section 3.2.

Building on these findings, the complete method works as follows (Figure 1). Given a backdoored model, OrthoPurify constructs a pseudo-benign reference from a small clean set, compares the two weight updates to identify backdoor-exclusive directions, and removes them through a single projection. The entire procedure requires only a handful of clean samples, with no retraining and no inference-time overhead. Our contributions are:

Figure

(a) Principal angle analysis

Clean FT0.981.051.071.001.001.03
ANP1.011.391.141.050.930.98
Fine-Prun.1.601.491.431.161.201.48
CLP1.382.311.541.331.051.36
Ours< .010.170.100.120.01< .01
BadNetBlendedWaNetISSBATrojVLMVLOOD

(b) Hijacked energy retention ratio

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.

  • A structural characterization of LVLM backdoors in weight space. We identify direction hijacking, a structural signature of LVLM backdoors: backdoor fine-tuning diverts a small number of weight update directions to encode a shortcut, and no existing defense removes them.

  • An efficient purification method based on one-step projection. OrthoPurify identifies backdoor-exclusive directions by comparing the weight update subspaces of the backdoored model and a pseudo-benign reference, which is constructed by fine-tuning the pretrained weights on a small clean set for a few gradient steps. A single orthogonal projection then removes these directions, requiring no retraining or inference-time overhead.

  • Strong empirical results across diverse settings. Across two LVLM architectures (LLaVA-1.5 and Qwen3-VL), six attack types (BadNet, Blended, WaNet, ISSBA, TrojVLM, VLOOD), and multiple fine-tuning paradigms, OrthoPurify reduces the attack success rate to near zero while preserving or improving clean-task performance.

References (53)