Chasing Streams with Existential Rules

Jacopo Urbani, Markus Krötzsch, Thomas Eiter · DOI

Abstract

This paper introduces LARS+, a framework that bridges the gap between stream reasoning and ontological modeling by adding existential rules to temporal logic. The authors provide a semantics-preserving transformation to make these rules compatible with existing reasoning engines and introduce "time-aware" acyclicity notions to ensure that reasoning over infinite data streams remains decidable. Evaluation demonstrates that LARS+ maintains the complexity of standard existential rules while remaining performant enough for real-time sensor data applications.

Introduction

In the field of Knowledge Representation (KR), two paradigms have largely evolved in isolation: Stream Reasoning, which focuses on processing rapidly changing data snapshots, and Existential Rules, which are used for modeling complex ontologies involving "unknown" individuals.

Existing stream reasoning frameworks, such as LARS, excel at temporal queries (e.g., monitoring temperature thresholds over time) but lack the capacity for "value invention." Value invention is the ability to generate new identifiers for entities not explicitly named in the input—such as creating a unique Incident_ID when a sensor threshold is breached. Integrating existential rules into streams is theoretically challenging because it often leads to undecidability; if rules can infinitely create new values over an infinite timeline, the reasoning process (the "chase") may never terminate. LARS+ addresses this by providing a formal language and the mathematical constraints necessary to make this combination practical.

The LARS+ Framework

The authors propose a three-pronged approach to integrate these domains:

  1. Language Extension: They extend the Logic-based Framework for Analytic Reasoning over Streams (LARS) to include existential quantifiers ($\exists$). This allows rules to specify that if a certain temporal condition is met, a new or unknown entity must exist.
  2. Semantics-Preserving Rewriting: To leverage existing technology, the authors developed a 5-step rewriting process. This translates LARS+ programs into standard existential rules, allowing researchers to use highly optimized "chase" engines, such as GLog, for the actual reasoning tasks.
  3. Temporally Weak Acyclicity (TLWA): To guarantee termination, the paper introduces a new safety property called Temporally Weak Acyclicity. Standard acyclicity checks often reject streaming programs because they do not account for the fact that time is a special, progressing dimension. TLWA incorporates the timeline into the check, proving that reasoning will terminate even if rules appear circular in a non-temporal context.

Evaluation and Results

The authors evaluated LARS+ using two distinct scenarios:

  • Scenario $S_A$ (Industrial Simulation): A simulated conveyor belt system with speed and temperature sensors. Using five rules to manage "incident" objects, the system processed data in approximately 13ms per time point.
  • Scenario $S_B$ (Deep100): A complex stress test based on the Deep100 dataset from the ChaseBench suite. This benchmark was adapted into a streaming format by applying temporal window operators to standard facts. Even with thousands of facts, the system finished reasoning within seconds.

Key Insights

  • Time as a Safety Rail: The core insight is that "Universal Termination" is too restrictive for streams. By assuming input data follows a linear timeline, we can support a broader class of useful programs that standard safety checks would otherwise reject.
  • Complexity Parity: The authors proved that query answering in LARS+ is 2EXPTIME-complete. While high, this matches the complexity of standard existential rule reasoning (Weak Acyclicity), meaning the addition of temporal features does not impose a "complexity tax."
  • Practical Viability: With memory usage peaking at 114MB in heavy tests, the framework is viable for deployment on edge devices or sensor hubs.

Conclusion and Future Work

LARS+ successfully treats value invention as a first-class citizen in stream reasoning. By "baking" temporal logic into standard predicates, the authors allow stream reasoning to piggyback on decades of research into Datalog and existential rule engines.

Future research will focus on handling non-monotonicity (e.g., reasoning about the absence of events), optimizing the rewriting process for production-grade engines, and exploring "guarded" logic fragments as alternative methods for ensuring decidability.

Summary updated

BibTeX
@inproceedings{urbani2022chasing,
  author = {Jacopo Urbani and Markus Krötzsch and Thomas Eiter},
  title = {{Chasing Streams with Existential Rules}},
  booktitle = {KR},
  year = {2022},
  url = {https://openreview.net/forum?id=H9p053rn9l},
}
Figure