Abstract
In this work, we present a novel approach to ontology reasoning that is based on deep learning rather than logic-based formal reasoning. To this end, we introduce a new model for statistical relational learning that is built upon deep recursive neural networks, and give experimental evidence that it can easily compete with, or even outperform, existing logic-based reasoners on the task of ontology reasoning. More precisely, we compared our implemented system with one of the best logic-based ontology reasoners at present, RDFox, on a number of large standard benchmark datasets, and found that our system attained high reasoning quality, while being up to two orders of magnitude faster.
Introduction
In the field of Knowledge Representation and Reasoning (KRR), symbolic logic has long been the standard for drawing inferences from data. However, traditional logic-based systems face significant challenges regarding scalability over massive datasets, sensitivity to noisy data, and brittleness when faced with incomplete information. This paper addresses these limitations by shifting ontology reasoning into the realm of Statistical Relational Learning (SRL), utilizing deep learning to approximate logical inference with high-speed, robust probabilistic reasoning.
Methodology: Relational Tensor Networks
The core innovation of this research is the Relational Tensor Network (RTN), which extends Recursive Neural Tensor Networks to handle Ontological Knowledge Bases (OKBs).
- Graph-Based Embeddings: The model treats an OKB as a labeled directed multigraph. Individuals (nodes) are represented as feature vectors, and relations (edges) are the links between them.
- Recursive Update Rule: RTNs use a recursive layer to update an individual's embedding based on the relations it participates in. By using a bilinear tensor product, the model captures complex interactions between entities and relations.
- NeTS (Neural Triple Store): The authors implemented this approach in the NeTS system. It utilizes a SPARQL-like interface but performs reasoning by manipulating vectors on a GPU rather than executing logical proofs on a CPU.
- Materialization via Embeddings: In NeTS, materialization is the process of running the RTN to adjust the embeddings of all individuals so they implicitly "contain" the inferred knowledge.
Experimental Setup
The system was evaluated against four standard benchmarks: Claros (cultural heritage), DBpedia (Wikipedia data), LUBM (synthetic university data), and UOBM (complex university data). To ensure a sufficient learning signal, the evaluation was restricted to predicates appearing in at least 5% of the individuals in the database.
Key Results
Reasoning Quality
Despite being a probabilistic model, NeTS achieves high predictive accuracy. Across all datasets, the average F1 scores for predicting classes and relations were consistently above 0.94, demonstrating that formal logical inference can be approximated with high fidelity through vector manipulation.
Performance and Scalability
The most significant advantage of NeTS is its reasoning speed. By offloading heavy computations to GPUs, NeTS achieves dramatic speedups in materialization compared to the state-of-the-art logic-based reasoner RDFox.
As shown in the performance data, NeTS is up to two orders of magnitude faster than RDFox. For the Claros dataset, NeTS performed reasoning in 28 seconds, compared to 2,062 seconds for RDFox—a speedup of approximately 74x.
Discussion and Limitations
While NeTS offers superior reasoning speed and memory efficiency, it introduces new trade-offs. Training the RTN is computationally expensive, often requiring several days, which makes the system better suited for static or slowly-changing ontologies. Additionally, as a "black box" deep learning model, NeTS lacks the symbolic interpretability of formal reasoners and cannot provide human-readable logical proofs for its conclusions. Future work will focus on refining the architecture to handle more expressive logical constructs and improving training efficiency.
Summary updated