Statistically Motivated Second Order Pooling

Kaicheng Yu, Mathieu Salzmann

Abstract

This paper introduces Statistically-Motivated Second-Order (SMSO) pooling, a parametric compression strategy for deep networks designed to capture rich covariance information without the prohibitive memory overhead of traditional bilinear pooling. By mathematically transforming second-order features to follow a Gaussian distribution, the proposed method achieves state-of-the-art accuracy on recognition tasks with up to 90% fewer parameters than existing compression methods.

Introduction

In computer vision, "second-order" representations, such as covariance matrices, excel at capturing textures and fine-grained details compared to standard "first-order" representations like Global Average Pooling. However, they suffer from a significant "dimensionality explosion." For instance, a convolutional layer with 512 channels results in a bilinear pooling representation of over 260,000 dimensions ($512 \times 512$). This high dimensionality leads to memory-intensive networks that are slow to train and prone to overfitting. While compact versions of bilinear pooling exist, they are often non-parametric or restricted to specific types of classifiers, limiting their general utility.

Methodology

The authors propose a pooling strategy based on a rigorous statistical pipeline to address these challenges.

The SMSO Pooling pipeline and the corresponding statistical distributions at each stage.

The process involves several key steps:

  1. Covariance Estimation: The pipeline starts by observing that covariance matrices follow a Wishart distribution ($W_c$).
  2. Parametric Vectorization (PV): Instead of simple flattening, a learnable weight matrix $W$ is introduced. Features are computed as $z_j = w_j^T Y w_j$, where $Y$ is the covariance matrix, compressing the data into a vector of size $p$.
  3. Statistical Transformation: The output of the PV layer follows a Chi-squared ($\chi^2$) distribution. Since standard deep learning classifiers are optimized for Gaussian (Normal) distributions, a square-root transformation is applied. Based on the Wilson-Hilferty transformation, this allows the variable to converge toward a Gaussian distribution.
  4. Learnable Scaling: Finally, learnable scale ($\gamma$) and bias ($\beta$) parameters are added—similar to Batch Normalization—to ensure the network can optimize the final representation for maximum discriminative power.

This entire process is mathematically equivalent to applying a $1 \times 1$ convolution followed by global $\ell_2$ pooling, making it highly compatible with modern deep learning frameworks.

Experimental Results

The model was evaluated on four benchmark datasets: DTD (textures), MINC-2500 (materials), MIT-Indoor (scenes), and CUB-2011 (fine-grained bird classification).

SMSO consistently outperformed both standard first-order models (VGG-D, ResNet-50) and uncompressed bilinear models (BP, DeepO2P). Notably, on the CUB-2011 dataset, SMSO achieved 85.01% accuracy with only 0.057M parameters in the pooling/classification layers. In comparison, standard Bilinear Pooling (BP) achieved 81.02% with 3.015M parameters.

Discussion: The Gaussian Advantage

A core insight of this work is that first-order networks succeed partly because their features naturally follow Gaussian distributions due to the Central Limit Theorem. By forcing second-order features into a Gaussian shape, they become more compatible with standard classification layers.

Visualization of feature distributions: (a) Input features, (b) PV features following a Chi-squared distribution, (c) Transformed PV features showing Gaussian convergence, and (d) standard VGG-D representations for comparison.

The use of trainable weights allows the network to learn which second-order correlations are most relevant to the task, providing stability and faster convergence compared to complex matrix operations like eigenvalue decomposition.

Conclusion

SMSO pooling provides a lean and efficient way to leverage second-order information in CNNs. While the current framework focuses on second-order data and assumes Gaussian optimality, it sets a strong foundation for future exploration into higher-order information and alternative non-Gaussian transformations.

Summary updated

BibTeX
@inproceedings{yu2018statistically,
  author = {Kaicheng Yu and Mathieu Salzmann},
  title = {{Statistically Motivated Second Order Pooling}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01234-2\_37},
}
Figure