Salvage: Shapley-distribution Approximation Learning Via Attribution Guided Exploration for Explainable Image Classification

Mehdi Naouar, Hanne Raum, Jens Rahnfeld, Yannick Vogt, Joschka Boedecker, Gabriel Kalweit, Maria KalweitICLR 2025

Introduction

Vision Transformers (ViTs) have established new benchmarks in computer vision, but their complex self-attention mechanisms make them notoriously difficult to interpret. Traditional explainability methods designed for Convolutional Neural Networks, such as Grad-CAM, often fail or produce noisy, unreliable attribution maps when applied to ViTs.

To bypass architecture-specific quirks, researchers increasingly turn to removal-based methods—masking parts of an image to observe how the model's prediction changes. A recent state-of-the-art approach, ViT-Shapley, trains an explainer network to approximate the Shapley values (a game-theory concept measuring feature importance) of image patches. However, ViT-Shapley suffers from two major flaws:

  1. Mathematical Mismatch: It uses Mean Squared Error (MSE) to approximate the classifier's probability distributions, which poorly captures the uncertainty and variance inherent to probabilities.
  2. Sample Inefficiency: It randomly samples image masks during training. This creates a highly imbalanced dataset where most masked images are either completely informative (object fully visible) or completely uninformative (object fully masked), making it difficult for the model to learn the value of nuanced, underrepresented features.

To address these limitations, researchers introduce Salvage, a novel removal-based explainability method that generates highly accurate and interpretable attribution maps while doubling as a standalone classifier.

The Salvage Approach

Salvage builds upon the explainer-network concept but introduces three critical innovations to improve both training efficiency and explanation fidelity:

  • Shapley Distribution Estimation: Instead of using MSE to predict linear scores, Salvage maps the sum of the estimated positive and negative Shapley values into a probability distribution using a softmax (or sigmoid) function. It then trains the explainer by minimizing the Jensen-Shannon (JS) divergence between this estimated distribution and the actual classifier's output. Treating a classifier's output probabilities as true distributions rather than simple scalars yields significantly more faithful explanations.
  • Attribution-Guided Sampling: To fix the sample inefficiency of random masking, Salvage uses the model's current feature importance estimates to guide the masking process. It actively samples subsets that prioritize the most informative regions, and conversely, subsets that target the least informative regions. This balances the training data and forces the model to learn from edge cases much faster than random dropping.
  • Classifying by Explaining: Because the explainer and the classifier are usually decoupled, their outputs can disagree. Salvage solves this by allowing the explainer to act as the classifier itself. By aggregating the patch-level importance scores, Salvage can make a final prediction that is 100% consistent with its own explanation.

Experimental Setup

The authors evaluated Salvage across four diverse datasets, covering both natural and medical images:

  • ImageNette: A 10-class subset of ImageNet.
  • Oxford-IIIT Pet: A multi-class dataset of dog and cat breeds, which notably includes human-annotated regions of interest for evaluating explanation accuracy.
  • WBC (White Blood Cells): A high-resolution dataset for pathological and normal blood cell classification.
  • MURA: A dataset of musculoskeletal radiographs for binary abnormality detection.

Key Results

Quantitative Superiority

Salvage outperformed 10 baseline methods—including GradCAM, LRP, RISE, and ViT-Shapley—across multiple metrics. For example, on the Pet dataset, Salvage achieved a Symmetric Relevance Gain (SRG) of 68.5, compared to ViT-Shapley's 61.1 and RISE's 63.7.

Quantitative comparison of explainability methods across four datasets.

Qualitative Clarity

Visually, Salvage's attribution maps are remarkably clean. While gradient and attention-based methods often highlight noisy background artifacts, Salvage tightly highlights the actual object of interest, such as the entire body of a dog or the specific structural abnormalities in a radiograph.

Qualitative comparison of attribution maps generated by Salvage and baseline methods.

Classification Performance

A holy grail in Explainable AI is a model that is inherently interpretable without sacrificing performance. Salvage proves that an explainer trained to approximate a black-box model can actually replace it. When used as a standalone classifier, Salvage maintained near-parity with the original black-box model. On ImageNette, the original ViT achieved 99.64% accuracy, and the Salvage explainer achieved 98.88%. In stark contrast, attempting to use ViT-Shapley as a classifier resulted in a catastrophic failure (0.05% accuracy).

Limitations and Future Work

Because Salvage relies on Shapley's additive explanations, it assumes that all image patches are linearly independent. In reality, visual features interact in complex ways (e.g., a dog's eye is more meaningful when next to a dog's nose).

Future work will focus on extending Salvage to account for these feature interactions. The authors also propose refining the explainer's neural architecture using more advanced segmentation models, adding a temperature parameter to the softmax mapping for better calibration, and exploring the method's potential for unsupervised segmentation tasks.

Summary updated

BibTeX
@inproceedings{naouar2025salvage,
  author = {Mehdi Naouar and Hanne Raum and Jens Rahnfeld and Yannick Vogt and Joschka Boedecker and Gabriel Kalweit and Maria Kalweit},
  title = {{Salvage: Shapley-distribution Approximation Learning Via Attribution Guided Exploration for Explainable Image Classification}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=WBUVagRgsd},
}
Figure