Abstract
Traditional pooling operations like max and average pooling are fixed mathematical functions used to reduce spatial resolution in Convolutional Neural Networks (CNNs). This paper introduces a novel approach by replacing these static operations with tiny, learnable Multi-Layer Perceptrons (MLPs). This "MLP Pooling" allows the network to learn the optimal downsampling (or upsampling) strategy for a given task. The authors demonstrate that this method achieves performance comparable to strided convolutions but with a fraction of the parameters, leading to improved accuracy on image classification and semantic segmentation benchmarks.
Introduction
In modern Convolutional Neural Networks (CNNs), pooling operations are ubiquitous. They reduce spatial resolution, lowering computational costs and providing a degree of translation invariance. However, standard operations like Max Pooling or Average Pooling are static—they do not adapt to the data or the specific task. While alternatives like strided convolutions offer learnability, they often introduce a massive number of parameters. This paper proposes a fully learnable, computationally efficient alternative capable of both downscaling and upscaling.
Methodology
The core innovation lies in viewing standard pooling as a restricted case of a perceptron. For instance, a $2 \times 2$ average pooling is essentially a neuron with four fixed weights of $0.25$ and a zero bias. By relaxing these constraints, the authors develop several learnable variants:
- Perceptron Pooling: The pooling window is replaced with a single neuron where weights and bias are learnable parameters.
- MLP Pooling: To capture complex spatial relationships, a small multi-layer network processes the input window. The data is restructured so multiple perceptrons process the window, and their outputs are arranged into a new grid before a final output layer.
- Learnable Upscaling: By reversing the restructuring logic, perceptrons can perform upscaling, offering a learnable alternative to transposed convolutions commonly used in segmentation tasks.
Initialization and Stability
Because tiny networks can be sensitive to starting conditions, the authors suggest initializing weights to mimic average pooling (e.g., $0.25$ for a $2 \times 2$ window) to ensure stable gradients at the start of training. Additionally, they found that reducing the learning rate for pooling parameters by a factor of 10 was necessary to maintain training stability.
Experimental Setup
The proposed methods were evaluated across three standard computer vision benchmarks using various network architectures:
- CIFAR-10: Used for initial classification testing.
- CIFAR-100: Used to compare against state-of-the-art learnable pooling methods.
- Pascal VOC2012: A semantic segmentation task used to test learnable upscaling and downscaling within a U-Net architecture.
Key Insights
- The Importance of Bias: Simply adding a learnable bias term to a pooling operation significantly improves performance over standard average pooling.
- Spatial Invariance: The authors found that "spatial variant" pooling (different parameters for different image regions) performed worse than applying the same learnable pooling across the entire feature map, confirming that the "sliding window" prior is beneficial.
- Activation Functions: Interestingly, using ReLU activations in these tiny pooling networks often decreased accuracy, suggesting that restricting outputs to positive values limits the learnable function space.
- Parameter Efficiency: While strided convolutions are common for downsampling, they are parameter-heavy. Perceptron pooling achieved similar accuracy to a strided convolution (87.71% vs 87.70% on CIFAR-10) while using only 10 additional parameters compared to over 80,000.
Results
- Classification: On CIFAR-100, an MLP pooling layer with 16 hidden neurons (NN-16-1) achieved 77.14% accuracy, nearly matching the best strided convolution (77.53%) while using 194 parameters versus 184,608.
- Segmentation: Replacing standard pooling and upscaling in a U-Net for the Pascal VOC2012 task boosted pixel accuracy from 85.15% to 87.62%.
Conclusion
Replacing static pooling with learnable MLPs provides a significant performance boost with negligible parameter overhead. While training requires careful initialization and learning rate adjustment, the flexibility of learnable pooling allows networks to better preserve relevant spatial information for both classification and high-resolution reconstruction tasks.
Summary updated