[Paper Review] A Selectivity based approach to Continuous Pattern Detection in Streaming Graphs
This paper proposes a selectivity-driven, lazy search algorithm for continuous subgraph pattern detection in streaming graphs, leveraging distributional statistics of 2-edge subgraphs to guide query processing. By introducing 'Relative Selectivity' to dynamically choose between path- or single-vertex-based search strategies, the approach achieves 10–100x speedups over selectivity-agnostic methods on real network traffic and social media data streams.
Cyber security is one of the most significant technical challenges in current times. Detecting adversarial activities, prevention of theft of intellectual properties and customer data is a high priority for corporations and government agencies around the world. Cyber defenders need to analyze massive-scale, high-resolution network flows to identify, categorize, and mitigate attacks involving networks spanning institutional and national boundaries. Many of the cyber attacks can be described as subgraph patterns, with prominent examples being insider infiltrations (path queries), denial of service (parallel paths) and malicious spreads (tree queries). This motivates us to explore subgraph matching on streaming graphs in a continuous setting. The novelty of our work lies in using the subgraph distributional statistics collected from the streaming graph to determine the query processing strategy. We introduce a "Lazy Search" algorithm where the search strategy is decided on a vertex-to-vertex basis depending on the likelihood of a match in the vertex neighborhood. We also propose a metric named "Relative Selectivity" that is used to select between different query processing strategies. Our experiments performed on real online news, network traffic stream and a synthetic social network benchmark demonstrate 10-100x speedups over selectivity agnostic approaches.
Motivation & Objective
- To address the challenge of real-time subgraph pattern detection in high-throughput, dynamic streaming graphs common in cyber security and social media.
- To overcome inefficiencies in periodic or brute-force subgraph matching on evolving graphs by exploiting skewed subgraph distribution.
- To design a query processing strategy that adapts dynamically to the likelihood of pattern matches using statistical selectivity metrics.
- To reduce computational overhead in continuous pattern detection by focusing search on high-probability regions of the graph.
- To provide a practical, adoptable framework for distributed systems that supports real-time situational awareness in large-scale streaming graphs.
Proposed method
- The method introduces a 'Lazy Search' algorithm that decides the search strategy on a vertex-by-vertex basis based on the likelihood of a match in the neighborhood.
- It uses 'Relative Selectivity' as a metric to compare and select between different query processing strategies—specifically 'PathLazy' and 'SingleLazy'—based on subgraph distribution statistics.
- The approach decomposes queries into 2-edge subgraphs and estimates their frequency in the streaming graph to guide search prioritization.
- It maintains an SJ-Tree to incrementally store and update partial matches, reducing redundant computation during graph evolution.
- The system profiles subgraph isomorphism and SJ-Tree operations to identify performance bottlenecks, with isomorphism dominating over 95% of processing time.
- A heuristic is proposed to select 'PathLazy' for queries with relative selectivity < 0.001 and 'SingleLazy' otherwise, based on empirical distribution analysis.
Experimental results
Research questions
- RQ1How can subgraph pattern detection be made efficient and scalable in real-time streaming graph workloads?
- RQ2What role does the distribution of 2-edge subgraphs play in guiding effective query processing strategies?
- RQ3Can relative selectivity be used as a reliable metric to dynamically select optimal search strategies in continuous pattern detection?
- RQ4How does the performance of lazy search compare to traditional, non-incremental approaches like VF2 in large-scale streaming graphs?
- RQ5What is the impact of query structure (e.g., path vs. tree) and data characteristics on the effectiveness of selectivity-based optimization?
Key findings
- The 'PathLazy' and 'SingleLazy' strategies achieved 10–100x speedups over selectivity-agnostic approaches like VF2 on real-world netflow and LSBench datasets.
- Subgraph isomorphism operations consumed over 95% of total query processing time, making optimization of this phase critical.
- Relative selectivity values showed two distinct clusters: one above 0.001 and another orders of magnitude lower, enabling a data-driven heuristic for strategy selection.
- The 'PathLazy' strategy outperformed others on the netflow dataset due to low path distribution selectivity, indicating high skew in subgraph frequencies.
- Performance gains were most pronounced for larger queries (diameter 4–5), where lazy strategies showed much slower growth in processing time compared to non-incremental methods.
- Empirical results confirmed that restricting search to high-selectivity regions significantly reduces redundant computation and improves scalability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.