paper-with-me

홈 › Papers

Defense-Prefix for Preventing Typographic Attacks on CLIP

2023-04-10 · Hiroki Azuma, Yusuke Matsui

Vision-language pre-training models (VLPs) have exhibited revolutionary improvements in various vision-language tasks. In VLP, some adversarial attacks fool a model into false or absurd classifications. Previous studies addressed these attacks by fine-tuning the model or changing its architecture. However, these methods risk losing the original model's performance and are difficult to apply to downstream tasks. In particular, their applicability to other tasks has not been considered. In this study, we addressed the reduction of the impact of typographic attacks on CLIP without changing the model parameters. To achieve this, we expand the idea of "prefix learning" and introduce our simple yet effective method: Defense-Prefix (DP), which inserts the DP token before a class name to make words "robust" against typographic attacks. Our method can be easily applied to downstream tasks, such as object detection, because the proposed method is independent of the model parameters. Our method significantly improves the accuracy of classification tasks for typographic attack datasets, while maintaining the zero-shot capabilities of the model. In addition, we leverage our proposed method for object detection, demonstrating its high applicability and effectiveness. The codes and datasets are available at https://github.com/azuma164/Defense-Prefix.

📄 PDF Abstract BibTeX arXiv:2304.04512

Code (1)

azuma164/defense-prefix 공식 구현 pytorch

Tasks

object-detectionObject Detection

Methods 이 논문이 사용한 방법론

CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…

Similar Papers 제목 키워드 기반

Dyslexify: A Mechanistic Defense Against Typographic Attacks in CLIP

2025-08-28 · Lorenz Hufe, Constantin Venhoff, Erblina Purelku, Maximilian Dreyer 외 arxiv

Typographic attacks exploit multi-modal systems by injecting text into images, leading to targeted misclassifications, malicious content generation and even Vision-Language Model jailbreaks. In this work, we analyze how …

Steering CLIP's vision transformer with sparse autoencoders

2025-04-11 · Sonia Joseph, Praneet Suresh, Ethan Goldfarb, Lorenz Hufe 외

While vision models are highly capable, their internal mechanisms remain poorly understood -- a challenge which sparse autoencoders (SAEs) have helped address in language, but which remains underexplored in vision. We ad…

Disentanglement

Unveiling Typographic Deceptions: Insights of the Typographic Vulnerability in Large Vision-Language Model

2024-02-29 · Hao Cheng, Erjia Xiao, Jindong Gu, Le Yang 외

Large Vision-Language Models (LVLMs) rely on vision encoders and Large Language Models (LLMs) to exhibit remarkable capabilities on various multi-modal tasks in the joint space of vision and language. However, the Typogr…

Language ModelingLanguage ModellingObject RecognitionZero-Shot Learning

QuISE: Defense against Typographic Attacks on VLMs via Query-Irrelevant Semantic Editing

2026-08-13 · Shubin Lu, Jiaqi Yin, Yihao Huang arxiv

Typographic attacks pose a critical threat to vision-language models (VLMs) by injecting misleading text into images and causing models to rely on adversarial textual cues rather than visual evidence. Existing defenses o…

Towards Robustness against Typographic Attack with Training-free Concept Localization

2026-07-02 · Bohan Liu, Wenqian Ye, Guangzhi Xiong, Zhenghao He 외 arxiv

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 cr…

Visual Question AnsweringAutonomous Driving