arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.19210cs.CV

对比谱校正:面向CLIP零样本对抗鲁棒性的测试时防御

Contrastive Spectral Rectification: Test-Time Defense towards Zero-shot Adversarial Robustness of CLIP

University of Electronic Science and Technology of China(电子科技大学)

Sen Nie, Jie Zhang, Zhuo Wang, Shiguang Shan, Xilin Chen

AI总结:

提出对比谱校正(CSR)方法,利用对抗样本在频率衰减下的特征不一致性,通过谱引导对比目标优化校正扰动,在16个分类基准上平均提升18.1%的强攻击鲁棒性,且推理开销低。

摘要:

视觉语言模型(如CLIP)展现出显著的零样本泛化能力,但仍极易受到对抗样本的攻击。尽管测试时防御方法前景广阔,现有方法无法对强攻击提供足够的鲁棒性,且常受限于高推理延迟和任务特定适用性。为解决这些限制,我们首先研究了对抗样本的内在特性,发现对抗样本在渐进频率衰减下表现出严重的特征不一致性。我们进一步将其归因于模型固有的谱偏差。利用这一洞察,我们提出了一种高效的测试时防御方法,名为对比谱校正(CSR)。CSR优化一个校正扰动,在谱引导的对比目标下将输入重新对齐到自然流形,并以输入自适应方式应用。在16个分类基准上的大量实验表明,CSR在强APGD攻击下平均优于现有技术18.1%,且推理开销适中。此外,CSR在多种视觉任务中展现出广泛的适用性。代码见https://this URL。

英文摘要:

Vision-language models (VLMs) such as CLIP have demonstrated remarkable zero-shot generalization, yet remain highly vulnerable to adversarial examples (AEs). While test-time defenses are promising, existing methods fail to provide sufficient robustness against strong attacks and are often hampered by high inference latency and task-specific applicability. To address these limitations, we start by investigating the intrinsic properties of AEs, which reveals that AEs exhibit severe feature inconsistency under progressive frequency attenuation. We further attribute this to the model's inherent spectral bias. Leveraging this insight, we propose an efficient test-time defense named Contrastive Spectral Rectification (CSR). CSR optimizes a rectification perturbation to realign the input with the natural manifold under a spectral-guided contrastive objective, which is applied input-adaptively. Extensive experiments across 16 classification benchmarks demonstrate that CSR outperforms the SOTA by an average of 18.1% against strong APGD with modest inference overhead. Furthermore, CSR exhibits broad applicability across diverse visual tasks. Code is available at https://github.com/Summu77/CSR.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