arXiv:2607.02494cs.CVcs.CL2026-07中稿 · ECCV被引 1

不需训练即可定位并修复图像模型受文字干扰的漏洞。

Towards Robustness against Typographic Attack with Training-free Concept Localization

论文配图:Towards Robustness against Typographic Attack with Training-free Concept Localization
图 1 · 摘自论文原文
  • 通过采样分析隐藏层,定位导致文字干扰的关键视觉注意力头。
  • 仅调整特定注意力权重,即在不训练情况下提升抗文字攻击能力。
  • 方法通用性强,适用于多个主流图文模型,适合安全敏感场景使用。

基于对比语言-图像预训练(CLIP)的模型是多数现代大型视觉语言模型(LVLMs)的核心视觉编码器。尽管广泛应用,CLIP模型存在一个关键但未被充分研究的脆弱性:图像中出现无关文字会混淆视觉表征,使其偏向词汇语义而非真实视觉语义。这一问题被称为排版攻击(Typographic Attack, TA),对自动驾驶等安全关键应用构成重大风险。为此,我们提出一种无需训练的机制可解释性方法,通过采样分析隐藏状态,定量评估各注意力头对语义与词法信息的关注程度。结合概率分析与电路挖掘,我们识别出显著编码词法信息的ViT组件,定位了TA的机制根源。进一步发现,仅对这些识别出的电路进行直接干预(如选择性调整注意力权重),无需额外训练即可显著提升物体分类中的抗TA鲁棒性,且效果优于监督与无训练防御方法。实验表明,在RIO-Bench基准上,将该干预应用于多个前沿LVLM的视觉编码器,可大幅提高视觉问答准确率。结果验证了方法的有效性与泛化能力。代码已开源:https://github.com/Liu-524/SamplingTAR。

原文摘要 · Abstract (English)

Models trained via Contrastive Language-Image Pretraining (CLIP) serve as the foundational vision encoders for most modern Large Vision Language Models (LVLMs). Despite their widespread adoption, CLIP models exhibit a critical yet underexplored failure mode: irrelevant text appearing within images confounds visual representations, biasing them toward lexical meaning rather than true visual semantics. This robustness issue, commonly described as a Typographic Attack (TA), exposes a vulnerability that poses a significant risk to safety-critical applications such as autonomous driving. To achieve interpretable and effective robustness against TA, we propose a novel, training-free mechanistic interpretability method. Our method provides sampling-based interpretations of hidden state representations and quantitatively attributes semantic versus lexical focus to individual attention heads. Through probabilistic analysis and circuit mining, we isolate specific Vision Transformer (ViT) components that disproportionately encode lexical information, thereby identifying the mechanistic source of TA. We further show that simple interventions applied directly to the identified circuits, without any additional training, can substantially improve robustness against Typographic Attacks in object classification. These interventions, such as selective adjustment of attention weights, also outperform both supervised and training-free defense methods. Our experiments demonstrate that applying the proposed intervention to the vision encoders of several state-of-the-art LVLMs yields substantial gains in Visual Question Answering accuracy under Typographic Attack interference on RIO-Bench. These results confirm both the efficacy and the generalizability of our mechanistic approach. Code is released at https://github.com/Liu-524/SamplingTAR.

视觉语言模型对抗攻击可解释性无训练防御

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