# PixelCAM: Pixel Class Activation Mapping for Histology Image Classification and ROI Localization

arXiv: https://arxiv.org/abs/2503.24135 · HTML: https://mlsanity.com/paper/2503.24135/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- Builds on 24 of its 37 references that are in the map.
- First posted on arXiv 31 Mar 2025.

## Builds on (most cited first, 24 of 24)

- [U-Net: Convolutional Networks for Biomedical Image Segmentation](https://mlsanity.com/paper/1505.04597/) (2015)
- [Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization](https://mlsanity.com/paper/1610.02391/) (2016)
- [Learning Deep Features for Discriminative Localization](https://mlsanity.com/paper/1512.04150/) (2015)
- [Attention-based Deep Multiple Instance Learning](https://mlsanity.com/paper/1802.04712/) (2018)
- [Grad-CAM++: Improved Visual Explanations for Deep Convolutional Networks](https://mlsanity.com/paper/1710.11063/) (2017)
- [TS-CAM: Token Semantic Coupled Attention Map for Weakly Supervised Object Localization](https://mlsanity.com/paper/2103.14862/) (2021)
- [Evaluating Weakly Supervised Object Localization Methods Right](https://mlsanity.com/paper/2001.07437/) (2020)
- [Rethinking the Route Towards Weakly Supervised Object Localization](https://mlsanity.com/paper/2002.11359/) (2020)
- [Shallow Feature Matters for Weakly Supervised Object Localization](https://mlsanity.com/paper/2108.00873/) (2021)
- [Deep Weakly-Supervised Learning Methods for Classification and Localization in Histology Images: A Survey](https://mlsanity.com/paper/1909.03354/) (2019)
- [Deep Interpretable Classification and Weakly-Supervised Segmentation of Histology Images via Max-Min Uncertainty](https://mlsanity.com/paper/2011.07221/) (2020)
- [F-CAM: Full Resolution Class Activation Maps via Guided Parametric Upscaling](https://mlsanity.com/paper/2109.07069/) (2021)
- [Generative Prompt Model for Weakly Supervised Object Localization](https://mlsanity.com/paper/2307.09756/) (2023)
- [Discriminative Sampling of Proposals in Self-Supervised Transformers for Weakly Supervised Object Localization](https://mlsanity.com/paper/2209.09209/) (2022)
- [TCAM: Temporal Class Activation Maps for Object Localization in Weakly-Labeled Unconstrained Videos](https://mlsanity.com/paper/2208.14542/) (2022)
- [An interpretable machine learning system for colorectal cancer diagnosis from pathology slides](https://mlsanity.com/paper/2301.02608/) (2023)
- [Source-Free Domain Adaptation of Weakly-Supervised Object Localization Models for Histology](https://mlsanity.com/paper/2404.19113/) (2024)
- [Negative Evidence Matters in Interpretable Histology Image Classification](https://mlsanity.com/paper/2201.02445/) (2022)
- [DiPS: Discriminative Pseudo-Label Sampling with Self-Supervised Transformers for Weakly Supervised Object Localization](https://mlsanity.com/paper/2310.06196/) (2023)
- [CoLo-CAM: Class Activation Mapping for Object Co-Localization in Weakly-Labeled Unconstrained Videos](https://mlsanity.com/paper/2303.09044/) (2023)
- [Spatial-Aware Token for Weakly Supervised Object Localization](https://mlsanity.com/paper/2303.10438/) (2023)
- [Constrained Sampling for Class-Agnostic Weakly Supervised Object Localization](https://mlsanity.com/paper/2209.09195/) (2022)
- [A Realistic Protocol for Evaluation of Weakly Supervised Object Localization](https://mlsanity.com/paper/2404.10034/) (2024)
- [TeD-Loc: Text Distillation for Weakly Supervised Object Localization](https://mlsanity.com/paper/2501.12632/) (2025)

## Built on by (most cited first, 2 of 2)

- [CLIP-IT: CLIP-based Pairing for Histology Images Classification](https://mlsanity.com/paper/2504.16181/) (2025)
- [Selective Prediction Forgetting for Adaptation of Weakly Supervised Localization of Histology Images](https://mlsanity.com/paper/2603.12468/) (2026)

## Abstract (arXiv)

Weakly supervised object localization (WSOL) methods allow training models to classify images and localize ROIs. WSOL only requires low-cost image-class annotations yet provides a visually interpretable classifier. Standard WSOL methods rely on class activation mapping (CAM) methods to produce spatial localization maps according to a single- or two-step strategy. While both strategies have made significant progress, they still face several limitations with histology images. Single-step methods can easily result in under- or over-activation due to the limited visual ROI saliency in histology images and scarce localization cues. They also face the well-known issue of asynchronous convergence between classification and localization tasks. The two-step approach is sub-optimal because it is constrained to a frozen classifier, limiting the capacity for localization. Moreover, these methods also struggle when applied to out-of-distribution (OOD) datasets. In this paper, a multi-task approach for WSOL is introduced for simultaneous training of both tasks to address the asynchronous convergence problem. In particular, localization is performed in the pixel-feature space of an image encoder that is shared with classification. This allows learning discriminant features and accurate delineation of foreground/background regions to support ROI localization and image classification. We propose PixelCAM, a cost-effective foreground/background pixel-wise classifier in the pixel-feature space that allows for spatial object localization. Using partial-cross entropy, PixelCAM is trained using pixel pseudo-labels collected from a pretrained WSOL model. Both image and pixel-wise classifiers are trained simultaneously using standard gradient descent. In addition, our pixel classifier can easily be integrated into CNN- and transformer-based architectures without any modifications.
