cs.CVOct 29, 2026

Textual Response-Aware Guidance for Zero-Shot Adversarial Robustness of Vision-Language Models

Authors: Yubo Cui, Xianchao Guan, Zheng Zhang

Organizations: Harbin Institute of Technology, Shenzhen, China · Shenzhen Loop Area Institute, Shenzhen, China

Abstract

Vision-language models (VLMs) exhibit strong zero-shot generalization but remain vulnerable to adversarial attacks. Existing adversarial fine-tuning methods often use pre-trained model guidance to preserve image--text alignment while improving robustness. Our analysis of visual representation drift reveals complementary limitations of two representative forms of guidance. Matching visual features provides broad coverage by constraining all directions equally, but lacks semantic emphasis. Matching prediction distributions prioritizes semantically relevant directions, but remains limited by the candidate texts and prediction probabilities. These limitations can hinder preservation of pre-trained image--text relationships and degrade zero-shot performance. To address these issues, we propose Textual Response-Aware Guidance (TRAG), which constrains visual representation drift using the pre-trained text encoder's responses to local variations in input embeddings. Specifically, TRAG constructs anchor-level constraints from the response directions and magnitudes around semantic anchors, then aggregates them using pre-trained image--anchor relevance, yielding an image-adaptive constraint. Extensive experiments across architectures and tasks demonstrate state-of-the-art clean and robust performance. Further analysis shows that TRAG helps preserve pre-trained image--text relationships.

Figures & tables

Explore similar work

CardsList
  1. AGFT: Alignment-Guided Fine-Tuning for Zero-Shot Adversarial Robustness of Vision-Language Models

    Mar 31, 2026Yubo Cui, Xianchao Guan, Zijun Xiong +1VLM RobustnessVision-Language Alignment

  2. Hierarchically Robust Zero-shot Vision-language Models

    Apr 20, 2026Junhao Dong, Yifei Zhang, Hao Zhu +2Hierarchical ClassificationVLM Robustness

  3. Robustifying Vision-Language Models via Test-Time Prompt Adaptation

    Jul 10, 2026Xingyu Zhu, Huanshen Wu, Shuo Wang +4VLM RobustnessVLM Adaptation