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

Adnan Darwiche, Pierre Marquis

Introduction

As AI systems are increasingly deployed in high-stakes domains, the need for formal, mathematically rigorous explanations of their decisions has become paramount. Traditional symbolic logic offers tools for reasoning, but standard variable quantification—the process of "forgetting" or "fixing" a variable $X$—is often too coarse for the nuanced requirements of Explainable AI (XAI). This paper, published in the Journal of Artificial Intelligence Research, introduces a more surgical approach: literal quantification. By quantifying specific states of a variable (literals) rather than the variable as a whole, authors Adnan Darwiche and Pierre Marquis provide a framework for defining "reasons" and "bias" with unprecedented precision.

Formal Framework: Quantifying Literals

In classical Boolean logic, quantifying a variable $X$ (using $\exists X$ or $\forall X$) eliminates it from a formula. However, in an XAI context, we often care about specific characteristics. For instance, if $X$ represents "Income," we might want to know if the specific state "High Income" ($x$) was necessary for a decision, independent of the "Low Income" ($\neg x$) state.

The authors define operators for literal quantification ($\forall \ell$ and $\exists \ell$). A key theoretical finding is that literal quantification is more "primitive" than variable quantification: while $\forall X$ can be defined as $\forall x \forall \neg x$, the reverse is not possible. This granularity allows for a "selection semantics" where universal quantification identifies instances where a specific literal is irrelevant to the outcome.

Table 1: Summary of notation used in the formal framework, defining worlds, models, and boundary rules.

Boundary Models and Selection Semantics

A central contribution of the work is the concept of Boundary Models ($BM(\varphi)$). A boundary model is a truth assignment where flipping a single literal changes the formula's evaluation from true to false (or vice versa). These models define the "edges" of a classifier's decision boundary.

The authors show that a formula's logical content can be entirely characterized by "boundary rules" ($b$-rules). These rules describe the transitions across the decision boundary. Universal literal quantification acts as a selection mechanism, isolating the parts of a formula that are invariant to specific literal changes.

Figure 1: Visualization of a Boolean space as a cube, where nodes represent truth assignments and arrows indicate boundary rules (b-rules) between models and non-models.

Applications to Explainable AI

The framework provides formal definitions for several critical XAI concepts:

  1. The Complete Reason: Defined as the weakest formula that contains only the characteristics of a specific instance and still triggers the same decision. This provides a non-arbitrary, exhaustive explanation for a choice.
  2. Sufficient Reasons: These are derived from the "prime implicants" of a Complete Reason. They represent minimal sets of features that guarantee an outcome, regardless of other factors.
  3. Decision Bias: A decision is formally biased if it changes when "protected" features (e.g., race, gender) are altered. The authors demonstrate that universal quantification over these protected variables can identify all instances where a classifier's decision is susceptible to bias.

Computational Tractability

While general quantification in Boolean logic is PSPACE-complete, the authors identify specific "tractable" circuit representations—Decision-DNNFs and Sentential Decision Diagrams (SDDs). They prove that both existential and universal literal quantification can be performed in linear time relative to the size of these circuits. This result is significant as it moves these complex XAI queries from theoretical possibilities to computationally feasible tools.

Conclusion

By refining the primitives of Quantified Boolean Logic, Darwiche and Marquis have bridged the gap between abstract symbolic reasoning and the practical needs of XAI. Their framework allows for the automated generation of reasons and the detection of bias with mathematical certainty, provided the underlying decision logic can be compiled into tractable circuits. Future work aims to extend these binary logic concepts to multiple-valued logic to handle more complex, non-binary features.

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