arXiv:2509.24566cs.CV2025-09被引 5

通过篡改物体关系让大模型输出看似正确实则错误的描述,隐蔽性更强。

TokenSwap: Backdoor Attack on the Compositional Understanding of Large Vision-Language Models

  • 用词性替换+视觉触发实现隐蔽攻击,不依赖固定目标模式。
  • 在多个模型和数据集上攻击成功率超90%,但难以被检测。
  • 适合研究模型安全与对抗样本的学者参考。

大型视觉语言模型(LVLM)在多种任务中表现优异,但仍易受后门攻击。现有攻击多强制模型生成预设固定内容,易被检测,因模型会过度记忆这些高频模式。为此,我们提出TokenSwap,一种更隐蔽的后门攻击,针对LVLM的组合理解能力。该方法不强制特定输出内容,而是使模型在图像中正确识别物体却错误描述其关系(即‘词袋’行为)。训练时,向部分样本注入视觉触发器,并交换文本答案中关键词的语法角色。中毒样本仅细微变化,使模型难察觉攻击信号。为此,引入自适应词权重损失,强化对被交换词的学习,使视觉触发与错误关系表达建立关联。大量实验表明,TokenSwap在多个基准和架构上均实现超90%攻击成功率,同时具备极强隐蔽性。

原文摘要 · Abstract (English)

Large vision-language models (LVLMs) have achieved impressive performance across a wide range of vision-language tasks, while they remain vulnerable to backdoor attacks. Existing backdoor attacks on LVLMs aim to force the victim model to generate a predefined target pattern, which is either inserted into or replaces the original content. We find that these fixed-pattern attacks are relatively easy to detect, because the attacked LVLM tends to memorize such frequent patterns in the training dataset, thereby exhibiting overconfidence on these targets given poisoned inputs. To address these limitations, we introduce TokenSwap, a more evasive and stealthy backdoor attack that focuses on the compositional understanding capabilities of LVLMs. Instead of enforcing a fixed targeted content, TokenSwap subtly disrupts the understanding of object relationships in text. Specifically, it causes the backdoored model to generate outputs that mention the correct objects in the image but misrepresent their relationships (i.e., bags-of-words behavior). During training, TokenSwap injects a visual trigger into selected samples and simultaneously swaps the grammatical roles of key tokens in the corresponding textual answers. However, the poisoned samples exhibit only subtle differences from the original ones, making it challenging for the model to learn the backdoor behavior. To address this, TokenSwap employs an adaptive token-weighted loss that explicitly emphasizes the learning of swapped tokens, such that the visual triggers and bags-of-words behavior are associated. Extensive experiments demonstrate that TokenSwap achieves high attack success rates while maintaining superior evasiveness and stealthiness across multiple benchmarks and various LVLM architectures.

后门攻击视觉语言模型隐蔽性组合理解

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。