Probabilistic Stability Guarantees for Feature Attributions

Helen Jin, Anton Xue, Weiqiu You, Surbhi Goel, Eric Wong

TL;DR

This paper introduces soft stability, a probabilistic framework for certifying that feature attribution explanations (like highlighting pixels in an image) are robust to small changes. The authors propose the Stability Certification Algorithm (SCA), a model-agnostic, sampling-based method that provides tighter and more practical robustness guarantees than previous "hard" certification techniques without requiring heavy model smoothing that sacrifices accuracy.

What Problem Does This Paper Address?

Machine learning models are often "black boxes." To trust them in high-stakes fields like medicine or law, we use feature attributions—methods that highlight which input features (pixels in an image or words in a sentence) were most important to a prediction.

However, these explanations are notoriously "unstable." You might have an explanation that correctly identifies a "Sea Turtle," but if you add just three more features to that explanation, the model suddenly predicts "Coral Reef." This instability makes explanations unreliable.

An example of explanation instability where adding three features flips the model's prediction from Loggerhead Sea Turtle to Coral Reef.

Previous attempts to fix this used "hard stability" (guaranteeing the prediction never flips for any possible perturbation), but this is computationally expensive and usually requires "smoothing" the model so much that its overall accuracy plummets.

Methods

The authors shift the goalpost from "hard" to "soft" stability. Instead of asking if a prediction ever flips, they ask: "How often does the prediction stay the same under random perturbations?"

  1. Soft Stability Metric ($\tau_r$): They define a stability rate, which is the probability that the model's prediction remains unchanged when an explanation is perturbed by adding up to $r$ features.
  2. Stability Certification Algorithm (SCA): This is a simple, sampling-based approach. By randomly sampling perturbations and checking the model's output, SCA uses statistical tools (like Hoeffding’s inequality) to provide high-confidence bounds on the stability rate. Unlike previous methods, SCA is model-agnostic—it doesn't care how the model works internally.
  3. Boolean Function Analysis: To explain why model smoothing helps stability, the authors use a monotone basis (a specific way of representing functions of binary inputs) to show that smoothing acts as a "spectral contraction," effectively dampening the complex feature interactions that cause instability.

Datasets

The researchers evaluated their approach across both vision and language tasks:

  • Vision: A 2,000-image subset of ImageNet using Vision Transformers (ViT) and ResNet50/18 architectures.
  • Language: Six subsets of TweetEval using the RoBERTa language model.
  • Attribution Methods: Five popular explanation methods: LIME, SHAP, Integrated Gradients, MFABA, and a random baseline.

Key Insights and Ideas

  • The "Hard" vs. "Soft" Trade-off: Hard stability is like preparing for a worst-case adversarial attack. Soft stability is more like measuring reliability in the real world. By accepting a tiny bit of risk, we get much more useful and interpretable guarantees.
  • The Right Math for the Job: Standard Fourier analysis treats adding and removing features the same way. The authors argue that for explanations, we only care about adding information. Their use of the monotone basis is a novel "aha moment" that perfectly fits the logic of feature inclusion.
  • Smoothing Doesn't Have to Hurt: Previous work suggested you had to "break" your model's accuracy to make it stable. This paper shows that mild smoothing ($\lambda \ge 0.5$) can significantly boost stability while keeping the model's original accuracy almost entirely intact.

Key Results

  • SCA vs. MuS: SCA provides non-vacuous guarantees even at large perturbation radii where previous state-of-the-art methods (like MuS) failed completely.
  • Method Comparison: In vision tasks, LIME and SHAP were found to be significantly more stable than gradient-based methods like Integrated Gradients.
  • Efficiency: Because SCA can be batched, it is incredibly fast. For a ResNet50 model, batching 15 samples at once resulted in a 9.57x speedup in certification time compared to processing them one by one.
  • Accuracy Preservation: The authors demonstrated that they could certify stability for models that maintained ~75-80% accuracy, whereas older "hard" methods could only certify models that had been smoothed down to ~35% accuracy.

Limitations and Future Work

  • Thresholding Sensitivity: The study primarily focused on "top-25%" feature selection. The authors acknowledge that results might change if different thresholds are used to define what an "explanation" is.
  • Patch-Based Vision: For images, they used 16x16 pixel patches. Future work could explore more granular, pixel-level stability or "super-pixels" of irregular shapes.
  • Statistical vs. Adversarial: While SCA is great for random perturbations, it doesn't guarantee safety against a dedicated human hacker trying to find the one specific pixel that flips the prediction.
  • Human Alignment: A major open question is whether "stable" explanations actually help humans make better decisions. The authors suggest future studies to align these mathematical guarantees with human psychological evaluations.

Summary updated

BibTeX
@inproceedings{jin2025probabilistic,
  author = {Helen Jin and Anton Xue and Weiqiu You and Surbhi Goel and Eric Wong},
  title = {{Probabilistic Stability Guarantees for Feature Attributions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=pXoR0Sy4WQ},
}
Figure