Abstract
DFOL (Differentiable First-Order rule Learner) is a neuro-symbolic framework designed to learn interpretable first-order logic rules from relational data. By representing logic programs as trainable tensors and employing differentiable semantics, DFOL bridges the gap between neural network flexibility and symbolic logic clarity. Unlike previous models, DFOL operates without rigid logic templates and demonstrates high robustness to noise, achieving state-of-the-art performance on standard Inductive Logic Programming (ILP) benchmarks and large-scale knowledge bases.
Introduction
In the field of artificial intelligence, a long-standing tension exists between symbolic logic and neural networks. Symbolic Inductive Logic Programming (ILP) excels at discovering human-readable rules but often struggles with the noisy or ambiguous data typical of real-world environments. Conversely, "Neural ILP" models utilize gradient descent to learn rules robustly but typically require rigid logic templates—pre-defined structures that limit the model's flexibility and necessitate significant prior knowledge. DFOL addresses these challenges by providing a differentiable learning environment that does not require templates while maintaining high interpretability.
Methods
DFOL operates through a multi-stage process that integrates relational data into a neural learning framework:
- Propositionalization: Relational facts (e.g.,
parent(alice, bob)) are preprocessed into vector pairs called "interpretation pairs," mapping facts based on all possible variable substitutions. - Differentiable Semantics: Logic programs are represented as a trainable tensor, $M_P$. The standard logical "immediate consequence operator" is replaced with a differentiable version using algebraic operations and sigmoid-like activation functions.
- Constraint-Guided Learning: To ensure the discovery of valid logic, the model employs specific spatial constraints. For instance, the "Basic Constraint" ensures that variables appearing in the head of a rule also appear in its body.
- Curriculum Learning: The model identifies "sound" rules during early training and feeds them back as prior knowledge to prune the search space for subsequent epochs.
Experimental Evaluation
The researchers evaluated DFOL across several domains:
- Standard ILP Benchmarks: 20 classic tasks including family relationships, graph coloring, and mathematical properties.
- Large-Scale Knowledge Bases (KBs): Real-world datasets such as Countries, Nations, and the Unified Medical Language System (UMLS).
- Ambiguous Datasets: Synthetic datasets featuring probabilistic facts and mislabeled data to test robustness.
Key Insights and Results
DFOL demonstrates several advantages over existing neuro-symbolic models:
- Template-Free Flexibility: By searching for rules in a forward-chained format without human-provided skeletons, DFOL can discover more diverse and complex logical structures.
- Direct Interpretability: The parameters of the neural network are not opaque; because logic is encoded directly into the matrix $M_P$, weights can be decoded into human-readable symbolic rules without auxiliary algorithms.
- High Accuracy and Scalability: DFOL achieved 100% accuracy on 20 standard ILP benchmarks, outperforming NeuralLP. It also successfully scaled to large knowledge bases like Nations and UMLS, significantly outperforming baselines in Mean Reciprocal Rank (MRR).
- Robustness to Noise: The model maintained perfect accuracy even when training data included probabilistic facts or significant mislabeling.
Limitations and Future Work
While DFOL represents a significant step forward, it faces challenges regarding the "memory wall" during propositionalization, particularly for tasks with many variables or objects. Current experiments also limited variable depth to two. Future work will focus on scaling variable depth and extending the model to support logical negation and functional terms.
Summary updated