[Paper Review] On Efficiently Explaining Graph-Based Classifiers
This paper introduces explanation graphs (XpG), a novel graph representation enabling polynomial-time computation of both prime implicant (PI) and contrastive explanations for a broad class of graph-based classifiers, including decision trees and binary decision diagrams. It proves that for decision trees, all contrastive explanations can be enumerated in polynomial time, and feature membership in any explanation is decidable in P, with experiments confirming practical efficiency on real-world benchmarks.
Recent work has shown that not only decision trees (DTs) may not be interpretable but also proposed a polynomial-time algorithm for computing one PI-explanation of a DT. This paper shows that for a wide range of classifiers, globally referred to as decision graphs, and which include decision trees and binary decision diagrams, but also their multi-valued variants, there exist polynomial-time algorithms for computing one PI-explanation. In addition, the paper also proposes a polynomial-time algorithm for computing one contrastive explanation. These novel algorithms build on explanation graphs (XpG's). XpG's denote a graph representation that enables both theoretical and practically efficient computation of explanations for decision graphs. Furthermore, the paper proposes a practically efficient solution for the enumeration of explanations, and studies the complexity of deciding whether a given feature is included in some explanation. For the concrete case of decision trees, the paper shows that the set of all contrastive explanations can be enumerated in polynomial time. Finally, the experimental results validate the practical applicability of the algorithms proposed in the paper on a wide range of publicly available benchmarks.
Motivation & Objective
- To address the lack of formal, scalable explanation methods for graph-based classifiers like decision trees and binary decision diagrams.
- To develop a unified framework for computing both PI-explanations and contrastive explanations with formal guarantees.
- To enable efficient enumeration of explanations using a single SAT oracle call per explanation.
- To analyze the computational complexity of key explanation tasks, such as feature membership in explanations.
- To validate the practical scalability and efficiency of the proposed algorithms on real-world benchmarks.
Proposed method
- Introduces explanation graphs (XpG), a graph-based representation that compactly encodes the decision logic of classifiers, enabling efficient explanation computation.
- Reduces various classifiers, including multi-valued decision trees and OBDDs, to XpG representations for uniform explanation processing.
- Employs a SAT-based enumeration algorithm that issues one SAT call per explanation, ensuring practical efficiency.
- Adapts the MARCO algorithm for MUS/MCS enumeration to efficiently enumerate explanations in practice.
- Leverages monotone functions and duality principles to relate explanation computation to known logic-based reasoning techniques.
- Proves complexity bounds for explanation membership: NP-complete for general XpGs, Σ₂^P-hard for DNF formulas, but P-complete for tree-structured XpGs (e.g., decision trees).
Experimental results
Research questions
- RQ1Can polynomial-time algorithms be developed for computing one PI-explanation and one contrastive explanation across a broad class of graph-based classifiers?
- RQ2Is it possible to enumerate all explanations efficiently, with minimal computational overhead per explanation?
- RQ3What is the computational complexity of determining whether a given feature can be part of any explanation?
- RQ4Can the proposed framework be applied uniformly across different types of decision graphs, including multi-valued variants?
- RQ5How does the proposed method scale in practice on real-world datasets with varying complexity?
Key findings
- For decision trees, all contrastive explanations can be enumerated in polynomial time, offering a new route to PI-explanation enumeration.
- The feature membership problem is decidable in P for tree-structured explanation graphs, which model decision trees, enabling efficient analysis of feature relevance.
- The proposed SAT-based enumeration method scales well in practice, with average runtime under 0.074 seconds for OBDDs and under 0.036 seconds for decision trees across all benchmarks.
- The average length of explanations (%L) is small relative to the number of features, indicating concise and interpretable results.
- The total number of explanations per instance is low—on average less than 11 and never exceeding 18—making exhaustive enumeration feasible.
- The method achieves negligible overhead from SAT oracle calls, as the CNF formula size grows linearly with the number of explanations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.