SAT-Based PAC Learning of Description Logic Concepts

Balder ten Cate, Maurice Funk, Jean Christoph Jung, Carsten Lutz · DOI

Abstract

Learning logical definitions from examples within a knowledge base is a fundamental task in Knowledge Representation. While existing heuristic-based learners exist, they often lack theoretical guarantees for generalization and suffer from high computational complexity. This paper introduces bounded fitting, a novel approach for learning Description Logic (DL) concepts that provides the first formal Probably Approximately Correct (PAC) learning guarantees in the field. By reformulating the search for the smallest fitting concept as a Boolean Satisfiability (SAT) problem, the authors present SPELL, a system that significantly outperforms state-of-the-art learners in both speed and accuracy.

Introduction

In the field of Knowledge Representation, the task of concept learning involves finding a logical expression that correctly classifies a set of positive and negative examples relative to a background ontology. For instance, given a knowledge base of cinema data, a learner might be tasked with defining the concept of a "Blockbuster Action Movie" based on specific examples of films and their attributes.

Traditional tools, such as DL-Learner, typically employ refinement operators to navigate the space of possible logical expressions. However, these methods face two significant hurdles. First, they lack formal generalization guarantees; there is no mathematical assurance that a concept fitting the training data will perform well on unseen instances. Second, the underlying computational problem is often EXPTIME-complete, leading to significant performance bottlenecks as the complexity of the target concept increases.

Bounded Fitting and PAC Learning

The authors address these challenges by applying Computational Learning Theory to Description Logics, specifically focusing on the logic $\mathcal{ELH}^r$. The core of their proposal is bounded fitting. Instead of an unbounded search, the algorithm seeks a fitting concept of a fixed size $s$. The search begins at $s=1$ and increments until a solution is found.

The Occam’s Razor Principle

This approach is rooted in the "Occam's Razor" principle: among all hypotheses that explain the data, the simplest one is most likely to be correct. The authors prove that bounded fitting constitutes an "Occam algorithm." In learning theory, finding the smallest hypothesis that fits the training data provides a mathematical guarantee of Probably Approximately Correct (PAC) learning. This ensures that the learned concept will generalize to new data with high probability, provided the training set is sufficiently large.

Complexity Reduction

A key insight of this work is that by restricting the search to a specific size $s$, the complexity of the fitting problem drops from EXPTIME-complete to NP-complete. This reduction allows the authors to leverage the power of modern Boolean Satisfiability (SAT) solvers.

The SPELL System

The authors implemented their approach in a system called SPELL (SAT-based PAC-EL Learner).

SAT Encoding and Symmetry Breaking

SPELL translates the size-restricted fitting problem into a SAT instance. To ensure efficiency, the system uses the Glucose SAT solver. A significant challenge in this encoding is the redundancy of logical expressions (e.g., $A \sqcap B$ is semantically identical to $B \sqcap A$). To prevent the solver from redundantly exploring these variations, the authors implemented symmetry-breaking constraints, which prune the search space and accelerate the discovery of the minimal concept.

Handling Ontologies with Universal Databases

To account for background knowledge (the ontology), SPELL utilizes a preprocessing step involving "Universal Databases." This technique incorporates the constraints of the ontology directly into the data examples. By doing so, the learning task is simplified into a fitting problem over a database, removing the need for the SAT solver to reason about the ontology's axioms during the search process.

Experimental Evaluation

The authors evaluated SPELL using two primary benchmarks: a fragment of the Yago 4 knowledge base (focusing on movies and actors) and OWL2Bench (a standard benchmark for ontology-mediated querying).

Performance and Scalability

In the Yago experiments, SPELL demonstrated a significant performance advantage, running approximately 1.5 orders of magnitude faster than ELTL, the $\mathcal{EL}$ component of the widely used DL-Learner. Furthermore, SPELL proved more robust, successfully identifying target concepts with high existential depth where previous systems frequently timed out.

Generalization Accuracy

Confirming the theoretical PAC guarantees, SPELL achieved high predictive accuracy on unseen test data. Even with small training sets of 40-50 examples, the system reached accuracy levels of up to 98%. This empirical success validates the "Most Specific Trap" theory identified by the authors: while many logic-based learners seek the most specific concept possible, such concepts often fail to generalize as effectively as the minimal concepts found by SPELL.

Conclusion and Future Directions

The introduction of bounded fitting marks a significant advancement in Description Logic concept learning, providing both theoretical rigor and practical efficiency. While the current implementation is focused on $\mathcal{ELH}^r$, it covers substantial real-world applications, such as the SNOMED CT medical ontology.

Future work aims to extend this framework in two directions. First, the authors plan to utilize Max-SAT solvers to handle "noisy" data, where some training examples may be incorrectly labeled. Second, they intend to expand the SAT encoding to support more expressive logics, including those with negation ($\mathcal{ALC}$) or inverse roles ($\mathcal{ELI}$), further broadening the applicability of PAC learning in the semantic web and knowledge representation.

Summary updated

BibTeX
@inproceedings{cate2023sat,
  author = {Balder ten Cate and Maurice Funk and Jean Christoph Jung and Carsten Lutz},
  title = {{SAT-Based PAC Learning of Description Logic Concepts}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/373},
}
Figure