Abstract
This paper introduces LAPACE, a novel framework for generating counterfactual explanations (CEs) that are exceptionally robust, plausible, and diverse. By training a Label-conditional Gaussian Mixture Variational Autoencoder (L-GMVAE), the authors create a structured latent space where "paths" of recourse can be synthesized, allowing users to navigate the trade-off between minimal change and long-term stability.
Introduction
In Explainable AI (XAI), Counterfactual Explanations (CEs) answer the question: "What is the smallest change I can make to my input to get a different outcome from the model?" (e.g., "If your income were $5k higher, your loan would be approved").
While many methods exist, they often fail in three critical areas:
- Robustness: If the input changes slightly (input perturbation) or the model is retrained (model perturbation), the suggested recourse might become invalid or change drastically.
- Plausibility: Some methods suggest "impossible" changes that do not look like real data.
- Diversity: Users often want multiple distinct options for recourse, not just one.
Existing methods usually tackle these properties in isolation. This paper seeks a unified, model-agnostic approach that handles all these requirements simultaneously.
The LAPACE Framework
The authors propose a two-stage generative framework:
- L-GMVAE (The Model): They adapt the Gaussian Mixture Variational Autoencoder to be label-conditional. During training, the model learns to map specific class labels to dedicated clusters in a latent space. Each cluster has a "centroid" (the mean of a Gaussian component) that represents a prototypical, highly plausible example of that class.
- LAPACE (The Algorithm): Short for LAtent PAth Counterfactual Explanations, this algorithm generates recourse by encoding a user's input into the latent space and then linearly interpolating toward the learned centroids of the target class.
By decoding points along this latent path back into the original input space, LAPACE produces a trajectory of potential CEs. This "path" approach is key: points near the start of the path offer high proximity (minimal change), while points near the end (the centroids) offer high plausibility and robustness. Additionally, the framework handles actionability constraints by using lightweight gradient optimization through the decoder to nudge the latent paths toward valid regions.
Experimental Evaluation
The authors evaluated their method on four standard tabular datasets from the CE benchmarking library (CARLA): HELOC, Wine Quality, Adult Income, and Compas. They also used the MNIST handwritten digit dataset for qualitative visualization.
Key Results
- Robustness: LAPACE-Last (the end of the path) achieved 100% robustness to model changes and input perturbations across several tests, significantly outperforming baselines like DiCE and FACE.
- Plausibility: The method achieved the best (lowest) Local Outlier Factor (LOF) scores, meaning the generated CEs look very much like real data points.
- Efficiency: LAPACE is one of the fastest methods tested, second only to NNCE, making it suitable for real-time applications due to its amortized inference.
- Validity: The "Centroid Accuracy" was consistently 100%, meaning the prototypes learned by the generative model were always correctly classified by the original model.
Analysis and Discussion
- Centroids as Anchors: By forcing all CEs for a specific class to converge toward fixed latent centroids, the method achieves high robustness. No matter how much you jitter the input, the target "destination" remains the same.
- Recourse as a Spectrum: Instead of providing a single point, LAPACE provides a path. This allows a user to choose: do they want the easiest change possible (Proximity), or the change that puts them most "safely" in the target class's territory (Plausibility/Robustness)?
- Amortized Inference: Once the L-GMVAE is trained, generating a path for a new user requires only a few fast forward passes through a neural network, avoiding expensive per-query optimization.
Conclusion and Future Work
While LAPACE offers significant advantages in robustness and plausibility, its performance is sensitive to the quality of the L-GMVAE training. Future directions include improving handling of high-cardinality categorical data, incorporating causal constraints, and exploring non-linear latent path interpolation methods like Bures-Wasserstein trajectories.
Summary updated