arXiv paper· artificial intelligence (knowledge compilation and formal explainability)· method paper

Solving Hard XAI Queries Based on a Compiled Dual-Rail Encoding

Arthur Ledaguenel, Florent Capelli, Jean-Marie Lagniez

cs.AI · cs.CC

Quick verdict

Proves key abductive-explanation queries stay NP/#P-hard on OBDDs, then shows compiled dual-rail encodings make them poly-time; solid theory, thin experiments.

Summary

This paper studies the complexity of computing abductive explanations for boolean classifiers given as compiled representations. The authors first prove hardness results: computing shortest implicants (Theorem 5), shortest abductive explanations (Corollary 8), and counting abductive explanations (Theorem 12) are NP-hard or #P-hard even for OBDDs, one of the most tractable knowledge compilation languages, via reductions from QSAT2 and minimum vertex cover. As a remedy, they propose reasoning over the dual-rail encoding f± of the classifier: a d-DNNF representation of f± supports polynomial-time algebraic model counting on implicants and abductive explanations (Theorems 6, 9), yielding efficient computation of shortest, weight-optimal, and stratified-preferred explanations and of abductive Shapley values (Theorem 11), while a dec-DNNF enables incremental-polynomial-delay enumeration of sufficient reasons (Theorem 10). Coverage-based explanations under domain constraints become decidable in polynomial time when structured representations share a vtree base (Theorem 16). Since the dual-rail of a CNF is itself a CNF computable in linear time (Lemma 17) with width at most doubled (Theorem 18), existing compilers apply as-is. Experiments with a modified d4 compiler on public benchmarks show dual-rail compilation solves fewer instances (1237 vs 1355) with nearly triple the memory-outs (171 vs 59) and roughly an order-of-magnitude slowdown. Main limitations: no query runtimes are measured, no SAT-solver baselines are compared, and #P-hardness of the abductive Shapley value remains unproven.

Review complete

Assessment at a glance

artificial intelligence (knowledge compilation and formal explainability)

3

risk flags identified

● high 0

● medium 1

● low 2

Reproducibility readinesshigh
Code & data availableyes
Review confidencehigh
AI text signal0/20 passages flagged
Deep research viableCode-reproducible

5 strengths · 5 weaknesses · 5 author questions

AI text signal = Binoculars zero-shot detector score over 20 sampled passages (Fast-DetectGPT co-reported) — absence does not prove human authorship, and a flag does not imply misconduct.

Levels reflect verification complexity — not a quality score. Evolve never rates your paper.

Key claims under review

  • Computing shortest implicants, shortest abductive explanations, and counting abductive explanations is NP-hard or #P-hard even when the classifier is given as a polynomial-size OBDD (Theorems 5, 12, Corollary 8).
  • A d-DNNF representation of the dual-rail encoding f± supports any algebraic model counting query on implicants and on abductive explanations of a positive decision in polynomial time (Theorems 6, 9), covering shortest, weight-optimal, and stratified-preferred explanations.
  • Given a dec-DNNF of f±, sufficient reasons can be enumerated with incremental polynomial delay (Theorem 10), and the abductive Shapley value is computable in polynomial time (Theorem 11).
  • Coverage-based PI-explanations under domain constraints are polynomially decidable when structured representations of (f∨¬g)± and g share a vtree base (Theorem 16).
  • The dual-rail of a CNF is a CNF computable in linear time with width parameters growing by at most a factor of two (Lemma 17, Theorem 18); empirically this costs roughly one order of magnitude in compilation time and nearly triple the memory-outs on 1445 public benchmarks.

