Manuscript Offprint
arXiv:2610.40309Textual Response-Aware Guidance for Zero-Shot Adversarial Robustness of Vision-Language Models
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.
1. Introduction
Vision-language models (VLMs) [32, 47] achieve strong zero-shot generalization through large-scale pre-training on image-text pairs. By aligning visual and textual representations in a shared embedding space, VLMs support applications such as image classification [51] and image-text retrieval [16], and provide visual backbones for large vision-language models (LVLMs) [22]. However, similar to conventional deep neural networks [9, 38], VLMs remain vulnerable to adversarial examples. Small, carefully crafted image perturbations can induce incorrect predictions, undermining model reliability [49, 50]. Adversarial fine-tuning improves robustness but can compromise zero-

Feature distance

Weighted text differences
Local text responses

(a) Feature matching
(b) Distribution matching
(c) TRAG (ours)
Figure 1. Directional constraints on visual representation drift. Thicker lower arrows indicate stronger penalties. (a) Feature matching constrains drift equally in all directions. (b) Prediction distribution matching weights directions associated with differences between candidate textual representations using pre-trained prediction probabilities. (c) TRAG constructs anchor-level constraints from local responses of the pre-trained text encoder and aggregates them using pre-trained image–anchor relevance.
shot generalization [27]. A central challenge is therefore to preserve the pre-trained image-text alignment underlying zero-shot transfer while improving adversarial robustness.
Existing methods often use guidance from the pre-trained model to preserve image-text alignment during adversarial fine-tuning. Some match visual features between the fine-tuned and pre-trained models [34, 42], whereas others match prediction distributions over candidate texts [5, 40]. Both forms of guidance aim to preserve pre-trained image-text relationships, which depend on projections of visual representations along different directions in the shared embedding space. For normalized representations, projections onto textual representations determine individual image-text similarities, while projections onto differences between textual representations determine relative similarities [32]. Changes in visual representations along different directions can affect these relationships differently. How guidance constrains these changes can therefore influence the preservation of image-text relationships.
From this perspective, we analyze both forms of guidance as directional constraints on drift from pre-trained visual representations, revealing complementary limitations. As illustrated in Figs. 1(a) and 1(b), matching visual features constrains drift equally in all directions, providing broad coverage but no semantic emphasis. Matching prediction distributions instead prioritizes semantically relevant directions associated with differences between candidate textual representations, but remains limited by the candidate texts and prediction probabilities. Zero-shot generalization, however, requires preserving diverse image-text relationships across unseen tasks. These limitations can leave such relationships insufficiently protected and degrade zero-shot performance. We therefore seek directional references for potential semantic variations to construct guidance with broad coverage and semantic emphasis.
To address these limitations, we propose Textual Response-Aware Guidance (TRAG), which uses local responses of the pre-trained text encoder to constrain visual representation drift. Using known texts as semantic anchors, we examine its responses to local variations in their input embeddings. As shown in Fig. 1(c), the response directions and magnitudes characterize local changes in textual representations, providing directional references for potential semantic variations beyond the given texts. With a fixed total weight for directional penalties, we derive anchor-level constraints by minimizing the average worst-case error in preserving image-text relationships associated with these local changes. Finally, we aggregate them using pre-trained image-anchor relevance on clean images, yielding an image-adaptive constraint for adversarial fine-tuning.
Extensive experiments demonstrate TRAG's state-of-the-art clean and robust performance. We validate these advantages across multiple VLM architectures on zero-shot classification and image-text retrieval, covering both class-supervised and image-text fine-tuning settings under multiple threat models. These benefits extend to image captioning and visual question answering in LVLMs. Further analyses and ablations show that TRAG helps preserve pre-trained image-text relationships during robust adaptation. Our main contributions are as follows:
• We analyze the directional constraints that feature matching and prediction distribution matching impose on visual representation drift, revealing complementary limitations in preserving pre-trained image-text relationships.
• We propose TRAG, which derives anchor-level constraints from local responses of the pre-trained text encoder and aggregates them using image-anchor relevance, yielding an image-adaptive constraint.
• We demonstrate state-of-the-art clean and robust performance across architectures and tasks, with analyses and ablations showing that TRAG helps preserve pre-trained image-text relationships.
Pre-trained model guidance. To mitigate degradation in zero-shot generalization, existing methods use pre-trained model guidance to preserve image-text alignment during adversarial fine-tuning. At the feature level, FARE [34] matches adversarial visual features to the pre-trained model's clean features. QT-AFT [42] combines feature matching with richer textual supervision from high-quality image captions. At the prediction level, PMG-AFT [40] combines an adversarial task objective with prediction distribution matching against the pre-trained model. AGFT [5] replaces hard-label supervision with the pre-trained model's soft alignment distributions, calibrated through temperature scaling. TGA-ZSR [48] preserves text-guided spatial attention using the original model as a reference. AdvFLYP [45] combines contrastive adversarial fine-tuning on web image-text pairs with feature matching and prediction distribution matching. We analyze the directional constraints imposed by representative feature and prediction distribution matching objectives. TRAG uses local responses of the pre-trained text encoder to construct an image-adaptive constraint on visual representation drift.
3. Preliminaries and Analysis
We introduce the basic setting and analyze how two representative forms of pre-trained guidance constrain visual representation drift. Geometric diagnostics further examine their complementary limitations and inform guidance for preserving diverse image-text relationships.
3.1. Preliminaries
Vision-language models. VLMs such as CLIP [32] use an image encoder and a text encoder to map images and texts into a shared embedding space, where and denote the image and text input spaces. We update only the image encoder parameters during fine-tuning and use the original pre-trained image encoder as a frozen reference. The pre-trained text encoder is shared by both models and remains fixed. For an image and a text input , their normalized representations are
Their inner product gives image–text similarity. For candidate texts , the prediction distribution is
where is the temperature inherited from pre-training. The pre-trained model's normalized visual representation and prediction distribution are obtained by replacing with .
Adversarial fine-tuning. Given a clean image , an adversarial attack seeks a perturbation that increases the model's loss, subject to . Here, , where denotes the perturbation budget. Adversarial fine-tuning updates the image encoder of a pre-trained VLM using these adversarial examples. TeCoA [27] uses the following text-guided contrastive loss for a mini-batch from ImageNet [33]:
where indicates a positive image-text pair , and otherwise. The min-max objective is
where D is the source dataset. The inner maximization finds adversarial images; the outer minimization updates . The resulting model is evaluated zero-shot on downstream tasks without task-specific adaptation.
3.2. Directional Analysis of Guidance
To understand how pre-trained guidance preserves image-text relationships, we analyze two representative forms: feature matching (FM) and prediction distribution matching (DM). Both constrain visual representation drift from the original model's clean representation:
This drift reflects both model adaptation and input perturbation. It changes individual image-text similarities by and relative similarities to versus by

