Explaining Machine Learning Classifiers through Diverse Counterfactual Explanations
About
Post-hoc explanations of machine learning models are crucial for people to understand and act on algorithmic predictions. An intriguing class of explanations is through counterfactuals, hypothetical examples that show people how to obtain a different prediction. We posit that effective counterfactual explanations should satisfy two properties: feasibility of the counterfactual actions given user context and constraints, and diversity among the counterfactuals presented. To this end, we propose a framework for generating and evaluating a diverse set of counterfactual explanations based on determinantal point processes. To evaluate the actionability of counterfactuals, we provide metrics that enable comparison of counterfactual-based methods to other local explanation methods. We further address necessary tradeoffs and point to causal implications in optimizing for counterfactuals. Our experiments on four real-world datasets show that our framework can generate a set of counterfactuals that are diverse and well approximate local decision boundaries, outperforming prior approaches to generating diverse counterfactuals. We provide an implementation of the framework at https://github.com/microsoft/DiCE.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Counterfactual Explanation | Bank Protocol B, B=64 | Validity1 | 12 | |
| Actionable Counterfactual Generation | GMSC 2011 (test) | Validity100 | 9 | |
| Actionable Counterfactual Generation | Credit 1994 (test) | Validity100 | 9 | |
| Actionable Counterfactual Generation | Adult (test) | Validity99.75 | 9 | |
| Counterfactual Generation | AI-READI Class 0 | Validity0.67 | 9 | |
| Counterfactual Generation | AI-READI (Class 1) | Validity58 | 9 | |
| Counterfactual Explanation Generation | German Credit Protocol A B=4 | Sparsity88.23 | 6 | |
| Counterfactual Explanation Generation | Student Performance Protocol A B=4 | Sparsity87.6 | 6 | |
| Counterfactual Explanation Generation | Adult Income Protocol A B=4 | Sparsity89.26 | 5 | |
| Counterfactual Explanation Generation | Graduate Admission Protocol A B=4 | Sparsity66.25 | 5 |