Redirected Adversarial Optimization (RAO) for Transferable Vision-Language AttacksReorienting Adversarial Optimization for Transferable Vision-Language Attacks
The authors propose the RAO transfer attack; on Flickr30K with CLIPViT-B/16 as the source model, the black-box average ASR is 56.16%.
transfer-based black-box attack: the target model and its downstream tasks are unknown; the attacker uses an accessible surrogate VLP model to generate adversarial images and/or text and transfers them to an unseen target model; image perturbations satisfy an L∞ budget, and text replaces at most a limited number of words.
- Transfer attacks are used to evaluate the cross-model robustness of VLP models when the target model is unknown. The authors believe that existing image and text attacks insufficiently explore the adversarial search space, easily overfit to the surrogate model, and limit transfer to unseen models.
- RAO first generates adversarial text, then jointly optimizes the image perturbation with the original and adversarial text. The image attack combines historical gradients to form and select candidate directions; the text attack iterates over candidate word replacements and selects jointly by global image–text and local region–text differences.
- The experiments cover Flickr30K retrieval, RefCOCO+ visual grounding, and MSCOCO image captioning. The authors report that RAO achieves the highest black-box average ASR under all four source model settings; in the cross-task experiments, the target model's average performance is the lowest, but CIDEr and SPICE are not the lowest.
- The authors state that text attacks are more easily detected due to discrete tokens, and improving imperceptibility is a future direction. The theoretical analysis omits sign, clipping, candidate selection, and multi-position aggregation; the experiments do not report sample size, number of repetitions, statistical tests, or query or computational cost.
- Evaluated models
- CLIPViT-B/16CLIPResNet101ALBEFTCLBLIP
- Metrics
- ASR at R@1Black-box Avg.visual grounding performanceB@4METEORROUGE-LCIDErSPICE
Researchers propose a redirect adversarial optimization framework, RAO, which improves the transferability of adversarial attacks to unseen vision-language pretraining (VLP) models by diversifying the adversarial search across vision and text modalities. The paper points out that a key limitation of existing attacks is insufficient exploration of the adversarial search space, making them prone to overfitting the surrogate model and generalizing poorly to unseen models; RAO uses historical optimization trajectories in image attacks to broaden the directional search space and escape suboptimal trajectories, comprehensively explores candidate word substitutions in text attacks, and jointly evaluates their disruption of global and local cross-modal semantic alignment. Experiments and theoretical analysis across multiple benchmarks, multiple VLP models and downstream tasks show that RAO's attack transferability is better than existing state-of-the-art methods. Code is open-sourced at https://github.com/RAO-Attack/RAO。
Related events and news
1 events · 0 news mentions
- This event's paper
面向可迁移视觉-语言攻击的重定向对抗优化(RAO)
Paper analysis
What problem does this paper attempt to solve?
To address insufficient exploration of the search space in VLP transfer attacks, the authors propose the RAO framework, which jointly attacks images and text.
The core question is how to improve the cross-model transferability of adversarial examples against vision-language pretraining (VLP) models when the target model is unknown.
- Research setting: VLP models are used for image-text retrieval, image captioning, and visual question answering, but subtle image or text perturbations may disrupt cross-modal alignment. The authors believe that studying such vulnerabilities helps assess model robustness and the reliability of practical applications.
- Existing shortcomings: The authors state that image attacks often rely on current gradients or restricted-region exploration along trajectories; text attacks often select replacements by word importance and mainly evaluate with global image-text similarity, which may miss effective directions and local semantic correspondences.
- Core observation: The authors attribute the common limitation of both types of methods to insufficient exploration of the adversarial search space, which they believe may cause overfitting to the surrogate model and limit generalization to unseen models.
- Threat model: The paper adopts a transfer-based black-box attack setting.
- Goal: Generate adversarial images and/or text that disrupt the cross-modal alignment of an unseen target model.
- Knowledge: The target model and its downstream tasks are unknown; the attacker can access a surrogate VLP model.
- Capabilities and constraints: Image perturbations are limited by an L∞ budget, and text allows at most a specified number of word replacements.
- Victim systems: VLP models such as CLIP, ALBEF, TCL, and BLIP and their retrieval, grounding, and captioning tasks.
- Proposed method: The paper proposes Reorienting Adversarial Optimization (RAO); on the image side, it uses historical optimization trajectories to expand direction search, and on the text side, it systematically explores candidate replacements and evaluates them jointly with global and local cross-modal semantics.
What related research exists?
Related work is divided into VLP models, image transfer attacks and text replacement attacks, and RAO uses eight types of attacks as baselines.
VLP models
- CLIP, ALBEF, BLIP, TCL: respectively adopt dual-encoder alignment, pre-fusion alignment, caption generation and filtering, and cross-modal, intra-modal and local–global contrastive learning. The paper uses their differences in architecture and training objectives to illustrate the representativeness of cross-model transfer research.
Image and cross-modal transfer attacks
- SGA, SimVLA: SGA uses set-level guidance of augmented image-text pairs to strengthen cross-modal optimization; SimVLA simplifies the attack pipeline to achieve transfer attacks.
- Low-level feature and semantic-guided methods: the related work discussed in the paper uses low-level features to disrupt fine-grained alignment, or enlarges the difference between adversarial and original representations and guides them toward mismatched semantics; SADCA and HQA-VLAttack are the corresponding baselines in the experiments.
- DRA, SA-AET: respectively use clean images and intermediate adversarial examples to increase perturbation diversity along the optimization trajectory. The authors argue that existing image methods may still rely on current gradients or restricted trajectory regions, missing effective update directions.
Text adversarial attacks
- Word-importance replacement methods: related methods such as Co-Attack, SGA and VLATTACK estimate the influence of words on predictions, then replace them with semantically similar candidates; subsequent methods add cross-modal semantics to guide candidate generation and replacement evaluation.
- Problems noted by the authors: word importance does not necessarily equal replacement effectiveness, and global image-text similarity may also ignore fine-grained correspondence between visual regions and textual concepts; these criticisms target the existing strategies summarized in the paper.
Baselines and benchmarks
- Comparison methods: Co-Attack, SGA, VLATTACK, DRA, SA-AET, SimVLA, HQA-VLAttack and SADCA.
- Evaluation data: Flickr30K for image-text retrieval, RefCOCO+ for visual grounding, MSCOCO for image captioning.
The authors position RAO as a unified search extension across image and text modalities: rather than only increasing input or trajectory diversity, it uses historical gradients to construct and select directions, while letting text replacement accept joint evaluation of global and local semantics.
How does the paper address this problem?
RAO first optimizes the text, then jointly attacks both modalities using historical gradient direction exploration and global-local replacement evaluation.
RAO (Reorienting Adversarial Optimization) adopts a two-stage pipeline: first generate adversarial text, then fix the original and adversarial text and optimize a transferable image perturbation. Algorithm 1 in Appendix A gives the complete pipeline.
Problem setting and image attack objective
- The surrogate model contains an image encoder fI and a text encoder fT; for a batch of image-text pairs, adversarial images and/or text are generated, with the goal of disrupting the cross-modal alignment of an unseen target model.
- The image objective simultaneously reduces the similarity of the adversarial image to the matched original text and the matched adversarial text, and increases its similarity to mismatched adversarial text; similarity uses cosine similarity.
- The core objective is written as JI(Δ)=1/B∑i𝔼a∼ A[−∑j∈ Pis(fI(a(x′i)),fT(tj))−∑j∈ Pis(fI(a(x′i)),fT(t′j))+∑j∈ Nis(fI(a(x′i)),fT(t′j))], where Pi and Ni are the matched and mismatched text indices respectively.
- The augmentation set includes random crop and resize, Gaussian noise, random translation, scale padding, and resizing back to the original size after scaling, used to make the perturbation adapt to different visual variations.
Image side: gradient direction exploration and update
- At each step, the current input gradient is saved and combined with historical gradients into a set; combination coefficients are sampled from a uniform distribution and a standard normal distribution respectively and normalized, constructing two search spaces. The authors state that Gaussian coefficients allow positive and negative contributions, enabling directions to go beyond the convex hull of historical gradients.
- Each search space generates D candidate directions, forming candidate perturbations with the exploration step size; only candidates whose attack objective is better than the baseline without image perturbation are kept.
- The current perturbation and the selected candidate perturbations together form the set of update positions; a sign-gradient update is computed at each position, summed, and clipped to the image budget; the current gradient continues to be kept as historical information for later steps.
Text side: global–local candidate evaluation
- Counter-Fitting neighbor candidates are generated at different word positions, requiring cosine similarity greater than a threshold; pretrained BERT is used only when the original word is not in that vocabulary, and the number of replacements is constrained by the text budget.
- K local regions are extracted from each image, using five crop regions at the four corners and the center, each covering 50% of the image width and height.
- The text selection objective is LGL(x,t̃)=−S(x,t̃)−1/K∑k=1KS(rk,t̃), i.e., simultaneously enlarging the semantic difference between the candidate text and the global image and each local region, and taking the candidate that maximizes this value.
Theoretical analysis and implementation parameters
- The authors borrow the Shapley interaction metric of Wang et al. [36] and propose Proposition 1: under simplified conditions, the expected interaction of RAO perturbation units is no greater than that of a general multi-step attack; Appendix B gives the proof.
- The simplified analysis omits sign, gradient normalization, clipping, candidate selection and aggregation of multi-position updates, and adopts a uniform-average model of historical perturbations, so it is not a direct equivalent analysis of the full algorithm.
- The experimental implementation uses PGD, T=10, image budget ϵI=2/255, text budget ϵT=1, λ=α=0.5/255, batch size 16; D=5 per search space, and text candidate threshold τ=0.4.
What experiments did the paper conduct?
The experiments cover three tasks; RAO has the highest black-box average in all four retrieval groups, but on the captioning task two metrics are not the best.
Experimental setup
- Models: CLIPViT-B/16, CLIPResNet101, ALBEF and TCL are all used as both source and target models; the image captioning experiment uses the retrieval version of ALBEF as the source model and the captioning version of BLIP as the target model.
- Data and tasks: Flickr30K for image-text retrieval, RefCOCO+ for visual grounding, MSCOCO for image captioning; the paper does not report the number of experimental samples for each dataset.
- Baselines: Co-Attack, SGA, VLATTACK, DRA, SA-AET, SimVLA, HQA-VLAttack and SADCA.
- Retrieval metrics: TR is image-to-text, IR is text-to-image, and R@1 ASR is reported; Black-box Avg. is the mean of six ASR values across the three target models other than the source model and the two retrieval directions.
- Cross-task metrics: grounding reports Val, TestA, TestB and the unweighted average; captioning reports B@4, METEOR, ROUGE-L, CIDEr, SPICE and the unnormalized arithmetic mean of the five, where lower scores indicate stronger attack transfer.
- Protocol information: retrieval defines ASR as the proportion of incorrect predictions, while other tasks compare performance before and after the attack; no LLM judging is used, and the paper does not report the number of repetitions, variance or statistical significance tests.
Main results
According to Table I, the RAO results on Flickr30K image-text retrieval are as follows; white-box ASR is the source model's own result, and the black-box average excludes that column.
Swipe horizontally to read the table
Source model White-box TR/IR ASR Black-box Avg. Strongest baseline and its black-box Avg. CLIPViT-B/16 100.00% / 99.97% 56.16% HQA-VLAttack, 47.84% CLIPResNet101 100.00% / 100.00% 47.48% HQA-VLAttack, 42.71% ALBEF 99.69% / 99.77% 71.05% HQA-VLAttack, 65.01% TCL 100.00% / 99.90% 68.53% SimVLA, 61.18% - The authors report that RAO achieves the highest black-box average under all four source model settings, and is highest on all 24 black-box TR and IR metrics; it is higher than the strongest baseline in each setting by 8.32, 4.77, 6.04 and 7.36 percentage points respectively.
- Different source–target combinations vary considerably: RAO samples generated from CLIPViT-B/16 achieve TR/IR of 83.52%/84.67% when transferred to CLIPResNet101, and 32.01%/49.91% when transferred to ALBEF.
- Transfer is asymmetric: ALBEF to CLIPViT-B/16 is 62.33%/69.88%, while the reverse is 32.01%/49.91%; the authors accordingly emphasize evaluation across multiple source–target configurations.
Cross-task transfer
- Visual grounding: in Table II, the source model is the retrieval version of ALBEF and the target is the grounding version of ALBEF; RAO achieves 42.42, 49.29 and 34.59 on Val, TestA and TestB respectively, with an average of 42.10, the lowest among all attacks, while the clean baseline average is 56.87.
- Image captioning: in Table III, the source model is the retrieval version of ALBEF and the target is BLIP; RAO's B@4, METEOR and ROUGE-L are 30.83, 26.50 and 53.90 respectively, the five-metric average is 47.06, and the clean baseline average is 57.33.
- Exception: SADCA's CIDEr and SPICE are 104.30 and 19.27 respectively, lower than RAO's 104.58 and 19.47; the main text states the gaps are 0.28 and 0.20 points respectively, so RAO is not the lowest on all five captioning metrics.
Component ablation and visualization
- Full and modality ablation: Figure 2 uses CLIPViT-B/16 as the surrogate and TCL as the black-box target; full RAO achieves TR/IR ASR of 33.83%/53.00%; removing the text attack gives 13.91%/18.71%, and removing the image attack gives 20.13%/40.38%.
- Image components: on the image-attack-only path, further removing GDE gives 11.59%/16.60%, and further removing DA gives 5.27%/9.12%; the authors use this to support the contributions of historical direction exploration and data augmentation.
- Text local guidance: after removing the image attack, further removing LG changes TR/IR from 20.13%/40.38% to 18.65%/38.74%; the authors state this supports evaluating candidates with local visual information.
- Visualization: Figure 3 gives Grad-CAM examples from CLIPViT-B/16 to ALBEF, and the authors state that the attack shifts the target model's attention; Figure 4 shows Top-5 retrieval examples, and the caption states that in image-text retrieval the paired text ranks 2nd, and in text-image retrieval the paired image is not in the top five.
Other ablations and analyses
- The image budget is fixed at ϵI=2/255 and the text budget at ϵT=1; the paper does not report a budget sweep.
- The theoretical comparison targets simplified RAO versus a general multi-step attack, and no experimental measurements of the interaction quantity are given.
- The paper does not report the number of queries, runtime, GPU memory or computational cost relative to baselines.
What are some points that can be further explored?
The authors explicitly raise only the invisibility of text attacks as a future direction; the theoretical simplification and evaluation protocol also have clear boundaries.
Limitations and future directions noted by the authors
- Text perceptibility: Section IV-D states that, compared with image perturbations, text adversarial attacks are more easily perceived due to the discrete nature of language tokens; improving the invisibility of text attacks remains a future research direction.
- Theoretical simplification: Appendix B explains that, for ease of analysis, the proof omits sign, gradient normalization and clipping, and further omits candidate selection and gradient aggregation across multiple perturbation positions, adopting a uniform-average model of historical perturbations.
Scope of experimental coverage
- The target models tested are CLIPViT-B/16, CLIPResNet101, ALBEF, TCL and BLIP; the first four also serve as source models for retrieval attacks, and BLIP is used as the image captioning target.
- Data and tasks include Flickr30K image-text retrieval, RefCOCO+ visual grounding and MSCOCO image captioning; cross-task attacks all transfer from the retrieval version of ALBEF.
- The main retrieval table reports R@1 ASR, and the main text explicitly states that only R@1 is reported due to space; results at other retrieval cutoffs are not reported.
- The paper does not report the number of samples per experiment, number of repetitions, confidence intervals or statistical significance tests, nor the number of attack queries or computational cost.
- The experiments do not set up defenses or adaptive attack evaluations; the experimental section only compares attack transfer and task performance degradation on undefended target models.
Summarize the main content of the paper
RAO improves transferability through historical direction exploration and global–local text replacement evaluation, and ranks first in the black-box average of all four retrieval groups.
RAO is a transfer-based black-box attack framework for VLP models, studying how to use an accessible surrogate model to generate transferable adversarial images and text when the target model and downstream task are unknown.
- Problem: the authors argue that existing image attacks explore optimization directions insufficiently, while text attacks rely excessively on word importance and global similarity, and both may limit cross-model transfer.
- Method: on the text side, candidate replacements are generated at multiple word positions and selected jointly by semantic differences with the global image and five local regions; on the image side, current and historical gradients are combined to construct and select candidate directions in two search spaces, uniform and Gaussian, and then multi-position updates are aggregated.
- Retrieval results: in Table I, with CLIPViT-B/16, CLIPResNet101, ALBEF and TCL as source models, RAO's black-box average ASR is 56.16%, 47.48%, 71.05% and 68.53% respectively, all higher than the corresponding strongest baseline.
- Cross-task results: on RefCOCO+, RAO reduces ALBEF's grounding performance to a three-split average of 42.10; on MSCOCO, BLIP's captioning five-metric average is 47.06, but SADCA has lower values on CIDEr and SPICE.
- Ablation evidence: in Figure 2, full RAO from CLIPViT-B/16 to TCL achieves TR/IR ASR of 33.83%/53.00%; removing the text or image attack both cause decreases, and further removing GDE, DA or LG also causes respective decreases.
- Conclusion and boundaries: the authors state that the results support the role of more thorough search for transfer attacks, and use a simplified theoretical analysis to explain perturbation interactions; the invisibility of text attacks remains to be studied, and the full algorithm and the simplified theoretical model are not the same.