TL;DR
This paper introduces a high-performance framework for continuous subgraph isomorphism search over streaming graphs, specifically focusing on patterns where the timing order of edges is critical (e.g., a cyber-attack sequence). By leveraging these timing constraints to prune the search space and using a novel trie-based "Match-Store Tree" for memory compression, the authors achieve nearly an order of magnitude higher throughput and significantly lower memory usage than existing state-of-the-art methods.
What Problem Does This Paper Address?
In many real-world streaming scenarios—like detecting credit card fraud or identifying multi-stage cyber-attacks—the structure of the interaction graph isn't the only thing that matters; the sequence of events does too. For instance, a botnet attack follows a specific pipeline: a victim visits a site, then downloads malware, then connects to a command server.
Existing subgraph search algorithms often struggle with streaming data because:
- NP-Hardness: Subgraph isomorphism is computationally expensive.
- High Velocity: Streaming data arrives too fast for traditional static graph algorithms to be re-run constantly.
- Temporal Neglect: Most tools ignore the "happened-before" relationship between edges, missing opportunities to prune irrelevant data or failing to capture the true semantics of the query.
Methods
The authors propose a multi-pronged solution to handle these challenges:
- Timing-Connected Queries (TC-queries): They define a class of queries where edges follow a strict partial order. This allows the system to identify "discardable edges"—incoming data that matches a pattern's structure but arrives at the wrong time relative to its prerequisites.
- Expansion Lists: A data structure that maintains partial matches. It uses the timing constraints to ensure that only valid, extendable sequences are kept in memory.
- Match-Store Tree (MS-tree): To solve the "memory explosion" problem of storing millions of partial matches, the authors designed a trie-variant. Since many partial matches share the same "prefix" (the same initial sequence of edges), the MS-tree compresses these into a single path, drastically reducing the RAM footprint.
- Fine-Grained Concurrency Management: To utilize multi-core CPUs, they implemented a locking strategy that ensures Streaming Consistency. This means that even when processed in parallel, the results are identical to a strict chronological serial execution.
- Query Decomposition: Complex, non-sequential queries are broken down into smaller TC-subqueries and joined using a cost-model-guided approach to minimize intermediate results.
Datasets
The framework was evaluated on three diverse datasets:
- Network Traffic: CAIDA 2015 dataset containing over 445 million communication records (IP-to-IP).
- Wiki-talk: A temporal graph from SNAP representing users editing each other's talk pages (7.8 million edges).
- Linked Stream Benchmark (LSB): A synthetic social streaming benchmark used to test scalability.
- Case Study: A real-world internal network trace where the system successfully detected a ZeuS botnet attack pattern.
Key Insights and Ideas
- Constraints as an Advantage: Counter-intuitively, adding timing constraints makes the search easier rather than harder. By enforcing a strict order, the algorithm can "fail fast" and discard edges that don't fit the temporal sequence, even if they fit the topological structure.
- Prefix Sharing in Graphs: The authors realized that partial matches in graph search behave much like strings. By treating a sequence of matched edges as a "word," they could apply trie-based compression (the MS-tree) to graph data.
- Streaming Consistency vs. Serializability: In streaming, the physical arrival time is the ground truth. The authors' locking mechanism is specifically designed to respect the timestamp order of the stream, which is a stricter requirement than standard database serializability.
Key Results
- Throughput: The proposed "Timing" method outperformed the closest competitor (SJ-tree) by nearly 10x in terms of edges processed per second.
- Memory Efficiency: The MS-tree reduced space consumption significantly compared to "Timing-IND" (which stores matches independently), often by several factors depending on the query complexity.
- Scalability: The system demonstrated near-linear speedup as the number of threads increased, proving the effectiveness of their fine-grained locking strategy.
- Real-world Detection: In the case study, the system identified a botnet pattern within a 30-second window, demonstrating its readiness for live security monitoring.
Limitations and Future Work
- Cost Model Optimization: While the authors use a cost model for query decomposition, they note that finding the optimal decomposition in a dynamic stream (where data distributions change) remains a significant research challenge.
- Vertex vs. Edge Labels: The current implementation focuses primarily on vertex-labeled graphs. While the authors suggest it can be extended to edge labels via "imaginary vertices," a native implementation for complex edge-labeled multigraphs could be a future direction.
- Sliding Window Sensitivity: Performance is still tied to the window size ($W$). If the window is extremely large, the number of partial matches could eventually overwhelm the MS-tree's compression capabilities.
Summary updated