Skip to main content
QUICK REVIEW

[Paper Review] Efficient Explanations for Knowledge Compilation Languages

Xuanxiang Huang, Yacine Izza|arXiv (Cornell University)|Jul 4, 2021
Bayesian Modeling and Causal InferenceComputer Science57 references9 citations
TL;DR

This paper demonstrates that for knowledge compilation (KC) languages such as d-DNNF and SDD—commonly used in explainable AI and constraint programming—both individual and multiple counterfactual and post-hoc explanations (AXps and CXps) can be computed in polynomial time. The key contribution is that if a KC language supports polynomial-time consistency (CO), validity (VA), and conditioning (CD) queries, then efficient explanation generation is tractable, with experimental results showing negligible runtime overhead and high scalability in practice.

ABSTRACT

Knowledge compilation (KC) languages find a growing number of practical uses, including in Constraint Programming (CP) and in Machine Learning (ML). In most applications, one natural question is how to explain the decisions made by models represented by a KC language. This paper shows that for many of the best known KC languages, well-known classes of explanations can be computed in polynomial time. These classes include deterministic decomposable negation normal form (d-DNNF), and so any KC language that is strictly less succinct than d-DNNF. Furthermore, the paper also investigates the conditions under which polynomial time computation of explanations can be extended to KC languages more succinct than d-DNNF.

Motivation & Objective

  • To address the growing need for efficient, formal explanations in machine learning and constraint programming systems that use knowledge compilation (KC) languages.
  • To identify which KC languages allow tractable computation of post-hoc (AXp) and contrastive (CXp) explanations.
  • To develop a practical, oracle-based enumeration algorithm for multiple explanations with minimal computational overhead.
  • To extend tractable explanation computation to generalized decision functions and multi-class classifiers.
  • To validate the theoretical efficiency of explanation algorithms through empirical evaluation on real-world datasets.

Proposed method

  • Leverages the polynomial-time support for core KC operations—consistency (CO), validity (VA), and conditioning (CD)—as a sufficient condition for tractable explanation generation.
  • Proposes a MARCO-like algorithm that generates one explanation per NP oracle call, enabling efficient enumeration of multiple AXps and CXps.
  • Employs SAT oracle calls to check explanation validity and consistency, with performance tuned via optimizations specific to SDDs.
  • Introduces generalized conditions under which DNNF-based decision functions can be explained in polynomial time, extending beyond standard d-DNNF.
  • Applies the framework to multi-class classifiers by adapting the explanation logic to support multi-class decision boundaries.
  • Employs cactus plots and runtime measurements to evaluate scalability and efficiency on real-world datasets compiled into d-DNNF and SDD.

Experimental results

Research questions

  • RQ1Under what conditions on a knowledge compilation language can individual post-hoc and contrastive explanations be computed in polynomial time?
  • RQ2Can the enumeration of multiple explanations be made efficient, with minimal computational cost per explanation?
  • RQ3How do the performance characteristics of d-DNNF and SDD compare in practice for explanation generation?
  • RQ4What conditions allow generalized decision functions built from KC languages to remain explainable in polynomial time?
  • RQ5Can the proposed framework scale to multi-class classifiers while maintaining tractable explanation computation?

Key findings

  • For d-DNNF and SDD languages, the maximum runtime to enumerate all AXps and CXps across all test instances was under 0.2 seconds for d-DNNF and under 0.02 seconds for SDD.
  • On average, it took only 0.038 seconds to enumerate all explanations for d-DNNFs and just a few milliseconds for SDDs, indicating negligible overhead from SAT oracle calls.
  • Explaining SDDs was on average 6 times faster than explaining d-DNNFs, primarily due to constant-time consistency and validity checks in SDDs.
  • The average length of an explanation (AXp or CXp) was relatively small compared to the total number of features, indicating concise and interpretable explanations.
  • The total number of explanations per instance remained small, supporting practical usability for decision-makers.
  • The experimental results confirm that the theoretical polynomial-time guarantees translate into highly efficient and scalable explanation generation in practice.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.