Introduction
Post-hoc explanation methods such as LIME and SHAP have become essential for interpreting complex "black box" machine learning models, especially in high-stakes domains like healthcare and criminal justice. However, these methods are notoriously fragile. Small perturbations to input data or shifts in the underlying data distribution can cause explanations to collapse or change drastically. This instability undermines trust and reliability, as an explanation that relies on spurious correlations in training data may fail when applied to a new population.
The ROPE Framework
To address these flaws, we introduce ROPE (RObust Post hoc Explanations). Unlike traditional methods that optimize for the best explanation on a specific dataset, ROPE adopts a minimax objective. It seeks an explanation that minimizes the maximum (worst-case) error between the black-box model and the explanation across a predefined set of potential distribution shifts.
The authors demonstrate a connection between this distributional robustness and adversarial training. By "attacking" the explanation during its generation, ROPE ensures it can withstand perturbations. Two primary implementations are provided:
- ROPE-logistic: Generates linear explanations using gradient descent and Taylor approximations to solve the minimax problem efficiently.
- ROPE-dset: Produces rule-based decision sets using sampling-based heuristics and submodular optimization to handle discrete rules.
Experimental Evaluation
ROPE was evaluated against baselines (LIME, SHAP, MUSE) using both synthetic data and three real-world datasets with natural distribution shifts:
- Bail Outcomes: Criminal justice data from two different state courts (31K defendants).
- Academic Performance: Education data from two distinct school districts (19K students).
- Electronic Health Records: Healthcare data from two different California counties (22K patients).
Synthetic experiments allowed for precise control over shifts in feature correlations, means, and variances, highlighting how standard methods often fail when training-set correlations break down.
Results and Discussion
The core finding is that ROPE significantly outperforms existing methods in maintaining fidelity under shift. While LIME, SHAP, and MUSE experienced fidelity drops of 13% to 23% on shifted real-world data, ROPE's drop was limited to between 0% and 7%.
Beyond fidelity, ROPE explanations proved to be 18% to 21% more stable under Gaussian noise and 38% more structurally similar to ground-truth interpretable models. This suggests that by designing for robustness against distribution shifts, we naturally achieve greater local stability. Importantly, ROPE maintains or even improves fidelity on the original training data while providing these robustness guarantees.
Conclusion
ROPE demonstrates that adversarial training techniques can be repurposed to enhance the reliability of model interpretability. While the framework currently relies on a predefined set of potential shifts, it represents a significant step toward explanations that human decision-makers can trust in dynamic, real-world environments. Future work will explore extending these principles to other explanation families, such as saliency maps, and investigating potential adversarial uses of stable explanations.
Summary updated