NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Real-time Top-K Predictive Query Processing over Event Streams

Saurav Acharya, Byung Suk Lee, Paul HinesarXiv 2015

Introduction

Predicting future events in real-time streams is a cornerstone of modern intelligent systems, from web recommendation engines to emergency response in power grids. Traditional approaches often rely on causal models like Bayesian Networks. However, these models typically enforce a Directed Acyclic Graph (DAG) structure, which fails to capture the cyclic nature of real-world event sequences. This paper presents a novel framework that leverages an Event Precedence Network (EPN) to handle cycles and performs causal inference at query time to maintain high accuracy and performance.

The Challenge of Real-time Prediction

Existing predictive models face two primary obstacles:

  1. The Acyclic Constraint: Most causal models cannot represent cycles (e.g., $A \to B \to A$). In click-stream data or system logs, such patterns are common. Forcing these into a DAG results in significant information loss.
  2. Causal Information Loss: Standard methods prune "weak" links during pre-processing based on conservative assumptions. This often removes rare but critical causal relationships necessary for accurate prediction in specific contexts.

Proposed Methodology

The authors introduce a two-tiered solution to address these challenges: the Event Precedence Model (EPM) and the Reduced Search Early Termination (RSET) algorithm.

Event Precedence Model (EPM)

The EPM constructs an Event Precedence Network (EPN), which is modeled as a first-order absorbing Markov chain. Unlike static DAGs, the EPN is built incrementally and explicitly allows for cycles and bidirectional relationships.

Example of a raw event stream used as input for the EPN.

To formalize the components of this network, the authors utilize a specific set of symbols and definitions to track event instances and their relationships:

Symbols and definitions used in the Event Precedence Model.

Run-time Causal Inference

Instead of static pruning, the system performs Conditional Independence (CI) tests dynamically during query processing. This ensures that precedence relationships are only treated as causal if they are statistically significant within the current event context, preventing the loss of rare but important causal links.

The RSET Algorithm

To ensure real-time performance, the Reduced Search Early Termination (RSET) algorithm is employed. RSET uses a priority-based breadth-first search to explore the most probable causal paths first. It terminates as soon as it is mathematically guaranteed that the top-$k$ results have been identified, avoiding the computational cost of an exhaustive search.

Experimental Evaluation

The framework was evaluated on two real-world datasets:

  • MSNBC.com Web Dataset: Contains 4.7 million click-stream events across 17 categories. This dataset is characterized by high cyclicity.
  • Electric Power Grid Dataset: A simulation of cascading failures in the Polish power network, featuring over 94,000 instances across 565 event types.

Key Results

The proposed approach demonstrates significant improvements over state-of-the-art methods like Fast Causal Network Inference (FCNI):

  • Accuracy: Both Exhaustive Search (ES) and RSET outperformed FCNI by capturing cyclic dependencies that FCNI's acyclic nature ignored.
  • Efficiency: RSET achieved runtime reductions of 25% to 80% compared to exhaustive search, with only a negligible impact on prediction accuracy.

Conclusion

By moving away from restrictive acyclic models and delaying causal inference until query time, this framework provides a robust solution for real-time top-k event prediction. The RSET algorithm further ensures that these predictions can be made at the speeds required by high-velocity event streams without sacrificing accuracy.

Summary updated

BibTeX
@misc{acharya2015real,
  author = {Saurav Acharya and Byung Suk Lee and Paul Hines},
  title = {{Real-time Top-K Predictive Query Processing over Event Streams}},
  year = {2015},
  eprint = {1508.06976},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1508.06976},
}
Figure