LIP: Local Importance-based Pooling

Ziteng Gao, Limin Wang, Gangshan Wu

Standard downsampling techniques in Convolutional Neural Networks (CNNs), such as max pooling or strided convolutions, often discard crucial fine-grained details by relying on rigid, hand-crafted rules. This paper introduces Local Importance-based Pooling (LIP), a learnable downsampling layer that adaptively aggregates features based on their importance. This approach leads to significant performance boosts in image classification and, notably, small object detection.

The Problem with Traditional Downsampling

CNNs rely heavily on spatial downsampling (pooling) layers to reduce memory consumption and expand the receptive field. However, traditional methods are essentially "dumb" spatial reductions:

  • Average pooling assumes all pixels in a window are equally important, which blurs discriminative details.
  • Max pooling assumes the highest activation is always the most important, which can be misled by bright background clutter and creates sparse gradients.
  • Strided convolutions use a fixed-interval sampling grid, which severely hurts the network's shift invariance.

Because these methods fail to adaptively recognize which features actually matter, they often dilute or completely drop the features of tiny objects. The authors address this by designing a pooling layer that automatically learns to preserve the most discriminative details during downsampling.

Methods: Local Aggregation and Normalization (LAN)

The authors propose a unified theoretical framework called Local Aggregation and Normalization (LAN). Under LAN, any pooling operation is viewed as a weighted sum of features in a local window, where the weights represent "local importance."

Comparison of LIP with traditional pooling methods within the Local Aggregation and Normalization (LAN) framework.

Building on this, Local Importance-based Pooling (LIP) learns these importance weights on the fly rather than using hardcoded rules.

Technical Implementation

LIP evaluates the input feature map using a tiny, fully convolutional subnetwork called a Logit Module to output an "importance map." These importance scores are passed through an exponential function to ensure positivity and are then used to compute a locally normalized, weighted average of the features in the sliding window.

The computational flow of the LIP layer and its concise implementation in PyTorch.

To ensure training stability, the authors designed a "Bottleneck" logit module (using 1x1 and 3x3 convolutions) and applied Affine Instance Normalization with an amplified sigmoid function. These LIP layers can seamlessly replace max pooling and strided convolutions in standard architectures like ResNet and DenseNet.

Key Insights and Results

  • Pooling as Local Attention: LIP acts as a localized attention mechanism specifically for downsampling. Visualizations show that LIP naturally learns to focus tightly on foreground objects and ignore background clutter, effectively creating a deformable receptive field.
  • ImageNet Classification: LIP-ResNet-50 achieved 78.19% Top-1 accuracy, outperforming the vanilla ResNet-50 (76.40%). Notably, LIP-ResNet-101 (79.33%) outperformed the much deeper vanilla ResNet-152 (78.49%).
  • Small Object Mastery: On the MS COCO dataset, LIP-ResNet-101 improved small object Average Precision ($AP_s$) by 3.1% over the vanilla baseline. By combining LIP with deformable convolutions, the authors set a new state-of-the-art for small object detection under single-scale testing with 25.4 $AP_s$.

Conclusion

LIP demonstrates that learnable, importance-based downsampling is a powerful alternative to traditional pooling. While it introduces a slight computational overhead, the gains in discriminative power—especially for small objects—make it a compelling choice for modern vision architectures. Future work will explore more efficient logit module designs and adaptive pooling window sizes.

Summary updated

BibTeX
@inproceedings{gao2019lip,
  author = {Ziteng Gao and Limin Wang and Gangshan Wu},
  title = {{LIP: Local Importance-based Pooling}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00345},
}
Figure