Accuracy vs. Complexity: A Trade-off in Visual Question Answering Models

Moshiur R. Farazi, Salman H. Khan, Nick BarnesPattern Recognition 2020 · DOI

Introduction

Visual Question Answering (VQA) is often described as a "Visual Turing Test"—it requires an AI to understand an image, parse a natural language question, and reason across both to provide an answer. To do this, models must perform multimodal fusion: merging high-dimensional visual features with linguistic features into a single "joint embedding."

The field has seen a "complexity arms race," with researchers proposing increasingly intricate bilinear pooling and tensor decomposition methods to capture the interplay between vision and language. However, these models often come with massive computational costs (high FLOPS and memory footprints) for only marginal gains in accuracy. This paper addresses the lack of a unified evaluation of these components, helping researchers understand which parts of the VQA pipeline are actually worth the "computational tax."

Methodology

The authors establish a modular Unified VQA (U-VQA) framework to isolate and test three main "meta-architectures":

The Unified VQA (U-VQA) framework consisting of three meta-architectures: feature extraction, multimodal fusion, and co-attention.
  1. Feature Extraction: They compare various CNN backbones (InceptionV4, ResNet, ResNext, SeNet, PolyNet) and feature types:
  2. Image Level (IL): Global features.
  3. Spatial Grid (SG): Features from a uniform grid.
  4. Bottom-Up (BU): Features from specific object proposals (using a Faster R-CNN detector).
Comparison of visual feature extraction methods: Image Level (IL), Spatial Grid (SG), and Bottom-Up (BU) features.
  1. Multimodal Fusion: They evaluate eight different strategies, ranging from simple Linear Summation and C-MLP to complex bilinear models like MCB, MLB, MFB, MFH, Mutan, and Block.
  2. Attention Mechanisms: They specifically look at Co-attention, where the model learns to focus on specific image regions based on the question.

By mixing and matching these components, they generate "accuracy vs. complexity" curves to find the Pareto frontier of VQA design.

Datasets

The study evaluates models across three benchmark datasets, each serving a different purpose:

  • VQAv2: The standard large-scale benchmark (204K images, 1.1M questions) designed to reduce language bias.
  • VQA-CPv2 (Changing Priors): A more difficult version of VQAv2 where the distribution of answers in the test set differs from the training set, forcing models to rely on visual reasoning rather than "guessing" based on language statistics.
  • TDIUC (Task Directed Image Understanding Challenge): A dataset divided into 12 distinct task types (e.g., counting, color attribution, absurdity), allowing for a more granular analysis of model strengths.

Key Insights and Analysis

  • The "Hidden Gem" of Baselines: The simplistic C-MLP (Concatenation followed by a Multi-Layer Perceptron) performed remarkably well. On the TDIUC dataset, it achieved the second-highest overall accuracy, outperforming several "state-of-the-art" bilinear fusion models while being much lighter.
  • SeNet > ResNet: While ResNet is the industry standard, the authors found that SeNet154 features consistently outperformed ResNet152 across almost all fusion strategies, particularly on datasets with less language bias.
  • The Cost of "Bottom-Up" Features: BU features (focusing on objects) provide the most significant accuracy boost, but they come with a heavy "pre-processing tax" because they require running an object detector on every image.
  • The "Block" Bottleneck: While Block fusion (tensor decomposition) achieves high accuracy, it is computationally expensive in terms of time. In contrast, MFH (Multi-modal Factorized High-order pooling) provides better accuracy with significantly lower CPU/GPU latency.
  • Feature Dimension Alignment: Accuracy improves when the visual feature dimensions are closer in size to the language feature dimensions. If the visual features are too small (like InceptionV4), the model struggles to capture the complex interplay between modalities.

Key Results and Recommendations

The authors provide two primary recommendations based on their findings:

  1. For Low Complexity: Use SeNet features with C-MLP fusion and Co-attention. This setup is lightweight, easy to implement, and offers competitive performance.
  2. For High Accuracy (SOTA): Use Bottom-Up (BU) features with MFH fusion and Co-attention.
  3. Using this "High Accuracy" configuration, the authors achieved a new state-of-the-art on the TDIUC dataset (86.33% accuracy).
  4. They also improved upon the competitive MCAN model on VQAv2, reaching 71.08% on the test-standard set by simply swapping the fusion layer for MFH.
  5. On VQA-CPv2, their proposed combination achieved 48.44%, a significant jump over the previous best of 47.11%.

Limitations and Future Work

While the study is comprehensive, it kept the language feature extractor (LSTM/GRU) fixed to focus on fusion. Integrating modern Transformers (like BERT) could provide further gains but would also shift the complexity profile. Additionally, the best-performing models rely on pre-computed BU features from a specific Faster R-CNN model, making the VQA pipeline dependent on the quality and categories of the underlying object detector. Future work should investigate more "end-to-end" trainable models that avoid expensive, fixed pre-processing steps like object detection.

Summary updated

BibTeX
@article{farazi2020accuracy,
  author = {Moshiur R. Farazi and Salman H. Khan and Nick Barnes},
  title = {{Accuracy vs. Complexity: A Trade-off in Visual Question Answering Models}},
  journal = {Pattern Recognition},
  year = {2020},
  doi = {10.1016/j.patcog.2021.108106},
}
Figure