Reproduce “Solving Hard XAI Queries Based on a Compiled Dual-Rail Encoding” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Arthur Ledaguenel, Florent Capelli, Jean-Marie Lagniez

A dual-rail encoding turns implicants and abductive explanations of Boolean classifiers into models of a compiled Boolean function, enabling exact counting, optimization, and enumeration through knowledge-compilation techniques. The work also proves that several of these queries remain NP-hard or #P-hard on OBDDs, while experiments show the dual-rail compilation incurs roughly an order-of-magnitude runtime overhead and substantially higher memory use.

Key insights

  • Tractable reasoning over a compiled classifier does not imply tractable optimization or counting over its implicants: shortest implicants are NP-hard and counting abductive explanations is #P-hard even for OBDDs.
  • Changing the compiled object—from the classifier to its dual-rail implicant encoding—aligns the representation with the queried explanations and restores polynomial-time model-counting and optimization procedures.
  • The method exposes a reusable accuracy–cost trade-off: an expensive offline compilation phase can support many exact explanation queries, but increases variable count, diagram size, runtime, and memory consumption.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.