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

针对受污染的大视觉语言模型的测试时间注意力净化

Test-Time Attention Purification for Backdoored Large Vision Language Models

University of Queensland(昆士兰大学);Southeast University(东南大学);Nanyang Technological University(南洋理工大学);Adelaide University(阿德莱德大学)

Zhifang Zhang, Bojun Yang, Shuo He, Weitong Chen, Wei Emma Zhang, Olaf Maennel, Lei Feng, Miao Xu

AI总结:

本文提出CleanSight,一种无需训练的测试时间防御方法,通过检测和净化异常的视觉-文本注意力分布来对抗后门攻击,显著优于现有基于像素的净化方法。

摘要:

尽管大视觉语言模型(LVLMs)在多模态性能方面表现强大,但在微调过程中却容易受到后门攻击的威胁,攻击者通过在训练数据中插入带有触发器的样本来植入恶意行为。现有防御通常依赖于重新训练受污染的参数(如适配器或LoRA模块)以清洁数据,这在计算上昂贵且通常会降低模型性能。在本工作中,我们提供了对LVLMs中后门行为的新机制理解:触发器并不通过低级视觉模式影响预测,而是通过异常的跨模态注意力再分布,其中带有触发器的视觉令牌会从文本上下文中窃取注意力——我们称之为注意力窃取。受此启发,我们提出CleanSight,一种无需训练的、即插即用的防御方法,仅在测试时间运行。CleanSight(i)基于选定的跨模态融合层中的相对视觉-文本注意力比例检测受污染的输入,(ii)通过选择性地修剪可疑的高注意力视觉令牌来净化输入,以中和后门激活。广泛的实验表明,CleanSight在多样化的数据集和后门攻击类型上显著优于现有基于像素的净化防御,同时在干净和受污染的样本上保持模型的实用性。

英文摘要:

Despite the strong multimodal performance, large vision-language models (LVLMs) are vulnerable during fine-tuning to backdoor attacks, where adversaries insert trigger-embedded samples into the training data to implant behaviors that can be maliciously activated at test time. Existing defenses typically rely on retraining backdoored parameters (e.g., adapters or LoRA modules) with clean data, which is computationally expensive and often degrades model performance. In this work, we provide a new mechanistic understanding of backdoor behaviors in LVLMs: the trigger does not influence prediction through low-level visual patterns, but through abnormal cross-modal attention redistribution, where trigger-bearing visual tokens steal attention away from the textual context - a phenomenon we term attention stealing. Motivated by this, we propose CleanSight, a training-free, plug-and-play defense that operates purely at test time. CleanSight (i) detects poisoned inputs based on the relative visual-text attention ratio in selected cross-modal fusion layers, and (ii) purifies the input by selectively pruning the suspicious high-attention visual tokens to neutralize the backdoor activation. Extensive experiments show that CleanSight significantly outperforms existing pixel-based purification defenses across diverse datasets and backdoor attack types, while preserving the model's utility on both clean and poisoned samples.

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

↑