mlsanityData to 14 Oct 2026

SHARP: Shared State Reduction for Efficient Matching of Sequential Patterns

arXiv 2507.04872 ↗First posted 7 Jul 2025cs.DBcited by 0

On the map: Retrieval-augmented generation → Generation and context integration

Abstract (arXiv)

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). 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 grows exponentially in the input size. Hence, systems turn to best-effort processing, striving for maximal recall under a latency bound. Existing techniques, however, consider each pattern in isolation, neglecting the optimization potential induced by state sharing in pattern matching. In this paper, we present SHARP, a library that employs state reduction to achieve efficient best-effort pattern matching. To this end, SHARP incorporates state sharing between patterns through a new abstraction, coined pattern-sharing degree (PSD). At runtime, this abstraction facilitates the categorization and indexing of partial pattern matches. Based thereon, once a latency bound is exceeded, SHARP realizes best-effort processing by selecting a subset of partial matches for further processing in constant time. In experiments with real-world data, SHARP achieves a recall of 97%, 96% and 73% for pattern matching in CEP, OLAP, and RAG applications, under a bound of 50% of the average processing latency.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 18 of its 84 references that are in the map. First posted on arXiv 7 Jul 2025.

Builds on

18 of 84 references.

References · 18

  1. 2024Graph Retrieval-Augmented Generation: A Surveycited by 324
  2. 2017Variational Reasoning for Question Answering with Knowledge Graphcited by 170
  3. 2024HybridRAG: Integrating Knowledge Graphs and Vector Retrieval Augmented Generation for Efficient Information Extractioncited by 93
  4. 2024Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoningcited by 44
  5. 2023KG-GPT: A General Framework for Reasoning on Knowledge Graphs Using Large Language Modelscited by 32
  6. 2024Direct Evaluation of Chain-of-Thought in Multi-hop Reasoning with Knowledge Graphscited by 32
  7. 2016Foundations of Modern Query Languages for Graph Databasescited by 22
  8. 2018VerdictDB: Universalizing Approximate Query Processingcited by 11
  9. 2020eSPICE: Probabilistic Load Shedding from Input Event Streams in Complex Event Processingcited by 3
  10. 2013On Load Shedding in Complex Event Processingcited by 2
  11. 2020pSPICE: Partial Match Shedding for Complex Event Processingcited by 2
  12. 2020Regular Path Query Evaluation on Streaming Graphscited by 2
6 more
  1. 2020hSPICE: State-Aware Event Shedding in Complex Event Processingcited by 2
  2. 2020GRETA: Graph-based Real-time Event Trend Aggregationcited by 1
  3. 2020Sharon: Shared Online Event Sequence Aggregationcited by 1
  4. 2021To Share, or not to Share Online Event Trend Aggregation Over Bursty Event Streamscited by 1
  5. 2021Combining Aggregation and Sampling (Nearly) Optimally for Approximate Query Processingcited by 1
  6. 2025Real-Time, Low-Latency Surveillance Using Entropy-Based Adaptive Buffering and MobileNetV2 on Edge Devicescited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Cost-Efficient RAG for Entity Matching with LLMs: A Blocking-based Exploration
  2. 2025CacheClip: Accelerating RAG with Effective KV Cache Reuse
  3. 2025Characterizing Pattern Matching and Its Limits on Compositional Task Structures
  4. 2025Revisiting RAG Ensemble: A Theoretical and Mechanistic Analysis of Multi-RAG System Collaboration
  5. 2026Cross-Attention Calibrated Deduplication for Retrieval-Augmented Generation System
  6. 2026BoundaryMORPH: Budgeted Reranking via Active Set Selection for Diffuse Retrieval
  7. 2026MARCH: Scaling Recurrent Memory with Content-Routed State Anchors
  8. 2024CItruS: Chunked Instruction-aware State Eviction for Long Sequence Modeling