Detection-Based Intermediate Supervision for Visual Question Answering

Yuhang Liu, Daowan Peng, Wei Wei, Yuanyuan Fu, Wenfeng Xie, Dangyang Chen

Introduction

Compositional Visual Question Answering (VQA) requires models to perform multi-hop reasoning, such as identifying an object and then determining its relationship to others in a scene. While Neural Module Networks (NMNs) decompose these questions into sub-tasks, they often suffer from "sketchy" intermediate supervision. Traditional methods rely on Intersection over Union (IoU) heatmaps, which introduce noise when bounding boxes overlap—like a napkin on a desk—leading models to achieve the correct answer through flawed reasoning paths.

The DIS Framework

To address these challenges, researchers developed Detection-based Intermediate Supervision (DIS). This framework treats intermediate reasoning as a generative task rather than a simple coordinate-matching exercise.

Figure 3: Comparison of MMN and DIS supervision. DIS provides precise, generative supervision for all relevant objects, whereas MMN often produces noisy, overlapping signals.

Methodology

The DIS framework utilizes a multi-step process to ensure logical consistency:

  1. Program Generation: A T5-based encoder-decoder parses the question into a structured tree of operations.
  2. Symbolic Graph Reasoning: During training, ground-truth scene graphs identify the exact objects or logical states required for every intermediate step.
  3. Generative Intermediate Supervision: DIS converts intermediate results—such as bounding box coordinates or object attributes—into a unified sequence of tokens. This generative approach avoids the "bounding-box overlap" noise inherent in heatmap methods.
  4. The Decoder: A two-layer Transformer decodes these sequences from the model's internal states, forcing it to represent the correct intermediate objects precisely in its latent space.
Figure 2: DIS applied to relational queries. The model generates sequences representing target objects, ensuring comprehensive supervision across reasoning hops.

Evaluation and Results

The model was evaluated on the GQA and GQA-Sub benchmarks. GQA-Sub is specifically designed to measure reasoning consistency—verifying if a model can answer sub-questions correctly if it gets the main question right.

  • State-of-the-Art Accuracy: DIS achieved 61.31% accuracy on the GQA blind test, outperforming previous modular models.
  • Reasoning Consistency: The most dramatic gains were in consistency. On GQA-Sub, DIS improved the RC(3) metric (consistency across three reasoning hops) from 33.96% to 48.86%, a significant 15% absolute jump over the previous state-of-the-art (MMN).
  • Qualitative Success: Visualizations demonstrate that DIS produces tight, accurate focus on specific objects required for each reasoning step, unlike the "blurry" attention maps of previous models.

Conclusion

DIS demonstrates that treating intermediate supervision as a generative detection task significantly improves both accuracy and logical consistency in VQA. By supervising all relevant objects and utilizing a sequence-based approach, the model learns a more robust alignment between language and vision. While currently dependent on ground-truth scene graphs for training, future iterations could integrate automated scene graph generators to scale this approach to real-world, "in-the-wild" images.

Summary updated

BibTeX
@inproceedings{liu2024detection,
  author = {Yuhang Liu and Daowan Peng and Wei Wei and Yuanyuan Fu and Wenfeng Xie and Dangyang Chen},
  title = {{Detection-Based Intermediate Supervision for Visual Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i12.29315},
}
Figure