Why are Saliency Maps Noisy? Cause of and Solution to Noisy Saliency Maps

Beomsu Kim, Junghoon Seo, SeungHyun Jeon, Jamyoung Koo, Jeongyeol Choe, Taegyun Jeon

TL;DR

Saliency maps are notoriously noisy because standard neural networks fail to filter out irrelevant background features during forward propagation, causing noise to accumulate exponentially during backpropagation. This paper introduces Rectified Gradient (RectGrad), a novel attribution method that removes this noise by applying layer-wise thresholding based on feature importance scores during the backward pass.

What Problem Does This Paper Address?

Saliency maps—which compute the gradient of a model's output score with respect to the input image—are a foundational tool for interpreting deep neural network (DNN) decisions. Ideally, they highlight the exact features a model uses to make a prediction. However, vanilla saliency maps are notoriously noisy, often highlighting random background pixels rather than the object of interest.

Prior work attributed this noisiness to gradient saturation or local discontinuities. The authors challenge these unproven assumptions, arguing that designing solutions based on guesswork leads to flawed interpretability tools. Instead, they seek to rigorously identify the root cause of noisy saliency maps and propose a principled, mathematically sound solution to fix it.

Methods

The authors propose a new hypothesis: noise occurs because standard ReLU-based DNNs do not filter out irrelevant features during forward propagation. If an irrelevant background feature happens to have a positive pre-activation value, it passes through the ReLU function. During backpropagation, these irrelevant units receive non-zero gradients. Because gradients are calculated via successive multiplication layer-by-layer, this background noise accumulates exponentially as it travels back to the input layer.

To solve this, they introduce Rectified Gradient (RectGrad). Instead of letting all gradients pass through, RectGrad thresholds units at each ReLU gate during backpropagation based on an importance score.

The importance score is calculated by multiplying a unit's forward activation by its backward gradient: $$\text{Importance} = a_i^{(l)} \cdot R_i^{(l+1)}$$

Gradients are only allowed to propagate backward if their importance score exceeds a threshold $\tau$, which is dynamically set to the $q$-th percentile of importance scores for that layer. This percentile-based approach prevents the gradient from completely dying out.

Figure 1: Comparison of attribution methods. See Appendix F.1 for details on the visualization.

The authors mathematically prove that RectGrad generalizes popular methods like Deconvolution and Guided Backpropagation, but avoids their main pitfall: class insensitivity (merely reconstructing the input image rather than explaining the class decision).

Datasets

The method was evaluated using two primary datasets:

  • CIFAR-10: Used to train a custom CNN from scratch to analyze feature importance and conduct controlled occlusion experiments.
  • ImageNet: Used with a pre-trained Inception V4 network to evaluate qualitative coherence, threshold effects, and adversarial robustness.

Key Insights and Ideas

  • The Noise Accumulation Phenomenon: The key "aha moment" is that background noise is an amplified signal. Irrelevant features might have small gradients at higher layers, but due to chain-rule multiplication across deep architectures, this noise explodes by the time it reaches the input pixels.
  • Saliency Maps Can Be Untruthful: To prove that saliency maps highlight completely meaningless features, the authors performed a "Training Dataset Occlusion" experiment. They replaced the top-left corner of every CIFAR-10 training image with random uniform noise. Even though this patch was entirely uninformative for classification, vanilla saliency maps still assigned significant non-zero gradients to it.
Figure 2: Saliency maps produced from a CNN trained on occluded images. The upper left corner of all the images in the training dataset is replaced with a 10 × 10 random patch, as shown above. Readers should examine the 8 × 8 patch enclosed by the red square instead of the entire 10 × 10 patch due to the receptive field of filters in the first convolution layer (3 × 3).
  • Dynamic Percentile Thresholding: By using the $q$-th percentile as a threshold rather than a hard constant, RectGrad adaptively scales across different layers and architectures, isolating the top most influential features driving the network's decision.

Key Results

  • Visual Clarity: Qualitatively, RectGrad produces exceptionally clean, focused attribution maps. Background noise is virtually eliminated, leaving sharp highlights on the discriminative features of the object (e.g., the spots on a butterfly's wing).
  • Quantitative Performance: The authors used ROAR (Remove and Retrain) and KAR (Keep and Retrain) metrics to evaluate feature importance. RectGrad outperformed all baselines (including SmoothGrad, Integrated Gradients, and DeepLIFT), achieving the lowest ROAR Area Under the Curve (AUC) and KAR Area Over the Curve (AOC). This confirms that the pixels isolated by RectGrad are truly the most informative to the model.
  • Sanity Check Passed: When tested against adversarial attacks (using the Fast Gradient Sign Method), RectGrad proved to be highly class-sensitive, drastically changing its attribution maps when the model's underlying prediction was altered.

Limitations and Future Work

The authors note that while they have qualitatively shown that DNN filters propagate irrelevant features regardless of relevance, a rigorous, quantitative measurement of feature activation frequency across intermediate layers remains an open challenge left for future study.

Summary updated

BibTeX
@misc{kim2019why,
  author = {Beomsu Kim and Junghoon Seo and SeungHyun Jeon and Jamyoung Koo and Jeongyeol Choe and Taegyun Jeon},
  title = {{Why are Saliency Maps Noisy? Cause of and Solution to Noisy Saliency Maps}},
  year = {2019},
  eprint = {1902.04893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.04893},
}
Figure