Global Counterfactual Explanations: Investigations, Implementations and Improvements

Dan Ley, Saumitra Mishra, Daniele Magazzeni · DOI

Introduction

In the field of explainable AI (XAI), "counterfactual explanations" (CEs) have emerged as a powerful tool for providing individual recourse. For instance, if a loan application is denied, a local CE might suggest: "If your income were $5,000 higher, you would have been approved." While valuable for the individual, local explanations fail to provide a "big picture" view necessary for institutional auditing or identifying systemic biases.

To address this, Global Counterfactual Explanations (GCEs) provide summaries of recourse for entire groups. However, generating these summaries is computationally intensive. This paper investigates and optimizes Actionable Recourse Summaries (AReS), the state-of-the-art framework for GCEs. By addressing the "curse of globality," the authors achieve significant speedups—reducing computation time from 18 hours to under 5 minutes—while improving handling of continuous data.

Methodology: Optimizing the AReS Framework

The AReS workflow consists of three primary stages: Ground Set Generation, Ground Set Evaluation, and Ground Set Optimization. The authors propose four key improvements across these stages to enhance scalability and effectiveness.

The three stages of the AReS framework: Ground Set Generation, Evaluation, and Optimization.

Stage 1: Ground Set Generation

  • $\mathcal{RL}$-Reduction: Instead of an exhaustive search through all possible rule combinations, the authors prune feature combinations that appear only once in the dataset. This significantly reduces the search space without compromising accuracy.
  • Then-Generation: A targeted approach for generating the "Then" part of a rule (the proposed change) is introduced. By filtering the dataset first, the model handles continuous features (e.g., age, income) more effectively than traditional binning methods.

Stage 2: Ground Set Evaluation

  • V-Reduction: The authors identified a "saturation effect" where recourse accuracy plateaus quickly. Rather than evaluating every single possible rule in a massive set, they evaluate only a fixed number of triples ($r$), identifying a high-performing subset much faster.

Stage 3: Ground Set Optimization

  • V-Selection: Rules are sorted by individual performance, and only the top $s$ candidates are passed to the final optimization step. This prevents the submodular maximization algorithm—a known bottleneck—from processing redundant data.

Experimental Evaluation

The optimized framework was evaluated on two financial benchmarks:

  1. German Credit Dataset: Contains a mix of categorical and continuous features.
  2. HELOC (Home Equity Line of Credit): Consists entirely of continuous features, presenting a significant challenge for rule-based methods.

Key Results

The quantitative improvements are substantial, particularly for datasets with many continuous features.

Performance comparison across stages for German Credit and HELOC datasets, showing time vs. ground set size and recourse accuracy.
  • Speed and Scalability: On the German Credit dataset, the optimized version reached target accuracy in under 5 minutes, compared to 45 minutes for the original. On the HELOC dataset, the original method required over 18 hours, while the new approach finished in under 5 minutes.
  • Accuracy: Despite the speedups, the optimized version often achieved higher recourse accuracy. This is because it could handle denser, more relevant rule sets that were previously computationally intractable.

Discussion and Insights

A central finding is the Saturation Effect: a small, well-chosen subset of rules often provides nearly the same global accuracy as an exhaustive set. This justifies the use of sampling and pruning techniques. Furthermore, the "Then-Generation" approach makes explanations more "actionable" in continuous spaces, which is critical for real-world utility. For XAI tools to be effective, they must be interactive; reducing wait times from hours to minutes makes GCEs a viable tool for data scientists.

Limitations and Future Work

Despite these advancements, some challenges remain. The quality of global explanations depends on user-defined "subgroup descriptors." Additionally, while improved, the binning of continuous features post-training can still lead to coarse suggestions. Future research will focus on the generalization of these global rules to unseen test data to ensure robust recourse.

Summary updated

BibTeX
@inproceedings{ley2022global,
  author = {Dan Ley and Saumitra Mishra and Daniele Magazzeni},
  title = {{Global Counterfactual Explanations: Investigations, Implementations and Improvements}},
  booktitle = {PAIR2Struct @ ICLR},
  year = {2022},
  url = {https://openreview.net/forum?id=Btbgp0dOWZ9},
}
Figure