Introduction
Probabilistic models often output uncertain predictions, which can be difficult for practitioners to interpret. Existing methods like Counterfactual Latent Uncertainty Explanations (CLUE) attempt to explain this by finding a single nearby input that the model is confident about. However, this approach is limited because it provides only one explanation, potentially hiding the true nature of a model's ambiguity. This paper introduces δ-CLUE, a method that generates a diverse set of counterfactual explanations constrained within a specific radius (δ) in the latent space, providing a richer understanding of why an input was ambiguous.
The Problem of Single Explanations
When a machine learning model is uncertain, it is often because the input lies near a decision boundary between multiple classes. For example, a messy handwritten digit might resemble both a "7" and a "9".
Original CLUE might only show how to change such an input into a clear "7". By failing to show that it could also easily become a "9", the method obscures the model's true decision boundary. δ-CLUE addresses this by generating multiple plausible explanations, giving users a complete picture of the model's uncertainty.
Methodology
δ-CLUE builds upon the CLUE framework, using a Variational Autoencoder (VAE) for realistic data generation and a Bayesian Neural Network (BNN) for uncertainty estimation. The core innovations include:
- The δ-ball Constraint: Search is restricted to a hypersphere of radius δ around the original input's latent representation.
- Projected Gradient Descent: The algorithm uses gradient descent to minimize uncertainty, projecting steps back onto the δ-ball surface if they exceed the radius.
- Diverse Initializations: By starting the search from different points within the δ-ball, the algorithm can find multiple local minima representing different classes or styles.
- Loss Functions: The authors utilize a combined loss function ($\mathcal{L}_{\mathcal{H}+d}$) that balances minimizing uncertainty ($\mathcal{H}$) with maintaining pixel-space similarity ($d$) to the original image.
Key Insights and Results
Experiments on the MNIST dataset, focusing on the most uncertain digits in the test set, revealed several key findings:
- Uncertainty vs. Distance: There is a direct trade-off between making an image look like the original and making the model confident. The combined loss function $\mathcal{L}_{\mathcal{H}+d}$ effectively manages this, improving visual similarity with minimal impact on uncertainty reduction.
- Randomness for Diversity: Randomly initializing the gradient descent within the δ-ball yielded a wider variety of explanations than deterministic approaches.
- Label Distributions: By generating many δ-CLUEs, practitioners can create a "label distribution" (e.g., 60% "7", 40% "9") to interpret exactly how the model is confused.
Conclusion
δ-CLUE provides a robust framework for generating diverse counterfactual explanations, offering deeper insights into model uncertainty than single-point methods. Future work will focus on automating mode evaluation and extending the method to more complex, high-dimensional datasets.
Summary updated