Inductive logic programming explained

Inductive logic programming (ILP) is a subfield of symbolic artificial intelligence which uses logic programming as a uniform representation for examples, background knowledge and hypotheses. The term "inductive" here refers to philosophical (i.e. suggesting a theory to explain observed facts) rather than mathematical (i.e. proving a property for all members of a well-ordered set) induction. Given an encoding of the known background knowledge and a set of examples represented as a logical database of facts, an ILP system will derive a hypothesised logic program which entails all the positive and none of the negative examples.

Inductive logic programming is particularly useful in bioinformatics and natural language processing.

History

Building on earlier work on Inductive inference, Gordon Plotkin was the first to formalise induction in a clausal setting around 1970, adopting an approach of generalising from examples.[1] [2] In 1981, Ehud Shapiro introduced several ideas that would shape the field in his new approach of model inference, an algorithm employing refinement and backtracing to search for a complete axiomatisation of given examples.[1] [3] His first implementation was the Model Inference System in 1981:[4] [5] a Prolog program that inductively inferred Horn clause logic programs from positive and negative examples.[1] The term Inductive Logic Programming was first introduced in a paper by Stephen Muggleton in 1990, defined as the intersection of machine learning and logic programming.[1] Muggleton and Wray Buntine introduced predicate invention and inverse resolution in 1988.[1] [6]

Several inductive logic programming systems that proved influential appeared in the early 1990s. FOIL, introduced by Ross Quinlan in 1990[7] was based on upgrading propositional learning algorithms AQ and ID3.[8] Golem, introduced by Muggleton and Feng in 1990, went back to a restricted form of Plotkin's least generalisation algorithm.[8] [9] The Progol system, introduced by Muggleton in 1995, first implemented inverse entailment, and inspired many later systems.[8] [10] [11] Aleph, a descendant of Progol introduced by Ashwin Srinivasan in 2001, is still one of the most widely used systems .

At around the same time, the first practical applications emerged, particularly in bioinformatics, where by 2000 inductive logic programming had been successfully applied to drug design, carcinogenicity and mutagenicity prediction, and elucidation of the structure and function of proteins. Unlike the focus on automatic programming inherent in the early work, these fields used inductive logic programming techniques from a viewpoint of relational data mining. The success of those initial applications and the lack of progress in recovering larger traditional logic programs shaped the focus of the field.

Recently, classical tasks from automated programming have moved back into focus, as the introduction of meta-interpretative learning makes predicate invention and learning recursive programs more feasible. This technique was pioneered with the Metagol system introduced by Muggleton, Dianhuan Lin, Niels Pahlavi and Alireza Tamaddoni-Nezhad in 2014.[12] This allows ILP systems to work with fewer examples, and brought successes in learning string transformation programs, answer set grammars and general algorithms.[13]

Setting

Inductive logic programming has adopted several different learning settings, the most common of which are learning from entailment and learning from interpretations.[14] In both cases, the input is provided in the form of background knowledge , a logical theory (commonly in the form of clauses used in logic programming), as well as positive and negative examples, denoted E^+ and E^ respectively. The output is given as a hypothesis , itself a logical theory that typically consists of one or more clauses.

The two settings differ in the format of examples presented.

Learning from entailment

, learning from entailment is by far the most popular setting for inductive logic programming. In this setting, the positive and negative examples are given as finite sets E^+ and E^ of positive and negated ground literals, respectively. A correct hypothesis is a set of clauses satisfying the following requirements, where the turnstile symbol

\models

stands for logical entailment:[15] [16] \begin\text& B \cup H& \models& E^+\\\text& B \cup H \cup E^-& \not\models& \textit\endCompleteness requires any generated hypothesis to explain all positive examples E^+, and consistency forbids generation of any hypothesis that is inconsistent with the negative examples E^, both given the background knowledge .

In Muggleton's setting of concept learning,[17] "completeness" is referred to as "sufficiency", and "consistency" as "strong consistency". Two further conditions are added: "Necessity", which postulates that does not entail E^+, does not impose a restriction on , but forbids any generation of a hypothesis as long as the positive facts are explainable without it. . "Weak consistency", which states that no contradiction can be derived from B\land H, forbids generation of any hypothesis that contradicts the background knowledge . Weak consistency is implied by strong consistency; if no negative examples are given, both requirements coincide. Weak consistency is particularly important in the case of noisy data, where completeness and strong consistency cannot be guaranteed.

