Efficiently Computing Compact Formal Explanations

Min Wu, X. Rong Li, Haoze Wu, Christopher B. Barrett · DOI

Abstract

Building on VeriX (Verified eXplainability), a system for producing optimal verified explanations for machine learning models, we present VeriX+, which significantly improves both the size and the generation time of formal explanations. We introduce a bound propagation-based sensitivity technique to improve the size, and a binary search-based traversal with confidence ranking for improving time. We also show how to adapt the QuickXplain algorithm to our setting to provide a trade-off between size and time. Experimental evaluations demonstrate significant improvements, such as a 90% time reduction on MNIST and a 38% size reduction on GTSRB. Our approach scales to transformers and real-world scenarios like autonomous aircraft taxiing.

Introduction

As AI models are increasingly deployed in safety-critical environments—such as autonomous flight or medical diagnosis—understanding the rationale behind specific decisions becomes paramount. While "local" explainers like LIME or SHAP are widely used for their speed, they lack formal guarantees; an explanation might fail to hold if the input is slightly perturbed.

Formal Explainable AI (XAI) addresses this by identifying a minimal set of features that verifiably ensures the model's decision remains unchanged under any perturbation of the remaining features. However, early formal tools like the original VeriX were computationally expensive and often produced "bloated" explanations. VeriX+ aims to make these rigorous guarantees practical for large-scale, real-world models.

Methodology: The VeriX+ Framework

VeriX+ introduces three primary optimizations to enhance efficiency and compactness:

  1. Bound Propagation-based Sensitivity: To rank feature importance, VeriX+ utilizes Interval Bound Propagation (IBP) and CROWN (symbolic interval analysis). By mathematically bounding a feature's influence on the output, the system creates a more accurate traversal order, leading to significantly more compact explanations.
  2. Binary Search Traversal: Moving beyond sequential feature testing, VeriX+ employs a binary search-inspired algorithm. By testing batches of features simultaneously, the system can discard entire groups of irrelevant data in a single verification call, drastically reducing computation time.
  3. Confidence Ranking: During safety checks, VeriX+ prioritizes the most likely alternative classes. If a high-confidence runner-up can flip the decision, the check fails immediately, further accelerating the process.
The VeriX+ framework architecture, highlighting the new Feature Ordering and Traversal optimizations.

Additionally, the framework incorporates the QuickXplain algorithm, allowing users to tune the trade-off between explanation size and computation time.

Experimental Results and Insights

The framework was evaluated across diverse benchmarks, including MNIST, GTSRB, CIFAR10, and transformer-based models like TaxiNet and IMDB sentiment analysis.

  • Performance Gains: On MNIST-CNN, VeriX+ achieved a 90% reduction in generation time (from 439s to 42s). On the GTSRB dataset, explanation size was reduced by 38%, resulting in heatmaps that focus more precisely on the relevant traffic sign features.
  • Adversarial Robustness: Interestingly, models trained to be robust against adversarial attacks yield smaller formal explanations, suggesting they learn to focus on a more concise set of core features.
  • OOD Detection: The size of a formal explanation serves as a powerful diagnostic tool. Large explanations often indicate "Out-of-Distribution" (OOD) samples. VeriX+ achieved an AUROC of 98% on GTSRB for OOD detection, surpassing standard confidence-based methods.

Real-World Application: Autonomous Taxiing

VeriX+ demonstrates scalability to complex architectures like Transformers. In the context of TaxiNet, a model used for autonomous aircraft taxiing, formal explanations identify the specific runway markings and boundaries critical to the model's steering decisions.

A formal explanation for the TaxiNet model, identifying the critical runway features for autonomous taxiing.

Conclusion

VeriX+ represents a significant leap in making formal XAI viable for complex models. While scalability to massive Large Language Models (LLMs) remains a challenge due to the NP-hard nature of formal verification, the speedups and compactness achieved here provide a foundation for future work. Future research will focus on human-in-the-loop assessments and exploring approximations that balance formal certainty with extreme scalability.

Summary updated

BibTeX
@inproceedings{wu2026efficiently,
  author = {Min Wu and X. Rong Li and Haoze Wu and Christopher B. Barrett},
  title = {{Efficiently Computing Compact Formal Explanations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i42.40900},
}
Figure