CREAM: Weakly Supervised Object Localization via Class RE-Activation Mapping

Jilan Xu, Junlin Hou, Yuejie Zhang, Rui Feng, Rui-Wei Zhao, Tao Zhang, Xuequan Lu, Shang Gao

Introduction: The Incomplete Localization Problem

Weakly Supervised Object Localization (WSOL) aims to identify the spatial extent of an object using only image-level labels. Most current approaches rely on Class Activation Mapping (CAM), which identifies discriminative regions by analyzing the contribution of pixels to a classification decision. However, CAM often suffers from "incomplete localization," where only the most discriminative parts (e.g., a bird's head) are highlighted, while the rest of the object is ignored.

The authors identify that this occurs because activation values for less discriminative foreground parts are statistically "mixed up" with background noise. Simple thresholding fails to separate these regions effectively, leading to fragmented or partial bounding boxes.

Comparison of CAM and CREAM activations. CAM shows a significant overlap (mixup) between foreground and background activations at low values, whereas CREAM's re-activation separates them into distinct clusters.

The CREAM Framework

To address these limitations, the authors propose CREAM (Class RE-Activation Mapping), which reformulates localization as a pixel-clustering problem using a Gaussian Mixture Model (GMM).

1. Context Embedding Learning

During training, the model learns class-specific context embeddings—centroids representing the foreground and background of each class. These are updated via a momentum preservation strategy, ensuring stable representations that capture the general appearance of objects and their typical backgrounds.

2. EM-based Re-Activation

At inference, CREAM treats localization as a parameter estimation problem. It employs an unsupervised Expectation-Maximization (EM) algorithm to iteratively assign pixels to either the foreground or background cluster based on their feature similarity to the learned centroids. This process "re-activates" the entire object body, moving beyond the sparse signals provided by standard CAM.

The CREAM architecture, illustrating the training stage for context embeddings and the inference stage using EM-based re-activation and map calibration.

3. Map Calibration and Regression

The final localization map is a calibrated combination of the original CAM and the re-activated map. Furthermore, the high-quality bounding boxes generated by CREAM can serve as pseudo-labels to train a dedicated regression network (CREAM-Reg), further refining localization accuracy.

Key Results and Insights

CREAM demonstrates significant performance gains across major benchmarks:

  • CUB-200-2011: Achieved a massive 8.6% improvement in MaxBoxAccV2 over vanilla CAM.
  • ILSVRC (ImageNet): Set new records for Top-1 and Top-5 localization accuracy, outperforming previous state-of-the-art methods like PSOL.
  • Efficiency: The iterative EM process is highly efficient, adding only ~4.3ms to inference time per image.

The core insight of CREAM is that framing localization as "which pixels look like the foreground?" rather than "which pixels helped the classifier?" allows the model to capture the integral extent of objects. This approach is "plug-and-play," meaning it can be integrated into existing WSOL pipelines to provide an immediate performance boost.

Conclusion

CREAM effectively solves the incomplete localization problem by rethinking WSOL through the lens of feature clustering. By separating foreground activations from background noise via EM-based re-activation, it consistently identifies full object extents. While challenges remain in handling complex visual artifacts like reflections, CREAM represents a major step forward in weakly supervised computer vision.

Summary updated

BibTeX
@inproceedings{xu2022cream,
  author = {Jilan Xu and Junlin Hou and Yuejie Zhang and Rui Feng and Rui-Wei Zhao and Tao Zhang and Xuequan Lu and Shang Gao},
  title = {{CREAM: Weakly Supervised Object Localization via Class RE-Activation Mapping}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure