Revisiting Bilinear Pooling: A Coding Perspective

Zhi Gao, Yuwei Wu, Xiaoxun Zhang, Jindou Dai, Yunde Jia, Mehrtash Harandi

Abstract

Bilinear Pooling (BiP) is a popular method for feature fusion in deep learning, particularly effective in tasks requiring the modeling of complex interactions between different feature sets. However, BiP suffers from extreme redundancy and poor discriminative power, often failing to produce tight clusters for similar inputs. This paper reinterprets BiP through the lens of sparse coding, identifying its "varying dictionary" as the root cause of its fragility. We propose Factorized Bilinear Coding (FBC), a robust alternative that utilizes a fixed, learned dictionary and low-rank factorization. FBC achieves state-of-the-art performance in image classification and Visual Question Answering (VQA) while significantly reducing parameter counts.

Introduction

In computer vision, Bilinear Pooling has become a standard tool for fusing features by calculating pairwise correlations between all dimensions. Despite its empirical success, it faces two critical challenges:

  1. Extreme Redundancy: The resulting representations are exceptionally high-dimensional (e.g., 262,144 dimensions for two 512-d vectors), with research suggesting less than 5% of these dimensions are informative.
  2. The Burstiness Problem: BiP often fails to create distinct clusters for different classes, leading to high intra-class variance where features from the same category appear "scattered" or "intertwined" in the feature space.

This work aims to provide a unified theoretical framework to understand these issues and introduces a more efficient, discriminative alternative.

Methods: A Coding Perspective

The authors mathematically demonstrate that standard BiP is essentially a "similarity-based coding" scheme. Crucially, they show that BiP uses a dictionary that changes based on the input features. This "varying dictionary" is the primary reason for the fragile and inconsistent nature of bilinear codes.

To address these limitations, the authors propose Factorized Bilinear Coding (FBC), which incorporates three key innovations:

  • Fixed, Learned Dictionary: Instead of an input-dependent dictionary, FBC learns a stable dictionary that captures the global structure of the dataset.
  • Sparse Coding (LASSO): FBC employs sparse coding to ensure the final representation is compact, activating only the most relevant "atoms" in the dictionary.
  • Low-Rank Factorization: To manage the computational complexity of high-dimensional features, each dictionary atom is factorized into two low-rank matrices. This allows for complex fusion without explicitly calculating massive bilinear features.
Architectural comparison between standard Bilinear Pooling (a, b) and the proposed Factorized Bilinear Coding module (c).

Experimental Evaluation

The authors evaluated FBC across several benchmarks for image classification and Visual Question Answering (VQA).

Image Classification

On the MINC-2500 material recognition dataset, FBC achieved 80.2% accuracy, a significant improvement over the standard B-CNN (74.5%) and other compact methods like SMSO (78.0%). Similar gains were observed on the Describing Texture Dataset (DTD), MIT-Indoor, and CUB bird classification datasets.

Visual Question Answering

On the VQA 2.0 benchmark, FBC combined with an attention mechanism reached 65.7% accuracy. Notably, it surpassed the previous state-of-the-art Bilinear Attention Network (BAN) while utilizing a much smaller parameter footprint.

Discriminative Geometry

Visualizations using t-SNE confirm the theoretical advantages of FBC. While BiP creates "confused" distributions with large intra-class distances, FBC generates clean, discriminative clusters, effectively solving the "burstiness" problem.

t-SNE visualizations comparing BiP and FBC on VQA and MINC datasets, demonstrating FBC's superior cluster separation.

Key Insights and Efficiency

A major contribution of this work is the drastic reduction in model complexity. By leveraging low-rank factorization, the spatial complexity of the dictionary is reduced from $O(pq)$ to $O((p+q)r)$. In practical VQA applications, this translates to a 1000x reduction in the classifier's memory footprint—dropping from over 10 billion parameters to just 10 million.

Conclusion

Factorized Bilinear Coding provides a theoretically grounded solution to the redundancy and discriminative issues of standard Bilinear Pooling. While FBC introduces some hyperparameter sensitivity regarding rank and dictionary size, its ability to produce compact, high-performance representations makes it a powerful tool for modern deep learning architectures. Future work may extend this coding perspective to higher-order pooling or integrate it into more diverse neural frameworks.

Summary updated

BibTeX
@inproceedings{gao2020revisiting,
  author = {Zhi Gao and Yuwei Wu and Xiaoxun Zhang and Jindou Dai and Yunde Jia and Mehrtash Harandi},
  title = {{Revisiting Bilinear Pooling: A Coding Perspective}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5811},
}
Figure