[Paper Review] The Vadalog System: Datalog-based Reasoning for Knowledge Graphs
This paper presents Vadalog, the first implementation of Warded Datalog+±, a decidable fragment of Datalog that supports recursive reasoning and existential quantification for knowledge graphs. By leveraging advanced recursion control and a restricted chase strategy based on warded forest structures, Vadalog achieves high performance and low memory footprint, outperforming existing systems in complex reasoning workloads.
Over the past years, there has been a resurgence of Datalog-based systems in the database community as well as in industry. In this context, it has been recognized that to handle the complex knowl\-edge-based scenarios encountered today, such as reasoning over large knowledge graphs, Datalog has to be extended with features such as existential quantification. Yet, Datalog-based reasoning in the presence of existential quantification is in general undecidable. Many efforts have been made to define decidable fragments. Warded Datalog+/- is a very promising one, as it captures PTIME complexity while allowing ontological reasoning. Yet so far, no implementation of Warded Datalog+/- was available. In this paper we present the Vadalog system, a Datalog-based system for performing complex logic reasoning tasks, such as those required in advanced knowledge graphs. The Vadalog system is Oxford's contribution to the VADA research programme, a joint effort of the universities of Oxford, Manchester and Edinburgh and around 20 industrial partners. As the main contribution of this paper, we illustrate the first implementation of Warded Datalog+/-, a high-performance Datalog+/- system utilizing an aggressive termination control strategy. We also provide a comprehensive experimental evaluation.
Motivation & Objective
- To address the lack of a high-performance, scalable implementation of Warded Datalog+±, a decidable fragment of Datalog supporting ontological reasoning and recursion.
- To enable tractable, PTIME-complexity reasoning over large knowledge graphs with existential quantification and full recursion.
- To overcome limitations of existing systems, such as backend-based chase in RDBMSs and in-memory processing, which lead to high overhead and memory bloat.
- To develop a system that supports real-world knowledge graph workloads, including complex rule-based reasoning and integration with diverse data sources.
- To provide a production-ready, extensible platform for advanced knowledge graph reasoning with support for future extensions like consistent query answering and view updates.
Proposed method
- The system implements a restricted chase strategy based on the warded forest structure, which enables efficient detection of isomorphic facts and prevents redundant rule firing.
- It uses a lifted-linear forest representation to compactly encode equivalent fact patterns, reducing memory usage by representing multiple isomorphic components with a single pattern.
- The architecture employs aggressive termination control via stop provenance and component-wise isomorphism checks to avoid unnecessary chase steps.
- It avoids translating homomorphism checks into SQL queries, unlike RDBMS-backed systems, thereby eliminating costly per-step checks.
- The system is built on a novel execution engine that natively supports recursive Datalog rules with existential quantification, leveraging theoretical guarantees of the Warded Datalog+± fragment.
- It integrates with various data sources, including big data platforms and APIs, and supports incremental reasoning and query optimization.
Experimental results
Research questions
- RQ1Can a high-performance, scalable Datalog+± system be implemented that supports full recursion and existential quantification while ensuring decidability and tractable data complexity?
- RQ2How can the restricted chase strategy in Warded Datalog+± be optimized to minimize memory usage and execution overhead in practice?
- RQ3What performance advantages does a native implementation of Warded Datalog+± offer over RDBMS-backed or in-memory systems in complex reasoning workloads?
- RQ4To what extent can the warded forest structure be exploited to detect isomorphic facts and prevent redundant rule applications?
- RQ5How does the system scale across real-world and synthetic benchmarks involving complex knowledge graph reasoning tasks?
Key findings
- Vadalog is the first production-ready implementation of Warded Datalog+±, providing a practical solution for scalable, decidable reasoning over knowledge graphs.
- The system outperforms existing systems such as ChaseFUN, DEMo, E, and Pegasus, which either lack recursive support or suffer from poor performance due to inefficient query reformulation or backend reliance.
- By avoiding SQL-based homomorphism checks and using component-wise isomorphism detection, Vadalog reduces overhead and memory footprint significantly compared to RDBMS-backed systems.
- The use of a lifted-linear forest with pattern components allows compact representation of potentially large sets of isomorphic facts, reducing memory usage to a single pattern component even for thousands of facts.
- The system demonstrates competitive performance on both real-world and synthetic benchmarks, confirming the effectiveness of its recursion control and chase optimization strategies.
- Vadalog supports integration with diverse data sources and is extensible for future enhancements like consistent query answering and view updates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.