[Paper Review] Real Time Image Saliency for Black Box Classifiers
The authors train a fast, model-based masking network that produces single-pass saliency maps for any differentiable image classifier, enabling real-time saliency detection and improved weakly supervised localisation on ImageNet and CIFAR-10.
In this work we develop a fast saliency detection method that can be applied to any differentiable image classifier. We train a masking model to manipulate the scores of the classifier by masking salient parts of the input image. Our model generalises well to unseen images and requires a single forward pass to perform saliency detection, therefore suitable for use in real-time systems. We test our approach on CIFAR-10 and ImageNet datasets and show that the produced saliency maps are easily interpretable, sharp, and free of artifacts. We suggest a new metric for saliency and test our method on the ImageNet object localisation task. We achieve results outperforming other weakly supervised methods.
Motivation & Objective
- Motivate robust, interpretable saliency methods that do not rely on iterative masking.
- Develop a fast, model-based saliency detector applicable to any differentiable classifier.
- Ensure masks are smooth, precise, and do not introduce artifacts, while preserving classifier confidence on salient regions.
- Introduce a new saliency metric aligned with smallest sufficient/destroying region concepts and validate on large-scale datasets.
Proposed method
- Train a masking model (U-Net style with ResNet-50 encoder) to predict saliency masks by minimising a four-term objective (Equation 4).
- Use a generated evidence removal function Phi(X,M)=X⊙M+A⊙(1−M) to control artifacts, with A being either a blurred or random colour/noise image.
- Encode class information via a learned embedding C and localise salient regions through a feature filter applied to high-level ResNet features (Equation 7).
- Obtain the final mask M by combining two-channel outputs with a custom nonlinearity M_s=abs(C_0)/(abs(C_0)+abs(C_1)) and upsampling to input resolution.
- Train with fixed encoder weights, using fake-class supervision periodically to prevent masking the dominant object, and randomising the alternative image A during Phi calls to improve robustness.
Experimental results
Research questions
- RQ1Can a trainable masking model generate accurate, sharp saliency maps in a single forward pass for any differentiable image classifier?
- RQ2How does model-based saliency compare to iterative/gradient-based methods in localisation accuracy and interpretability?
- RQ3What is a suitable metric for evaluating saliency quality that reflects smallest sufficient/destroying regions and is robust to artifacts?
- RQ4Is the approach effective on diverse datasets (ImageNet and CIFAR-10) and across multiple black-box classifiers?
- RQ5Can real-time saliency enable practical applications such as video saliency and weakly supervised localisation?
Key findings
- The masking model achieves real-time saliency with over 100 masks per second on a standard GPU.
- On ImageNet, localisation error is 36.7% for the masking model with ResNet-50 as the black box, outperforming several weakly supervised baselines.
- The method with GoogLeNet as the black box yields 36.9% localisation error, and with AlexNet yields 39.8% (higher due to context needs).
- A new saliency metric s(a,p)=log(â)−log(p) (with â=max(a,0.05)) correlates with saliency interpretability and is lower for better detectors; the masking model achieves a metric of 0.318 vs baselines like Grad (0.451) and Exc (0.415).
- The approach outperforms prior weakly supervised methods for ImageNet localisation and produces sharp, interpretable masks with localisation boxes comparable to ground-truth boxes in some cases.
- On CIFAR-10, a modified lighter architecture with a randomly initialised mask still produces clearly interpretable saliency maps, confirming method generalisation to low-resolution data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.