Contrast and Classify: Training Robust VQA Models

Yash Kant, Abhinav Moudgil, Dhruv Batra, Devi Parikh, Harsh Agrawal
10/13/2020
cs.CV
contrastive-ssl

Official code: yashkant/concat-vqa (19 stars, Python, last commit 2021-07-27).

Abstract

Recent Visual Question Answering (VQA) models have shown impressive performance on the VQA benchmark but remain sensitive to small linguistic variations in input questions. Existing approaches address this by augmenting the dataset with question paraphrases from visual question generation models or adversarial perturbations.

Show full abstract

These approaches use the combined data to learn an answer classifier by minimizing the standard cross-entropy loss. To more effectively leverage augmented data, we build on the recent success in contrastive learning. We propose a novel training paradigm (ConClaT) that optimizes both cross-entropy and contrastive losses. The contrastive loss encourages representations to be robust to linguistic variations in questions while the cross-entropy loss preserves the discriminative power of representations for answer prediction. We find that optimizing both losses -- either alternately or jointly -- is key to effective training. On the VQA-Rephrasings benchmark, which measures the VQA model's answer consistency across human paraphrases of a question, ConClaT improves Consensus Score by 1 .63% over an improved baseline. In addition, on the standard VQA 2.0 benchmark, we improve the VQA accuracy by 0.78% overall. We also show that ConClaT is agnostic to the type of data-augmentation strategy used.

View on arXivView PDF

Code Implementations(1)

Official code for the paper "Contrast and Classify: Training Robust VQA Models" published at ICCV, 2021

192PythonOct 16, 20205 years ago
concatrobustvqa

Similar Papers

Cite this paper

@article{kant2020contrast,
  title  = {Contrast and Classify: Training Robust VQA Models},
  author = {Yash Kant and Abhinav Moudgil and Dhruv Batra and Devi Parikh and Harsh Agrawal},
  year   = {2020},
  eprint = {2010.06087},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.06087}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.06087.svg)](https://codeofpaper.com/paper/2010.06087)

Discussion