The Complexity of Revising Logic Programs

Abstract A rule-based program will return a set of answers to each query. An impure program, which includes the Prolog cut “!” and “ not( · ) ” operators, can return different answers if its rules are re-ordered. There are also many reasoning systems that return only the first answer found for each query; these first answers, too, depend on the rule order, even in pure rule-based systems. A theory revision algorithm, seeking a revised rule-base whose expected accuracy , over the distribution of queries, is optimal, should therefore consider modifying the order of the rules. This paper first shows that a polynomial number of training “labeled queries” (each a query paired with its correct answer) provides the distribution information necessary to identify the optimal ordering. It then proves, however, that the task of determining which ordering is optimal, once given this distributional information, is intractable even in trivial situations; e.g., even if each query is an atomic literal, we are seeking only a “perfect” theory, and the rule base is propositional. We also prove that this task is not even approximable: Unless P=NP, no polynomial time algorithm can produce an ordering of an n -rule theory whose accuracy is within n γ of optimal, for some γ >0. We next prove similar hardness and non-approximatability, results for the related tasks of determining, in these impure contexts, (1) the optimal ordering of the antecedents ; (2) the optimal set of new rules to add and (3) the optimal set of existing rules to delete .

[1]  Vladimir Vapnik Estimations of dependences based on statistical data , 1982 .

[2]  William W. Cohen Pac-Learning Recursive Logic Programs: Efficient Algorithms , 1994, J. Artif. Intell. Res..

[3]  Francesco Bergadano,et al.  The Difficulties of Learning Logic Programs with Cut , 1993, J. Artif. Intell. Res..

[4]  Raymond J. Mooney,et al.  Theory Refinement Combining Analytical and Empirical Methods , 1994, Artif. Intell..

[5]  Mukesh Dalal,et al.  Investigations into a Theory of Knowledge Base Revision , 1988, AAAI.

[6]  Hector J. Levesque,et al.  Foundations of a Functional Approach to Knowledge Representation , 1984, Artif. Intell..

[7]  Carsten Lund,et al.  Proof verification and hardness of approximation problems , 1992, Proceedings., 33rd Annual Symposium on Foundations of Computer Science.

[8]  David S. Johnson,et al.  Computers and Intractability: A Guide to the Theory of NP-Completeness , 1978 .

[9]  R. Schapire Toward Eecient Agnostic Learning , 1992 .

[10]  Hirofumi Katsuno,et al.  On the Difference between Updating a Knowledge Base and Revising It , 1991, KR.

[11]  Jon Doyle,et al.  Two Theses of Knowledge Representation: Language Restrictions, Taxonomic Classification, and the Utility of Representation Services , 1991, Artif. Intell..

[12]  Georg Gottlob,et al.  Complexity of Propositional Knowledge Base Revision , 1992, CNKBS.

[13]  Joseph Y. Halpern,et al.  Belief Revision: A Critique , 1996, J. Log. Lang. Inf..

[14]  Craig Boutilier,et al.  Revision Sequences and Nested Conditionals , 1993, IJCAI.

[15]  William W. Cohen Pac-Learning Non-Recursive Prolog Clauses , 1995, Artif. Intell..

[16]  Saso Dzeroski,et al.  PAC-learnability of determinate logic programs , 1992, COLT '92.

[17]  Alessandro Panconesi,et al.  Completeness in Approximation Classes , 1989, FCT.

[18]  Thomas G. Dietterich What is machine learning? , 2020, Archives of Disease in Childhood.

[19]  Michael J. Pazzani,et al.  A Methodology for Evaluating Theory Revision Systems: Results with Audrey II , 1993, IJCAI.

[20]  Peter Gärdenfors,et al.  On the logic of theory change: Partial meet contraction and revision functions , 1985, Journal of Symbolic Logic.

[21]  Russell Greiner The Complexity of Theory Revision , 1995, IJCAI.

[22]  William W. Cohen Pac-learning Recursive Logic Programs: Negative Results , 1994, J. Artif. Intell. Res..

[23]  Marco Valtorta,et al.  Refinement of Uncertain Rule Bases via Reduction , 1995, Int. J. Approx. Reason..

[24]  Rick Evertsz,et al.  The Automated Analysis of Rule-based Systems, Based on their Procedural Semantics , 1991, IJCAI.

[25]  Paul S. Rosenbloom,et al.  Universal Subgoaling and Chunking , 1986 .

[26]  Gerhard Brewka,et al.  Preferred Subtheories: An Extended Logical Framework for Default Reasoning , 1989, IJCAI.

[27]  Stephen Muggleton,et al.  Machine Invention of First Order Predicates by Inverting Resolution , 1988, ML.

[28]  Jean H. Gallier,et al.  Linear-Time Algorithms for Testing the Satisfiability of Propositional Horn Formulae , 1984, J. Log. Program..

[29]  J. Pearl,et al.  On the Logic of Iterated Belief Revision , 1994, Artif. Intell..

[30]  P G rdenfors,et al.  Knowledge in flux: modeling the dynamics of epistemic states , 1988 .

[31]  David C. Wilkins,et al.  The Refinement of Probabilistic Rule Sets: Sociopathic Interactions , 1994, Artif. Intell..

[32]  Christos H. Papadimitriou,et al.  Incremental Recompilation of Knowledge , 1994, AAAI.

[33]  Benjamin N. Grosof,et al.  Generalizing Prioritization , 1991, KR.

[34]  Linda Sellie,et al.  Toward efficient agnostic learning , 1992, COLT '92.

[35]  A. Carlisle Scott,et al.  Practical guide to knowledge acquisition , 1991 .

[36]  William F. Clocksin,et al.  Programming in Prolog , 1987, Springer Berlin Heidelberg.

[37]  Mark S. Boddy,et al.  Solving Time-Dependent Planning Problems , 1989, IJCAI.