Figure 2. Geometric diagnostics of CLIP ViT-B/32 before fine-tuning. Bars (left) show similarity to downstream class geometry; lines (right) show directional coverage. The best fixed FM–DM mix is selected by mean similarity per dataset.
. Drift along different directions can therefore affect image-text relationships differently.
Feature matching. FM encourages current visual representations to remain close to those of the pre-trained model [34, 42]. We analyze the normalized form:
The identity matrix constrains drift equally in all directions. This provides broad protection for image-text relationships without favoring semantically relevant directions.
Prediction distribution matching. DM uses pre-trained predictions as soft supervision [5, 40]. We analyze forward KL over fixed candidate texts , where and denote the original clean and current adversarial distributions, respectively. Around ,
where and the reference Hessian is
The outer products penalize drift along differences between candidate textual representations, with each pair weighted by . DM thus provides semantic emphasis, but remains limited by the candidate texts and prediction probabilities. Further derivations and connections to specific methods are provided in the appendix.
FM and DM thus exhibit complementary limitations. Preserving the diverse image-text relationships needed for zero-shot transfer requires controlling drift along semantic directions relevant to unseen tasks. These limitations can hinder such preservation across potential semantic variations and degrade zero-shot performance.

Figure 3. Overview of TRAG. We construct anchor-level constraints from the text encoder's local response directions and magnitudes under a fixed-budget criterion. Pre-trained image–anchor relevance on clean images weights their aggregation. After global trace normalization, constrains visual representation drift during adversarial fine-tuning.
3.3. Geometric Diagnostics
To complement the directional analysis, we examine the matrices defining these constraints before fine-tuning. We use the normalized participation ratio of their eigenvalues [21] to measure how broadly directional weights are distributed. The lines in Fig. 2 show maximal coverage for FM but low coverage for DM. The eigenvalue spectra in Fig. 4 illustrate DM's concentrated directional weights.
To assess relevance to downstream tasks, we use the covariance of normalized downstream class textual representations as a reference for task-relevant semantic directions. We compare each constraint matrix with this covariance using the normalized Frobenius inner product. The bars in Fig. 2 show lower similarity for FM and DM than for TRAG. Their best fixed mixtures generally have lower similarity despite often having greater coverage than TRAG.
Together, these analyses motivate guidance with broad coverage and semantic emphasis for preserving diverse image–text relationships across unseen tasks. We therefore seek directional references for potential semantic variations to design constraints on visual representation drift.
4. Methodology
We describe the construction of TRAG and its use in adversarial fine-tuning, as illustrated in Fig. 3. We first derive anchor-level constraints from local responses of the pre-trained text encoder under a fixed penalty budget (Sec. 4.1). We then aggregate them using pre-trained image–anchor relevance and formulate the training objective (Sec. 4.2).
4.1. Anchor-Level Constraint Construction
Zero-shot transfer requires preserving diverse image–text relationships for downstream tasks unknown during fine-tuning. Known texts provide semantic reference points but may not fully capture these needs. Starting from known concepts, we therefore seek directional references for potential semantic variations. The pre-trained text encoder's learned mapping translates local input embedding changes into textual representation changes in the shared space. Using these texts as semantic anchors, we construct drift constraints from local response directions and magnitudes.
Local textual responses. Let denote the anchor set. For anchor , concatenates the embeddings of its body tokens, excluding start and end tokens, where is the token embedding dimension. With the encoder frozen and other inputs fixed, its normalized-output Jacobian has a thin singular value decomposition:
Left singular vectors describe response directions in the shared space; singular values quantify their magnitudes.
For a small embedding change , the linear response approximates the textual representation difference from the anchor. Following Sec. 3.2, visual drift changes relative similarity to the locally varied representation versus the anchor by approximately . We use as a local proxy for potential semantic variations.
Directional penalty allocation. We model as a random input proxy. The response second moment
Table 1. Zero-shot classification with CLIP ViT-B/32. Models are fine-tuned on ImageNet with training/test budgets of 2/255. Bold and underlined values mark the best and second-best fine-tuned results; Average spans all 16 datasets.
| Eval. | Method | Caltech101 | Caltech256 | CIFAR10 | CIFAR100 | DTD | EuroSAT | FGVC | Flower102 | Food101 | ImageNet | ImageNet-R | ImageNet-S | OxfordPet | StanfordCars | STL10 | SUN397 | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Clean | CLIP | 88.71 | 84.66 | 87.55 | 62.56 | 41.38 | 43.72 | 19.17 | 66.15 | 83.51 | 61.89 | 66.26 | 40.75 | 87.33 | 58.62 | 97.28 | 60.10 | 65.60 |
| TeCoA | 82.89 | 72.92 | 73.45 | 40.84 | 30.74 | 19.59 | 11.25 | 42.86 | 41.83 | 55.66 | 49.28 | 27.54 | 75.23 | 25.28 | 90.22 | 47.67 | 49.20 | |
| PMG-AFT | 86.46 | 77.32 | 80.13 | 50.87 | 31.65 | 22.90 | 12.51 | 45.22 | 52.50 | 61.19 | 54.91 | 33.74 | 79.54 | 32.75 | 93.34 | 50.24 | 54.08 | |
| FARE | 86.51 | 79.72 | 78.40 | 57.50 | 34.04 | 17.59 | 14.94 | 52.23 | 64.72 | 56.87 | 57.53 | 35.61 | 83.19 | 48.71 | 93.77 | 52.05 | 57.09 | |
| TGA-ZSR | 82.84 | 76.13 | 80.75 | 49.01 | 28.72 | 14.10 | 9.78 | 43.92 | 45.16 | 70.53 | 57.33 | 38.16 | 77.82 | 25.74 | 93.19 | 47.88 | 52.57 | |
| QT-AFT | 86.18 | 78.54 | 82.47 | 56.50 | 34.20 | 11.13 | 14.31 | 51.32 | 62.08 | 55.12 | 56.13 | 34.47 | 81.91 | 47.07 | 94.38 | 51.38 | 56.07 | |
| AGFT | 86.22 | 78.83 | 83.10 | 58.22 | 33.24 | 19.29 | 13.47 | 45.59 | 59.22 | 59.85 | 58.36 | 36.60 | 83.00 | 41.01 | 95.25 | 50.38 | 56.35 | |
| TRAG (Ours) | 87.49 | 81.20 | 86.01 | 62.32 | 35.00 | 22.80 | 13.47 | 49.93 | 62.78 | 71.16 | 61.49 | 41.37 | 84.20 | 45.29 | 95.69 | 53.39 | 59.60 | |
| Robust | CLIP | 0.61 | 0.18 | 0.11 | 0.57 | 0.37 | 0.46 | 0.63 | 0.55 | 0.11 | 0.27 | 0.45 | 0.17 | 0.08 | 0.50 | 0.12 | 0.45 | 0.35 |
| TeCoA | 60.23 | 46.48 | 42.25 | 20.88 | 17.23 | 10.93 | 2.10 | 16.78 | 11.41 | 23.25 | 24.26 | 14.31 | 38.15 | 6.06 | 69.15 | 17.74 | 26.33 | |
| PMG-AFT | 66.43 | 54.00 | 51.21 | 27.62 | 20.00 | 11.87 | 3.21 | 18.11 | 17.73 | 32.13 | 30.66 | 18.72 | 52.13 | 9.34 | 76.75 | 21.93 | 31.99 | |
| FARE | 61.81 | 51.49 | 49.13 | 27.71 | 19.36 | 7.67 | 2.94 | 16.46 | 17.74 | 23.80 | 27.94 | 16.64 | 44.74 | 9.04 | 74.44 | 18.53 | 29.34 | |
| TGA-ZSR | 63.14 | 50.21 | 49.10 | 24.27 | 14.84 | 0.78 | 1.95 | 15.54 | 12.71 | 38.72 | 29.62 | 20.34 | 49.48 | 5.73 | 74.59 | 18.09 | 29.32 | |
| QT-AFT | 62.86 | 51.94 | 52.69 | 29.04 | 20.37 | 1.60 | 2.58 | 17.35 | 18.46 | 24.41 | 28.59 | 16.85 | 45.56 | 9.16 | 77.14 | 19.17 | 29.86 | |
| AGFT | 66.77 | 55.82 | 53.56 | 30.87 | 20.48 | 11.04 | 4.83 | 18.52 | 19.86 | 32.77 | 32.97 | 20.54 | 55.64 | 12.16 | 79.49 | 22.35 | 33.60 | |
| TRAG (Ours) | 67.11 | 57.37 | 56.82 | 33.69 | 21.44 | 11.24 | 3.45 | 19.01 | 19.87 | 41.48 | 34.25 | 22.68 | 58.86 | 11.40 | 80.99 | 21.84 | 35.09 |
summarizes average squared responses across directions. We choose a positive semidefinite matrix to penalize drift through . Its eigenvalues are directional penalty weights, with a fixed sum .
For each response, measures the error in relative image-text similarity under the linear proxy model. Using a common unit penalty bound, we take the largest squared error over abstract drifts and then average over responses:
Proposition 1 (Budget allocation). Suppose has a finite, nonzero second moment. For satisfying , the risk is , where denotes the Moore–Penrose pseudoinverse [31]. Under , a minimizer is
The proof is provided in the appendix.
We use a zero-mean isotropic proxy with . Equal variance across input directions lets the pre-trained text encoder determine the response geometry, while keeps the expected total input variation energy independent of the body-token count. This gives
Proposition 1 yields the anchor-level constraint shape
The penalty weights squared drift projections onto response directions by singular values scaled by . The single-anchor optimum rescales to trace . We retain the unnormalized to preserve response strengths across anchors; Sec. 4.2 allocates their scales jointly under a shared budget before aggregation.
4.2. Image-Adaptive Guidance and Fine-Tuning
Image-adaptive aggregation. Although downstream tasks are unknown, a clean image provides cues about which concept neighborhoods are relevant. We therefore use pre-trained image–anchor relevance as a proxy for their relative importance:
For fixed , let denote component constraint matrices satisfying the semidefiniteness and range conditions of Proposition 1. We minimize the weighted proxy risk , subject to the shared budget . A closed-form solution scales all by a common factor, as derived in the appendix. Aggregating these components with weights gives:
The common normalization fixes while preserving relative response strengths across anchors.
Adversarial fine-tuning. For a mini-batch , where denotes a paired text or the corresponding class text, write . We average the TRAG penalty over images:
Table 2. Different test budgets. ViT-B/32 models are trained at 2/255. Results are means over 16 datasets; Avg. further averages robust accuracy over all four listed test budgets.
| Method | Clean | Robust Accuracy | ||||
|---|---|---|---|---|---|---|
| 1/255 | 2/255 | 3/255 | 4/255 | Avg. | ||
| TeCoA | 49.20 | 37.42 | 26.33 | 17.40 | 10.75 | 22.97 |
| PMG-AFT | 54.08 | 42.88 | 31.99 | 22.26 | 14.53 | 27.92 |
| FARE | 57.09 | 42.81 | 29.34 | 18.33 | 10.76 | 25.31 |
| TGA-ZSR | 52.57 | 40.50 | 29.32 | 19.47 | 11.69 | 25.24 |
| QT-AFT | 56.07 | 42.52 | 29.86 | 19.33 | 11.77 | 25.87 |
| AGFT | 56.35 | 44.83 | 33.60 | 23.44 | 15.13 | 29.25 |
| TRAG (Ours) | 59.60 | 47.07 | 35.09 | 24.25 | 15.38 | 30.45 |
Table 3. Different training budgets. Mean accuracy (%) over 16 datasets; ViT-B/32 uses matched training/test budgets.
| Method | 1/255 | 3/255 | 4/255 | |||
|---|---|---|---|---|---|---|
| Clean | Robust | Clean | Robust | Clean | Robust | |
| TeCoA | 56.31 | 38.43 | 42.87 | 18.87 | 37.45 | 13.95 |
| PMG-AFT | 59.58 | 42.72 | 46.29 | 22.63 | 42.01 | 17.59 |
| FARE | 61.90 | 38.66 | 52.46 | 22.80 | 47.74 | 17.88 |
| TGA-ZSR | 58.37 | 37.66 | 47.72 | 23.16 | 43.86 | 18.71 |
| QT-AFT | 61.03 | 39.55 | 52.06 | 23.40 | 48.00 | 18.66 |
| AGFT | 60.94 | 43.18 | 52.54 | 26.55 | 48.97 | 21.41 |
| TRAG (Ours) | 63.66 | 44.39 | 56.35 | 28.12 | 54.55 | 22.18 |
The task loss can be for classification or InfoNCE [29] for paired image-text training. We optimize
where controls the relative guidance strength.
We approximate the inner maximization over the batch images using projected gradient descent (PGD) [25]. Both the attack and outer update use the same combined loss. Only the image encoder is updated; the original model, text encoder, and temperature remain frozen. The clean references , relevance weights , and matrices remain fixed throughout each attack.
We precompute anchor representations and matrices once before fine-tuning. Inference uses the adapted image encoder within the original VLM pipeline, with no additional computation from TRAG.
5. Experiments
5.1. Zero-Shot Image Classification
Experimental setup. We fine-tune CLIP ViT-B/32 on ImageNet [33] and evaluate on ImageNet and 15 zero-shot datasets: Caltech-101 [8], Caltech-256 [11], CIFAR-10 [15], CIFAR-100 [15], DTD [2], EuroSAT [12], FGVC Aircraft [26], Flowers102 [28], Food-101 [1], ImageNet-R [13], ImageNet-S [39], Oxford-IIIT Pet [30], Stanford Cars [14], STL-10 [3], and SUN397 [43]. Unless otherwise stated, training and evaluation use an budget of 2/255.
Table 4. Different backbones. Mean accuracy (%) over 16 datasets; training and test budgets are 2/255.
| Method | ViT-B/16 | ViT-L/14 | RN101 | |||
|---|---|---|---|---|---|---|
| Clean | Robust | Clean | Robust | Clean | Robust | |
| TeCoA | 53.38 | 30.18 | 64.12 | 39.99 | 31.65 | 16.45 |
| PMG-AFT | 55.40 | 30.83 | 63.85 | 43.40 | 47.01 | 27.69 |
| FARE | 60.28 | 32.69 | 69.06 | 45.03 | 51.87 | 20.26 |
| TGA-ZSR | 51.66 | 32.16 | 60.82 | 40.34 | - | - |
| QT-AFT | 60.05 | 33.35 | 69.05 | 45.36 | 45.46 | 21.64 |
| AGFT | 58.68 | 36.25 | 67.37 | 46.78 | 51.15 | 28.82 |
| TRAG (Ours) | 62.95 | 39.08 | 70.78 | 49.54 | 55.39 | 29.54 |
For TRAG, we use five epochs, 5-step PGD with step size , and . The 1,000 ImageNet class names serve as anchors.
We reproduce TeCoA [27], PMG-AFT [40], FARE [34], TGA-ZSR [48], QT-AFT [42], and AGFT [5] using their respective training configurations. All methods share the evaluation protocol. Following FARE in attack selection, we use APGD-CE and targeted APGD-DLR from AutoAttack [4], with 20 iterations each. We report per-dataset accuracy and averages across the 16 datasets. Further details are provided in the appendix.
Main results. Table 1 shows that TRAG achieves the highest average clean and robust accuracy among fine-tuned methods: and , respectively. These exceed the strongest baseline for each metric by 2.51 and 1.49 percentage points. TRAG leads on 11 datasets for clean accuracy and 12 for robust accuracy, covering both ImageNet and zero-shot benchmarks. For instance, TRAG improves CIFAR-100 clean and robust classification accuracy over AGFT by 4.10 and 2.82 percentage points, respectively.
Different test budgets. Table 2 evaluates checkpoints trained at 2/255 under test budgets from 1/255 to 4/255. TRAG leads in mean robust accuracy at all four budgets, including those above its training budget. The margin over AGFT narrows from 2.24 points at 1/255 to 0.25 points at 4/255, showing smaller margins at larger budgets.
Different training budgets. We also train separate models at 1/255, 3/255, and 4/255 and evaluate each at its training budget (Table 3). TRAG attains the best mean clean and robust accuracy in all three settings with fixed. At 4/255, it outperforms the strongest baseline, AGFT, by 5.58 points in clean accuracy and 0.77 points in robust accuracy.
Different backbones. Table 4 extends the comparison to ViT-B/16, ViT-L/14, and RN101. TRAG again achieves the highest mean clean and robust accuracy for each backbone, supporting its applicability to both transformer and convolutional image encoders. The ViT-L/14 model achieves clean and robust accuracy, improving on the best respective baselines by 1.72 and 2.76 points.
Table 5. Zero-shot image-text retrieval after CC3M fine-tuning. TR/IR denote image-to-text/text-to-image recall (%). Robust results use image PGD at 2/255. Bold/underlined values mark the best/second-best fine-tuned results.
| Model | Method | Flickr30k | COCO | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Clean | Robust | Clean | Robust | ||||||||||||||
| TR@1 | TR@10 | IR@1 | IR@10 | TR@1 | TR@10 | IR@1 | IR@10 | TR@1 | TR@10 | IR@1 | IR@10 | TR@1 | TR@10 | IR@1 | IR@10 | ||
| CLIP ViT-B/16 | CLIP | 82.60 | 99.10 | 62.08 | 92.02 | 0.30 | 1.40 | 0.16 | 1.08 | 53.18 | 85.14 | 33.32 | 68.95 | 0.10 | 0.36 | 0.04 | 0.30 |
| TeCoA | 69.20 | 92.90 | 55.96 | 87.44 | 45.00 | 75.40 | 34.44 | 71.26 | 41.32 | 76.00 | 28.02 | 64.09 | 21.90 | 52.80 | 15.09 | 43.73 | |
| PMG-AFT | 76.00 | 95.50 | 59.44 | 89.16 | 54.70 | 83.20 | 42.20 | 77.08 | 45.58 | 79.24 | 30.68 | 66.93 | 29.72 | 62.22 | 19.10 | 51.55 | |
| FARE | 78.70 | 96.90 | 61.62 | 90.42 | 52.50 | 84.80 | 39.34 | 76.24 | 45.04 | 80.62 | 31.28 | 67.16 | 25.66 | 58.90 | 17.41 | 48.40 | |
| TGA-ZSR | 75.10 | 96.10 | 61.74 | 91.08 | 49.30 | 80.70 | 38.58 | 75.90 | 45.92 | 79.94 | 33.16 | 69.68 | 25.56 | 57.18 | 17.16 | 48.98 | |
| QT-AFT | 80.60 | 97.00 | 64.48 | 91.66 | 55.10 | 85.20 | 44.80 | 79.26 | 46.10 | 81.26 | 34.27 | 70.50 | 28.12 | 61.70 | 20.15 | 52.94 | |
| AGFT | 77.20 | 96.20 | 60.70 | 89.38 | 56.80 | 86.60 | 43.02 | 78.50 | 45.84 | 80.00 | 31.31 | 67.50 | 29.78 | 63.78 | 19.22 | 52.57 | |
| AdvFLYP | 75.90 | 95.90 | 60.38 | 89.74 | 54.00 | 84.70 | 42.90 | 77.64 | 44.64 | 79.06 | 31.52 | 67.90 | 27.38 | 60.72 | 19.22 | 51.72 | |
| TRAG (Ours) | 81.10 | 97.20 | 65.78 | 92.36 | 58.70 | 88.70 | 46.72 | 81.34 | 49.20 | 83.10 | 35.77 | 71.70 | 30.96 | 64.92 | 21.63 | 55.34 | |
| CoCa ViT-L/14 | CoCa | 89.10 | 99.90 | 74.52 | 95.52 | 6.90 | 19.70 | 3.94 | 17.28 | 62.88 | 89.96 | 45.60 | 79.06 | 3.34 | 10.90 | 1.86 | 9.19 |
| TeCoA | 76.70 | 95.70 | 64.86 | 91.30 | 43.50 | 75.50 | 36.62 | 71.90 | 50.36 | 83.28 | 37.76 | 73.61 | 23.74 | 55.26 | 17.93 | 47.92 | |
| PMG-AFT | 80.00 | 96.60 | 65.82 | 91.32 | 55.70 | 85.10 | 43.88 | 78.74 | 52.26 | 85.18 | 37.89 | 73.50 | 32.16 | 65.18 | 22.14 | 54.96 | |
| FARE | 84.90 | 98.60 | 70.26 | 93.96 | 61.60 | 89.40 | 49.20 | 82.98 | 54.12 | 86.56 | 40.93 | 76.20 | 34.52 | 67.66 | 25.78 | 59.86 | |
| TGA-ZSR | 77.00 | 94.70 | 63.76 | 90.36 | 46.40 | 77.70 | 38.94 | 74.22 | 50.24 | 83.54 | 36.16 | 72.08 | 26.98 | 59.08 | 19.33 | 50.70 | |
| QT-AFT | 86.40 | 98.80 | 70.72 | 94.14 | 65.80 | 91.00 | 51.90 | 84.62 | 57.38 | 87.46 | 41.93 | 77.41 | 38.08 | 72.24 | 27.47 | 62.26 | |
| AGFT | 79.60 | 96.90 | 66.42 | 91.82 | 58.10 | 86.40 | 45.64 | 79.76 | 53.34 | 85.74 | 38.40 | 74.24 | 33.42 | 67.26 | 22.80 | 56.42 | |
| AdvFLYP | 80.50 | 97.10 | 65.92 | 91.52 | 59.20 | 87.10 | 46.96 | 80.84 | 52.32 | 84.64 | 38.08 | 73.53 | 33.50 | 67.70 | 24.16 | 57.67 | |
| TRAG (Ours) | 87.00 | 99.20 | 71.40 | 94.66 | 67.40 | 92.10 | 54.02 | 86.10 | 59.96 | 89.06 | 42.98 | 78.07 | 42.20 | 75.28 | 29.26 | 64.37 | |
Table 6. Text and multimodal attacks. Flickr30k results for CLIP ViT-B/16 fine-tuned on CC3M. TR@m/IR@m average R@1 and R@10 in each direction.
| Method | BERT-Attack | Sep-Attack | Co-Attack | |||
|---|---|---|---|---|---|---|
| TR@m | IR@m | TR@m | IR@m | TR@m | IR@m | |
| TeCoA | 41.85 | 34.74 | 26.05 | 21.79 | 51.65 | 38.76 |
| PMG-AFT | 47.25 | 37.54 | 31.40 | 26.68 | 58.05 | 43.27 |
| FARE | 53.15 | 41.34 | 33.50 | 26.54 | 55.35 | 41.74 |
| TGA-ZSR | 46.85 | 38.12 | 28.50 | 24.34 | 53.65 | 41.65 |
| QT-AFT | 51.45 | 42.50 | 33.80 | 28.69 | 58.85 | 45.46 |
| AGFT | 49.80 | 38.32 | 34.95 | 27.38 | 59.00 | 43.77 |
| AdvFLYP | 48.15 | 39.16 | 31.50 | 27.55 | 58.05 | 44.73 |
| TRAG (Ours) | 54.20 | 42.81 | 35.40 | 29.46 | 61.80 | 46.85 |
5.2. Cross-Modal Retrieval
We fine-tune CLIP ViT-B/16 and CoCa ViT-L/14 on CC3M [35] and evaluate zero-shot retrieval on Flickr30k [46] and COCO [20]. We additionally include AdvFLYP [45] alongside the baselines in Sec. 5.1. Detailed settings are provided in the appendix.
Table 5 shows that TRAG achieves the best clean and robust recall among fine-tuned methods for both models, datasets, and retrieval directions. For CoCa on COCO, robust TR@1 and IR@1 improve over QT-AFT by 4.12 and 1.79 percentage points, respectively. These results extend the benefits to image-text fine-tuning.
Text and multimodal attacks. Table 6 further evaluates CLIP on Flickr30k under text-only BERT-Attack [17] and multimodal Sep-Attack and Co-Attack [49]. TRAG leads on all six reported metrics, with gains of up to 2.80 percentage points. Its observed benefits thus extend to text and joint image-text perturbations.
5.3. Robustness Transfer to LVLMs
We replace the image encoder of LLaVA-1.5-7B [23] with the ViT-L/14 encoder fine-tuned on ImageNet in Sec. 5.1, keeping the remaining modules unchanged. Following FARE [34], we evaluate captioning on COCO and Flickr30k and visual question answering on TextVQA [37] and VQAv2 [10]. Settings are provided in the appendix.
Table 7 shows that TRAG achieves the best robust results in seven of the eight task–attack combinations, while maintaining competitive clean performance. On COCO, it reaches 73.47 CIDEr under Ensemble, exceeding the strongest baseline by 2.16 points. These results extend TRAG's benefits to generative multimodal tasks without additional LVLM fine-tuning.
5.4. Ablation Studies and Analysis
Pre-trained constraints. We replace TRAG with FM, DM, and two combinations under the same fine-tuning pipeline. Table 8 compares a trace-normalized FM–DM quadratic mix and a direct FM+DM loss, with coefficients and search ranges detailed in the appendix. The mixtures approach TRAG's robust accuracy but yield lower clean accuracy. Against the quadratic mix with , TRAG gains 2.27 points in clean accuracy with nearly unchanged robust accuracy (35.09% vs. 35.05%).
Directional weight spectra. Figure 4 complements the constraint ablations with eigenvalue spectra before fine-tuning. After trace normalization, FM assigns equal weights, DM concentrates its weights in relatively few directions, and TRAG distributes them more broadly while retaining nonuniform penalties. These spectra illustrate constraint structure without directly predicting robustness.
Relationship preservation. We examine 64 images per
Table 7. Robustness transfer to LLaVA-1.5-7B. ImageNet-adapted ViT-L/14 encoders are evaluated using CIDEr for captioning and accuracy (%) for VQA. Both attacks use an budget of 2/255 in pixel space.
| Method | COCO | Flickr30k | TextVQA | VQAv2 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Clean | APGD | Ensemble | Clean | APGD | Ensemble | Clean | APGD | Ensemble | Clean | APGD | Ensemble | |
| TeCoA | 101.94 | 53.76 | 40.41 | 59.07 | 32.23 | 19.05 | 24.48 | 12.80 | 13.26 | 65.60 | 39.76 | 40.92 |
| PMG-AFT | 93.12 | 51.50 | 35.78 | 50.69 | 32.27 | 18.28 | 24.08 | 13.14 | 12.60 | 62.76 | 36.06 | 39.06 |
| FARE | 115.67 | 92.47 | 70.05 | 72.88 | 54.34 | 39.44 | 32.40 | 19.82 | 20.90 | 67.86 | 48.14 | 50.74 |
| TGA-ZSR | 100.14 | 57.60 | 42.12 | 53.69 | 33.80 | 20.86 | 23.68 | 14.18 | 13.34 | 63.10 | 38.88 | 41.54 |
| QT-AFT | 117.91 | 91.65 | 71.31 | 74.27 | 54.49 | 37.92 | 32.26 | 19.44 | 19.82 | 68.36 | 47.98 | 49.90 |
| AGFT | 102.91 | 54.69 | 38.43 | 62.84 | 30.57 | 18.67 | 26.12 | 13.32 | 14.14 | 63.90 | 36.58 | 39.50 |
| TRAG (Ours) | 116.15 | 93.77 | 73.47 | 71.38 | 55.85 | 40.86 | 32.68 | 19.72 | 21.00 | 69.26 | 48.74 | 51.14 |
Table 8. Pre-trained constraint ablations. Mean accuracy (%) over 16 datasets with ViT-B/32 at 2/255. Representative quadratic mixtures and a direct FM+DM loss are compared under the same adversarial fine-tuning pipeline and task objective.
| Constraint | Clean | Robust |
|---|---|---|
| FM | 58.69 | 34.44 |
| DM | 54.81 | 34.91 |
| Quadratic mix (λ = 5) | 56.33 | 35.08 |
| Quadratic mix (λ = 10) | 57.33 | 35.05 |
| FM + DM | 56.91 | 35.01 |
| TRAG (Ours) | 59.60 | 35.09 |