Learning from interpretations

In learning from interpretations, the positive and negative examples are given as a set of complete or partial Herbrand structures, each of which are themselves a finite set of ground literals. Such a structure is said to be a model of the set of clauses B \cup H if for any substitution \theta and any clause \mathrm \leftarrow \mathrm in B \cup H such that \mathrm\theta \subseteq e,

head\theta\subseteqe

also holds. The goal is then to output a hypothesis that is complete, meaning every positive example is a model of B \cup H, and consistent, meaning that no negative example is a model of B \cup H.

Approaches to ILP

An inductive logic programming system is a program that takes as an input logic theories

B,E+,E-

and outputs a correct hypothesis with respect to theories

B,E+,E-

. A system is complete if and only if for any input logic theories

B,E+,E-

any correct hypothesis with respect to these input theories can be found with its hypothesis search procedure. Inductive logic programming systems can be roughly divided into two classes, search-based and meta-interpretative systems.

Search-based systems exploit that the space of possible clauses forms a complete lattice under the subsumption relation, where one clause C_1 subsumes another clause C_2 if there is a substitution \theta such that C_1\theta, the result of applying \theta to C_1, is a subset of C_2. This lattice can be traversed either bottom-up or top-down.

Bottom-up search

Bottom-up methods to search the subsumption lattice have been investigated since Plotkin's first work on formalising induction in clausal logic in 1970.[1] [18] Techniques used include least general generalisation, based on anti-unification, and inverse resolution, based on inverting the resolution inference rule.

Least general generalisation

A least general generalisation algorithm takes as input two clauses C_1 and C_2 and outputs the least general generalisation of C_1 and C_2, that is, a clause C that subsumes C_1 and C_2, and that is subsumed by every other clause that subsumes C_1 and C_2. The least general generalisation can be computed by first computing all selections from C and D, which are pairs of literals

(L,M)\in(C1,C2)

sharing the same predicate symbol and negated/unnegated status. Then, the least general generalisation is obtained as the disjunction of the least general generalisations of the individual selections, which can be obtained by first-order syntactical anti-unification.[19]

To account for background knowledge, inductive logic programming systems employ relative least general generalisations, which are defined in terms of subsumption relative to a background theory. In general, such relative least general generalisations are not guaranteed to exist; however, if the background theory is a finite set of ground literals, then the negation of is itself a clause. In this case, a relative least general generalisation can be computed by disjoining the negation of with both C_1 and C_2 and then computing their least general generalisation as before.[20]

Relative least general generalisations are the foundation of the bottom-up system Golem.[8] [9]

Inverse resolution

Inverse resolution is an inductive reasoning technique that involves inverting the resolution operator.

Inverse resolution takes information about the resolvent of a resolution step to compute possible resolving clauses. Two types of inverse resolution operator are in use in inductive logic programming: V-operators and W-operators. A V-operator takes clauses R and C_1as input and returns a clause C_2 such that R is the resolvent of C_1 and C_2. A W-operator takes two clauses R_1 and R_2 and returns thre clauses C_1, C_2 and C_3 such that R_1 is the resolvent of C_1 and C_2 and R_2 is the resolvent of C_2 and C_3.[21]

Inverse resolution was first introduced by Stephen Muggleton and Wray Buntine in 1988 for use in the inductive logic programming system Cigol.[6] By 1993, this spawned a surge of research into inverse resolution operators and their properties.

Top-down search

The ILP systems Progol, Hail [22] and Imparo [23] find a hypothesis using the principle of the inverse entailment for theories,, :

B\landH\modelsE\iffB\land\negE\models\negH

. First they construct an intermediate theory called a bridge theory satisfying the conditions

B\land\negE\modelsF

and

F\models\negH

. Then as

H\models\negF

, they generalize the negation of the bridge theory with anti-entailment.[24] However, the operation of anti-entailment is computationally more expensive since it is highly nondeterministic. Therefore, an alternative hypothesis search can be conducted using the inverse subsumption (anti-subsumption) operation instead, which is less non-deterministic than anti-entailment.

Questions of completeness of a hypothesis search procedure of specific inductive logic programming system arise. For example, the Progol hypothesis search procedure based on the inverse entailment inference rule is not complete by Yamamoto's example.[25] On the other hand, Imparo is complete by both anti-entailment procedure [26] and its extended inverse subsumption [27] procedure.

Metainterpretive learning

