Compact Tensor Pooling for Visual Question Answering

Yang Shi, Tommaso Furlanello, Anima AnandkumararXiv 2017

This paper introduces a novel approach to combining visual and textual information for Visual Question Answering (VQA) by preserving the spatial structure of images during the fusion process. By generalizing "sketching" techniques to multi-dimensional tensors, the authors propose a more context-aware alternative to the popular Multimodal Compact Bilinear (MCB) pooling.

TL;DR

The authors propose Multimodal Compact Tensor Pooling (MCT), which uses a new MD-sketch algorithm to fuse image and text features while preserving global spatial context. Unlike previous methods that process image pixels independently, MCT uses higher-order Fast Fourier Transforms (FFT) to efficiently capture spatial relationships, leading to more sophisticated VQA architectures.

What Problem Does This Paper Address?

In VQA, a model must integrate two very different types of data: 3D image feature maps (height $\times$ width $\times$ channels) and 1D textual vectors. A powerful way to combine them is through bilinear pooling, which computes the outer product of every pair of features. However, the resulting dimension is astronomically high ($O(n^2)$), making it computationally infeasible for deep learning.

To solve this, researchers previously introduced Multimodal Compact Bilinear (MCB) pooling, which uses a technique called "count-sketch" to approximate the outer product in a much smaller space. The catch? MCB treats every spatial location (pixel) in the image independently. It ignores the fact that a pixel's meaning often depends on its neighbors—the "spatial context." This paper aims to bridge that gap by creating a pooling method that respects the natural 3D structure of image tensors.

Methods

The authors introduce two primary technical innovations:

  1. MD-sketch (Multi-Dimensional Sketch): This is a generalization of the standard count-sketch algorithm. While standard sketching works on vectors, MD-sketch uses multiple random hash and sign functions to project a high-order tensor (like an image feature map) into a lower-dimensional tensor while preserving its spatial properties.
  2. Multimodal Compact Tensor Pooling (MCT): Instead of performing a simple element-wise product, MCT computes the convolution of the MD-sketch of the image and the count-sketch of the text. By the convolution theorem, this is done efficiently in the frequency domain using a 3D FFT for the image and a 1D FFT for the text.
Figure 1: MCT in VQA

The authors also propose two new VQA architectures:

  • Standard MCT: Replaces MCB in the attention mechanism and final feature fusion layers.
  • LSTM-MCT: A sequential model that applies MCT at every time-step of the question processing. This allows the model to "glimpse" the image word-by-word as it reads the question.
Figure 4: Our architecture for VQA with LSTM-MCT, MCT-group is as per in Figure 2

Datasets

The paper evaluates its approach using the VQA dataset v1.0, a standard benchmark for testing a model's ability to answer open-ended questions about images.

Key Insights and Ideas

  • Spatial Context is Key: The core "aha" moment is that visual representations at specific grid locations are not isolated. By using MCT, the model can "see" surrounding information during the fusion step, preserving the natural tensor structure of the image.
  • Efficiency via the Frequency Domain: By performing the fusion in the frequency domain (using FFT), the authors avoid the prohibitive memory and compute costs of explicit high-dimensional outer products.
  • Redundancy of IFFT: The authors argue that the Inverse FFT (IFFT) step typically used in these methods might be redundant for VQA, as the FFT itself preserves the necessary correlations between data streams. Skipping it can accelerate training.
  • Local Tensor Pooling: To further refine the process, they suggest "MCT-groups," which divide the image tensor into sub-tensors and apply MCT locally, balancing global context with local detail.

Key Results

The paper focuses on the theoretical and architectural formulation of MCT as a superior alternative to MCB. While the provided text highlights that MCB previously held the state-of-the-art on VQA v1.0, the authors position MCT as a direct improvement that addresses MCB's primary weakness: the loss of spatial context.

Specifically, the LSTM-MCT model (Figure 4) represents a shift toward more dynamic, incremental reasoning, where the multimodal representation is built up word-by-word rather than in a single "bottleneck" fusion step.

Limitations and Future Work

Not discussed in the provided paper sections. Typical limitations for such methods often include the increased complexity of implementing 3D FFTs compared to simpler pooling methods and the potential sensitivity to the choice of random hash functions in the sketching process.

Summary updated

BibTeX
@misc{shi2017compact,
  author = {Yang Shi and Tommaso Furlanello and Anima Anandkumar},
  title = {{Compact Tensor Pooling for Visual Question Answering}},
  year = {2017},
  eprint = {1706.06706},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.06706},
}
Figure