Computing Abductive Explanations for Boosted Regression Trees

Gilles Audemard, Steve Bellart, Jean-Marie Lagniez, Pierre MarquisIJCAI 2023

Introduction

Gradient-boosted regression trees (GBRTs), such as those implemented in XGBoost or LightGBM, are among the most effective machine learning models for tabular data. However, their ensemble nature—often comprising hundreds of individual trees—renders them "black boxes," making it difficult to understand the logic behind specific predictions. In high-stakes domains like healthcare, autonomous driving, or finance, interpretability is a critical requirement.

While popular methods like SHAP and LIME provide feature importance scores, they are "model-agnostic" and lack formal guarantees of soundness. This means they might provide the same explanation for two different outcomes, or fail to capture the true underlying logic of the model. Formal Explainable AI (XAI) addresses this by seeking abductive explanations (also known as "sufficient reasons"): minimal subsets of features that mathematically guarantee the model's prediction remains unchanged, regardless of the values of any other features.

The Challenge of Formal XAI

Finding minimal abductive explanations for tree ensembles is a computationally daunting task, classified as NP-hard. As models grow in size or datasets increase in dimensionality, traditional formal reasoners often struggle, leading to frequent timeouts. This complexity has historically limited the practical application of formal XAI to larger, more accurate models.

Tree-Specific (TS) Explanations

To bridge the gap between computational speed and formal soundness, this research introduces Tree-Specific (TS) Explanations. The core innovation lies in the realization that while optimizing over an entire ensemble is hard, finding the "worst-case" scenario for a single regression tree is a linear-time operation.

Visualization of paths within a boosted tree ensemble. Highlighted paths represent the logic contributing to a specific prediction.

A TS-explanation is defined as a set of features where, even if every individual tree in the ensemble were to take its "worst-case" path allowed by those features, the total sum of the weights would still favor the original classification. The authors propose a greedy, polynomial-time algorithm ($O(n|BT|)$) that starts with all features and iteratively prunes them as long as the "worst-case sum" remains positive for the predicted class. This produces a "provably sound" certificate of the decision.

A Hybrid Pipeline for Efficiency

Because the greedy TS algorithm is fast but may not find the absolute smallest (minimal) explanation, the researchers developed a two-stage hybrid pipeline:

  1. TS Preprocessing: The fast TS algorithm is used to rapidly find a sound explanation, significantly reducing the search space.
  2. Formal Reasoning: This reduced set of features is fed into XReason, a powerful formal reasoner, which performs the final optimization to trim the explanation to its absolute minimum.

This "gray-box" approach exploits the internal structure of the boosted trees to turn an intractable global optimization problem into a manageable local one.

Experimental Evaluation

The approach was rigorously tested on 50 benchmark datasets sourced from Kaggle, OpenML, and the UCI repository, including well-known sets like Adult (census data), Gisette, and Malware detection. The datasets varied significantly, ranging from 10 to over 100,000 features.

Performance comparison between the standalone XReason and the TS+XReason pipeline. (a) Run times show a dramatic reduction in latency. (b) Reduction rates highlight the efficiency in finding minimal explanations.

The results, based on 5,000 test instances, demonstrate a massive performance leap:

  • Significant Speedup: The TS + XReason pipeline consistently outperformed standalone reasoning. In many instances where XReason alone hit a 100-second timeout, the hybrid pipeline finished in a fraction of the time.
  • Higher Success Rate: The combined pipeline successfully found minimal explanations for 3,476 cases. Notably, it solved 613 instances that the standalone solver failed to process within the time limit.
  • Intelligible Explanations: The efficiency of the TS method allows it to be run multiple times with different random feature orderings. By selecting the shortest result from these runs, the authors can provide users with more concise and understandable explanations.

Conclusion and Future Work

By introducing tree-specific bounds, this work makes formal, provably sound explanations viable for large-scale boosted tree ensembles. This method ensures that explanations are not just approximations but mathematical guarantees. Future work will focus on smarter heuristics for feature removal and the integration of these tools into the open-source PyXAI library, making rigorous interpretability accessible to the broader data science community.

Summary updated

BibTeX
@inproceedings{audemard2023computing,
  author = {Gilles Audemard and Steve Bellart and Jean-Marie Lagniez and Pierre Marquis},
  title = {{Computing Abductive Explanations for Boosted Regression Trees}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/382},
}
Figure