Information Entropy Based Feature Pooling for Convolutional Neural Networks

Weitao Wan, Jiansheng Chen, Tianpeng Li, Yiqing Huang, Jingqi Tian, Cheng Yu, Youze XueICCV 2019

Abstract

In convolutional neural networks (CNNs), we propose to estimate the importance of a feature vector at a spatial location in the feature maps by the network's uncertainty on its class prediction, which can be quantified using the information entropy. Based on this idea, we propose the entropy-based feature weighting method for semantics-aware feature pooling which can be readily integrated into various CNN architectures for both training and inference. We demonstrate that such a location-adaptive feature weighting mechanism helps the network to concentrate on semantically important image regions, leading to improvements in the large-scale classification and weakly-supervised semantic segmentation tasks. Furthermore, the generated feature weights can be utilized in visual tasks such as weakly-supervised object localization. We conduct extensive experiments on different datasets and CNN architectures, outperforming recently proposed pooling methods and attention mechanisms in ImageNet classification as well as achieving state-of-the-arts in weakly-supervised semantic segmentation on PASCAL VOC 2012 dataset.

Introduction: The Limitations of Global Average Pooling

Most modern Convolutional Neural Networks (CNNs) rely on Global Average Pooling (GAP) to aggregate spatial information before the final classification layer. While GAP is computationally efficient and reduces overfitting, it suffers from a fundamental limitation: it treats all spatial locations equally. In a typical image, only a small portion of pixels belong to the object of interest, while the rest constitute background or distractors. By averaging across the entire feature map, GAP allows noisy background information to dilute the signal from semantically important regions.

To address this, researchers from Tsinghua University have introduced Entropy Pooling (EP). This method leverages the network's own internal uncertainty to distinguish between foreground objects and background noise, effectively creating a self-attention mechanism without the need for complex auxiliary modules.

Methodology: Uncertainty as a Proxy for Importance

The core intuition behind Entropy Pooling is that a well-trained network will be more certain about the classification of a feature vector if it belongs to a target object than if it belongs to the background. This certainty can be quantified using Shannon entropy.

Concept of Entropy Weighting: Feature vectors in object regions (green) yield low entropy/high confidence, while background regions (purple) yield high entropy/low confidence.

Entropy Pooling (EP)

In the EP framework, each spatial location $(i, j)$ in the final convolutional feature maps is treated as an individual classification task. The network computes a probability distribution for each location. The importance of that location is then determined by its entropy. A location with low entropy indicates high confidence (likely an object), while high entropy indicates confusion (likely background).

The weighting coefficient is calculated inversely to the entropy: confident regions are amplified, while confused regions are silenced. Crucially, the basic EP layer adds zero parameters during inference, as it utilizes the weights of the existing final classifier.

Branched Entropy Weighting (BEW)

To extend this benefit to intermediate layers where a final classifier does not yet exist, the authors propose Branched Entropy Weighting (BEW). This involves adding small, auxiliary 1x1 convolutional branches that act as local classifiers to generate entropy-based weights for internal feature maps.

The Entropy Pooling architecture: Feature maps are processed through a localized classification step to generate entropy weights, which then scale the original features before spatial averaging.

Experimental Results

The proposed method was evaluated across several challenging benchmarks, demonstrating its versatility and effectiveness.

Image Classification and Scene Recognition

On the ImageNet (ILSVRC 2012) dataset, integrating EP and BEW into a VGG-16 backbone led to a significant reduction in error rates, with top-5 error decreasing by 3.29% and top-1 error by 1.53%. Similar gains were observed on the Places365 dataset, where the model's ability to focus on relevant semantic regions helped navigate complex scene backgrounds, outperforming the standard VGG-16 baseline by 1.40% in top-1 accuracy.

Weakly-Supervised Semantic Segmentation

One of the most impressive applications of EP is in weakly-supervised semantic segmentation on the PASCAL VOC 2012 dataset. Traditional methods often rely on Class Activation Maps (CAMs) to find "seed" regions for objects. However, CAMs tend to focus only on the most discriminative parts of an object. Entropy-based weights provide much denser and more accurate seeds, allowing the model to achieve a state-of-the-art mean Intersection over Union (mIoU) of 62.7% on the test set.

Object Localization

The method also excels in weakly-supervised object localization. By using entropy weights to highlight object regions, the researchers reduced the top-1 localization error on ImageNet to 50.15%, surpassing standard CAM-based approaches.

Conclusion and Future Work

Entropy Pooling offers a parameter-efficient, "intrinsic" attention mechanism that allows CNNs to focus on semantically relevant regions by listening to their own confidence levels. While highly effective, the authors note that the method can sometimes struggle with small, spatially disconnected object parts. Future research may focus on hierarchical entropy weighting or applying these principles to temporal data in video processing tasks. Overall, EP represents a significant step forward in making feature aggregation in CNNs more "aware" of image semantics.

Summary updated

BibTeX
@inproceedings{wan2019information,
  author = {Weitao Wan and Jiansheng Chen and Tianpeng Li and Yiqing Huang and Jingqi Tian and Cheng Yu and Youze Xue},
  title = {{Information Entropy Based Feature Pooling for Convolutional Neural Networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  url = {https://openreview.net/forum?id=kqY0cpd5wjv},
}

Loading related content...

Figure