TL;DR
The authors introduce LiCE (Likely Counterfactual Explanations), a framework that uses Sum-Product Networks (SPNs) to ensure AI explanations are not just mathematically "close" to the original data, but also highly plausible. By formulating the search as a Mixed-Integer Optimization (MIO) problem, they provide a system that balances validity, sparsity, and likelihood, outperforming existing generative and proximity-based methods on complex, real-world datasets.
What Problem Does This Paper Address?
When an AI denies a loan application, the user naturally asks: "What would I need to change to get approved?" This is known as a Counterfactual Explanation (CE).
A good CE should satisfy several key "desiderata":
- Validity: It must actually change the model's outcome.
- Similarity/Proximity: It should be close to the original input (e.g., don't tell someone to increase their income by $1 million).
- Sparsity: It should change as few features as possible to remain understandable.
- Actionability: It shouldn't suggest changing immutable characteristics (e.g., "be five years younger").
- Plausibility: It shouldn't be an outlier. It must look like a "real" person's data.
The challenge is that these goals often conflict. Simple distance-based methods frequently produce "unlikely" outliers that are technically close but practically impossible. Conversely, generative methods (like VAEs) produce plausible results but often struggle with categorical data or fail to find the closest possible explanation.
As shown in the comparison above, prior methods typically force a compromise, sacrificing sparsity for plausibility or failing to handle complex data types. LiCE aims to satisfy all these requirements simultaneously.
Methods
The authors propose a novel marriage between Sum-Product Networks (SPNs) and Mixed-Integer Optimization (MIO) to solve this multi-objective problem.
- SPNs for Plausibility: SPNs are a class of "tractable" probabilistic models. Unlike deep generative models, they allow for exact likelihood computation and naturally handle a mix of continuous and categorical data. LiCE uses a trained SPN to estimate exactly how "likely" a proposed counterfactual is.
- MIO for the Search: Instead of using gradient descent—which struggles with discrete features and complex constraints—the authors model the search for the best CE as an MIO problem. This allows them to treat desiderata like "don't change the race feature" or "age can only increase" as hard mathematical constraints.
- The MIO-SPN Formulation: The paper's core technical contribution is a way to represent an SPN's log-likelihood calculation within an MIO framework. Because sum nodes in an SPN are non-linear in log-space, they use a "max" approximation. They demonstrate that this approximation is surprisingly accurate, with an error of only about 3% on average.
Datasets
The authors evaluated LiCE on three standard "high-stakes" tabular datasets: Give Me Some Credit (GMSC), Adult (income prediction), and German Credit. They also utilized several synthetic datasets derived from Bayesian Networks (asia, alarm, win95pts, andes) to verify if the SPN correctly captured the "true" underlying data distribution.
Key Insights and Ideas
- Plausibility as a Constraint, Not an Afterthought: Most methods check for plausibility only after generating a candidate. LiCE bakes the likelihood directly into the optimization objective or treats it as a hard threshold (e.g., "the CE must be at least as likely as the median training sample").
- Linearizing the Probabilistic: By performing computations in log-space and using a big-M formulation for the max-approximation of sum nodes, the authors turned a complex probabilistic inference task into a set of linear constraints that modern solvers (like Gurobi) can handle efficiently.
- Handling "Complex" Data: Many Explainable AI (XAI) methods fail when faced with a mix of integers, categories, and continuous values. By using a "mixed polytope" formulation, LiCE treats these diverse data types as first-class citizens.
Key Results
- Superior Plausibility: LiCE consistently produced counterfactuals with higher likelihoods (lower Negative Log-Likelihood) than proximity-based methods and even some generative methods like C-CHVAE.
- Better Sparsity: In the German Credit example, while other methods suggested changing five or more features, LiCE found a highly plausible explanation that changed only a single "hidden" feature.
- 100% Success Rate: On the GMSC and Adult datasets, LiCE variants achieved a 100% success rate in finding valid and actionable counterfactuals, whereas VAE-based methods often failed to find any valid solution for a large portion of the test cases.
Visualizations of the counterfactual space (such as the Credit dataset plot above) highlight how LiCE navigates to high-likelihood regions (yellow bands) while remaining remarkably close to the original factual data point, outperforming competing methods that either drift too far or land in low-likelihood zones.
Limitations and Future Work
- Computational Complexity: MIO is NP-Hard. While the authors found solutions within a 2-minute window for their experiments, the time complexity scales with the size of the SPN and the number of features. For real-time applications, this might be a bottleneck.
- Reliance on SPN Quality: LiCE is only as good as the SPN used to model the data. On very large, high-dimensional synthetic datasets, the SPN struggled to capture the distribution perfectly with limited training data, which in turn affected the quality of the counterfactuals.
- Future Directions: The authors suggest exploring approximation algorithms to speed up the MIO solver and investigating other SPN-based models that might provide even tighter bounds on plausibility.
Summary updated