Skip to main content
QUICK REVIEW

[Paper Review] Global Weighted Average Pooling Bridges Pixel-level Localization and Image-level Classification

Suo Qiu|arXiv (Cornell University)|Sep 21, 2018
Industrial Vision Systems and Defect DetectionEngineering4 references24 citations
TL;DR

This paper proposes Global Weighted Average Pooling (GWAP) to enable simultaneous pixel-level localization and image-level classification using only image-level labels. By learning class-agnostic and class-specific weights for feature maps, GWAP improves localization accuracy over traditional global max/average pooling, achieving 54.99% top-1 localization error on ILSVRC and boosting mAP by 1.1% on PASCAL VOC when combined with R-FCN under weakly supervised detection.

ABSTRACT

In this work, we first tackle the problem of simultaneous pixel-level localization and image-level classification with only image-level labels for fully convolutional network training. We investigate the global pooling method which plays a vital role in this task. Classical global max pooling and average pooling methods are hard to indicate the precise regions of objects. Therefore, we revisit the global weighted average pooling (GWAP) method for this task and propose the class-agnostic GWAP module and the class-specific GWAP module in this paper. We evaluate the classification and pixel-level localization ability on the ILSVRC benchmark dataset. Experimental results show that the proposed GWAP module can better capture the regions of the foreground objects. We further explore the knowledge transfer between the image classification task and the region-based object detection task. We propose a multi-task framework that combines our class-specific GWAP module with R-FCN. The framework is trained with few ground truth bounding boxes and large-scale image-level labels. We evaluate this framework on PASCAL VOC dataset. Experimental results show that this framework can use the data with only image-level labels to improve the generalization of the object detection model.

Motivation & Objective

  • Address the high annotation cost of pixel-level localization and object detection by leveraging only image-level labels.
  • Overcome the limitations of global max pooling (GMP) and global average pooling (GAP), which fail to precisely localize objects due to hardwired aggregation strategies.
  • Develop a learnable global pooling mechanism that naturally produces pixel-level localization maps without bounding box annotations.
  • Enable knowledge transfer from image classification to region-based detection by integrating GWAP into a multi-task framework with R-FCN.
  • Demonstrate that large-scale image-level labels can significantly improve detection performance even when only a small fraction of images have bounding box annotations.

Proposed method

  • Propose a class-agnostic GWAP module that learns global weights for feature maps to compute a weighted average, emphasizing discriminative regions.
  • Introduce a class-specific GWAP module that generates per-class attention maps, enhancing localization precision for individual object categories.
  • Train fully convolutional networks with only image-level labels using a multiple instance learning (MIL) framework, where the final prediction is derived from pooled features.
  • Use a pixel-level prediction head to generate attention weights for GWAP, which are then used to produce class activation maps (CAMs) for localization.
  • Integrate the class-specific GWAP module into the R-FCN architecture to jointly train for image classification and object detection in a multi-task learning setup.
  • Apply multi-scale inference by averaging attention maps from multiple input resolutions to improve localization robustness and accuracy.

Experimental results

Research questions

  • RQ1Can global weighted average pooling (GWAP) outperform global max pooling (GMP) and global average pooling (GAP) in weakly supervised pixel-level localization?
  • RQ2Can GWAP learn meaningful, discriminative attention maps that highlight precise object regions without any bounding box annotations?
  • RQ3Does integrating GWAP into a detection framework (e.g., R-FCN) improve generalization when only a small subset of training images have bounding box annotations?
  • RQ4Can the proposed method effectively transfer knowledge from image-level classification to region-based object detection in a weakly supervised setting?
  • RQ5How does multi-scale inference affect the localization accuracy of GWAP-based models?

Key findings

  • The proposed GoogLeNet-GWAP model achieves a top-1 localization error of 54.99% on the ILSVRC validation set, outperforming GoogLeNet-GAP and approaching the performance of the fully supervised GoogLeNet.
  • GoogLeNet-GWAP improves top-1 accuracy by 3.2 percentage points and top-5 accuracy by 1.9 percentage points over GoogLeNet-GAP, demonstrating superior feature aggregation.
  • Using multi-scale input (224, 448, 672), the localization error is reduced by 0.9% compared to single-scale inference, showing improved spatial precision.
  • On PASCAL VOC 2007, the R-FCN + GWAP framework achieves 63.17% mAP when trained with only 10% of images having bounding boxes, outperforming R-FCN + GAP (62.32%) and R-FCN (61.05%).
  • Visualizations confirm that GWAP generates more complete and accurate object localization maps than GAP, capturing full object shapes and contours.
  • The combination of GWAP with GAP in a multi-task setting yields marginal gains, suggesting complementary benefits between attention mechanisms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.