NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A differentiable first-order rule learner for inductive logic programming (Abstract Reprint)

Kun Gao, Katsumi Inoue, Yongzhi Cao, Hanpin Wang

Abstract

Learning first-order logic programs from relational facts yields intuitive insights into data. Inductive logic programming (ILP) models are effective in learning these programs from observed relational data. While symbolic ILP models support data-efficient rule learning, they often lack robustness when faced with noisy data. Conversely, neuro-symbolic ILP models utilize neural networks to learn logic programs differentiably, improving robustness but often requiring a strong "language bias"—specific templates that limit flexibility and usability. Furthermore, many existing neuro-symbolic methods struggle to scale from small datasets to large-scale knowledge graphs.

In this work, we introduce the Differentiable First-Order Rule Learner (DFORL), a novel model designed to be scalable across both small and large datasets. DFORL minimizes language bias by requiring only the number of variables in the learned logic programs as input. Experimental results demonstrate that DFORL outperforms several well-known differentiable ILP models across standard ILP datasets, knowledge graphs, and probabilistic relational facts, proving to be a precise, robust, and computationally efficient solution.

Introduction

The goal of Inductive Logic Programming (ILP) is to extract human-readable "if-then" rules from relational data. For example, given a set of family relationships, an ILP system might deduce the rule: If X is the parent of Y and Y is the parent of Z, then X is the grandparent of Z.

Historically, researchers have chosen between two paradigms:

  1. Symbolic ILP: Highly efficient with small data but fragile when encountering noise or errors.
  2. Neuro-symbolic ILP: Robust to noise due to gradient-based learning, but typically reliant on heavy manual "hints" (language bias) and often computationally expensive on large-scale problems like Knowledge Graphs.

DFORL bridges this gap, offering a framework that maintains the robustness of neural approaches while achieving the scalability and ease of use required for real-world applications.

The DFORL Framework

DFORL introduces several innovations to overcome the limitations of previous neuro-symbolic models:

Differentiable Rule Induction

By framing rule induction as a continuous optimization problem, DFORL utilizes gradient-based learning to explore the space of potential logic rules. This allows the model to "softly" weigh different logical hypotheses before converging on the most accurate symbolic representation.

Minimal Language Bias

A significant barrier to using neuro-symbolic ILP is the need for users to define complex rule templates. DFORL significantly lowers this barrier. Users only need to specify the expected number of variables in the learned programs, allowing the model to discover the structure of the rules autonomously.

Scalability and Efficiency

Unlike many differentiable learners that are restricted to toy examples, DFORL is architected for computational efficiency. This enables it to process large-scale relational datasets and knowledge graphs that would typically overwhelm traditional symbolic or less efficient neuro-symbolic learners.

Experimental Evaluation

The researchers evaluated DFORL across three distinct categories of benchmarks:

  • Standard ILP Datasets: Classic logic puzzles and relational tasks designed to test fundamental rule induction capabilities.
  • Knowledge Graphs: Large-scale networks of real-world facts (e.g., Freebase-style data), testing the model's ability to scale.
  • Probabilistic Relation Facts: Datasets containing uncertain or noisy relationships, testing the model's robustness compared to rigid symbolic systems.

Key Insights and Results

DFORL demonstrated superior performance across all tested benchmarks, characterized by several key strengths:

  • Precision and Robustness: The model successfully learned accurate rules even when the underlying data was probabilistic or noisy. It does not "crash" upon encountering false facts but instead weighs evidence across the dataset to find the most probable underlying logic.
  • Versatility in Scaling: DFORL occupies a unique "sweet spot," performing as well as symbolic learners on small datasets while maintaining the performance of neural networks on large-scale data.
  • Computational Economy: The model is noted for being "computationally cheap," requiring less memory and training time than many current state-of-the-art neuro-symbolic methods.

Conclusion and Future Work

DFORL represents a significant step forward in making Inductive Logic Programming more accessible and scalable. By reducing the reliance on manual language bias, it opens the door for non-experts to extract logical insights from complex relational data.

While DFORL simplifies the setup process, it still requires the user to define the number of variables. Future research may focus on automating this parameter. Additionally, further study is needed to determine the upper limits of rule complexity (the number of predicates in a rule body) before performance begins to degrade. Nevertheless, DFORL stands as a robust, precise, and efficient tool for modern relational machine learning.

Summary updated

BibTeX
@inproceedings{gao2024differentiable,
  author = {Kun Gao and Katsumi Inoue and Yongzhi Cao and Hanpin Wang},
  title = {{A differentiable first-order rule learner for inductive logic programming (Abstract Reprint)}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=Ex3BlGV3CY},
}
Figure