通过视觉提示对抗性排斥,仅用少量参数就大幅提升CLIP抗后门攻击能力。
Defending Multimodal Backdoored Models by Repulsive Visual Prompt Tuning
- 设计特征排斥损失,让深层视觉特征远离干扰模式。
- 仅调0.27%参数,将攻击成功率从89.70%降至2.76%。
- 无需污染数据,适用于多种图像数据集的快速防御。
多模态对比学习模型(如CLIP)虽能从大规模图文数据中学习高质量表征,但对后门攻击存在显著脆弱性,引发严重安全问题。本文揭示,其脆弱性主要源于编码超出数据集预测模式的特征,导致视觉特征极易被后门触发重新塑造。为此,提出一种新型防御方法——排斥式视觉提示调优(RVPT),通过深度视觉提示调优并引入特制特征排斥损失,在优化标准交叉熵损失的同时,对抗性地排斥深层编码特征,确保仅保留下游任务所需的预测性特征,从而增强对输入扰动的鲁棒性,缓解后门攻击风险。与需依赖污染数据或全模型微调的现有方法不同,RVPT仅需少量干净样本,且仅调整极少量参数。实验证明,其仅调优CLIP中0.27%的参数,却显著优于现有最优防御方法,在ImageNet上将最先进多模态攻击的攻击成功率从89.70%降至2.76%,且在多个数据集间具有良好泛化能力。
原文摘要 · Abstract (English)
Multimodal contrastive learning models (e.g., CLIP) can learn high-quality representations from large-scale image-text datasets, while they exhibit significant vulnerabilities to backdoor attacks, raising serious safety concerns. In this paper, we reveal that CLIP's vulnerabilities primarily stem from its tendency to encode features beyond in-dataset predictive patterns, compromising its visual feature resistivity to input perturbations. This makes its encoded features highly susceptible to being reshaped by backdoor triggers. To address this challenge, we propose Repulsive Visual Prompt Tuning (RVPT), a novel defense approach that employs deep visual prompt tuning with a specially designed feature-repelling loss. Specifically, RVPT adversarially repels the encoded features from deeper layers while optimizing the standard cross-entropy loss, ensuring that only predictive features in downstream tasks are encoded, thereby enhancing CLIP's visual feature resistivity against input perturbations and mitigating its susceptibility to backdoor attacks. Unlike existing multimodal backdoor defense methods that typically require the availability of poisoned data or involve fine-tuning the entire model, RVPT leverages few-shot downstream clean samples and only tunes a small number of parameters. Empirical results demonstrate that RVPT tunes only 0.27\% of the parameters in CLIP, yet it significantly outperforms state-of-the-art defense methods, reducing the attack success rate from 89.70\% to 2.76\% against the most advanced multimodal attacks on ImageNet and effectively generalizes its defensive capabilities across multiple datasets.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。