Abstract: Many AI problems, when formalized, reduce to evaluating the probability that a propositional expression is true. In this paper we show that this problem is computationally intractable even in surprisingly restricted cases and even if we settle for an approximation to this probability. We consider various methods used in approximate reasoning such as computing degree of belief and Bayesian belief networks, as well as reasoning techniques such as constraint satisfaction and knowledge compilation, that use approximation to avoid computational difficulties, and reduce them to model-counting problems over a propositional domain. We prove that counting satisfying assignments of propositional languages is intractable even for Horn and monotone formulae, and even when the size of clauses and number of occurrences of the variables are extremely limited. This should be contrasted with the case of deductive reasoning, where Horn theories and theories with binary clauses are distinguished by the existence of linear time satisfiability algorithms. What is even more surprising is that, as we show, even approximating the number of satisfying assignments (i.e., “approximating” approximate reasoning), is intractable for most of these restricted theories. We also identify some restricted classes of propositional formulae for which efficient algorithms for counting satisfying assignments can be given.
Introduction
In classical artificial intelligence, deductive reasoning—the task of determining if a statement is true given a set of premises—is typically reduced to the Boolean Satisfiability problem (SAT). While SAT is NP-complete, researchers have historically bypassed this computational wall by either restricting the logical language (e.g., using Horn clauses) or moving toward "approximate reasoning" frameworks like Bayesian networks and degrees of belief.
In this seminal work, Dan Roth investigates whether these strategies truly avoid intractability. He argues that while deductive reasoning depends on finding a single satisfying assignment, approximate reasoning fundamentally depends on counting them (model enumeration). The paper explores whether languages that are "easy" for deduction remain tractable when the goal shifts to counting and probabilistic inference.
The Intractability of Counting and Approximation
Roth utilizes computational complexity analysis to demonstrate that approximate reasoning is significantly harder than previously hoped. Central to this analysis is the class #P-completeness, which describes problems involving counting solutions to NP-complete problems. These are generally considered more difficult than NP-complete problems themselves.
A key insight of the paper is that the "ease" of finding a solution does not translate to the ease of counting solutions. For instance, in languages like Horn or Monotone formulae, finding a satisfying assignment is trivial (solvable in polynomial time). However, Roth proves that counting the number of satisfying assignments (#SAT) for these same fragments is #P-complete.
Furthermore, the paper shows that even approximating the count is often intractable. For many restricted theories, finding a value within a reasonable ratio of the true answer is NP-hard. This "double whammy" suggests that for many practical AI tasks, even a rough estimate is as computationally expensive as an exact search in a harder language.
A Map of Intractability
The core contribution of the paper is a comprehensive "complexity map" that classifies various propositional languages based on their hardness for satisfiability, counting, and approximation.
As illustrated in the hierarchy, there is a clear divergence between the difficulty of SAT and the difficulty of counting:
- Hard to Count (#P-complete): This includes Horn formulae, Monotone CNF, and 2-MONCNF (clauses with two positive literals). Even when variables appear at most three times (3u-2HORN), the problem remains #P-complete.
- Hard to Approximate (NP-hard): Fragments like 2MONCNF and 3u-3HORN are shown to be hard even to approximate within a significant factor.
- Islands of Tractability: Roth identifies very specific, highly restricted classes where counting is efficient (Polynomial Time), such as 2u-2HORN (Horn clauses where each variable appears at most twice) and Acyclic formulae.
Implications for AI Systems
Roth's findings have profound implications for several subfields of AI:
- Bayesian Networks: The paper proves that inference in multi-connected Bayesian networks is #P-complete. More strikingly, approximating these probabilities is NP-hard even for very restricted network topologies.
- Constraint Satisfaction and Knowledge Compilation: These techniques, often used to avoid computational difficulties, are shown to share the same underlying hard core of model counting.
- The "Degree" Threshold: The complexity often pivots on the "degree" of variables (how many times they appear). High-degree variables lead to hardness, while extremely low-degree variables (e.g., degree 2) can sometimes lead to tractability.
Conclusion
While the results focus on worst-case complexity, they serve as a cautionary tale for the design of reasoning systems. The "positive results" identified—the few tractable classes—are extremely restrictive, which may limit their direct application in complex knowledge representation. However, they provide a foundation for understanding where the boundaries of efficient reasoning lie. Roth’s work suggests that a deeper investigation into the gap between worst-case and average-case complexity is essential for the future of probabilistic AI.
Summary updated