Lune

VLDB2026Top-tier venue

SHARP: Shared State Reduction for Efficient Matching of Sequential Patterns

Cong Yu, Tuo Shi, Matthias Weidlich, Bo Zhao

Abstract

The detection of sequential patterns in data is a basic functionality of modern data processing systems for complex event processing (CEP), OLAP, and retrieval-augmented generation (RAG). To improve the results quality for downstream applications, pattern matching engines employ multiple shared patterns that collaboratively deliver more insights. In practice, pattern matching is challenging, since common applications rely on a large set of patterns that shall be evaluated with tight latency bounds. At the same time, matching needs to maintain state, i.e., intermediate results, that grow exponentially in the input size. Hence, systems turn to best-effort processing, striving for maximal recall under a latency bound. Existing techniques, however, consider patterns in isolation, neglecting the optimization potential induced by state sharing and corresponding interactions and interference across shared patterns. We describe Sharp, a state management library that employs state reduction for efficient best-effort pattern matching in shared patterns. To this end, Sharp incorporates state sharing between patterns through a new abstraction, coined pattern-sharing degree (PSD). At runtime, PSD facilitates the categorization and indexing of partial pattern matches. Once a latency bound is exceeded, Sharp realizes best-effort processing by using a cost model to select a subset of partial matches for further processing in constant time. In experiments with real-world data, Sharp achieves a recall of 95%, 93% and 72% for pattern matching in CEP, OLAP, and RAG applications, under a bound of 50% of the average processing latency.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Think-on-Graph: Deep and Responsible Reasoning of Large Language Model on Knowledge Graph cites Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning
  • Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning cites Think-on-Graph: Deep and Responsible Reasoning of Large Language Model on Knowledge Graph
  • Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoning cites Think-on-Graph: Deep and Responsible Reasoning of Large Language Model on Knowledge Graph
  • Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoning cites Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning
  • Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoning cites KG-GPT: A General Framework for Reasoning on Knowledge Graphs Using Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on18

  1. Reasoning on Graphs: Faithful and Interpretable Large Language Model ReasoningLinhao Luo, Yuan-Fang Li, Gholamreza Haffari, Shirui PanICLR 2024 · 499 citations
  2. Think-on-Graph: Deep and Responsible Reasoning of Large Language Model on Knowledge GraphJiashuo Sun, Chengjin Xu, Lumingyuan Tang, Saizhuo Wang et al.ICLR 2024 · 247 citations
  3. Paths-over-Graph: Knowledge Graph Empowered Large Language Model ReasoningXingyu Tan, Xiaoyang Wang, Qing Liu, Xiwei Xu et al.WWW 2025 · 86 citations
  4. Regular Path Query Evaluation on Streaming GraphsAnil Pacaci, Angela Bonifati, M. Tamer ÖzsuSIGMOD 2020 · 49 citations
  5. KG-GPT: A General Framework for Reasoning on Knowledge Graphs Using Large Language ModelsJiho Kim, Yeonsu Kwon, Yohan Jo, Edward ChoiEMNLP Findings 2023 · 47 citations

Related papers

  1. Load Shedding for Complex Event Processing: Input-based and State-based TechniquesBo Zhao, Nguyen Quoc Viet Hung, Matthias WeidlichICDE 2020 · 28 citations
  2. To Share, or not to Share Online Event Trend Aggregation Over Bursty Event StreamsOlga Poppe, Chuan Lei, Lei Ma, Allison Rozet et al.SIGMOD 2021 · 13 citations
  3. DLACEP: A Deep-Learning Based Framework for Approximate Complex Event ProcessingAdar Amir, Ilya Kolchinsky, Assaf SchusterSIGMOD 2022 · 12 citations
  4. DARLING: Data-Aware Load Shedding in Complex Event Processing SystemsKoral Chapnik, Ilya Kolchinsky, Assaf SchusterVLDB 2022 · 20 citations
  5. Resource-efficient Shared Query Execution via Exploiting Time SlacknessDixin Tang, Zechao Shang, William W. Ma, Aaron J. Elmore et al.SIGMOD 2021 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines