Abstract
Graph mining, the process of identifying structural patterns such as motifs and cliques, is computationally intensive due to the exponential growth of subgraphs. Traditional "Think Like a Vertex" (TLV) distributed systems struggle with the state explosion and communication overhead inherent in mining tasks. We present Arabesque, the first distributed system designed specifically for graph mining using a "Think Like an Embedding" (TLE) paradigm. Arabesque automates the exploration of subgraphs, utilizes canonicality checks to eliminate redundant work, and employs Overapproximating Directed Acyclic Graphs (ODAGs) for efficient state compression. Our evaluation shows that Arabesque can process trillions of embeddings and outperforms TLV-based systems by up to two orders of magnitude.
1. Introduction
Graph mining is a fundamental task in network analysis, used to discover frequent patterns (motifs), dense subgraphs (cliques), and other structural properties in massive datasets. While distributed graph processing systems like Google’s Pregel or Apache Giraph have popularized the "Think Like a Vertex" (TLV) model, this paradigm is ill-suited for mining. TLV systems excel at vertex-centric computations like PageRank but fail to manage the "state explosion" of subgraphs efficiently, leading to massive communication overhead and load imbalances.
Arabesque addresses these challenges by shifting the focus from vertices to embeddings. By providing a high-level API and a specialized distributed engine, Arabesque allows developers to focus on the "what" of graph mining while the system handles the "how" of distributed exploration and scaling.
2. The "Think Like an Embedding" Paradigm
The core innovation of Arabesque is the "Think Like an Embedding" (TLE) paradigm. In this model, the primary unit of computation is an embedding—a specific instance of a subgraph pattern within the larger input graph.
Users interact with Arabesque through a simple Filter-Process model. A filter function determines if a subgraph should be explored further, and a process function defines the output for interesting subgraphs. This abstraction hides the complexity of subgraph enumeration and isomorphism testing.
3. System Architecture and Technical Innovations
To handle the scale of trillions of subgraphs, Arabesque introduces several key technical components:
- Coordination-Free Exploration: To prevent multiple workers from redundantly exploring the same subgraph (e.g., finding a triangle starting from different vertices), Arabesque enforces a "canonicality check." By defining a strict ordering for vertices, workers can locally determine if they are processing the unique "official" version of an embedding, eliminating global synchronization.
- ODAG Compression: Storing every intermediate embedding would exceed the memory capacity of any cluster. Arabesque uses Overapproximating Directed Acyclic Graphs (ODAGs) to compress sets of embeddings. This lossy-but-safe compression allows the system to represent a vast number of subgraphs in a compact form, trading minor CPU overhead for significant memory savings.
- Two-Level Pattern Aggregation: Checking for graph isomorphism is expensive. Arabesque first groups subgraphs using "quick patterns" (cheap-to-calculate heuristics) and only performs full isomorphism checks when necessary, drastically reducing computational cost.
4. Key Results and Performance
Arabesque was evaluated on diverse real-world datasets, including citation networks (CiteSeer), co-authorship networks (MiCo), and massive social networks (Instagram, SN).
The system demonstrated unprecedented scale, successfully analyzing 8.4 trillion embeddings for motifs on the SN dataset. As shown in Figure 3, the number of subgraphs grows exponentially with size, a challenge that Arabesque manages through its TLE paradigm and ODAG compression. Compared to TLV implementations, Arabesque is up to two orders of magnitude faster and exhibits near-linear scalability as more nodes are added to the cluster. For Frequent Subgraph Mining (FSM) tasks, the two-level aggregation strategy reduced isomorphism checks by up to 22 million times.
5. Conclusion and Future Work
Arabesque proves that a high-level abstraction for graph mining can achieve high performance and massive scale. By moving beyond vertex-centric models, it enables the analysis of patterns that were previously computationally unreachable. Future work will focus on improving ODAG compression for sparse graphs like Instagram and implementing more dynamic load-balancing strategies to handle highly skewed pattern distributions.
Summary updated