Rather than explicitly searching the hypothesis graph, metainterpretive or meta-level systems encode the inductive logic programming program as a meta-level logic program which is then solved to obtain an optimal hypothesis. Formalisms used to express the problem specification include Prolog and answer set programming, with existing Prolog systems and answer set solvers used for solving the constraints.[28]

And example of a Prolog-based system is Metagol, which is based on a meta-interpreter in Prolog, while ASPAL and ILASP are based on an encoding of the inductive logic programming problem in answer set programming.

List of implementations

Probabilistic inductive logic programming

Probabilistic inductive logic programming adapts the setting of inductive logic programming to learning probabilistic logic programs. It can be considered as a form of statistical relational learning within the formalism of probabilistic logic programming.[31]

Given

  1. background knowledge as a probabilistic logic program, and
  2. a set of positive and negative examples E^ and E^

the goal of probabilistic inductive logic programming is to find a probabilistic logic program H such that the probability of positive examples according to is maximized and the probability of negative examples is minimized.

This problem has two variants: parameter learning and structure learning. In the former, one is given the structure (the clauses) of and the goal is to infer the probabilities annotations of the given clauses, while in the latter the goal is to infer both the structure and the probability parameters of . Just as in classical inductive logic programming, the examples can be given as examples or as (partial) interpretations.

Parameter Learning

Parameter learning for languages following the distribution semantics has been performed by using an expectation-maximisation algorithm or by gradient descent.An expectation-maximisation algorithm consists of a cycle in which the steps of expectation and maximization are repeatedly performed. In the expectation step, the distribution of the hidden variables is computed according to the current values of the probability parameters, while in the maximisation step, the new values of the parameters are computed. Gradient descent methods compute the gradient of the target function and iteratively modify the parameters moving in the direction of the gradient.

Structure Learning

Structure learning was pioneered by Daphne Koller and Avi Pfeffer in 1997,[32] where the authors learn the structure of first-order rules with associated probabilistic uncertainty parameters. Their approach involves generating the underlying graphical model in a preliminary step and then applying expectation-maximisation.

In 2008, De Raedt et al. presented an algorithm for performing theory compression on ProbLog programs, where theory compression refers to a process of removing as many clauses as possible from the theory in order to maximize the probability of a given set of positive and negative examples. No new clause can be added to the theory.[33]

In the same year, Meert, W. et al. introduced a method for learning parameters and structure of ground probabilistic logic programs by considering the Bayesian networks equivalent to them and applying techniques for learning Bayesian networks.

ProbFOIL, introduced by De Raedt and Ingo Thon in 2010, combined the inductive logic programming system FOIL with ProbLog. Logical rules are learned from probabilistic data in the sense that both the examples themselves and their classifications can be probabilistic. The set of rules has to allow one to predict the probability of the examples from their description. In this setting, the parameters (the probability values) are fixed and the structure has to be learned.

In 2011, Elena Bellodi and Fabrizio Riguzzi introduced SLIPCASE, which performs a beam search among probabilistic logic programs by iteratively refining probabilistic theories and optimizing the parameters of each theory using expectation-maximisation. Its extension SLIPCOVER, proposed in 2014, uses bottom clauses generated as in Progol to guide the refinement process, thus reducing the number of revisions and exploring the search space more effectively. Moreover, SLIPCOVER separates the search for promising clauses from that of the theory: the space of clauses is explored with a beam search, while the space of theories is searched greedily.[34]

See also

Further reading