Figure 4. Directional weight spectra before fine-tuning. Eigenvalues are sorted per image and averaged over 1,000 ImageNet images after normalizing each matrix to trace 512. The inset enlarges the first 50 ranks to show the leading directional weights.
zero-shot dataset using clean inputs and adversarial candidates retained without fallback to the original image. Relative to the pre-trained clean reference, we measure feature drift, the variance of class-similarity changes weighted by pre-trained probabilities, and retention of originally correct predictions. The variance measures changes in pairwise class relationships; diagnostic details are provided in the appendix. Table 9 shows that TRAG allows greater feature drift than FM and the quadratic mix while preserving these relationships better, both before and after attack. DM has slightly lower adversarial relationship error (11.07
Table 9. Post-fine-tuning relationship preservation. Means over 15 zero-shot datasets, with 64 images per dataset. C/A: clean/adversarial inputs. Relation error is scaled by . Retention (%) is measured on images classified correctly by pre-trained CLIP before adaptation and averaged across tasks.
| Guidance | Feature drift | Relation error ↓ | Retention ↑ | ||
|---|---|---|---|---|---|
| C | A | C | A | A | |
| FM | 0.184 | 0.214 | 8.11 | 13.36 | 41.84 |
| DM | 0.332 | 0.353 | 7.71 | 11.07 | 41.97 |
| Quadratic mix | 0.202 | 0.229 | 7.47 | 11.90 | 42.00 |
| AGFT | 0.605 | 0.619 | 9.05 | 11.28 | 41.30 |
| FARE | 0.166 | 0.200 | 7.39 | 14.90 | 37.13 |
| TRAG (Ours) | 0.249 | 0.277 | 6.68 | 11.22 | 42.66 |
vs. 11.22), while TRAG's prediction retention is numerically higher (42.66% vs. 41.97%); these differences remain within sampling uncertainty. Relationship preservation does not imply robustness.
6. Conclusion
We presented TRAG, which guides adversarial fine-tuning of VLMs using local responses of the pre-trained text encoder. Our analysis reveals complementary limitations of feature and prediction-distribution matching. TRAG constructs anchor-level constraints from response directions and magnitudes, then aggregates them by image–anchor relevance to constrain visual representation drift. Experiments demonstrate state-of-the-art clean and robust performance in zero-shot classification and cross-modal retrieval, with robustness benefits extending to LVLMs. Ablations and posterior diagnostics support preserving pre-trained image–text relationships while allowing adaptation. Local responses remain proxies for potential concept variations, and relationship preservation alone does not characterize robustness. TRAG thus provides a practical way to use pre-trained text knowledge for robust visual adaptation without additional inference cost.
References
[1] Lukas Bossard, Matthieu Guillaumin, and Luc Van Gool. Food-101-mining discriminative components with random forests. In ECCV, pages 446–461, 2014. 6
[2] Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In CVPR, pages 3606–3613, 2014. 6
[3] Adam Coates, Andrew Ng, and Honglak Lee. An analysis of single-layer networks in unsupervised feature learning. In Proceedings of the fourteenth international conference on artificial intelligence and statistics, pages 215–223, 2011. 6
[4] Francesco Croce and Matthias Hein. Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks. In ICML, pages 2206–2216, 2020. 6
[5] Yubo Cui, Xianchao Guan, Zijun Xiong, and Zheng Zhang. Agft: Alignment-guided fine-tuning for zero-shot adversarial robustness of vision-language models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2026, Denver, CO, USA, June 3-7, 2026, pages 22836–22846. Computer Vision Foundation, 2026. 1, 2, 3, 6
[6] Junhao Dong, Piotr Koniusz, Liaoyuan Feng, Yifei Zhang, Hao Zhu, Weiming Liu, Xinghua Qu, and Yew-Soon Ong. Robustifying zero-shot vision language models by subspaces alignment. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 21037–21047. IEEE, 2025. 2
[7] Junhao Dong, Piotr Koniusz, Yifei Zhang, Hao Zhu, Weiming Liu, Xinghua Qu, and Yew-Soon Ong. Improving zero-shot adversarial robustness in vision-language models by closed-form alignment of adversarial path simplices. In Forty-second International Conference on Machine Learning, 2025. 2
[8] Li Fei-Fei, Rob Fergus, and Pietro Perona. Learning generative visual models from few training examples: An incremental bayesian approach tested on 101 object categories. In CVPRW, pages 178–178, 2004. 6
[9] Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. 1, 2
[10] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 6904–6913, 2017. 7
[11] Gregory Griffin, Alex Holub, Pietro Perona, et al. Caltech-256 object category dataset. Technical report, Technical Report 7694, California Institute of Technology Pasadena, 2007. 6
[12] Patrick Helber, Benjamin Bischke, Andreas Dengel, and Damian Borth. Eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 12(7):2217–2226, 2019. 6
[13] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kada-vath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu,
Samyak Parajuli, Mike Guo, et al. The many faces of robustness: A critical analysis of out-of-distribution generalization. In ICCV, pages 8340–8349, 2021. 6
[14] Jonathan Krause, Michael Stark, Jia Deng, and Li Fei-Fei. 3d object representations for fine-grained categorization. In Proceedings of the IEEE international conference on computer vision workshops, pages 554–561, 2013. 6
[15] Alex Krizhevsky et al. Learning multiple layers of features from tiny images. 2009. 6
[16] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. In International conference on machine learning, pages 12888–12900. PMLR, 2022. 1
[17] Linyang Li, Ruotian Ma, Qipeng Guo, Xiangyang Xue, and Xipeng Qiu. Bert-attack: Adversarial attack against bert using bert. In Proceedings of the 2020 conference on empirical methods in natural language processing (EMNLP), pages 6193–6202, 2020. 7
[18] Lin Li, Haoyan Guan, Jianing Qiu, and Michael Spratling. One prompt word is enough to boost adversarial robustness for pre-trained vision-language models. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24408–24419. IEEE, 2024. 2
[19] Xiao Li, Wei Zhang, Yining Liu, Zhanhao Hu, Bo Zhang, and Xiaolin Hu. Language-driven anchors for zero-shot adversarial robustness. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24686–24695. IEEE, 2024. 2
[20] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014. 7
[21] Ashok Litwin-Kumar, Kameron Decker Harris, Richard Axel, Haim Sompolinsky, and LF Abbott. Optimal degrees of synaptic connectivity. Neuron, 93(5):1153–1164, 2017. 4
[22] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. Advances in neural information processing systems, 36:34892–34916, 2023. 1
[23] Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee. Improved baselines with visual instruction tuning. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 26286–26296. IEEE, 2024. 7
[24] Fengji Ma, Hei Victor Cheng, Chenxing Li, and Li Liu. Tima: Text-image mutual awareness for balancing zero-shot adversarial robustness and generalization ability. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 24235–24243, 2026. 2
[25] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings, 2018. 2, 6
[26] Subhransu Maji, Esa Rahtu, Juho Kannala, Matthew Blaschko, and Andrea Vedaldi. Fine-grained visual classification of aircraft. Technical report, 2013. 6
[27] Chengzhi Mao, Scott Geng, Junfeng Yang, Xin Wang, and Carl Vondrick. Understanding zero-shot adversarial robustness for large-scale models. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023, 2023. 1, 2, 3, 6
[28] Maria-Elena Nilsback and Andrew Zisserman. Automated flower classification over a large number of classes. In 2008 Sixth Indian conference on computer vision, graphics & image processing, pages 722–729, 2008. 6
[29] Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018. 6
[30] Omkar M Parkhi, Andrea Vedaldi, Andrew Zisserman, and CV Jawahar. Cats and dogs. In CVPR, pages 3498–3505, 2012. 6
[31] Roger Penrose. A generalized inverse for matrices. In Mathematical proceedings of the Cambridge philosophical society, pages 406–413. Cambridge University Press, 1955. 5
[32] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021. 1, 2
[33] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015. 3, 6
[34] Christian Schlarmann, Naman Deep Singh, Francesco Croce, and Matthias Hein. Robust clip: Unsupervised adversarial fine-tuning of vision embeddings for robust large vision-language models. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, pages 43685–43704. PMLR / OpenReview.net, 2024. 1, 2, 3, 6, 7
[35] Piyush Sharma, Nan Ding, Sebastian Goodman, and Radu Soricut. Conceptual captions: A cleaned, hypernymed, image alt-text dataset for automatic image captioning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2556–2565, 2018. 7
[36] Lijun Sheng, Jian Liang, Zilei Wang, and Ran He. R-tpt: Improving adversarial robustness of vision-language models through test-time prompt tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 29958–29967, 2025. 2
[37] Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, and Marcus Rohrbach. Towards vqa models that can read. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8309–8318. IEEE, 2019. 7
[38] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014. 1, 2
[39] Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P Xing. Learning robust global representations by penalizing local predictive power. In NeurIPS, 2019. 6
[40] Sibo Wang, Jie Zhang, Zheng Yuan, and Shiguang Shan. Pre-trained model guided fine-tuning for zero-shot adversarial robustness. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24502–24511. IEEE, 2024. 1, 2, 3, 6
[41] Xin Wang, Kai Chen, Jiaming Zhang, Jingjing Chen, and Xingjun Ma. Tapt: Test-time adversarial prompt tuning for robust inference in vision-language models. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 19910–19920. IEEE, 2025. 2
[42] Futa Waseda, Saku Sugawara, and Isao Echizen. Quality text, robust vision: The role of language in enhancing visual robustness of vision-language models. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 4808–4816, 2025. 1, 2, 3, 6
[43] Jianxiong Xiao, James Hays, Krista A Ehinger, Aude Oliva, and Antonio Torralba. Sun database: Large-scale scene recognition from abbey to zoo. In 2010 IEEE computer society conference on computer vision and pattern recognition, pages 3485–3492, 2010. 6
[44] Songlong Xing, Zhengyu Zhao, and Nicu Sebe. Clip is strong enough to fight back: Test-time counterattacks towards zero-shot adversarial robustness of clip. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 15172–15182. IEEE, 2025. 2
[45] Songlong Xing, Weijie Wang, Zhengyu Zhao, Jindong Gu, Philip Torr, and Nicu Sebe. Finetune like you pretrain: Boosting zero-shot adversarial robustness in vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings, pages 737–747, 2026. 2, 7
[46] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. Transactions of the association for computational linguistics, 2:67–78, 2014. 7
[47] Jiahui Yu, Zirui Wang, Vijay Vasudevan, Legg Yeung, Mojtaba Seyedhosseini, and Yonghui Wu. Coca: Contrastive captioners are image-text foundation models. Trans. Mach. Learn. Res., 2022, 2022. 1
[48] Lu Yu, Haiyang Zhang, and Changsheng Xu. Text-guided attention is all you need for zero-shot robustness in vision-language models. Advances in Neural Information Processing Systems, 37:96424–96448, 2024. 2, 6
[49] Jiaming Zhang, Qi Yi, and Jitao Sang. Towards adversarial attack on vision-language pre-training models. In Proceedings of the 30th ACM international conference on multimedia, pages 5005–5013, 2022. 1, 7
[50] Yunqing Zhao, Tianyu Pang, Chao Du, Xiao Yang, Chongxuan Li, Ngai-Man Man Cheung, and Min Lin. On evaluating adversarial robustness of large vision-language models. Advances in Neural Information Processing Systems, 36:54111–54138, 2023. 1
[51] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. In-ternational journal of computer vision, 130(9):2337–2348, 2022. 1
[52] Yiwei Zhou, Xiaobo Xia, Zhiwei Lin, Bo Han, and Tongliang Liu. Few-shot adversarial prompt learning on vision-language models. Advances in Neural Information Processing Systems, 37:3122–3156, 2024. 2