Abstract
A knowledge-based system uses its database (also known as its "theory") to produce answers to the queries it receives. Unfortunately, these answers may be incorrect if the underlying theory is faulty. Standard "theory revision" systems use a given set of "labeled queries" (each a query paired with its correct answer) to transform the given theory, by adding and/or deleting either rules and/or antecedents, into a related theory that is as accurate as possible. After formally defining the theory revision task, this paper provides both sample and computational complexity bounds for this process. It first specifies the number of labeled queries necessary to identify a revised theory whose error is close to minimal with high probability. It then considers the computational complexity of finding this best theory, and proves that, unless P = NP, no polynomial-time algorithm can identify this optimal revision, even given the exact distribution of queries, except in certain simple situations. It also shows that, except in such simple situations, no polynomial-time algorithm can produce a theory whose error is even close to (i.e., within a particular polynomial factor of) optimal. The first (sample complexity) results suggest reasons why theory revision can be more effective than learning from scratch, while the second (computational complexity) results explain many aspects of the standard theory revision systems, including the practice of hill-climbing to a locally-optimal theory, based on a given set of labeled queries.
Introduction: The Challenge of Fixing Expert Systems
Expert systems, such as those used for medical diagnosis, rely on a "theory"—a structured collection of logical rules (often Horn clauses) used to derive conclusions from input data. When such a system begins to produce incorrect outputs, it indicates that the underlying theory is flawed. The process of correcting these flaws is known as "theory revision."
Standard theory revision involves taking a set of "labeled queries" (pairs of questions and their correct answers) and modifying the existing theory. These modifications typically involve adding or deleting rules or antecedents within those rules. The objective is to find a revised theory that maximizes accuracy over the expected distribution of queries. The fundamental question addressed by Russell Greiner is whether there exists an efficient, polynomial-time algorithm to find this globally optimal revision, or if the field is theoretically bound to local search heuristics.
Formal Methods and Framework
The paper establishes a formal framework to analyze the computational complexity of theory revision. In this model:
- Theories are represented as sets of propositional or first-order Horn clauses.
- Transformations are defined as operations that add or delete rules, or add or delete antecedents within existing rules.
- Accuracy is quantified as the probability that the theory provides the correct answer for a query drawn from a specific distribution.
The analysis evaluates the "Theory Revision Decision Problem" across several critical dimensions: the type of queries (atomic vs. general Horn), the logic system (Propositional vs. Predicate Calculus), limits on transformations (bounded vs. unbounded), and the direction of revision (generalization vs. specialization).
Key Insights: Information vs. Computation
A primary insight of the research is the significant gap between sample complexity and computational complexity. Greiner demonstrates that a polynomial number of samples is sufficient to identify which theory in the search space would be optimal with high probability. However, the task of actually finding that theory within the vast space of possible transformations is what proves to be computationally intractable.
Furthermore, the "hardness" of theory revision is pervasive. It is not merely a consequence of complex logic; the problem remains NP-hard even in simplified contexts, such as propositional logic or when the number of allowed modifications is strictly bounded. The paper also establishes that approximation is equally difficult: unless $P = NP$, no polynomial-time algorithm can efficiently find a theory that is even "close" to optimal (within a specific polynomial factor of the minimum inaccuracy).
Results: The Landscape of Intractability
The core findings of the paper prove that finding the optimal theory is NP-hard for nearly all non-trivial cases. The research identifies very narrow "islands of tractability" where efficient solutions might exist. For instance, finding a perfect theory is only tractable when dealing with atomic queries in a propositional theory with an unbounded number of modifications, and even then, only under specific constraints.
As shown in the complexity landscape, the difficulty is symmetric: the negative results apply whether the goal is purely to generalize the theory (adding rules/deleting antecedents) or purely to specialize it (deleting rules/adding antecedents).
Conclusion and Implications
These theoretical results provide a formal justification for the AI community's reliance on hill-climbing and other local search methods in theory revision systems. Since finding a global optimum is computationally unreachable for practical systems, seeking a local optimum is the most rational engineering approach.
While the analysis focuses on Horn clauses—the backbone of systems like Prolog—future work may explore other logical formalisms or the impact of "Negation-as-Failure." Additionally, while worst-case NP-hardness is established, the "average-case" complexity of theory revision in real-world scenarios remains an open and important question for the field.
Summary updated