Towards Robustness against Typographic Attack with Training-free Concept Localization

· Source: Computation and Language · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy, Robotics & Autonomous Systems · Depth: Expert, quick

Summary

CLIP models, foundational vision encoders for most modern Large Vision Language Models (LVLMs), exhibit a critical vulnerability to Typographic Attacks (TA). This issue causes models to misinterpret irrelevant text within images, biasing visual representations towards lexical meaning rather than true visual semantics, posing risks to safety-critical applications like autonomous driving. Researchers propose a novel, training-free mechanistic interpretability method to achieve robust defense. This approach uses sampling-based interpretations of hidden state representations and quantitatively attributes semantic versus lexical focus to individual attention heads. Through probabilistic analysis and circuit mining, specific Vision Transformer (ViT) components encoding lexical information are isolated as the mechanistic source of TA. Simple, training-free interventions, such as selective attention weight adjustments, applied directly to these identified circuits significantly improve robustness against TAs in object classification, outperforming both supervised and other training-free defense methods. Applying this intervention to LVLM vision encoders also yields substantial Visual Question Answering accuracy gains under TA interference on RIO-Bench.

Key takeaway

For AI Security Engineers or Computer Vision Engineers deploying CLIP-based models in safety-critical applications, you should prioritize evaluating and mitigating Typographic Attack vulnerabilities. Implementing training-free interventions, such as selectively adjusting attention weights in identified Vision Transformer circuits, offers a superior and efficient path to enhance model robustness. This approach significantly improves Visual Question Answering accuracy under attack, reducing risks without requiring extensive retraining.

Key insights

CLIP models' vulnerability to typographic attacks stems from specific ViT components encoding lexical information.

Principles

Method

A training-free mechanistic interpretability method provides sampling-based interpretations of hidden states, quantifies attention head focus, and isolates ViT components via probabilistic analysis and circuit mining.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Computer Vision Engineer, AI Security Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Computation and Language.