Rule Rewriting Revisited: A Fresh Look at Static Filtering for Datalog and ASP

📅 2026-01-08
🏛️ arXiv.org
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Static filtering techniques have long been overlooked in Datalog and lack support for Answer Set Programming (ASP). This work presents the first unified generalization of static filtering to both Datalog and ASP, introducing a more expressive form of filtering predicates together with a corresponding theoretical framework. The approach enables efficient reasoning through logic program rewriting, static analysis, and controllable approximation strategies. While preserving full expressiveness, the method substantially enhances the performance of rule-based systems, achieving order-of-magnitude speedups on representative benchmarks and real-world datasets.

Technology Category

Knowledge Representation and Reasoning: Logic ProgrammingMachine Learning: Statistical Relational/Logic LearningConstraint Satisfaction and Optimization: Satisfiability Modulo Theories

Application Category

Graph Algorithms and Modeling for the Web: Efficient manipulation of static and dynamic Web-related graphsSemantics and Knowledge: Data modeling to support human-machine intelligence, including LLMs agents, intelligent system behavior, explanations, and user-friendly interactionsSearch and Retrieval-Augmented AI: Web learning to rank, online learning, and counterfactual learning for ranking
📝 Abstract
Static filtering is a data-independent optimisation method for Datalog, which generalises algebraic query rewriting techniques from relational databases. In spite of its early discovery by Kifer and Lozinskii in 1986, the method has been overlooked in recent research and system development, and special cases are being rediscovered independently. We therefore recall the original approach, using updated terminology and more general filter predicates that capture features of modern systems, and we show how to extend its applicability to answer set programming (ASP). The outcome is strictly more general but also more complex than the classical approach: double exponential in general and single exponential even for predicates of bounded arity. As a solution, we propose tractable approximations of the algorithm that can still yield much improved logic programs in typical cases, e.g., it can improve the performance of rule systems over real-world data in the order of magnitude.
Problem

Research questions and friction points this paper is trying to address.

static filtering
Datalog
answer set programming
rule rewriting
optimization
Innovation

Methods, ideas, or system contributions that make the work stand out.

static filtering
Datalog
answer set programming
rule rewriting
tractable approximation
🔎 Similar Papers
No similar papers found.
P
Philipp Hanisch
Knowledge-Based Systems Group, TU Dresden
M
Markus Krotzsch
Knowledge-Based Systems Group, TU Dresden