Notes and References

  1. Book: Nienhuys-Cheng . Shan-hwei . Foundations of inductive logic programming . Wolf . Ronald de . 1997 . Spinger . 978-3-540-62927-6 . Lecture notes in computer science Lecture notes in artificial intelligence . Berlin Heidelberg . 174–177.
  2. G.D. . Plotkin . Automatic Methods of Inductive Inference . 1970 . PhD . University of Edinburgh . 1842/6656.
  3. Ehud Y.. Shapiro. Inductive inference of theories from facts. 192. 1981. Department of Computer Science, Yale University. Reprinted in Book: Computational logic : essays in honor of Alan Robinson . MIT Press . 1991 . 978-0-262-12156-9 . Lassez . J.-L. . 199–254 . Plotkin . G..
  4. Book: Shapiro, Ehud Y. . 1981 . Morgan Kaufmann . 2 . 1064 . The model inference system . https://www.ijcai.org/Proceedings/81-2/Papers/100.pdf.
  5. Book: Shapiro, Ehud Y. . 1983 . MIT Press . 0-262-19218-7 .
  6. Book: Muggleton . S.H. . Buntine . W. . 1988 . 978-0-934613-64-4 . 339–352 . Machine invention of first-order predicate by inverting resolution . 10.1016/B978-0-934613-64-4.50040-2.
  7. Quinlan . J. R. . August 1990 . Learning logical definitions from relations . Machine Learning . 5 . 3 . 239–266 . 10.1007/bf00117105 . 0885-6125. free .
  8. Book: Nienhuys-Cheng . Shan-hwei . Foundations of inductive logic programming . Wolf . Ronald de . 1997 . Spinger . 978-3-540-62927-6 . Lecture notes in computer science Lecture notes in artificial intelligence . Berlin Heidelberg . 354–358.
  9. Muggleton . Stephen H. . Feng . Cao . 1990 . Arikawa . Setsuo . Goto . Shigeki . Ohsuga . Setsuo . Yokomori . Takashi . Efficient Induction of Logic Programs . Algorithmic Learning Theory, First International Workshop, ALT '90, Tokyo, Japan, October 8–10, 1990, Proceedings . Springer/Ohmsha . 368–381.
  10. Cropper . Andrew . Dumančić . Sebastijan . 2022-06-15 . Inductive Logic Programming At 30: A New Introduction . Journal of Artificial Intelligence Research . 74 . 808 . 10.1613/jair.1.13507 . 1076-9757. free . 2008.07912 .
  11. Muggleton . S.H. . 1995 . Inverting entailment and Progol . New Generation Computing . 13 . 3–4 . 245–286 . 10.1.1.31.1630 . 10.1007/bf03037227 . 12643399.
  12. Muggleton . Stephen H. . Lin . Dianhuan . Pahlavi . Niels . Tamaddoni-Nezhad . Alireza . 2013-05-01 . Meta-interpretive learning: application to grammatical inference . Machine Learning . 94 . 1 . 25–49 . 10.1007/s10994-013-5358-3 . 254738603 . 0885-6125.
  13. Cropper . Andrew . Dumančić . Sebastijan . Evans . Richard . Muggleton . Stephen . 2022 . Inductive logic programming at 30 . Machine Learning . en . 111 . 1 . 147–172 . 10.1007/s10994-021-06089-1 . 0885-6125. free .
  14. Cropper . Andrew . Dumančić . Sebastijan . 2022-06-15 . Inductive Logic Programming At 30: A New Introduction . Journal of Artificial Intelligence Research . 74 . 779782 . 10.1613/jair.1.13507 . 1076-9757 . free. 2008.07912 .
  15. Book: Džeroski . Sašo . Advances in Knowledge Discovery and Data Mining . MIT Press . 1996 . Fayyad . U.M. . 117–152 See §5.2.4 . Inductive Logic Programming and Knowledge Discovery in Databases . 2021-09-27 . Piatetsky-Shapiro . G. . Smith . P. . Uthurusamy . R. . http://kt.ijs.si/SasoDzeroski/pdfs/1996/Chapters/1996_InductiveLogicProgramming.pdf . https://web.archive.org/web/20210927141157/http://kt.ijs.si/SasoDzeroski/pdfs/1996/Chapters/1996_InductiveLogicProgramming.pdf . 2021-09-27 . dead.
  16. De Raedt . Luc . 1997 . Logical settings for concept-learning . Artificial Intelligence . en . 95 . 1 . 187–201 . 10.1016/S0004-3702(97)00041-6.
  17. Muggleton . Stephen . 1999 . Inductive Logic Programming: Issues, Results and the Challenge of Learning Language in Logic . Artificial Intelligence . 114 . 1–2 . 283–296 . 10.1016/s0004-3702(99)00067-3 .
    here: Sect.2.1
  18. G.D. . Plotkin . Automatic Methods of Inductive Inference . 1970 . PhD . University of Edinburgh . 1842/6656.
  19. Book: Nienhuys-Cheng . Shan-hwei . Foundations of inductive logic programming . Wolf . Ronald de . 1997 . Spinger . 978-3-540-62927-6 . Lecture notes in computer science Lecture notes in artificial intelligence . Berlin Heidelberg . 255.
  20. Book: Nienhuys-Cheng . Shan-hwei . Foundations of inductive logic programming . Wolf . Ronald de . 1997 . Spinger . 978-3-540-62927-6 . Lecture notes in computer science Lecture notes in artificial intelligence . Berlin Heidelberg . 286.
  21. Book: Nienhuys-Cheng . Shan-hwei . Foundations of inductive logic programming . Wolf . Ronald de . 1997 . Spinger . 978-3-540-62927-6 . Lecture notes in computer science Lecture notes in artificial intelligence . Berlin Heidelberg . 197.
  22. Book: Ray . O. . Broda . K. . Russo . A.M. . 2003 . Springer . 978-3-540-39917-9 . LNCS . 2835 . 311–328 . Hybrid abductive inductive learning . 10.1.1.212.6602 . 10.1007/978-3-540-39917-9_21 . https://link.springer.com/chapter/10.1007/978-3-540-39917-9_21.
  23. Book: Kimber . T. . Proceedings of the 10th international conference on logic programing and nonmonotonic reasoning . Broda . K. . Russo . A. . 2009 . Springer . 978-3-642-04238-6 . LNCS . 575 . 169–181 . Induction on failure: learning connected Horn theories . 10.1007/978-3-642-04238-6_16 . https://link.springer.com/chapter/10.1007/978-3-642-04238-6_16.
  24. Yamamoto . Yoshitaka . Inoue . Katsumi . Iwanuma . Koji . 2012 . Inverse subsumption for complete explanatory induction . Machine Learning . 86 . 115–139 . 10.1007/s10994-011-5250-y . 11347607.
  25. Book: Yamamoto, Akihiro . 1997 . Springer . 978-3-540-69587-5 . Lecture Notes in Computer Science . 1297 . 296–308 . Which hypotheses can be found with inverse entailment? . 10.1.1.54.2975 . 10.1007/3540635149_58 . https://link.springer.com/chapter/10.1007/3540635149_58.
  26. Timothy . Kimber . Learning definite and normal logic programs by induction on failure . 2012 . PhD . Imperial College London . ethos 560694 . 2022-10-21 . 2022-10-21 . https://web.archive.org/web/20221021035457/https://ethos.bl.uk/OrderDetails.do?uin=uk.bl.ethos.560694 . dead.
  27. 1407.3836 . cs.AI . David . Toth . Imparo is complete by inverse subsumption . 2014.
  28. Cropper . Andrew . Dumančić . Sebastijan . 2022-06-15 . Inductive Logic Programming At 30: A New Introduction . Journal of Artificial Intelligence Research . 74 . 795 . 10.1613/jair.1.13507 . 1076-9757. free . 2008.07912 .
  29. Book: Muggleton . Stephen . Santos . Jose . Tamaddoni-Nezhad . Alireza . ProGolem: a system based on relative minimal generalization . 10.1.1.297.7992 . https://link.springer.com/chapter/10.1007/978-3-642-13840-9_13 . International Conference on Inductive Logic Programming . Springer . 2009 . 978-3-642-13840-9 . 131–148 . 10.1007/978-3-642-13840-9_13 .
  30. Santos. Jose. Nassif. Houssam. Page. David. Muggleton. Stephen. Sternberg. Mike. Automated identification of features of protein-ligand interactions using Inductive Logic Programming: a hexose binding case study. BMC Bioinformatics. 2012. 13. 162. 10.1186/1471-2105-13-162. 22783946. 3458898 . free .
  31. Riguzzi . Fabrizio . Bellodi . Elena . Zese . Riccardo . 2014-09-18 . A History of Probabilistic Inductive Logic Programming . Frontiers in Robotics and AI . 1 . 10.3389/frobt.2014.00006 . 2296-9144 . free .
  32. Koller . Daphne . Pfeffer . Avi . August 1997 . Learning probabilities for noisy first-order rules . IJCAI.
  33. De Raedt . L. . Kersting . K. . Kimmig . A. . Revoredo . K. . Toivonen . H. . March 2008 . Compressing probabilistic Prolog programs . Machine Learning . en . 70 . 2–3 . 151–168 . 10.1007/s10994-007-5030-x . 0885-6125.
  34. Bellodi . Elena . Riguzzi . Fabrizio . 2014-01-15 . Structure learning of probabilistic logic programs by searching the clause space . Theory and Practice of Logic Programming . 15 . 2 . 169–212 . 10.1017/s1471068413000689 . 1309.2080 . 17669522 . 1471-0684.