Semantic Equivalent Adversarial Data Augmentation for Visual Question Answering

Ruixue Tang, Chao Ma, Wei Emma Zhang, Qi Wu, Xiaokang Yang

Visual Question Answering (VQA) requires models to reason across both visual and textual modalities. While data augmentation is a standard technique in computer vision to improve generalization, it is notoriously difficult to apply to VQA. This paper introduces SEADA (Semantic Equivalent Adversarial Data Augmentation), a novel framework that leverages adversarial attacks and linguistic paraphrasing to create robust training examples without requiring manual re-labeling.

The Challenge of VQA Augmentation

In standard image classification, simple geometric transformations like flipping or rotating an image do not change the label (e.g., a flipped cat is still a cat). However, in VQA, these transformations often invalidate the ground-truth answer. For instance, if a question asks, "Is the car to the left of the tree?", flipping the image changes the correct answer from "Yes" to "No."

Furthermore, VQA models are often "brittle," meaning they rely on spurious correlations or specific phrasing rather than true multi-modal understanding. A slight change in a question's wording can cause a model to flip its answer, even if the semantic meaning remains identical to a human observer.

The SEADA Framework

To address these issues, the authors propose SEADA, which generates "semantically equivalent" augmented data. The method targets both the visual and textual inputs simultaneously.

Overview of the SEADA framework, illustrating visual perturbation and textual paraphrasing.

1. Visual Augmentation via Adversarial Perturbation

Instead of geometric transforms, SEADA uses the Iterative Fast Gradient Sign Method (IFGSM) to add imperceptible noise to image features. This creates "hard" examples that lie near the model's decision boundaries. Because the noise is invisible to humans, the semantic content—and thus the correct answer—remains unchanged.

2. Textual Augmentation via Back-translation

To improve linguistic robustness, the framework generates paraphrases using back-translation. An English question is translated into a pivot language (e.g., French) and then back into English. This process yields a new question that is grammatically distinct but semantically identical to the original.

3. Adversarial Training Scheme

The training process includes a specific "adversarial period" where the model is exposed to four types of augmented pairs: (perturbed image, original question), (original image, paraphrase), (perturbed image, paraphrase), and the original clean data. This multi-modal approach forces the model to learn more cohesive and invariant representations.

Key Insights and Results

The researchers evaluated SEADA on the VQAv2 benchmark, the industry standard for measuring VQA performance while controlling for language bias.

Examples of semantically equivalent questions generated via back-translation for different visual contexts.
  • Performance Gains: SEADA achieved 68.27% accuracy on the VQAv2 test-std set, a 2.6% absolute improvement over the baseline Bottom-Up and Top-Down (BUTD) model.
  • Enhanced Robustness: When subjected to adversarial attacks at test-time, the SEADA-trained model maintained significantly higher accuracy (44.57%) compared to the baseline (30.83%).
  • Data Efficiency: The method proved particularly valuable in low-data regimes. When training on only 20% of the available data, SEADA provided a nearly 2% accuracy boost, suggesting it helps the model extract more information from fewer samples.
  • The Importance of Timing: A critical finding was that adversarial training should not begin immediately. Models benefit from a "warm-up" period on clean data to establish basic concepts before being challenged with adversarial examples.

Conclusion

SEADA demonstrates that adversarial examples, typically viewed as a vulnerability, can be repurposed as a powerful regularization tool. By combining gradient-based visual noise with linguistic paraphrasing, the framework significantly improves both the accuracy and the reliability of VQA systems, moving them closer to true multi-modal reasoning.

Summary updated

BibTeX
@inproceedings{tang2020semantic,
  author = {Ruixue Tang and Chao Ma and Wei Emma Zhang and Qi Wu and Xiaokang Yang},
  title = {{Semantic Equivalent Adversarial Data Augmentation for Visual Question Answering}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58529-7\_26},
}
Figure