Multi-Objective Counterfactual Explanations

Susanne Dandl, Christoph Molnar, Martin Binder, Bernd Bischl

Abstract

Machine learning models often function as black boxes, making it difficult for users to understand how to change an unfavorable prediction. This paper introduces Multi-Objective Counterfactuals (MOC), a method that treats the search for counterfactual explanations as a multi-objective optimization problem. By optimizing for prediction distance, feature similarity, sparsity, and plausibility simultaneously, MOC provides a diverse set of actionable trade-offs rather than a single arbitrary explanation.

Introduction

As machine learning models are increasingly deployed in high-stakes domains like finance and healthcare, the need for interpretability grows. Counterfactual explanations address this by answering "what-if" questions: for a given rejected loan application, what minimal changes to the input features would result in an approval?

A useful counterfactual must balance several competing goals. It should reach the target prediction, minimize the magnitude and number of feature changes, and remain plausible within the data distribution. Most existing methods aggregate these goals into a single objective function using fixed weights, typically yielding only one explanation. This approach ignores the inherent trade-offs and the user's unobserved preferences. For instance, a user might find it easier to pay off a debt than to increase their annual income, even if the latter requires a "smaller" mathematical change.

The MOC Framework

To overcome these limitations, the authors propose Multi-Objective Counterfactuals (MOC). MOC frames the search as a multi-objective optimization problem, utilizing a modified NSGA-II evolutionary algorithm to find a Pareto set of optimal solutions.

Optimization Objectives

MOC simultaneously optimizes four distinct objectives:

  1. Prediction Distance: Minimizing the distance between the counterfactual's prediction and the desired outcome.
  2. Feature Distance: Minimizing the L1 or L2 distance from the original instance to preserve similarity.
  3. Sparsity: Minimizing the number of features changed (L0 norm) to ensure the explanation is easy to understand.
  4. Plausibility: Maximizing the proximity to the training data manifold to ensure the suggested changes are realistic.
Table showing the original instance from the German Credit dataset used for the counterfactual analysis.

Algorithmic Innovations

To improve efficiency and realism, MOC incorporates two key modifications:

  • ICE-based Initialization: Instead of random starting points, MOC uses Individual Conditional Expectation (ICE) curves to identify features with the highest impact on the model's prediction, prioritizing these for mutation.
  • Conditional Mutation: To prevent the generation of impossible feature combinations, MOC employs transformation trees that sample new values conditionally based on the existing feature set.

Experimental Results

The authors evaluated MOC using the German Credit dataset for qualitative analysis and 10 OpenML datasets for large-scale benchmarking against state-of-the-art methods like DiCE and Tweaking.

Qualitative Insights

In the German Credit case study, MOC successfully identified a range of counterfactuals. As shown in the visual analysis below, the algorithm explores various combinations of 'duration' and 'credit amount' to reach the target class. This diversity allows a user to choose between a shorter loan duration with a higher credit amount or vice versa, depending on their financial situation. This diversity also accounts for the "Rashomon effect," where multiple valid paths lead to the same outcome.

Visual analysis of counterfactuals for the German Credit dataset: (a) Parallel plot showing feature trade-offs and (b) Response surface plot showing the decision boundary and counterfactual distribution.

Quantitative Performance

Across five different machine learning models (including Random Forests and Neural Networks), MOC consistently outperformed competitors. It achieved a coverage rate of nearly 100% in many scenarios, meaning its Pareto set almost always contained solutions that dominated those produced by single-objective methods. Furthermore, MOC demonstrated superior plausibility; while other methods occasionally suggested impossible changes (e.g., reducing a patient's age), MOC's conditional mutation ensured realistic suggestions.

Conclusion

MOC shifts the paradigm of counterfactual explanations from providing a single "best" answer to offering a menu of optimal trade-offs. By leveraging multi-objective optimization, MOC respects the complexity of real-world decision-making. Future work will focus on developing user interfaces that help non-experts navigate the Pareto front to select the counterfactual that best aligns with their personal constraints.

Summary updated

BibTeX
@inproceedings{dandl2020multi,
  author = {Susanne Dandl and Christoph Molnar and Martin Binder and Bernd Bischl},
  title = {{Multi-Objective Counterfactual Explanations}},
  booktitle = {PPSN},
  year = {2020},
  doi = {10.1007/978-3-030-58112-1\_31},
}
Figure