Improved Bilinear Pooling with CNNs

Tsung-Yu Lin, Subhransu Maji

Abstract

Fine-grained visual recognition requires capturing subtle, localized feature interactions. While Bilinear CNNs (B-CNNs) address this through second-order statistics, they often suffer from computational inefficiency and numerical instability. This paper introduces a matrix-function normalization framework, specifically utilizing the matrix square-root, to enhance B-CNN performance. By employing a numerically stable gradient computation via Lyapunov equations and a fast GPU implementation using Newton iterations, the proposed method achieves significant accuracy gains (2-3%) while remaining computationally efficient.

Introduction

Fine-grained recognition involves distinguishing between highly similar categories, such as specific bird species or aircraft models. Standard CNNs typically rely on first-order statistics, which may overlook the intricate feature correlations necessary for such tasks. Bilinear pooling captures these second-order statistics via the outer product of feature vectors, providing a translationally invariant representation. However, raw bilinear features often exhibit "burstiness," necessitating normalization. Previous attempts using matrix logarithms were computationally prohibitive and unstable on GPUs. This work proposes an improved normalization scheme that is both effective and efficient for end-to-end training.

Methods

The core contribution is the integration of matrix-function normalization layers into the B-CNN architecture.

Matrix-Function Normalization

The authors identify that matrix-level (spectral) normalization, such as the matrix square-root ($A^{1/2}$), is complementary to element-wise normalization ($sgnsqrt(A)$). Applying both addresses different redundancies in the bilinear features.

Architecture of the Improved Bilinear CNN with matrix-function normalization layers.

Numerical Stability and Speed

To enable robust end-to-end training, the authors move away from standard SVD-based gradients, which are unstable when eigenvalues are clustered. Instead, they solve a Lyapunov equation to compute gradients. For inference and forward passes, they implement a modified Denman-Beavers iteration (a Newton's method variant). This allows the GPU to approximate the matrix square-root using efficient matrix multiplications, bypassing the slow SVD process.

Results and Discussion

The "Improved B-CNN" was evaluated on three benchmarks: CUB-200-2011 (Birds), Stanford Cars, and FGVC Aircrafts.

Accuracy and Efficiency Trade-offs

A key finding is that a perfect matrix square-root is not required for high performance. As shown in the table below, just 5 iterations of the Newton method provide accuracy comparable to exact SVD while being significantly faster.

Performance and computational efficiency across different Newton iterations.

The method achieved state-of-the-art results at the time, with accuracies of 85.8% on Birds, 92.0% on Cars, and 88.5% on Aircrafts using a VGG-D backbone. The Newton iteration implementation is approximately 10x faster than SVD on a GPU, reducing the normalization overhead to just ~2ms for a 512x512 matrix.

Conclusion

This work demonstrates that matrix-level normalization significantly boosts second-order CNN architectures for fine-grained tasks. By addressing numerical stability with Lyapunov equations and computational speed with Newton iterations, the authors provide a practical and powerful tool for high-dimensional feature representation. Future work may explore unrolling these iterations to further adapt the network to approximation errors.

Summary updated

BibTeX
@inproceedings{lin2017improved,
  author = {Tsung-Yu Lin and Subhransu Maji},
  title = {{Improved Bilinear Pooling with CNNs}},
  booktitle = {BMVC},
  year = {2017},
  url = {https://openreview.net/forum?id=ofZQMFViFWb},
}
Figure