[Paper Review] On Computing Relevant Features for Explaining NBCs
This paper proposes a pseudo-polynomial dynamic programming algorithm to compute succinct, provably precise probabilistic abductive explanations (ApproxPAXp) for Naive Bayes Classifiers (NBCs), trading minimal precision loss for significant reductions in explanation size. Experiments show that ApproxPAXp explanations are consistently shorter than rigorous AXp explanations—often halving the size—while maintaining high precision (e.g., >95%) and executing in under 2 seconds even on large datasets.
Despite the progress observed with model-agnostic explainable AI (XAI), it is the case that model-agnostic XAI can produce incorrect explanations. One alternative are the so-called formal approaches to XAI, that include PI-explanations. Unfortunately, PI-explanations also exhibit important drawbacks, the most visible of which is arguably their size. The computation of relevant features serves to trade off probabilistic precision for the number of features in an explanation. However, even for very simple classifiers, the complexity of computing sets of relevant features is prohibitive. This paper investigates the computation of relevant sets for Naive Bayes Classifiers (NBCs), and shows that, in practice, these are easy to compute. Furthermore, the experiments confirm that succinct sets of relevant features can be obtained with NBCs.
Motivation & Objective
- Address the critical limitation of large explanation sizes in formal, rigorous XAI approaches, especially for high-stakes AI applications.
- Overcome the impracticality of exhaustive abductive explanation (AXp) computation in NBCs by introducing a scalable approximation method.
- Develop a method that balances explanation succinctness with strong probabilistic guarantees on precision, suitable for human decision-making.
- Demonstrate that approximate probabilistic explanations (ApproxPAXp) can be computed efficiently and effectively for NBCs, despite theoretical complexity.
- Provide a practical solution for generating short, reliable explanations that respect cognitive limits (e.g., Miller’s 7±2 rule) without sacrificing precision.
Proposed method
- Formalize the problem of computing probabilistic abductive explanations (AXp) for NBCs as counting models of restricted integer programming constraints.
- Propose a dynamic programming-based algorithm to compute the number of feature assignments predicting a given class, enabling approximate explanation computation.
- Introduce ApproxPAXp as a heuristic approximation that ensures explanations are no larger than any rigorous AXp and no smaller than any probabilistic AXp.
- Use a threshold-based pruning strategy to generate explanations that are both succinct and provably precise, with guarantees on minimum precision (δ).
- Implement a prototype using SMT-like reasoning and dynamic programming tables, tuned for efficiency and scalability on large datasets.
- Evaluate the algorithm across multiple benchmark datasets, varying δ and target sizes, to assess precision, size, and runtime trade-offs.
Experimental results
Research questions
- RQ1Can approximate probabilistic abductive explanations (ApproxPAXp) be computed efficiently for Naive Bayes Classifiers while preserving strong probabilistic guarantees?
- RQ2To what extent can ApproxPAXp reduce explanation size compared to rigorous AXp explanations without significant loss in precision?
- RQ3How does the proposed dynamic programming approach scale in practice on real-world datasets, particularly in terms of runtime and memory usage?
- RQ4What is the empirical trade-off between explanation length and precision across different datasets and threshold values (δ)?
- RQ5Can the algorithm generate explanations within the cognitive capacity of human users (e.g., 7±2 features) while maintaining high precision?
Key findings
- ApproxPAXp explanations are consistently shorter than rigorous AXp explanations—on average, 2× shorter for datasets like agaricus and mushroom when target size is 7.
- For target size ≤7, the average explanation length across all datasets is 5.3–5.1, well within the cognitive limit of 7±2 features.
- Average precision of ApproxPAXp explanations exceeds the threshold δ by significant margins: >97% for adult, vote, threeOf9, xd6, mamo, and tumor; >95% for chess and kr-vs-kp.
- Runtime is negligible in practice: average 0.33 seconds across all instances, with a maximum of 2 seconds even on the largest datasets (agaricus, mushroom).
- With higher precision thresholds (δ = 0.98), the algorithm remains scalable, with average runtime of 7.22 seconds for agaricus at target size 7.
- For target size ≤4, the fraction of instances with explanations of size ≤4 is high (96–100%) for most datasets, indicating strong practical feasibility.
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.