Introduction
In knowledge representation and reasoning, existential rules (also known as Tuple-Generating Dependencies or TGDs) are essential for modeling complex data relationships. However, their expressive power comes at a cost: reasoning with these rules is often undecidable because they can trigger infinite sequences of new facts. While "guarded" existential rules—where a single atom covers all variables in a rule—offer a path toward decidability, integrating them with non-monotonic negation under Stable Model Semantics (SMS) remains a significant challenge. Modern Answer Set Programming (ASP) solvers like clingo are highly optimized for SMS but require programs to be "finitely-ground," a condition that many useful guarded rules fail to meet.
Methodology: Guarded Instantiation Forests and Prime Blocks
This research introduces a novel framework to bridge the gap between guarded existential rules and standard ASP solvers. The approach centers on two key innovations: the Guarded Instantiation Forest (GIF) and Prime Blocks.
Instead of focusing on the generation of atoms (the "chase"), the GIF focuses on the rules themselves, mapping how rule instantiations trigger one another. This shift aligns the theoretical model with the actual grounding process used by ASP solvers. To handle the potential for infinite grounding, the authors identify Prime Blocks—repeating segments within the infinite instantiation tree.
As shown in Figure 1, the instantiation process is partitioned into hierarchical blocks ($Pb$ and $Bb$). By detecting these repeating patterns, the system can "truncate" the infinite tree at a specific depth. The authors prove that information beyond this truncation point is redundant for query answering. To ensure correctness, they introduce semi-stable models, which verify if a solution found in a finite "slice" remains valid in the context of the hypothetical infinite program.
Experimental Evaluation
The proposed method, implemented as a prototype called $\mathcal{M}_{GIF}$, was evaluated against a traditional chase-based method, $\mathcal{M}_{GCF}$, across several benchmarks including LUBM, GeoConcepts, Vicodi, and the large-scale DEEP-100/200 datasets.
The results, summarized in Figure 4, demonstrate the superior efficiency and scalability of the GIF-based approach. In the Modified Vicodi benchmark, $\mathcal{M}_{GIF}$ completed the task in approximately 1,088 seconds, while the traditional $\mathcal{M}_{GCF}$ method timed out or exceeded memory limits. This performance gap is even more pronounced in the DEEP benchmarks, where $\mathcal{M}_{GIF}$ handled datasets with up to 10,000 facts in under 125 seconds, whereas the traditional method failed entirely.
Conclusion
By shifting the focus from atom generation to rule instantiation and identifying repeating "prime blocks," this work provides a robust theoretical and practical framework for answering queries under stable model semantics. The approach allows complex, potentially infinite guarded rules to be processed by efficient, off-the-shelf ASP solvers. Future work will explore extending these techniques to even more expressive rule classes, such as weakly guarded rules, and optimizing the semi-stable model verification process.
Summary updated