Towards Robustness against Typographic Attack with Training-free Concept Localization

Bohan Liu, Wenqian Ye, Guangzhi Xiong, Zhenghao He, Sanchit Sinha +1 more
7/2/2026
1 citation
cs.CVcs.CL
transformer-attention

Official code: Liu-524/SamplingTAR (2 stars, Jupyter Notebook, last commit 2026-08-20).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

The official code repository for ECCV 2026 conference paper: Towards Robustness against Typographic Attack with Training-free Concept Localization

21Jupyter Notebook, PythonJun 29, 20263 months ago

Similar Papers

Cite this paper

@article{liu2026towards,
  title  = {Towards Robustness against Typographic Attack with Training-free Concept Localization},
  author = {Bohan Liu and Wenqian Ye and Guangzhi Xiong and Zhenghao He and Sanchit Sinha and Aidong Zhang},
  year   = {2026},
  eprint = {2607.02494},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.02494v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.02494.svg)](https://codeofpaper.com/paper/2607.02494)

Discussion