On Quantifying Literals in Boolean Logic and Its Applications to Explainable AI

Adnan Darwiche, Pierre Marquis · DOI

TL;DR

This paper introduces universal literal quantification, a fine-grained logical operator that extends Boolean logic by allowing quantification over specific variable states (literals) rather than entire variables. The authors show that while existential quantification acts as a mechanism for "forgetting" information, universal quantification acts as a "selection" process, providing a powerful and computationally efficient framework for core Explainable AI (XAI) tasks like explaining classifier decisions and detecting bias.

What Problem Does This Paper Address?

In computer science and AI, quantifying variables in Boolean formulas is a classic technique. Existential variable quantification ($\exists X$) is often interpreted as "forgetting" information about $X$, which is highly useful for tasks like database privacy or resolving inconsistencies.

However, standard variable quantification is a blunt instrument: it treats the variable as a whole. Prior work introduced existential literal quantification ($\exists \ell$), allowing researchers to forget specific states of a variable (e.g., forgetting what happens when a feature is true, but keeping information about when it is false).

This paper addresses a major gap in this landscape: the lack of a formal treatment and intuitive understanding of universal literal quantification ($\forall \ell$). The authors unlock the semantic meaning of this operator, demonstrate how it acts as an instance-selection mechanism, and apply it directly to pressing challenges in Explainable AI (XAI)—such as determining why a machine learning classifier made a specific decision, identifying irrelevant features, and detecting algorithmic bias.

Methods

The authors formally define universal literal quantification mathematically as: $$\forall \ell \cdot \phi \equiv (\ell \vee (\phi|_{\bar{\ell}})) \wedge (\phi|_\ell)$$

To understand its semantics, they introduce two novel concepts:

  1. Boundary Models: A truth assignment (world) is an $\ell$-boundary model of a formula if it satisfies the formula, but flipping the literal $\ell$ causes it to satisfy the formula's negation.
  2. Boundary Rules (b-rules): Conditionals ($\alpha \rightarrow \ell$) that explicitly map out these boundary transitions.

The authors prove that universally quantifying a literal $\ell$ strengthens a formula by systematically dropping its $\bar{\ell}$-boundary models. This process can be visualized geometrically on a hypercube of truth assignments, where quantification prunes specific edges and nodes representing unstable classifications.

Figure 1: Left: Visualizing the worlds over variables X, Y, Z. Two worlds are connected by an edge iffthey disagree on a single variable. Right: Visualizing the models and b-rules of formula ϕ = (x ∨y) ∧(x ∨z) ∧(y ∨z). Black nodes are models of ϕ and red nodes are models of ¬ϕ. Each highlighted edge corresponds to a b-rule for ϕ.

Crucially, the paper maps out how to compute these quantifications efficiently. They identify tractable circuit types—specifically Decision-DNNFs (Decision Decomposable Negation Normal Forms) and SDDs (Sentential Decision Diagrams)—and present algorithms to perform literal quantification on them in linear time relative to the circuit size.

Datasets

Not discussed in the paper. This is a theoretical and formal methods paper; it does not evaluate algorithms empirically on machine learning datasets, but rather provides foundational proofs and algebraic frameworks.

Key Insights and Ideas

  • Selection vs. Forgetting: While existential quantification is about discarding information ("forgetting"), universal quantification is about filtering and isolating specific behaviors ("selection"). In XAI, explaining a decision is fundamentally an instance-selection problem, making universal quantification the natural tool for the job.
  • Literals Subsume Variables: Literal quantification is strictly more primitive and fine-grained than variable quantification. You can perfectly reconstruct variable quantification by sequentially quantifying both of its literals ($\forall X \cdot \phi = \forall x \cdot \forall \bar{x} \cdot \phi$).
  • Boundary Models Characterize Everything: Remarkably, the authors prove that the logical content of any consistent Boolean formula is entirely characterized by its boundary models.
  • Generalizing to Populations: Previous XAI methods defined "sufficient reasons" (PI-explanations) only for individual instances. By using literal quantification, this paper generalizes explanations to entire populations (subsets of instances sharing some characteristics).

Key Results

  • Linear-Time Tractability: The authors prove that universal literal quantification can be computed in linear time for formulas in CNF, as well as for advanced circuit architectures like Decision-DNNFs and SDDs.
  • Unified XAI Framework: The paper demonstrates that three distinct XAI queries can be formulated under this single algebraic umbrella:
  • Irrelevant Features: Finding instances decided independently of certain features.
  • Complete/Sufficient Reasons: Finding the minimal set of characteristics triggering a decision.
  • Decision Bias: Isolating instances where changing a "protected feature" (like race or gender) alters the classifier's output.

Limitations and Future Work

  • Quantifier Interleaving: While pure existential or pure universal literal quantification is tractable on certain circuits, mixing them together (interleaving $\exists$ and $\forall$) remains computationally hard (PSPACE-complete or NP-hard), limiting complex multi-layered queries.
  • Discrete Variable Extension: The paper focuses primarily on binary Boolean logic. Although the authors briefly sketch an extension to discrete, multi-valued variables (e.g., features with multiple categories), fully developing this framework and its algorithms is left for future work.

Summary updated

BibTeX
@article{darwiche2021quantifying,
  author = {Adnan Darwiche and Pierre Marquis},
  title = {{On Quantifying Literals in Boolean Logic and Its Applications to Explainable AI}},
  journal = {J. Artif. Intell. Res.},
  year = {2021},
  doi = {10.1613/jair.1.12756},
}
Figure