NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MinMaxCAM: Improving object coverage for CAM-basedWeakly Supervised Object Localization

Kaili Wang, José Oramas M., Tinne Tuytelaars

Abstract

Weakly Supervised Object Localization (WSOL) aims to identify object locations using only image-level labels. While Class Activation Mapping (CAM) is the standard approach, it frequently suffers from either under-estimation (focusing only on discriminative parts) or over-estimation (activating on background pixels). We introduce MinMaxCAM, a lightweight two-stage framework that addresses these issues through two novel regularization techniques: Common Region Regularization (CRR) and Full Region Regularization (FRR). By freezing the backbone and optimizing only the final linear layer, MinMaxCAM achieves state-of-the-art performance on ImageNet, CUB-200-2011, and OpenImages benchmarks without the need for complex auxiliary networks.

Introduction

The primary challenge in WSOL is the "Goldilocks" problem of object coverage. Standard CAM models, trained for classification, often focus on the most discriminative features—such as the head of a bird or the wheels of a car—rather than the entire body. This results in "under-estimation" of the object's true size. Conversely, when researchers attempt to increase the resolution of these maps by modifying convolutional strides, the activation often "bleeds" into the background, leading to "over-estimation." MinMaxCAM addresses these dual failures by introducing a two-stage regularization strategy that balances coverage.

Methodology: The Two-Stage Approach

MinMaxCAM employs a two-stage training pipeline. In Stage I, a standard backbone (e.g., VGG16, ResNet50, or MobileNetV2) is trained for classification. In Stage II, the backbone weights are frozen, and only the final fully connected (fc) layer is updated using a combination of cross-entropy loss and two regularization terms:

  1. Common Region Regularization (CRR - The "Min"): This term targets over-estimation. It encourages the model to find consistent representations across different images of the same class. Since the foreground object is the common element while backgrounds vary, CRR effectively suppresses background noise.
  2. Full Region Regularization (FRR - The "Max"): This term targets under-estimation. It minimizes the difference between the feature vector of the original image and a feature vector extracted from the image masked by its own localization map, forcing the map to expand until it covers the full object.
The MinMaxCAM architecture optimizes the final linear layer of a frozen backbone using CRR and FRR losses to achieve balanced object coverage.

Experimental Results

Evaluation on major benchmarks demonstrates the effectiveness of MinMaxCAM. On the CUB-200-2011 dataset, the method improved localization accuracy (MaxBoxAcc) by 12.8 percentage points for VGG16 and 10.5 percentage points for MobileNetV2 compared to standard CAM. On ImageNet, consistent gains of 2.5 to 4.5 percentage points were observed across different backbones.

Qualitative analysis reveals that MinMaxCAM produces tighter and more complete bounding boxes. It successfully ignores noisy background elements like water reflections or branches that typically confuse standard CAM models, effectively finding the "just right" coverage for the target object.

Qualitative comparison showing how MinMaxCAM (Ours) provides superior object coverage compared to VGG-CAM and MobileNet-CAM baselines across various datasets.

Conclusion

MinMaxCAM provides a simple yet powerful framework for improving CAM-based localization. By focusing optimization on the final linear layer and utilizing frozen feature representations, it avoids the instability and computational cost of adversarial erasing or multi-head architectures. While it relies on background variability for CRR, its efficiency and performance make it a robust alternative to more complex methods. Future work may address limitations regarding highly correlated backgrounds or strong natural artifacts that can still lead to localization failures.

Summary updated

BibTeX
@inproceedings{wang2021minmaxcam,
  author = {Kaili Wang and José Oramas M. and Tinne Tuytelaars},
  title = {{MinMaxCAM: Improving object coverage for CAM-basedWeakly Supervised Object Localization}},
  booktitle = {BMVC},
  year = {2021},
}
Figure