Universal pooling - A new pooling method for convolutional neural networks

Junhyuk Hyun, Hongje Seong, Euntai Kim

TL;DR

This paper introduces "universal pooling," a novel pooling method for Convolutional Neural Networks (CNNs) that dynamically learns optimal pooling strategies for different tasks and datasets. By framing pooling as a channel-wise local spatial attention mechanism, universal pooling generalizes existing methods like max and average pooling, demonstrating improved performance on benchmark datasets.

What Problem Does This Paper Address?

Pooling layers are a fundamental component of Convolutional Neural Networks (CNNs), primarily used to reduce the spatial dimensions of feature maps, thereby decreasing computational cost and increasing the receptive field of neurons. While standard pooling methods like max pooling and average pooling are efficient and widely adopted, they employ fixed, hand-crafted functions. This inflexibility means they may not be optimal for all tasks or datasets, potentially limiting the network's performance. The paper addresses this by proposing a pooling method that can adapt its function based on the input data, aiming to capture more relevant features and improve recognition accuracy.

Methods

The core innovation is "universal pooling," which treats pooling as a form of channel-wise local spatial attention. Instead of using a fixed function, universal pooling learns "pooling weights" that determine how features within a pooling block are combined. This learning process is integrated into the network and optimized via backpropagation, similar to how attention mechanisms learn to weight important features.

The universal pooling module consists of two main blocks:

  • Block B1: This block computes the pooling weights. It uses a CNN module (e.g., convolutional, fully connected layers) to process the input feature map for a specific channel. The output is then passed through a softmax function to ensure the weights within a pooling block sum to one, satisfying a normalization constraint. This block is designed to learn different pooling functions for different channels.
  • Block B2: This block performs the actual pooling operation by applying the learned weights to the input feature map.

The paper demonstrates that universal pooling can encompass existing methods as special cases:

  • Average Pooling: Achieved when all pooling weights are equal and constant across all inputs.
  • Max Pooling: Achieved when Block B1 is trained as an identity mapping, effectively selecting the maximum value.
  • Stride Pooling: Achieved when Block B1 outputs unity at the top-left position and zeros elsewhere within the pooling block.

Datasets

The proposed method was evaluated on two benchmark datasets:

  • CIFAR10: A dataset of 60,000 small (32x32) RGB images across 10 object classes.
  • Places2: A dataset containing 365 place classes, with 1.8 million training images and 50,000 validation images.

The experiments utilized two pre-trained backbone networks: VGG19 and ResNet18.

Key Insights and Ideas

  • Pooling as Learned Attention: The most significant insight is reframing pooling not as a fixed operation, but as a learnable, channel-wise local spatial attention mechanism. This allows the network to adaptively focus on the most informative parts of feature maps.
  • Generalization of Existing Methods: Demonstrating that universal pooling can naturally subsume max, average, and stride pooling is crucial. It suggests that a single, adaptive framework can replace multiple specialized methods, simplifying network design and potentially improving performance.
  • Dynamic Weighting for Improved Representation: By learning weights, the method can dynamically adjust how features are aggregated based on the input, leading to richer and more discriminative representations compared to fixed pooling strategies.
  • Flexibility in Pooling Functions: The experiments reveal that universal pooling can learn diverse pooling functions, including those that are average-like, max-like, or even more complex "flexible" and "fixed" patterns, depending on the task's needs.

Key Results

  • CIFAR10: The proposed universal pooling method achieved state-of-the-art or near state-of-the-art results on CIFAR10 when integrated with VGG19 and ResNet18 architectures. For instance, with VGG, the best universal pooling variant (P4) achieved 93.418% accuracy, outperforming standard pooling methods and prior combinations. With ResNet18, universal pooling variants also showed superior performance, with P2 achieving 95.231% accuracy.
  • Places2: On the Places2 dataset, the proposed pooling method (using a 2 FC local pooling and Conv global pooling configuration) achieved 54.693% top-1 accuracy and 84.781% top-5 accuracy, outperforming standard stride and average pooling methods.
  • Qualitative Analysis: Visualizations of learned pooling weights showed that universal pooling can indeed learn different pooling strategies. In some channels, weights resembled average pooling; in others, they were more akin to max pooling or exhibited unique "flexible" and "fixed" patterns, adapting to the specific channel's information.

Limitations and Future Work

  • Computational Overhead: While the paper doesn't explicitly detail the computational cost increase, learning pooling weights introduces additional parameters and computations compared to fixed pooling methods. The authors mention that the structure of the entire network dictates optimal performance, implying that careful integration is needed.
  • Hyperparameter Tuning: The performance of universal pooling, like any deep learning method, likely depends on hyperparameter tuning, particularly for the Block B1 network and the training process.
  • Future Work: The authors suggest that by appropriately training the universal pooling module, performance can be improved to an "unprecedented level." Further exploration into more complex network architectures for Block B1 and investigating its application to other domains (e.g., object detection, segmentation) would be valuable future directions. The paper also hints at the potential for universal pooling to improve CNN performance significantly by replacing existing pooling layers.

Summary updated

BibTeX
@article{hyun2021universal,
  author = {Junhyuk Hyun and Hongje Seong and Euntai Kim},
  title = {{Universal pooling - A new pooling method for convolutional neural networks}},
  journal = {Expert Systems with Applications},
  year = {2021},
  doi = {10.1016/j.eswa.2021.115084},
}
Figure