Diverse, Global and Amortised Counterfactual Explanations for Uncertainty Estimates

Dan Ley, Umang Bhatt, Adrian Weller

Abstract

Probabilistic machine learning models often lack transparency regarding their uncertainty estimates. While Counterfactual Latent Uncertainty Explanations (CLUE) provide a mechanism to explain uncertainty by identifying minimal input changes that lead to certainty, the original framework suffers from a lack of diversity, high computational costs, and a purely local focus. This paper introduces a suite of methods—$\delta$-CLUE, $\nabla$-CLUE, and GLAM-CLUE—designed to address these limitations. By incorporating diversity constraints and amortizing the optimization process, we achieve up to a 200x speedup while providing multiple, actionable explanations that offer a more comprehensive understanding of model uncertainty.

Introduction

Understanding the "why" behind model uncertainty is crucial for trust and safety in machine learning. Counterfactual Latent Uncertainty Explanations (CLUE) have emerged as a powerful tool for this purpose, identifying the smallest perturbation in a latent space that moves an uncertain input toward a region of high certainty. However, the standard CLUE approach is limited: it produces only a single explanation, requires expensive per-instance optimization, and fails to provide a global perspective on uncertainty across data groups.

Methodology

To overcome these hurdles, we propose three nested extensions to the CLUE framework:

  1. $\delta$-CLUE: This variant restricts the counterfactual search to a $\delta$-radius ball around the original input's latent representation. This ensures that explanations remain locally relevant and do not drift into unrelated regions of the data manifold.
  2. $\nabla$-CLUE (Diverse CLUE): Recognizing that uncertainty can often be resolved in multiple ways, $\nabla$-CLUE optimizes for a set of diverse counterfactuals simultaneously. By adding a diversity penalty—often based on Determinantal Point Processes (DPP)—the method surfaces fundamentally different "modes" of certainty.
  3. GLAM-CLUE (Global Amortised CLUE): To address the computational bottleneck of iterative optimization, GLAM-CLUE learns a global mapping (such as a simple translation vector) in the latent space. This allows for the instantaneous generation of counterfactuals for any new input, effectively amortizing the search cost.
GLAM-CLUE utilizes a global mapping to rapidly identify certain regions in the latent space for groups of uncertain points.

Experimental Setup

We evaluated our methods across three distinct datasets: UCI Credit (tabular data for credit default prediction), MNIST (handwritten digits), and Synbols (synthetic symbols with varying rotations and backgrounds). These datasets test the methods' performance on varying data structures and complexities, from simple binary classification to high-dimensional image data.

Key Results and Insights

Our proposed methods demonstrate significant improvements in both efficiency and interpretability:

  • Computational Efficiency: GLAM-CLUE provides a massive 200x speedup over the original CLUE. For the MNIST dataset, inference time dropped from approximately 5 seconds to just 0.02 seconds per explanation.
  • Richness of Explanation: $\nabla$-CLUE successfully identifies multiple distinct paths to certainty. For instance, an uncertain digit '2' might be transformed into a certain '2', '9', or '4', providing a broader view of the model's decision boundaries and potential recourses.
  • Actionability and Realism: By operating in the latent space of a Deep Generative Model (like a VAE), our counterfactuals remain "on-manifold." This ensures that suggested changes look like real data rather than adversarial noise.
Examples of diverse counterfactuals for MNIST and Synbols. The method shows how an uncertain input can be minimally changed into various certain classes.

Discussion and Future Work

While GLAM-CLUE offers impressive speed, its reliance on a simple global translation may struggle with highly complex, non-linear uncertainty manifolds. Future research could explore more sophisticated amortized mappings, such as small neural networks, or pre-clustering uncertain points to apply localized translations. Furthermore, while we use mathematical metrics for diversity, human-in-the-loop studies are needed to validate which types of diverse explanations are most useful for end-users in real-world scenarios.

Summary updated

BibTeX
@inproceedings{ley2022diverse,
  author = {Dan Ley and Umang Bhatt and Adrian Weller},
  title = {{Diverse, Global and Amortised Counterfactual Explanations for Uncertainty Estimates}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20702},
}
Figure