Strengths

  • Genuine hardness gaps closed for OBDDs

    Theorem 5 (shortest implicant NP-hard), Corollary 8 (shortest abductive explanation NP-hard) and Theorem 12 (counting abductive explanations #P-hard) go beyond the enumeration results of Colnet & Marquis 2022, using an explicit QSAT2[OBDDs] reduction and a reusable Lemma-7 gadget that maps vertex covers of any graph to weak abductive explanations of a polynomial-size OBDD.

  • One construction yields many queries

    Section 5 derives shortest, minimum dis-utility (Definition 4), stratified-preferred (Definition 5), counting, and abductive Shapley values (Theorem 11) uniformly from algebraic model counting over f± (Theorems 6, 9), rather than ad-hoc per-query algorithms.

  • Unusually careful preliminaries

  • Trivial adoption path with structure preservation

  • Honest negative experimental numbers

Weaknesses

  • Experiments never exercise the XAI queries

  • No solver baselines

  • Unproven hardness for the abductive Shapley value

  • Restrictive structural hypothesis untested

  • Memory blow-up unanalyzed

Full Review Report

$1.99 · one-time

Unlock the complete preliminary analysis Evolve produced for this paper.

Report preview

Scope & Claims

The paper addresses formal explainability for boolean classifiers under compiled representations, with three families of claims. First (hardness): computing shortest implicants (Theorem 5), shortest abductive explanations (Corollary 8), and counting abductive explanations (Theorem 12) remain NP-hard or #P-hard even for polynomial-size OBDDs, built on QSAT2[OBDDs] from Colnet & Marquis (2022) and a vertex-cover gadget (Lemma 7). Second (tractability): compiling the dual-rail encoding f± into d-DNNF makes every algebraic model counting query over implicants (Theorem 6) and over abductive explanations of a positive decision (Theorem 9) polynomial, subsuming shortest reasons, dis-utility-optimal and stratified-preferred explanations, and the abductive Shapley value (Theorem 11); a dec-DNNF of f± yields incremental-polynomial-delay enumeration of sufficient reasons (Theorem 10), and shared-vtree structured representations make coverage-based explanations under domain constraints (CPI-Xp, Cooper & Amgoud 2023) polynomially decidable (Theorem 16). Third (practicality): the dual-rail of a CNF is a CNF computable in linear time (Lemma 17) whose width grows by at most a factor of two (Theorem 18), so existing compilers apply unchanged.

The remaining sections cover Methodology Assessment, Statistical Evidence, Results & Reproducibility, Limitations & Risks, and Verdict & Recommendations.

  • All 5 strengths & 5 weaknesses, analyzed in detail
  • 3 risk flags with severity, section & reviewer questions
  • Methods & statistical evidence assessment
  • 5 questions a peer reviewer would ask
  • Full six-dimension evaluation report & recommendations

One-time purchase · this paper only

One-time purchase, this paper only. AI-generated preliminary analysis — not peer review.

Frequently asked questions

What is a dual-rail encoding in this paper?

A transformation that replaces each boolean variable Xi with two literals: Xi-positive (Xi is true) and Xi-negative (Xi is false). Models of the encoded function f± correspond exactly to implicants of the original classifier f (partial inputs already forcing the output). This turns implicant reasoning — the core of abductive explanations — into model counting, which becomes polynomial once f± is compiled into d-DNNF.

Why isn't an OBDD enough for computing explanations?

OBDDs answer many queries in polynomial time, but the paper proves that computing a shortest abductive explanation is NP-hard (reduction from minimum vertex cover) and counting abductive explanations is #P-hard (reduction from counting vertex covers) even when the classifier is a polynomial-size OBDD.

What did the experiments in this paper measure?

Only compilation cost, not explanation queries. A dual-railed version of the d4 compiler solved 1237 of 1445 public benchmarks versus 1355 for plain d4 (3600 s, 32 GB limits), with 171 versus 59 memory-outs and roughly ten times longer compilation. Query runtimes were explicitly left as future work.

Is code or data available for this paper?

Yes. The supplementary material ships a statically compiled binary of the modified d4, raw benchmark logs, and scripts that regenerate the figures; the benchmark suite is public on Zenodo (record 15837216) and the base d4 compiler is on GitHub.

About this review

This is an AI-generated preliminary review by Evolve.Pub, produced from the openly available text of the paper. It is not peer review and does not represent the authors' views. The canonical record of the paper is at the publisher link above.

  • PDF extraction mangles math symbols and accents (e.g., 'Universit´e d'Artoi' for Artois, operator glyphs); the review was written through these artifacts, and no substantive content appears to be missing.
  • Figure 2 is available only as caption text plus aggregate counts; per-instance scatter distributions behind the compilation-time and size comparisons could not be inspected.

Go deeper on this paper

Wrote a paper? Stress-test it before reviewers do.

Upload your manuscript for the same structured scrutiny — reasoning, statistics, evidence, figures, and reproducibility.

Scan your paper
Solving Hard XAI Queries Based on a Compiled Dual-Rail Encoding | Evolve.Pub