Achieving Diversity in Counterfactual Explanations: a Review and Discussion

Thibault Laugel, Adulam Jeyasothy, Marie-Jeanne Lesot, Christophe Marsala, Marcin Detyniecki · DOI

TL;DR

This paper provides a comprehensive review and taxonomy of "diversity" in counterfactual explanations for Explainable AI (XAI). It exposes how current methods rely on poorly justified mathematical shortcuts to combine explanation criteria, and argues that generating a carefully chosen, observable set of diverse alternatives is crucial for meeting actual user needs.

What Problem Does This Paper Address?

Counterfactual explanations (CFEs) are a popular tool in XAI. They tell a user how to change an algorithmic outcome—for example, "If your income were \$10,000 higher, your loan would be approved." Typically, finding a CFE is treated as an optimization problem that balances multiple criteria: the counterfactual should be close to the original point (closeness), change few features (sparsity), and be realistic (data-contextualization).

However, the authors point out two major flaws in current research:

  1. The Aggregation Trap: Combining these conflicting criteria into a single objective function requires an "aggregation operator" (like a weighted sum). The choice of this operator is rarely justified, yet it drastically alters the resulting explanation.
  2. The Unknown User: It is nearly impossible to know a user's exact preferences or background knowledge beforehand. A single "optimal" explanation might be completely useless or unfeasible to the person receiving it.

While researchers have turned to generating sets of diverse counterfactuals to give users options, the definition of "diversity" remains fragmented and vague across the literature. This paper systematically reviews and categorizes these diverse approaches.

Methods

As a review and discussion paper, the authors propose a new taxonomy to categorize diverse CFE generation methods along several dimensions:

  • Diversity Type: Where does the diversity manifest?
  • In Criteria: Explanations represent different trade-offs on the Pareto front (e.g., one is very sparse but further away, another is closer but changes more features).
  • In Feature Space: Explanations are simply forced to be geometrically distant from one another.
  • In Actions: Explanations propose entirely different paths or directions of change for the user to take.
  • Optimization Characteristics: How is diversity achieved?
  • Explicit vs. Non-explicit: Does the algorithm mathematically enforce diversity in its cost function, or does it rely on stochasticity (random seeds) to accidentally find different answers?
  • Single-step vs. Iterative: Are all counterfactuals generated simultaneously, or are they found one by one while excluding previous results?

The authors also conduct a small illustrative experiment using a Support Vector Machine (SVM) on a synthetic half-moons dataset and a Random Forest on the Boston housing dataset to demonstrate how different aggregation choices scatter counterfactuals across the feature space.

Datasets

Because this is a survey and position paper, it does not introduce a new machine learning dataset or benchmark. For their illustrative experiment on aggregation operators, they use:

  • Half-Moons Dataset: A standard 2D synthetic dataset.
  • Boston Housing Dataset: A classic tabular dataset used to predict housing values.

Key Insights and Ideas

  • Aggregation Operators Matter (A Lot): As shown in their experiment, keeping the exact same criteria but changing how they are mathematically combined (e.g., switching from a weighted sum to a constrained optimization approach) yields wildly scattered counterfactuals.
Figure 1: Illustration of the aggregation operator impact: the orange, red, pink and magenta points represent the counter- factual examples generated to explain the prediction asso- ciated to the instance of interest represented by the green point, when considering several types of aggregation (see de- tails in the text). Left: half-moons dataset. Right: 2D t-SNE projection of the Boston dataset.
  • Not All Diversity is Useful: The authors argue that for diversity to be valuable, it must be observable by the human user. Forcing counterfactuals to be far apart in raw feature space (Diversity in Feature Space) doesn't inherently mean they provide distinct, meaningful choices to a human. Conversely, offering different real-world paths (Diversity in Actions) directly addresses unobserved user constraints.
  • Stochastic Diversity is Unreliable: Methods that claim to offer diversity simply by running a non-deterministic algorithm multiple times (non-explicit diversity) provide no guarantees. The resulting explanations can easily end up redundant.

Key Results

The primary output of this paper is a structured meta-analysis of over 30 existing diverse CFE methods, mapping them out by their diversity definitions and search mechanics.

The authors highlight that Diversity in Feature Values is currently the most heavily represented approach in the literature, despite being a poor proxy for actual user needs compared to Diversity in Actions or Diversity in Criteria.

Additionally, their taxonomy clarifies that while many methods allow the user to specify the number of desired explanations, they often fail to account for the inherent trade-off between quantity and diversity, frequently leading to redundant results as the requested number increases.

Limitations and Future Work

The authors note that their analysis is primarily theoretical and structural. The most pressing limitation in the current state of the art is the lack of empirical evaluation.

Moving forward, they advocate for:

  1. Human-in-the-loop User Studies: Rigorous testing to determine which types of diversity (Criteria, Feature Space, or Actions) actually improve human comprehension and satisfaction.
  2. User Modeling Tools: Developing formal methods to represent and capture a user's prior knowledge and constraints, allowing algorithms to tailor the nature of the diversity to the audience.

Summary updated

BibTeX
@inproceedings{laugel2023achieving,
  author = {Thibault Laugel and Adulam Jeyasothy and Marie-Jeanne Lesot and Christophe Marsala and Marcin Detyniecki},
  title = {{Achieving Diversity in Counterfactual Explanations: a Review and Discussion}},
  booktitle = {FAccT},
  year = {2023},
}
Figure