Abstract
Detecting communities in massive networks with billions of edges poses significant computational challenges. Traditional algorithms often require multiple passes or substantial memory. We present SCoDA (Streaming Community Detection Algorithm), a linear-time, memory-efficient approach that processes edges in a single pass. SCoDA maintains only two integers per node, enabling the analysis of billion-edge graphs on commodity hardware. Our evaluation on large-scale benchmarks like Friendster shows that SCoDA is 10x to 100x faster than state-of-the-art methods while maintaining competitive accuracy.
Introduction
As social and biological networks grow to include billions of connections, traditional community detection algorithms (like the Louvain method or spectral clustering) hit a wall. These methods often require multiple passes over the data, complex global optimizations, or massive amounts of RAM to store the graph structure. The authors tackle the challenge of "scaling to the limit" by seeking an algorithm that works in a streaming setting, where edges are processed one by one and never stored in memory. The goal is to achieve a "minimal sketch"—using the absolute least amount of information possible to produce high-quality community assignments.
Methodology
The authors introduce SCoDA, which operates on a simple but powerful observation: in a random stream of edges, an edge is statistically more likely to connect two nodes within the same community (an intra-community edge) than nodes in different communities.
The algorithm works as follows:
- Initialization: Every node starts in its own community.
- Streaming: Edges $(u, v)$ arrive in a random order.
- Local Update: For each edge, the algorithm updates the current degrees of $u$ and $v$.
- Decision Rule: If both nodes have a current degree below a threshold $D$, the node with the lower degree "joins" the community of the other node. If either degree exceeds $D$, no action is taken.
- Memory Efficiency: The algorithm only stores two integers per node: its current community ID and its current degree. This results in a space complexity of $O(n)$, where $n$ is the number of nodes.
The key innovation is the lack of "propagation." When a node changes its community, its neighbors aren't immediately notified. This makes the algorithm "embarrassingly parallel" and incredibly fast. The algorithm has only one parameter: the degree threshold $D$. The authors found that setting $D$ to the mode (the most frequent degree) of the network is the "sweet spot." It is high enough to capture the internal structure of communities but low enough to prevent "leakage" between communities through high-degree hub nodes.
Experimental Evaluation
The researchers evaluated SCoDA using the SNAP (Stanford Large Network Dataset Collection) benchmarks, which include ground-truth communities. These include social networks (YouTube, LiveJournal, Orkut, Friendster), co-purchasing networks (Amazon), and co-citation networks (DBLP). The inclusion of the billion-edge Friendster graph highlights the algorithm's specific strength in handling "massive-scale" data.
Results
SCoDA is consistently 10x to 100x faster than existing high-performance algorithms like SCD or Louvain. On the Friendster dataset, SCoDA took 314 seconds to run. For comparison, simply reading the file using the Unix cat command took 152 seconds. This means the actual computation adds very little overhead beyond the time it takes to move data off the disk.
For the Friendster graph, SCoDA required only 1.1 GB of RAM. Most other algorithms require tens or hundreds of gigabytes to store the graph's adjacency list for the same task. Despite its simplicity, SCoDA achieved similar or better F1-scores than state-of-the-art methods on the largest graphs (Orkut and Friendster). While it slightly underperformed on smaller, denser graphs like Amazon, its performance improved as the graph size increased.
Conclusion
SCoDA demonstrates that for massive-scale community detection, simplicity and streaming efficiency can rival complex global optimization. While it assumes random edge ordering and focuses on disjoint communities, its performance on billion-edge graphs makes it a powerful tool for modern network analysis. Future work may extend this approach to dynamic networks and overlapping community structures.
Summary updated