Abstract
Subgraph enumeration—the process of finding all instances of a specific pattern within a large graph—is a fundamental operation in network analysis and fraud detection. However, traditional distributed systems often struggle with the "intermediate result explosion" caused by shuffle-heavy join operations. This paper introduces BENU, a distributed framework that rethinks subgraph enumeration by replacing expensive joins with a backtracking-based local search. By querying data on-demand and employing sophisticated execution plan optimizations, BENU achieves performance gains of one to two orders of magnitude over existing state-of-the-art systems for both static and dynamic graphs.
Introduction
Subgraph enumeration is computationally expensive (NP-complete) and, in distributed settings, suffers from massive communication bottlenecks. Most existing systems utilize "BFS-style" joins that shuffle partial matching results across the network. Because the volume of these partial matches can be orders of magnitude larger than the graph itself, the network often becomes a bottleneck, leading to high latency or system failure. BENU addresses these challenges by shifting from a "push" model to a "pull" model, where worker nodes execute local search tasks and fetch only the necessary adjacency data from a distributed key-value store.
The BENU Framework
BENU is divided into two primary components: Batch-BENU for static graph analysis and Streaming-BENU for dynamic, rapidly changing graphs.
The "On-Demand Shuffle"
Instead of broadcasting partial results, BENU stores the data graph in a distributed key-value store (such as HBase). Each worker node initiates local search tasks from individual vertices. When a task requires the neighbors of a specific vertex, it "pulls" that adjacency set from the database. This approach ensures that network traffic is strictly limited to the data required for the current search path, significantly reducing overhead.
Optimized Execution Plans
To maximize the efficiency of the backtracking search, BENU generates an optimized execution plan through several key techniques:
- Common Subexpression Elimination (CSE): Identifies and reuses redundant neighbor set intersections.
- Instruction Reordering: Prioritizes low-cost operations (like local intersections) over high-cost ones (like remote database queries) to prune the search space as early as possible.
- Triangle Caching: Locally caches frequently accessed small structures to minimize redundant network calls.
- VCBC Compression: Uses vertex-cover-based compression to represent large result sets compactly.
Backtracking-based Local Search
The core of the execution is the backtracking search tree. As shown in the search tasks, the system maps pattern vertices ($u_i$) to data graph vertices ($v_i$) incrementally. If a partial match cannot be extended, the system backtracks, avoiding the need to store or transmit that failed path.
Handling Dynamic Graphs
For streaming data, the authors introduce Incremental Pattern Graphs ($\Delta P_i$). This mathematical framework allows Streaming-BENU to focus exclusively on new updates. By searching only for pattern instances that include at least one newly added edge, the system avoids redundant re-scanning of the entire graph, enabling real-time enumeration on dynamic datasets.
Key Results and Insights
Evaluation on large-scale datasets (such as Friendster and uk-2002) demonstrated that Batch-BENU outperforms MapReduce-based systems like CBF by up to 10x. In streaming scenarios, Streaming-BENU outperformed Delta-BiGJoin by one to two orders of magnitude, primarily due to the elimination of the shuffle phase.
The researchers found that "locality is king." By implementing a local database cache, BENU satisfies the majority of data requests without network intervention. Furthermore, the system exhibits near-linear scalability, proving robust for massive, real-world graph processing.
Conclusion and Future Work
BENU demonstrates that a pull-based backtracking approach is superior to traditional join-based methods for distributed subgraph enumeration. Future work includes refining cost models for directed incremental patterns, extending the framework to support rich "Property Graphs" with node and edge attributes, and generalizing local caching to include larger cliques and complex primitives.
Summary updated