Towards Robust Saliency Maps

Nham Le, Arie Gurfinkel, Xujie Si, Chuqin GengACML Conference Track 2024

TL;DR

This paper introduces "saliency-robustness," a new formal verification property to rigorously check if a saliency map accurately explains a neural network's prediction. They propose a method combining existing neural network verifiers to prove this property, showing that even simple saliency maps like Vanilla Gradient can be surprisingly effective when formally verified.

What Problem Does This Paper Address?

Deep neural networks (DNNs) are increasingly complex, making their decisions opaque. Saliency maps are a popular tool to "explain" these decisions by highlighting important input features (e.g., pixels in an image). However, current methods for evaluating saliency maps often rely on subjective human judgment, which can be misleading. For instance, a saliency map might look visually convincing but not truly reflect the network's reasoning, or it might highlight features important for any input rather than explaining why a specific input was classified a certain way. This paper addresses the critical need for a more objective, mathematically rigorous way to assess the reliability and explanatory power of saliency maps.

Methods

The core contribution is the definition of saliency-robustness. This property states that if two inputs produce similar saliency maps, they should also be classified identically by the neural network. This is formalized as a verification problem: for a given input $x$ and its predicted label $l$, if another input $x'$ has a saliency map similar to $x$'s (within a certain tolerance $\delta$), then $x'$ must also be classified as $l$.

To solve this, the authors first encode the saliency-robustness property as a constraint satisfaction problem over linear real arithmetic (LRA). This allows for verification using SMT solvers. However, SMT solvers struggle with the scale of modern neural networks. To overcome this, they propose a novel method that combines two state-of-the-art neural network verification techniques:

  1. Constraint-based verifiers (MARABOU): These tools can precisely verify properties but are computationally expensive.
  2. Jacobian bounding (CROWN/LIRPA): These methods efficiently compute bounds on gradients, which are crucial for saliency maps.

Their approach uses CROWN/LIRPA to precompute Jacobian bounds and then feeds these bounds into MARABOU to solve the saliency-robustness problem.

Datasets

  • Synthetic dataset: A "five-arm bandit" problem was created to illustrate the concept. This involves a simple feed-forward network trained to predict high or low rewards based on the intensity of five "arms."
  • MNIST: Experiments were conducted on a pre-trained 2-layer fully connected network (mnistfc_256x2) from the VNNCOMP23 benchmark.

Key Insights and Ideas

  • Saliency maps as explanations, not just correlations: The paper argues that a good saliency map should not just highlight features that happen to be important for a prediction, but should provide a guarantee that similar features imply similar predictions. This moves beyond correlation to causation.
  • Formalizing "similarity" for saliency maps: By defining saliency map similarity using the L∞ norm of the gradient vectors, the authors create a quantifiable measure that can be used in formal verification.
  • Vanilla Gradient's surprising robustness: Despite being an older and simpler saliency method, Vanilla Gradient (VG) was found to be surprisingly effective as a "certification" for the predicted output when subjected to the saliency-robustness test. This suggests that simpler methods might be more inherently reliable than some complex, modern alternatives.
  • Combining verifiers for scalability: The paper demonstrates that by combining the precision of constraint-based solvers with the efficiency of Jacobian bounding techniques, it's possible to tackle verification problems that are intractable for either method alone.

Key Results

  • Experiments on the synthetic "five-arm bandit" dataset showed that their method could verify saliency-robustness for different levels of similarity ($\delta$), outperforming a standard SMT solver (Z3) in terms of speed and success rate.
  • On the MNIST benchmark (mnistfc_256x2), their method successfully verified saliency-robustness for 4 out of 10 challenging regions, whereas Z3 timed out. This highlights the scalability advantage of their combined approach.
  • The quality of Jacobian bounds significantly impacts performance, with tighter bounds leading to fewer timeouts.

Limitations and Future Work

  • Floating-point arithmetic: The soundness of floating-point arithmetic, a general issue in neural network verification, is acknowledged as a limitation.
  • Scalability: While improved, the method's scalability is still limited by both the Jacobian bounding algorithm (which struggles with deeper networks) and the constraint-based solver (which is inherently slower than abstraction-based methods).
  • Non-linear saliency maps: The current method is primarily designed for gradient-based saliency maps. Extending it to handle non-linear formulations like Integrated Gradients or SmoothGrad is a significant area for future work.
  • Exploring other similarity metrics: The paper leaves exploring different definitions of saliency map similarity for future research.

Summary updated

BibTeX
@inproceedings{le2024towards,
  author = {Nham Le and Arie Gurfinkel and Xujie Si and Chuqin Geng},
  title = {{Towards Robust Saliency Maps}},
  booktitle = {ACML Conference Track},
  year = {2024},
  url = {https://openreview.net/forum?id=2tv0Ubg3o7},
}
Figure