Polynomial-Time Learning in Logic Programming and Constraint Logic Programming

Michèle Sebag, Céline RouveirolInductive Logic Programming Workshop 1996 · DOI

TL;DR

This paper introduces STILL, a novel algorithm that tackles the computational intractability of Inductive Logic Programming (ILP) by employing a stochastic bias. By sampling potential matches between hypotheses and examples, STILL achieves polynomial-time learning and classification, making it practical for complex relational problems like the mutagenesis dataset.

What Problem Does This Paper Address?

Inductive Logic Programming (ILP) is a powerful framework for learning relational concepts from data. However, its expressive power comes at a significant computational cost. A major bottleneck is the combinatorial explosion of possible matches between a candidate hypothesis and a training example, especially in first-order logic. This issue is exacerbated when dealing with numerical data, which is common in real-world problems. Existing approaches often rely on language or search biases, which require precise prior knowledge that may not be available. Furthermore, traditional ILP methods struggle with noisy and sparse data. This paper aims to bridge the gap between the theoretical elegance of ILP and the practical demands of real-world applications by developing a computationally tractable and robust learning algorithm.

Methods

The core contribution of this paper is the STILL (Stochastic Inductive Learner) algorithm. STILL builds upon the Disjunctive Version Space (DiVS) framework but introduces a crucial stochastic bias to overcome its computational limitations.

Here's a breakdown of the key methods:

  • Stochastic Bias: Instead of exhaustively exploring all possible matches between a hypothesis and a negative example (which is computationally prohibitive), STILL samples a fixed number of these matches. This dramatically reduces the search space.
  • Approximate Version Spaces: By using sampled matches, STILL constructs theories that are only approximately consistent with the training data. The degree of approximation is controlled by the number of samples allowed.
  • Constraint Logic Programming (CLP): The paper extends the approach to handle numerical data by leveraging CLP. This allows for the use of inequality constraints on numerical variables, which are crucial for problems like the mutagenesis dataset.
  • Coping with Noise and Sparseness: STILL incorporates two heuristics, adapted from propositional DiVS, to handle noisy and sparse data:
  • Relaxed Consistency Test: During classification, a small number of inconsistencies with counter-examples are tolerated.
  • Increased Specificity: The theory's specificity is increased by requiring a hypothesis to satisfy a certain number of domain constraints.
  • Approximate Classification: Similar to learning, classification also employs a sampling mechanism to check if an instance is an "approximate neighbor" of a training example.

Datasets

The primary dataset used for experimental validation is the mutagenesis problem. This dataset consists of organic molecules (nitroaromatic compounds) labeled as either active or inactive in terms of mutagenic activity. The paper notes that this problem is well-studied in ILP literature and has been used to evaluate various learning algorithms. The authors specifically use background knowledge B3, which includes structural information about atoms and bonds, along with non-structural attributes like hydrophobicity and molecular orbital energies.

Key Insights and Ideas

  • Stochasticity as a Tractability Enabler: The most significant insight is that introducing a controlled amount of randomness (stochastic bias) can transform an intractable combinatorial problem into a computationally feasible one, without sacrificing too much predictive accuracy.
  • Approximate Consistency is Sufficient for Practicality: The paper demonstrates that for many real-world problems, a theory that is approximately consistent with the data is sufficient for good predictive performance, and this approximation is key to achieving polynomial-time learning.
  • CLP's Advantage for Numerical Data: The study highlights that for problems involving numerical attributes, Constraint Logic Programming offers a more natural and effective way to learn compared to purely symbolic ILP, leading to better accuracy.
  • Redundancy Can Be Beneficial: The paper suggests that the redundancy inherent in learning both positive and negative theories (as DiVS and STILL do) can contribute to increased predictive accuracy and robustness.
  • Trade-off Between Intelligibility and Accuracy: The authors acknowledge that while STILL achieves high accuracy, the resulting theory is not easily interpretable. This points to a fundamental trade-off in machine learning between model complexity/intelligibility and predictive power.

Key Results

  • Polynomial-Time Learning and Classification: STILL achieves polynomial-time complexity for both learning and classification, a significant improvement over the exponential complexity of traditional DiVS.
  • Competitive Accuracy: On the mutagenesis problem, STILLCLP (the CLP variant) achieved a best accuracy of 92.5% ± 5, outperforming results reported for PROGOL and FORS.
  • Benefit of CLP: STILLCLP consistently outperformed STILLILP (which does not use inequality constraints) across various parameter settings, demonstrating the advantage of handling numerical data with CLP.
  • Parameter Sensitivity: The performance of STILL is influenced by parameters like the rate of approximation ($\eta$) and the number of classification trials ($K$), as well as parameters for handling noise and sparseness ($\epsilon$ and $M$).
  • Pruning Seeds (AQ-STILL) vs. Generalizing All (STILL): The experiments with AQ-STILL (which prunes seeds) showed that while it might reduce the number of seeds, its best accuracy was lower than that of STILL, suggesting that generalizing all examples (and thus creating a more redundant theory) can be beneficial for accuracy.

Limitations and Future Work

  • Intelligibility of Theories: The paper acknowledges that the constructed theory is not easily interpretable, posing a challenge for understanding the learned knowledge. Future work aims to provide a readable version of the theory while maintaining predictive accuracy.
  • Ad Hoc Sampling Mechanism: The current sampling mechanism is described as "ad hoc" and designed for the mutagenesis problem. Future research will focus on a "pure random sampling mechanism" and incorporating other aspects like bonds between atoms.
  • Parameter Tuning: While parameters are explored, the paper mentions that further work is needed on how to automatically tune these parameters, possibly using the training set itself.
  • Generalization of Stochastic Bias: The paper suggests exploring the application of this stochastic bias to other learning paradigms beyond Version Spaces.
  • Learnability Models: The authors plan to investigate learnability models (e.g., PAC-learnability) for this approach.

Summary updated

BibTeX
@inproceedings{sebag1996polynomial,
  author = {Michèle Sebag and Céline Rouveirol},
  title = {{Polynomial-Time Learning in Logic Programming and Constraint Logic Programming}},
  booktitle = {Inductive Logic Programming Workshop},
  year = {1996},
  doi = {10.1007/3-540-63494-0\_51},
}
Figure