Selective Explanations

Lucas Monteiro Paes, Dennis Wei, Flávio P. Calmon

Introduction

Selective Explanations offer a principled way to balance speed and accuracy in machine learning interpretability. By training a "selector" to identify when fast, approximate explainers are likely to be wrong, the system can strategically trigger more expensive computations only where they are needed most. This significantly improves explanation quality without the massive overhead of traditional methods.

The Cost of Interpretability

As machine learning models—especially Large Language Models (LLMs)—grow in size, explaining their decisions becomes a computational nightmare. Popular "feature attribution" methods like SHAP explain a model by perturbing inputs thousands of times to see how the output changes. For a model with billions of parameters, this is prohibitively slow.

To solve this, researchers developed amortized explainers: separate, lightweight models trained to "guess" what the expensive explanation would be in a single pass. While incredibly fast, these amortized models are often unfaithful to the original black box, producing misleading explanations that miss critical nuances. The fundamental trade-off is clear: how do we get the near-instant speed of amortization without sacrificing the reliability of expensive, high-quality explanations?

The Selective Explanations Framework

Instead of choosing between "fast and sloppy" or "slow and precise," the authors introduce a hybrid workflow called Selective Explanations (SE).

The workflow of selective explanations: pass inputs through an amortized explainer, use a selection function to identify low-quality results, and apply "Initial Guess" recourse to the worst 20% of samples.

The framework operates in three main steps:

  1. Uncertainty Detection: The system uses a "selection function" to predict if the fast amortized explainer will produce a high-error result for a specific input. The authors propose two metrics: Deep Uncertainty (measuring disagreement among an ensemble of explainers) and Learned Uncertainty (training a model specifically to predict the explainer's error).
  2. Explanations with Initial Guess (IG): If the system detects a "bad" explanation, it doesn't just throw it away. Instead, it uses the amortized output as an "initial guess" and refines it using a small number of Monte Carlo (MC) samples.
  3. Optimized Combination: The researchers derive a closed-form solution to optimally blend the initial guess with the new samples, minimizing the final error.

Key Insights and Strategic Budgeting

A major insight in this research is the realization that even a "bad" amortized explanation contains valuable signal. By treating it as a starting point rather than garbage, a high-fidelity explanation can be reached with far fewer additional model inferences than starting from scratch.

Furthermore, predicting failure is highly feasible. The "Learned Uncertainty" metric performs remarkably well, often matching the performance of an "Oracle" that has perfect knowledge of the explainer's errors. This allows practitioners to set a strategic "coverage" budget (e.g., "I want 80% of my explanations to be instant"). The system then automatically allocates its remaining compute budget to the 20% of cases where the amortized model is most confused.

Experimental Results

The researchers evaluated their method across tabular tasks (UCI-Adult, UCI-News) and text-based tasks (Yelp Reviews, Toxigen), using BERT and RoBERTa-based models to demonstrate scalability to high-dimensional embeddings.

Qualitative Fidelity: In sentiment analysis, amortized explainers often missed key negations. For example, an amortized explainer might miss the importance of the phrase "not amazing." Selective explanations successfully flagged these errors and corrected them to match the "ground truth" target explanations.

Qualitative comparison: (a) the amortized explainer misses the importance of "not amazing," while (c) the selective method correctly identifies it, matching (b) the target SHAP explanation.

Quantitative Dominance: Selective explanations "Pareto dominate" standard Monte Carlo methods. For any given computational budget, the selective approach yields a lower Mean Squared Error (MSE) than simply running more samples. By providing recourse for just the worst 20% of samples, the authors reduced the error of the most inaccurate explanations by roughly 30% on the Yelp dataset.

Limitations and Future Work

While powerful, the authors note a few areas for future exploration:

  • Scope of Attribution: The empirical tests focused on Shapley values. While the math should theoretically apply to other methods like LIME, it hasn't been extensively benchmarked yet.
  • Modality: The study was limited to tabular and text data; image classifiers remain an unexplored frontier for this specific selective framework.
  • Generative Models: The paper does not yet address Generative AI (like GPT-4), largely because the field currently lacks reliable amortized explainers for generative tasks to use as a baseline.

Summary updated

BibTeX
@inproceedings{paes2024selective,
  author = {Lucas Monteiro Paes and Dennis Wei and Flávio P. Calmon},
  title = {{Selective Explanations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=Yoea2GyayN},
}
Figure