Iterative and Adaptive Sampling with Spatial Attention for Black-Box Model Explanations

Bhavan Vasu, Chengjiang Long

TL;DR

The researchers propose IASSA, a novel framework that explains "black-box" AI decisions by generating highly accurate saliency maps. Unlike previous methods that rely on purely random sampling, IASSA uses an iterative process guided by a "parameter-free" spatial attention mechanism to focus on the most relevant parts of an image, outperforming current state-of-the-art methods on the MS-COCO dataset.

What Problem Does This Paper Address?

Deep neural networks are incredibly powerful but notoriously opaque. To trust them in critical fields like medicine or autonomous driving, we need to understand why they make specific predictions.

Existing explanation methods generally fall into two camps:

  1. White-box: These require access to the model's internal weights and gradients (e.g., Grad-CAM). They are powerful but limited to specific architectures.
  2. Black-box: These treat the model as a "closed box," only looking at inputs and outputs.

Current black-box methods like LIME (which uses superpixels) often fail to capture exact object boundaries, while RISE (which uses random masks) is computationally expensive and often produces blurry results because it samples the entire image uniformly. The authors aim to bridge this gap by creating a black-box explainer that is both precise and efficient.

Methods

The core of the paper is the Iterative and Adaptive Sampling with Spatial Attention (IASSA) framework. It works through a feedback loop:

  • Initial Coarse Sampling: The process starts by sliding a large window across the image to get a rough "first draft" of which regions the black-box model cares about.
  • Long-Range and Parameter-Free Spatial Attention (LRPF-SA): This is the "secret sauce." The authors use a separate, pre-trained feature extractor to calculate an affinity matrix. This matrix measures how every pixel in the image correlates with every other pixel, regardless of distance. Because it uses pre-trained features, it requires no additional training.
  • Iterative Refinement: In each step, the current saliency map is combined with the spatial attention map. This "adjusted" map tells the system where to focus its next round of sampling.
  • Adaptive Sampling: Instead of masking the image randomly, the system "probes" the areas identified as highly salient more intensely. This allows the saliency map to converge on the true object boundaries over multiple iterations (typically 15–25).

Datasets

The authors evaluated their method using the MS-COCO (Microsoft Common Objects in Context) dataset. They specifically utilized the human-annotated ground truth masks to see how well their generated explanations matched actual human interpretation of the objects.

Key Insights and Ideas

  • Attention as a Guide: The most significant "aha moment" is that black-box sampling doesn't have to be blind. By using a general-purpose spatial attention mechanism, the explainer can "guess" where the object boundaries are and refine its search accordingly.
  • Multi-Level Feature Fusion: The authors found that combining features from different depths of a neural network provides a more "hierarchical" view of the image, capturing both fine textures and global shapes.
  • Iterative Convergence: The paper demonstrates that explanations can be treated as an optimization problem. By iterating, the system moves from a "blurry guess" to a "precise map," allowing users to trade off computation time for explanation quality.

Key Results

IASSA was compared against LIME and RISE using several metrics. The results showed that IASSA consistently matched or exceeded the performance of its competitors:

  • Precision (F-1 and IoU): At the image level, IASSA achieved an F-1 score of 0.236 and an IoU of 0.151, significantly higher than RISE (0.138 F-1) and LIME (0.153 F-1).
  • Pointing Game: This metric checks if the highest-activated pixel falls within the object boundary. IASSA scored 0.4216, nearly doubling the performance of RISE (0.25).
  • Pixel-Level Accuracy: When evaluated at the granular pixel level, IASSA's lead became even more pronounced, showing it is much better at respecting the actual shape of the objects being explained.

Limitations and Future Work

  • Sampling Artifacts: The authors noted that if the window size and stride aren't perfectly tuned, the final explanation can sometimes contain "line artifacts" (grid-like patterns).
  • Computational Overhead: While more efficient than purely random sampling, the iterative nature still takes time. Currently, it takes about 800ms per iteration on a standard GPU.
  • Hyperparameter Sensitivity: The quality of the explanation depends on several settings (window size, stride, and a regularizer $\lambda$). The authors suggest that future work could involve automating the selection of these parameters to make the tool more user-friendly.
  • Speed: The authors plan to explore faster sampling methods that can reach a consensus on large image regions more quickly.

Summary updated

BibTeX
@inproceedings{vasu2020iterative,
  author = {Bhavan Vasu and Chengjiang Long},
  title = {{Iterative and Adaptive Sampling with Spatial Attention for Black-Box Model Explanations}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=uBAphq5EWCdY},
}
Figure