Achieving Diversity in Counterfactual Explanations: a Review and Discussion

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

Abstract

Counterfactual explanations (CFs) are a cornerstone of Explainable AI (XAI), offering users actionable paths to change model outcomes. However, the search for a single "best" explanation often ignores the subjective and multifaceted needs of users. This paper reviews the emerging paradigm of generating diverse sets of counterfactuals. We introduce a taxonomy for categorizing diversity—by criteria, feature space, and actions—and analyze the "aggregation problem" inherent in combining conflicting explanation goals. By surveying over 30 state-of-the-art methods, we highlight the importance of how diversity is implemented and its grounding in cognitive science.

Introduction: The Aggregation Problem

In Explainable AI, counterfactual explanations answer "what-if" questions. For instance, if a loan is denied, a CF might suggest: "If your income were $5,000 higher, your loan would have been approved." Traditionally, finding such an explanation is framed as an optimization problem: minimize the distance between the original point and a target point that changes the model's prediction.

However, users have conflicting requirements. They desire explanations that are close to the original data (proximity), easy to act upon (actionability), realistic (data-contextual), and simple (sparsity). The "Aggregation Problem" arises because researchers typically combine these goals into a single objective function using a weighted sum. This arbitrary weighting often results in "middle-of-the-road" explanations that fail to satisfy specific user constraints. To address this, the field is moving toward providing a set of diverse explanations, allowing users to select the one that best fits their personal context.

A Taxonomy of Diversity in XAI

The authors propose a new taxonomy to categorize how diversity is achieved in counterfactual generation:

  1. Diversity in Criteria: Generating points that represent different trade-offs (e.g., one very close but complex CF vs. one further away but simpler). This often involves identifying the Pareto front of solutions.
  2. Diversity in the Feature Space: Ensuring counterfactuals are physically distant from one another in the data space, typically by adding a diversity penalty to the loss function.
  3. Diversity in Actions: Proposing distinct paths to the same outcome (e.g., increasing income vs. decreasing debt).

The paper also distinguishes between explicit diversity, where the algorithm is architecturally forced to find distinct points, and implicit diversity, which relies on stochasticity or multiple runs with different seeds.

Table 2: Summary of major counterfactual generation methods categorized by diversity type and search strategy.

Experimental Illustration

To demonstrate the impact of different aggregation strategies, the authors utilized two benchmark datasets: the synthetic Half-moons dataset and the Boston Housing dataset. These experiments visualize how optimization strategies select points across decision boundaries and how these selections scale in higher-dimensional spaces.

Visualization of counterfactual selection on the Half-moons dataset (left) and t-SNE projection of the Boston Housing dataset (right).

Key Insights and Discussion

  • The Hidden Role of Aggregation: The choice of "aggregation operator" (e.g., weighted sum vs. constrained optimization) is often a neglected but critical decision that significantly alters the resulting explanations.
  • Cognitive Science Foundations: Research in social science suggests that humans learn more effectively from multiple analogies than from a single "optimal" example. Diversity in XAI aligns with these human learning patterns.
  • Observable vs. Latent Diversity: Mathematical distance in feature space does not always translate to meaningful differences for the user. For diversity to be effective, it must be "observable"—representing distinct actions the user can take.
  • User Empowerment: By providing a menu of options, systems offload the complex task of user modeling to the users themselves, who are best positioned to judge their own life constraints.

Conclusion and Future Work

While the mathematical frameworks for diversity are advancing, several challenges remain. There is a notable lack of human-in-the-loop studies to empirically validate which types of diversity truly aid decision-making. Furthermore, future systems should incorporate "user knowledge modeling" to avoid providing redundant explanations. Bridging the gap between local counterfactuals and global model insights remains a key frontier for the field.

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