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

A Transformer-based Cross-modal Fusion Model with Adversarial Training for VQA Challenge 2021

Ke-Han Lu, Bo-Han Fang, Kuan-Yu ChenarXiv 2021

Abstract

Researchers from NTUST Taiwan developed a Transformer-based Cross-modal Fusion (TCF) model for the 2021 VQA Challenge. By combining the powerful VinVL architecture with adversarial training on text embeddings and clever model-averaging techniques, the system achieved a competitive 76.72% accuracy on the VQAv2 test-std dataset. This paper details the architecture, the application of adversarial training to improve robustness, and the implementation strategies that led to state-of-the-art performance.

Introduction

Visual Question Answering (VQA) is a multimodal challenge requiring a system to understand natural language questions, analyze visual scenes, and perform reasoning to provide correct answers. While Large Language Models (LLMs) and object detectors have advanced significantly, effectively fusing these two modalities remains difficult. The authors identify two main hurdles: the complexity of representing cross-modal relationships and the brittleness of deep learning models, where small input changes can lead to incorrect predictions. This work addresses these issues through a robust fusion architecture and training strategies designed to improve generalization.

Methodology

The proposed Transformer-based Cross-modal Fusion (TCF) model is built upon the VinVL (Vision-Language) framework. It processes a triplet input: the Question ($Q$), detected Object tags ($O$), and Image region features ($I$). These are concatenated into a single BERT-style sequence and passed through a series of Transformer layers. The model was initialized using weights from Oscar+, pre-trained on large-scale image-text pairs.

To enhance robustness, the authors implemented two key strategies:

  1. Adversarial Training (AT): Noise (perturbations) is injected into the text-modality embeddings during training. Using a minimax optimization strategy, the model minimizes prediction loss while an adversary tries to find noise that maximizes it. Jensen-Shannon Divergence (JSD) is used to ensure prediction consistency even under disturbance.
  2. Model Averaging: To stabilize the notoriously unstable adversarial training process, the authors average parameters from the last several training iterations. This reduces bias and provides a more significant performance boost to the adversarial model than to the vanilla version.

The final system employs a majority-voting Ensemble across three different models to maximize accuracy.

Results and Key Insights

The TCF model showed steady improvement as each technique was integrated. While the baseline TCF achieved 75.76% on the test-std set, the addition of adversarial training and model averaging raised this to 76.32%. The final ensemble reached 76.72%, surpassing the original VinVL baseline of 76.12%.

Performance comparison of TCF variants and the final ensemble on VQAv2 test-dev and test-std sets.

Key insights from the study include:

  • Text-Only Perturbations: Focusing adversarial noise on text features alone significantly improved the overall multimodal system's performance.
  • Stability via Averaging: Model averaging was crucial to stabilizing the gains from adversarial training, which can otherwise be volatile.
  • Object Tags as a Bridge: Including textual labels of image objects alongside raw features helped the model better align visual and textual information.

Conclusion

The TCF model highlights the value of robustness-focused training in VQA. While adversarial training was limited to the text modality in this study, it proved essential for achieving competitive results in the 2021 VQA Challenge. Future work may involve exploring cross-modal adversarial perturbations that specifically target the interaction between image and text features.

Summary updated

BibTeX
@misc{lu2021transformer,
  author = {Ke-Han Lu and Bo-Han Fang and Kuan-Yu Chen},
  title = {{A Transformer-based Cross-modal Fusion Model with Adversarial Training for VQA Challenge 2021}},
  year = {2021},
  eprint = {2106.13033},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.13033},
}
Figure