Gaussian-Based Pooling for Convolutional Neural Networks

Takumi KobayashiNeurIPS 2019

Introduction

In standard Convolutional Neural Networks (CNNs), pooling layers are essential for downsizing feature maps, making the network more computationally efficient, and providing robustness to small shifts in the input. However, most existing methods—including the ubiquitous max-pooling and average-pooling—are "convex hull" models. This means the output of the pooling operation is mathematically restricted to be a weighted combination of the input values.

While this restriction makes intuitive sense for image downscaling (where a smaller image should visually resemble the larger original), it is not necessarily optimal for feature extraction in deep learning. High-performance recognition relies on extracting the most useful and discriminative features, not just approximating the input. By limiting the output strictly to the range of the input values, traditional pooling methods may be leaving significant performance on the table.

This paper introduces a novel approach to local pooling by moving away from these traditional convex hull methods. By modeling local neuron activations using Gaussian statistics and a trainable probabilistic framework, the authors enable more flexible feature extraction that consistently outperforms standard pooling techniques across various architectures and datasets.

Proposed Methods: Gaussian-Based Pooling

The core idea behind Gaussian-Based Pooling is to treat the local neighborhood of neurons as a statistical distribution rather than just a discrete set of numbers. This allows the network to "boost" signals in areas of high contrast or activity by exceeding the maximum value of the input neighborhood.

Comparison of traditional convex pooling with the proposed Half-Gaussian and iSP-Gaussian pooling methods.

The authors propose several variations of this concept:

  1. Gaussian Statistics: Instead of simply picking the maximum value, the method calculates the local mean ($\mu_X$) and standard deviation ($\sigma_X$). The combination of the mean (general signal) and standard deviation (local contrast/texture) provides a richer statistical summary of a local region.
  2. Half-Gaussian Pooling: A simpler version where the output is forced to be at or above the mean. This prevents "min-pooling" behavior, which the authors demonstrate is generally detrimental to performance.
  3. Inverse Softplus-Gaussian (iSP-Gaussian) Pooling: A more advanced, flexible probabilistic model that uses an "inverse softplus" transformation to map the pooling operation.
  4. Trainable Parameters via GFGP: The pooling operation is dynamic. A Global Feature Guided Pooling (GFGP) module—essentially a small sub-network—looks at the entire feature map to adaptively estimate the pooling parameters ($\mu_0$ and $\sigma_0$) for each channel.
  5. Stochastic Training: During training, the pooling incorporates randomized stochasticity, acting as a form of regularization similar to Dropout. At inference time, it becomes deterministic to ensure stable and reproducible results.
Formulations and parameter settings for the various pooling methods during training and inference.

Key Results

The authors evaluated their method on two primary benchmarks: CIFAR-100 (for ablation studies and initial testing) and ImageNet (ILSVRC2012). They tested these datasets across several popular architectures, including a custom 13-layer Net, MobileNet, ResNet-50, and ResNeXt-50.

The Gaussian-based methods consistently outperformed standard pooling and other sophisticated methods like Mixed, Gated, and Detail-Preserving Pooling (DPP):

  • ResNet-50 on ImageNet: iSP-Gaussian pooling achieved a Top-1 error of 21.37%, a significant improvement over standard max-pooling (22.99%) and the previous state-of-the-art GFGP (21.79%).
  • MobileNet: On the more compact MobileNet architecture, iSP-Gaussian reduced the Top-1 error from 29.23% (max-pooling) to 27.33%.
  • Robustness: The method showed gains across the board, suggesting that Gaussian-based pooling is a "drop-in" improvement that works regardless of the specific network depth or width.

Limitations and Future Work

While highly effective, the approach has a few considerations. First is hyperparameter sensitivity: choosing the right distribution is crucial. For example, a log-Gaussian model led to unstable training, whereas the iSP-Gaussian was stable. Second, there is a minor computational overhead. While calculating mean and variance is efficient, the GFGP module adds a small number of parameters and FLOPs, which might be a trade-off in extremely resource-constrained environments like microcontrollers.

Finally, while the current work focuses on local pooling, future research could explore how these Gaussian statistics might be adapted to revolutionize the Global Average Pooling (GAP) layers used at the end of most modern classifiers.

Summary updated

BibTeX
@inproceedings{kobayashi2019gaussian,
  author = {Takumi Kobayashi},
  title = {{Gaussian-Based Pooling for Convolutional Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure