Abstract
Test-time adversarial defense improves the robustness of vision-language foundation models such as CLIP without retraining. However, adversarial activation shifts are typically treated as distortions to suppress, rather than signals to exploit. We turn these shifts into defense signals by repurposing the trigger-to-target mechanism of backdoors. The key is to implant a defender-controlled backdoor as a probe that is weakly activated by clean inputs but strongly activated by adversarial shifts. Based on this insight, we propose \emph{Backdoor as Probe} (BaP), a test-time adversarial defense for CLIP. BaP constructs the probe through a closed-form model edit to a selected MLP layer. It projects the average adversarial activation shift and a defender-specified semantic direction onto the layer's low-energy input and output activation subspaces to obtain the trigger and target directions, respectively. At inference time, adversarial inputs produce measurable responses along the target direction for detection. BaP then selectively rectifies detected inputs by optimizing a small perturbation that steers their representations away from adversarial shifts and toward the clean subspace. Experiments across 16 benchmarks show that BaP improves average robust accuracy from 1.0\% to 52.3\% while retaining clean accuracy, achieving performance comparable to state-of-the-art methods with up to a \(5.7\times\) inference speedup. BaP further shows the generalization to adversarial attacks on large vision-language models. Project page: https://robin-wzq.github.io/Backdoor-as-Probe/
Keywords
Publication details
- Journal
- Not available
- Open access
- Green open access
Cite this article
APA 7
Wang, Z., Zhang, J., Sen, N., Chen, Z., Shan, S., & Chen, X. (2026). Backdoor as Probe: Test-Time Adversarial Defense for CLIP. https://omanscience.com/en/articles/backdoor-as-probe-test-time-adversarial-defense-for-clip
MLA 9
Wang, Zhongqi, et al. "Backdoor as Probe: Test-Time Adversarial Defense for CLIP." https://omanscience.com/en/articles/backdoor-as-probe-test-time-adversarial-defense-for-clip.
Chicago (author–date)
Wang, Zhongqi, Jie Zhang, Nie Sen, Zhiyu Chen, Shiguang Shan, and Xilin Chen. 2026. "Backdoor as Probe: Test-Time Adversarial Defense for CLIP." https://omanscience.com/en/articles/backdoor-as-probe-test-time-adversarial-defense-for-clip.
Harvard
Wang, Z., Zhang, J., Sen, N., Chen, Z., Shan, S. and Chen, X. (2026) 'Backdoor as Probe: Test-Time Adversarial Defense for CLIP', Available at: https://omanscience.com/en/articles/backdoor-as-probe-test-time-adversarial-defense-for-clip.
Vancouver
Wang Z, Zhang J, Sen N, Chen Z, Shan S, Chen X. Backdoor as Probe: Test-Time Adversarial Defense for CLIP. https://omanscience.com/en/articles/backdoor-as-probe-test-time-adversarial-defense-for-clip
IEEE
Z. Wang, J. Zhang, N. Sen, Z. Chen, S. Shan, and X. Chen, "Backdoor as Probe: Test-Time Adversarial Defense for CLIP," https://omanscience.com/en/articles/backdoor-as-probe-test-time-adversarial-defense-for-clip.