Formally Explaining Decision Tree Models with Answer Set Programming
Akihiro Takemura, Masayuki Otani, Katsumi Inoue
TL;DR
This work tackles the challenge of providing formal, verifiable explanations for decision tree models and their ensembles. It introduces ASP encodings to generate four explanation types—sufficient, contrastive, majority, and tree-specific—for decision trees, random forests, and boosted trees, with the ability to enumerate multiple explanations under user constraints. Empirical results on 20 datasets show the ASP approach can match or surpass SAT-based methods for several explanation types, while also revealing scalability bottlenecks in large forests. The framework offers a flexible, unified, logic-based tool for explainable AI that can incorporate domain-specific constraints and preferences.
Abstract
Decision tree models, including random forests and gradient-boosted decision trees, are widely used in machine learning due to their high predictive performance. However, their complex structures often make them difficult to interpret, especially in safety-critical applications where model decisions require formal justification. Recent work has demonstrated that logical and abductive explanations can be derived through automated reasoning techniques. In this paper, we propose a method for generating various types of explanations, namely, sufficient, contrastive, majority, and tree-specific explanations, using Answer Set Programming (ASP). Compared to SAT-based approaches, our ASP-based method offers greater flexibility in encoding user preferences and supports enumeration of all possible explanations. We empirically evaluate the approach on a diverse set of datasets and demonstrate its effectiveness and limitations compared to existing methods.
