# Extending XReason: Formal Explanations for Adversarial Detection

arXiv: https://arxiv.org/abs/2501.00537 · HTML: https://mlsanity.com/paper/2501.00537/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 31 Dec 2024.

## Built on by (most cited first, 2 of 2)

- [Reliable XAI Explanations in Sudden Cardiac Death Prediction for Chagas Cardiomyopathy](https://mlsanity.com/paper/2602.22288/) (2026)
- [Beyond Explaining Predictions: Logic-Based Explanations for Confidence in Machine Learning Models](https://mlsanity.com/paper/2606.10347/) (2026)

## Abstract (arXiv)

Explainable Artificial Intelligence (XAI) plays an important role in improving the transparency and reliability of complex machine learning models, especially in critical domains such as cybersecurity. Despite the prevalence of heuristic interpretation methods such as SHAP and LIME, these techniques often lack formal guarantees and may produce inconsistent local explanations. To fulfill this need, few tools have emerged that use formal methods to provide formal explanations. Among these, XReason uses a SAT solver to generate formal instance-level explanation for XGBoost models. In this paper, we extend the XReason tool to support LightGBM models as well as class-level explanations. Additionally, we implement a mechanism to generate and detect adversarial examples in XReason. We evaluate the efficiency and accuracy of our approach on the CICIDS-2017 dataset, a widely used benchmark for detecting network attacks.
