Inductive Learning of Answer Set Programs from Noisy Examples

Mark Law, Alessandra Russo, Krysia BrodaarXiv 2018

Abstract

Inductive Logic Programming (ILP) offers a path toward human-interpretable machine learning by extracting logical rules from data. However, traditional ILP systems are often brittle in the face of noise and limited in their ability to express complex "common-sense" reasoning. This paper introduces ILASP3, a noise-tolerant framework that extends the "Learning from Answer Sets" (LAS) paradigm. By treating example coverage as a soft optimization problem with associated penalties, ILASP3 can learn expressive Answer Set Programs (ASP) even from contradictory or mislabeled datasets. Experimental results demonstrate that ILASP3 achieves high accuracy across synthetic and real-world benchmarks, outperforming existing noise-tolerant and neural-symbolic systems.

Introduction

While deep learning has revolutionized pattern recognition in noisy environments, the resulting models often lack interpretability and generalizability. Inductive Logic Programming (ILP) provides an alternative by learning symbolic rules. Historically, ILP has faced two significant challenges: expressivity and noise sensitivity. Most systems are restricted to simple definite programs and fail when confronted with even a small amount of mislabeled data.

To address these issues, the authors propose a framework that leverages the power of Answer Set Programming (ASP). ASP is highly expressive, capable of modeling defaults, exceptions, and preferences. The new system, ILASP3, is designed to be robust against noise by finding the most consistent logical explanation for a dataset, even if that explanation does not cover every single example.

Methodology: $ILP_{LOAS}^{noise}$

The core of the proposed approach is the $ILP_{LOAS}^{noise}$ framework, which transitions ILP from a "hard" constraint satisfaction problem to a "soft" optimization task.

Weighted Examples and Cost Functions

In standard ILP, a hypothesis must cover all positive examples and no negative ones. In $ILP_{LOAS}^{noise}$, each example is assigned a penalty. If a learned program $H$ fails to cover an example, it incurs that penalty. The system seeks a hypothesis that minimizes the total cost: $$S(H, T) = |H| + \sum_{e \in T_{uncovered}} \text{penalty}(e)$$ where $|H|$ is the length of the program. This cost function naturally implements Occam's Razor, favoring simpler rules that explain the most data.

The ILASP3 Algorithm

ILASP3 solves this optimization problem using "hypothesis constraints." These are mathematical representations that define which rules in the search space cover which examples. By using these constraints to prune the search space, ILASP3 can efficiently find the mathematically optimal solution while maintaining scalability better than its predecessors.

Experimental Evaluation

The system was tested on a diverse set of benchmarks, ranging from synthetic logic tasks to real-world activity recognition.

  • Synthetic Tasks: Learning Hamiltonian paths and journey preferences.
  • Real-world Data: Human activity recognition (CAVIAR), sentence chunking (NLP), and user preference datasets (SUSHI, Car Preferences).
  • Neural-Symbolic Benchmarks: Comparison against $\delta$ILP on tasks like "Predecessor" and "Member."

Key Results and Insights

Noise Tolerance and Accuracy

ILASP3 demonstrates remarkable resilience to noise. On synthetic tasks, the system maintained over 90% accuracy even when 20% of the training data was mislabeled.

Accuracy of ILASP3 across different noise levels as the number of training examples increases.

In real-world applications, ILASP3 outperformed specialized systems. For instance, on the CAVIAR event recognition dataset, it achieved an F1 score of 0.842, surpassing the OLED system's 0.792. It also matched or exceeded the performance of $\delta$ILP, a differentiable ILP system, proving that symbolic methods can be just as robust as neural-symbolic ones.

Learning the Negation

A notable observation occurred at very high noise levels (>50%). When mislabeled examples outnumbered correct ones, ILASP3 tended to learn the logical negation of the target concept. This behavior suggests the system effectively identifies the most consistent pattern in the data, regardless of label inversion.

Computational Considerations

While ILASP3 guarantees optimality, this comes with a computational cost. As the number of examples and the complexity of the hypothesis space grow, the running time increases.

Running time of ILASP3 as a function of the number of examples and noise levels.

The increase in running time is particularly noticeable at higher noise levels, as the system must explore more of the hypothesis space to find the optimal balance between program complexity and example coverage.

Conclusion and Future Work

ILASP3 represents a significant step forward for Inductive Logic Programming, combining the expressivity of Answer Set Programming with the noise tolerance required for real-world data. By finding optimal solutions to a soft optimization problem, it provides a robust and interpretable alternative to black-box machine learning. Future work will focus on incremental hypothesis space generation to further improve scalability for even more complex rule-learning tasks.

Summary updated

BibTeX
@misc{law2018inductive,
  author = {Mark Law and Alessandra Russo and Krysia Broda},
  title = {{Inductive Learning of Answer Set Programs from Noisy Examples}},
  year = {2018},
  eprint = {1808.08441},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.08441},
}
Figure