Supervising the Transfer of Reasoning Patterns in VQA

Corentin Kervadec, Christian Wolf, Grigory Antipov, Moez Baccouche, Madiha Nadri

Abstract

Methods for Visual Question Answering (VQA) are notorious for leveraging dataset biases rather than performing reasoning, hindering generalization. It has been recently shown that better reasoning patterns emerge in attention layers of a state-of-the-art VQA model when they are trained on perfect (oracle) visual inputs. This provides evidence that deep neural networks can learn to reason when training conditions are favorable enough. However, transferring this learned knowledge to deployable models is a challenge, as much of it is lost during the transfer. We propose a method for knowledge transfer based on a regularization term in our loss function, supervising the sequence of required reasoning operations. We provide a theoretical analysis based on PAC-learning, showing that such program prediction can lead to decreased sample complexity under mild hypotheses. We also demonstrate the effectiveness of this approach experimentally on the GQA dataset and show its complementarity to BERT-like self-supervised pre-training.

Introduction

Visual Question Answering (VQA) requires a model to synthesize natural language understanding with visual perception to answer questions about an image. Despite significant progress, many state-of-the-art models rely on "shortcuts"—statistical biases in the training data—rather than genuine logical reasoning. For instance, a model might learn to associate "grass" with "green" without actually inspecting the image.

Recent findings suggest that models can learn robust reasoning patterns when trained on "oracle" data (perfectly labeled objects and attributes). However, this capability often degrades when the model is transferred to real-world, noisy visual inputs. This paper addresses this "knowledge transfer" gap by introducing a method to supervise the reasoning process itself, ensuring that the model maintains its logical integrity even in the presence of visual noise.

Proposed Method: Program Supervision as Regularization

The authors propose a two-stage approach to instill and preserve reasoning capabilities:

  1. Oracle Transfer: A Vision-Language (VL) Transformer is first pre-trained on ground-truth visual data. This phase establishes a "gold standard" for reasoning within the model's parameters.
  2. Program Supervision: To prevent the model from reverting to biased shortcuts during fine-tuning on noisy data, a Program Decoder is introduced. This module predicts the sequence of logical operations (e.g., select, relate) and their corresponding arguments (specific words or image regions).
The proposed architecture with dual-level program supervision.

This program prediction acts as an auxiliary loss function, effectively regularizing the model to "show its work." The supervision is split into a Coarse level (predicting the operation via a GRU) and a Fine level (identifying the specific arguments/objects involved). This decomposition is supported by a theoretical analysis using PAC-learning theory, which demonstrates that supervising individual reasoning steps reduces the model's sample complexity by narrowing the search space for the correct reasoning function.

Experimental Evaluation

The method was evaluated on the GQA dataset, which provides structured "programs" for every question, and the GQA-OOD (Out-Of-Distribution) benchmark, designed specifically to test generalization beyond dataset biases.

Key Results

The inclusion of program supervision led to significant improvements in generalization, particularly on rare question-answer pairs. On the GQA-OOD benchmark, the proposed method outperformed the baseline by a significant margin, jumping from 42.9% to 48.8% accuracy on the "tail" (rare) distribution.

Experimental results on GQA and GQA-OOD benchmarks.

As shown in the results table, the proposed method ("Ours") consistently outperforms baselines across both scratch-trained and LXMERT-augmented configurations. Furthermore, the program decoder achieved an AUC of 97.1% on visual argument prediction, proving that the model was indeed looking at the correct objects to perform its logical steps. When combined with improved visual features (VinVL), the model achieved 63.0% accuracy on GQA, rivaling much larger models while maintaining a significantly smaller parameter footprint.

Insights and Discussion

  • Robustness to Visual Noise: The authors identify "presence shift" (missing detections) and "appearance shift" as major hurdles. Program supervision helps the model ignore these distractions by focusing on the logical structure of the query.
  • Cross-Modal Synergy: The method is most effective when supervision is applied to cross-modal layers, where vision and language features have already interacted. It also shows strong complementarity with self-supervised pre-training, suggesting that while pre-training provides broad knowledge, program supervision provides the necessary "logical glue."

Conclusion

By supervising the transfer of reasoning patterns through program prediction, this work offers a path toward VQA models that are both more accurate and more interpretable. While currently dependent on ground-truth program annotations, future work may explore weaker forms of supervision or self-supervised reasoning discovery to broaden the applicability of this approach.

Summary updated

Abstract

Methods for Visual Question Anwering (VQA) are notorious for leveraging dataset biases rather than performing reasoning, hindering generalization. It has been recently shown that better reasoning patterns emerge in attention layers of a state-of-the-art VQA model when they are trained on perfect (oracle) visual inputs. This provides evidence that deep neural networks can learn to reason when training conditions are favorable enough. However, transferring this learned knowledge to deployable models is a challenge, as much of it is lost during the transfer. We propose a method for knowledge transfer based on a regularization term in our loss function, supervising the sequence of required reasoning operations. We provide a theoretical analysis based on PAC-learning, showing that such program prediction can lead to decreased sample complexity under mild hypotheses. We also demonstrate the effectiveness of this approach experimentally on the GQA dataset and show its complementarity to BERT-like self-supervised pre-training.
BibTeX
@inproceedings{kervadec2021supervising,
  author = {Corentin Kervadec and Christian Wolf and Grigory Antipov and Moez Baccouche and Madiha Nadri},
  title = {{Supervising the Transfer of Reasoning Patterns in VQA}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=kqYiS7HEWfZ},
}

Loading related content...

Figure