Towards Verified and Targeted Explanations through Formal Methods
Organizations: Vanderbilt University, Nashville, Tennessee, USA
Abstract
As deep neural networks are deployed in safety-critical domains such as autonomous driving and medical diagnosis, stakeholders need explanations that are interpretable but also trustworthy with formal guarantees. Existing XAI methods fall short: heuristic attribution techniques (e.g., LIME, Integrated Gradients) highlight influential features but offer no mathematical guarantees about decision boundaries, while formal methods verify robustness yet remain untargeted, analyzing the nearest boundary regardless of whether it represents a critical risk. In safety-critical systems, not all misclassifications carry equal consequences; confusing a "Stop" sign for a "60 kph" sign is far more dangerous than confusing it with a "No Passing" sign. We introduce ViTaX (Verified and Targeted Explanations), a formal XAI framework that generates targeted semifactual explanations with mathematical guarantees. For a given input (class y) and a user-specified critical alternative (class t), ViTaX: (1) identifies the minimal feature subset most sensitive to the y->t transition, and (2) applies formal reachability analysis to guarantee that perturbing these features by epsilon cannot flip the classification to t. We formalize this through Targeted epsilon-Robustness, certifying whether a feature subset remains robust under perturbation toward a specific target class. ViTaX is the first method to provide formally guaranteed explanations of a model's resilience against user-identified alternatives. Evaluations on MNIST, GTSRB, EMNIST, and TaxiNet demonstrate over 30% fidelity improvement with minimal explanation cardinality.
Figures & tables
| MNIST (MLP) | GTSRB (CNN) | |||||||
| Method | Fid. | Rob. (NE) | Time (s) | Card. | Fid. | Rob. (NE) | Time (s) | Card. |
| Heuristic/Probabilistic Methods | ||||||||
| LIME (Adapted) | 0.09 | 0.93 | 3.42 | 44.27 | 0.32 | 0.60 | 4.65 | 47.11 |
| Anchors (Adapted) | 0.11 | 0.94 | 4.06 | 41.59 | 0.57 | 0.56 | 8.73 | 75.11 |
| TSA | 0.52 | 0.97 | 0.01 | 514.37 | 0.10 | 0.92 | 0.02 | 621.47 |
| Prototype | 0.15 | 0.93 | 0.00 | 214.44 | 0.33 | 1.00 | 0.00 | 782.59 |
| Method | Mechanism | Example (HELOC) | Nature of Guarantee |
| LIME/Anchors (Adapted) | Local Surrogate + Probabilistic Sampling. Identifies features that ensure prediction persistence with high probability. | “Maintaining the current ‘ExternalRiskEstimate’ and ‘AverageMInFile’ is sufficient to keep the ‘Good Risk’ status with 95% probability.” | Probabilistic & Empirical. |
| Prototype / TSA | Example-based search or iterative optimization. Finds specific instances or perturbations that do not cross the boundary. | “Even when ‘NumInqLast6M’ was increased by 2, the status remained ‘Good Risk’.” | Heuristic / Best Effort. |
| VeriX | Formal Verification (MILP/SMT). Finds features that guarantee the prediction regardless of other feature values (Sufficiency). | “It’s guaranteed that as long as ‘ExternalRiskEstimate’ < 65, the loan is always ‘Good Risk’.” | Deterministic & Formal (Untargeted). |
| ViTaX | Formal Reachability + Efficient Search. Proves perturbation of critical features (A) by is insufficient to cross the boundary towards a specific target (t). | For a ‘Good Risk’ applicant, it’s guaranteed that if you change ‘ExternalRiskEstimate’ and ‘AverageMInFile’ by up to 10% in any combination, the result will not change to ‘Bad Risk’. | Deterministic & Formal (Targeted). |
| Model | # Params | Acc (%) | Fid. | Rob. (NE) | Time (s) | Card. | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| CNN | 15,634 | 99.0 | 0.39 | 0.55 | 0.99 | 0.97 | 56.89 | 55.24 | 476.4 | 237.5 |
| ResNet-Tiny | 10,738 | 97.1 | 0.30 | 0.37 | 0.77 | 0.82 | 58.52 | 57.65 | 270.3 | 68.6 |
| ResNet-Small | 173,850 | 99.4 | 0.27 | 0.39 | 0.97 | 0.92 | 60.80 | 58.73 | 463.3 | 177.2 |
| ResNet-Large | 693,802 | 99.1 | 0.29 | 0.34 | 0.94 | 0.86 | 63.74 | 61.83 | 421.1 | 90.5 |
| Inception | 490,954 | 84.1 | 0.16 | 0.16 | 0.93 | 0.92 | 66.71 | 66.40 | 124.8 | 55.2 |
| Solver Method | Time (s) | Card. | Fidelity | Rob. (NE) |
|---|---|---|---|---|
| Exact Star | 30.71 | 129.66 | 0.220 | 0.60 |
| Approx Star | 2.04 | 111.46 | 0.218 | 0.59 |
| Relax Star 50% | 2.06 | 111.46 | 0.218 | 0.59 |
| Relax Star 75% | 2.03 | 109.91 | 0.217 | 0.59 |
| Relax Star 85% | 2.00 | 109.91 | 0.217 | 0.59 |
| CP Star | 52.18 | 130.28 | 0.211 | 0.59 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Target Class | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Class | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 0 | - | 26.4% | 21.3% | 22.1% | 26.8% | 24.9% | 21.4% | 21.8% | 24.5% | 22.6% |
| 1 | 11.0% | - | 9.6% | 7.6% | 8.6% | 8.7% | 7.4% | 5.8% | 8.3% | 8.4% |
| 2 | 16.0% | 13.3% | - | 12.7% | 18.8% | 18.9% | 18.0% | 11.8% | 17.1% | 18.8% |
| 3 | 17.1% | 20.6% | 14.6% | - | 20.9% | 13.3% | 20.0% | 19.7% | 14.2% | 14.5% |
| 4 | 16.2% | 17.7% | 16.2% | 17.5% | - | 16.2% | 14.9% | 15.5% | 17.0% | 9.6% |
| Type | Parameters | Activation |
|---|---|---|
| Input | - | |
| Convolution | ReLU | |
| Convolution | ReLU | |
| Flatten | - | - |
| Fully Connected | 20 | ReLU |
| Fully Connected | # classes | softmax |
Explainable Artificial Intelligence
Explainable artificial intelligence develops ways to make AI decisions understandable, testable, and useful to people.
See all 326 papers