Classifier-Agnostic Saliency Map Extraction

Konrad Zolna, Krzysztof J. Geras, Kyunghyun Cho

Abstract

Traditional saliency maps are often tied to the specific biases of a single classifier, potentially overlooking critical features. This paper introduces Classifier-Agnostic Saliency Mapping (CASM), a framework designed to identify all pixels in an image that any potential classifier might find useful. By training a masking network against a distribution of classifiers, CASM produces more comprehensive and accurate object localization maps.

Problem Statement: The Limits of Classifier-Dependent Saliency

Saliency maps serve as heatmaps highlighting image regions critical for a model's classification decision. However, these maps are typically "classifier-dependent," calculated using gradients from a specific pre-trained model (e.g., ResNet).

The authors argue that this approach is inherently narrow. If a model learns to recognize a bird solely by its beak, the resulting saliency map will ignore the wings and feathers, even though they constitute valid evidence. In high-stakes domains like medical imaging, such omissions can be dangerous. The goal of CASM is to extract saliency maps that capture all "classifiable" information, independent of a single model's quirks.

Methodology: Adversarial Masking

The CASM framework treats saliency extraction as a game between two networks, analogous to a Generative Adversarial Network (GAN):

  1. The Masker ($m$): An encoder-decoder network that generates a mask. Its objective is to obscure pixels such that an "unknown" classifier is unable to identify the object.
  2. The Classifier ($f$): A standard classification network (e.g., ResNet-50) that attempts to correctly identify the image despite the masking.

To achieve "classifier-agnosticism," the masker is trained against a distribution of classifiers rather than a single fixed model. The authors approximate this distribution by using the history of the classifier during its own training process. By forcing the masker to confuse the classifier at various learning stages, it learns to hide features that are generally useful across different model states.

Key Insights: The Inpainting Test

A core insight of this work is the use of an inpainting test to validate the masks. If the masker successfully identifies all relevant information, removing those pixels and applying an inpainting algorithm should result in a natural-looking background with no trace of the original object.

Visualizing the masking and inpainting process to identify classifiable information.

This method is "weakly supervised," requiring only image-level labels (e.g., "dog") rather than expensive, manually-drawn bounding boxes. Despite this lower level of supervision, it effectively highlights entire objects rather than just the most discriminative features.

Evaluation and Results

The researchers evaluated CASM using ImageNet and the ILSVRC’14 Localization Task to measure how well saliency maps align with real-world object boundaries.

Comparison of localization error rates across different saliency mapping methods.

As shown in the results table, CASM achieved a 36.1% localization error rate, a significant improvement over the classifier-dependent baseline of 53.5%. CASM also outperformed other popular weakly-supervised methods such as Grad (41.7%) and Masking model (36.7%), approaching the performance of a fully supervised VGG Net (34.3%).

Discussion and Future Work

While CASM represents a significant leap in saliency map robustness, it introduces higher computational complexity due to the simultaneous training of the masker and classifier. Additionally, like many adversarial setups, it may be sensitive to hyperparameter tuning. Future research could explore applying this agnostic approach to specialized domains like medical imaging, where comprehensive feature identification is paramount.

Summary updated

BibTeX
@inproceedings{zolna2019classifier,
  author = {Konrad Zolna and Krzysztof J. Geras and Kyunghyun Cho},
  title = {{Classifier-Agnostic Saliency Map Extraction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.330110087},
}
Figure