Abstract
Inductive Logic Programming (ILP) offers high interpretability and data efficiency but often struggles with computational scalability and the requirement for predefined rule templates. This paper introduces dNL-ILP, a differentiable Neural Logic framework that learns explicit symbolic rules using gradient-based optimization. By utilizing multiplicative neurons for logical operations and a recurrent structure for forward chaining, dNL-ILP eliminates the need for strict templates and enables the discovery of complex recursive programs. Experimental results across relational benchmarks and algorithmic tasks demonstrate that dNL-ILP achieves state-of-the-art performance, outperforming traditional logic solvers in both accuracy and scalability.
Introduction
The field of Artificial Intelligence is largely divided between Deep Learning, which excels at pattern recognition but lacks interpretability, and Inductive Logic Programming (ILP), which provides human-readable rules but is often computationally fragile. Traditional ILP systems typically rely on human-provided "meta-rules" or templates to constrain the search space. This dependency limits the complexity of discoverable rules and requires significant domain expertise. Furthermore, handling recursion and predicate invention remains a significant challenge for many neural-logic hybrids.
The dNL-ILP Framework
To address these limitations, the authors propose differentiable Neural Logic (dNL) networks. The core of this framework is the replacement of standard additive neurons with multiplicative neurons designed to represent logical conjunctions (AND) and disjunctions (OR).
As shown in the truth tables above, the system uses "membership weights" ($m_i$) as soft switches. These weights determine whether a specific logical atom $x_i$ should be included in a rule. This algebraic representation of fuzzy logic allows the network's internal states to be directly translated back into symbolic logic. Unlike previous systems, this model can learn any arbitrary Boolean function in Disjunctive Normal Form (DNF), allowing it to discover much more complex rules without human-defined templates.
Differentiable Forward Chaining
The dNL-ILP system performs logical deduction through a recurrent neural network structure where each iteration corresponds to a step of forward-chaining inference.
Because the entire inference process is differentiable, the system can utilize standard gradient descent (e.g., the ADAM optimizer) to learn the optimal logic rules from training data. This template-free approach facilitates the discovery of complex rules, including those involving recursion and predicate invention. The authors also extended the system to handle continuous data by learning "threshold predicates" (e.g., $x > 0.5$), allowing the logic engine to process real-world numerical values.
Experimental Evaluation and Results
The authors evaluated dNL-ILP on a diverse set of benchmarks:
- Relational Benchmarks: On datasets such as Mutagenesis, Cora, and IMDB, dNL-ILP outperformed existing solvers like GSLP and LSM. Notably, it achieved a perfect Area Under Precision-Recall (AUPR) of 1.00 on the IMDB dataset.
- Algorithmic Tasks: The model successfully learned complex recursive sorting algorithms and decimal multiplication. In the sorting task, it discovered a rule involving 12 variables and 6 atoms—a level of complexity previously unattainable for ILP solvers.
- Biological Data: The system was tested on the DREAM4 gene regulatory network challenge, demonstrating its utility in inferring complex biological relationships from noisy time-series data.
Key Insights and Limitations
A critical finding of this work is the natural handling of recursion. Because the model is built around iterative forward chaining, recursive rules are learned as a standard part of the optimization process. This was evidenced in the IMDB task, where disabling recursion caused the AUPR to drop from 1.00 to 0.76. Additionally, the system demonstrates remarkable efficiency, solving problems with thousands of constants in seconds or minutes on a single GPU.
The primary challenge for dNL-ILP is the memory requirement associated with propositionalization—the need to track the valuation of all possible ground atoms. For extremely large-scale knowledge graphs, future work will need to explore methods for restricting the set of active ground atoms. Nevertheless, dNL-ILP represents a major advancement in neural-symbolic integration, providing a powerful, scalable, and interpretable framework for learning logic from data.
Summary updated