NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

VQAttack: Transferable Adversarial Attacks on Visual Question Answering via Pre-trained Models

Ziyi Yin, Muchao Ye, Tianrong Zhang, Jiaqi Wang, Han Liu, Jinghui Chen, Ting Wang, Fenglong Ma

Introduction

Modern Visual Question Answering (VQA) systems typically follow a "pre-training and fine-tuning" paradigm, where models are first trained on massive image-text datasets and then specialized for specific tasks. While this approach has yielded high accuracy, it introduces a significant security vulnerability. VQAttack, presented at AAAI-24, demonstrates that this shared foundation can be exploited to generate highly transferable adversarial attacks that fool black-box models without requiring knowledge of their internal architectures.

The Adversarial Challenge

Attacking VQA systems involves two primary hurdles:

  1. Transferability: Generating attacks on a known source model that successfully deceive an unknown black-box victim model.
  2. Joint Modality: Simultaneously perturbing continuous image pixels and discrete text tokens to create a cohesive adversarial input.

Methodology: The VQAttack Framework

VQAttack is an iterative framework designed to generate adversarial perturbations for both images and text. It consists of two core components:

LLM-Enhanced Image Attack

Unlike standard attacks that focus solely on feature similarity, VQAttack utilizes a Large Language Model (LLM) to generate "masked answer" prompts. By optimizing a Masked Answer Anti-Recovery loss, the framework perturbs the image to specifically prevent the VQA model from correctly inferring the missing information.

Cross-modal Joint Attack

To handle the discrete nature of text, VQAttack employs a heuristic trigger to update text perturbations strategically. It combines gradient-based estimation in the word embedding space with BERT-based synonym substitution, ensuring the question remains semantically coherent while becoming deceptive.

The VQAttack framework architecture, illustrating the LLM-enhanced image attack and cross-modal joint attack modules.

Experimental Evaluation

The researchers evaluated VQAttack on two major benchmarks: VQAv2 and TextVQA, testing against five popular pre-trained models including ViLT, TCL, ALBEF, VLMO-Base, and VLMO-Large.

Key Results

The effectiveness of the attack is measured by the Attack Success Rate (ASR). VQAttack consistently outperformed existing baselines like Co-Attack. For instance, when attacking ALBEF using TCL as a source model on VQAv2, VQAttack achieved an ASR of 58.42%, a significant improvement over previous methods. The attacks remained potent even when the source and victim models had different architectures.

Comparison of Attack Success Rates (ASR) across VQAv2 and Text-VQA datasets, showing VQAttack's superior performance over baselines.

Discussion and Conclusion

The success of VQAttack highlights that the "pre-training & fine-tuning" paradigm creates a shared feature space that attackers can exploit. By targeting foundational multimodal representations, adversarial examples become highly transferable across different model architectures. Future work must focus on developing robust defense strategies, such as adversarial training and improved multimodal alignment, to secure these widely used AI pipelines.

Summary updated

BibTeX
@inproceedings{yin2024vqattack,
  author = {Ziyi Yin and Muchao Ye and Tianrong Zhang and Jiaqi Wang and Han Liu and Jinghui Chen and Ting Wang and Fenglong Ma},
  title = {{VQAttack: Transferable Adversarial Attacks on Visual Question Answering via Pre-trained Models}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i7.28499},
}
Figure