Skip to main content
QUICK REVIEW

[Paper Review] A linear streaming algorithm for community detection in very large networks

Alexandre Hollocou, Julien Maudet|arXiv (Cornell University)|Mar 8, 2017
Complex Network Analysis TechniquesPhysics and Astronomy30 references22 citations
TL;DR

This paper proposes SCoDA, a linear-time, low-memory streaming algorithm for community detection in massive networks. It processes edges in random order, maintaining only two integers per node, and dynamically merges communities based on edge arrival patterns, achieving over 10x speedup over state-of-the-art methods while matching or improving detection quality on billion-edge graphs.

ABSTRACT

In this paper, we introduce a novel community detection algorithm in graphs, called SCoDA (Streaming Community Detection Algorithm), based on an edge streaming setting. This algorithm has an extremely low memory footprint and a lightning-fast execution time as it only stores two integers per node and processes each edge strictly once. The approach is based on the following simple observation: if we pick an edge uniformly at random in the network, this edge is more likely to connect two nodes of the same community than two nodes of distinct communities. We exploit this idea to build communities by local changes at each edge arrival. Using theoretical arguments, we relate the ability of SCoDA to detect communities to usual quality metrics of these communities like the conductance. Experimental results performed on massive real-life networks ranging from one million to more than one billion edges shows that SCoDA runs more than ten times faster than existing algorithms and leads to similar or better detection scores on the largest graphs.

Motivation & Objective

  • Address the scalability challenge of community detection in very large networks with billions of edges.
  • Design a streaming algorithm that processes edges in a single pass with minimal memory usage.
  • Achieve high-speed community detection without sacrificing detection quality on real-world networks.
  • Provide a theoretically grounded method that relates community detection performance to standard metrics like conductance and out-degree fraction.

Proposed method

  • Process edges in a random, insert-only stream without storing the full graph.
  • Maintain for each node: its current community label and the count of processed adjacent edges.
  • At each edge arrival, merge communities if both endpoints have degree ≤ D, otherwise treat as a transfer-edge.
  • Use a parameter D to control merging behavior, chosen based on the mode of the degree distribution.
  • Apply a local decision rule: if both nodes have degree ≤ D, merge their communities; otherwise, treat the edge as a potential boundary link.
  • Leverage the probabilistic insight that edges within communities are more likely to be processed early in a random stream.

Experimental results

Research questions

  • RQ1Can a streaming algorithm achieve high community detection accuracy with linear time and space complexity on massive networks?
  • RQ2How does the performance of SCoDA compare to state-of-the-art algorithms like Louvain and SCD in terms of speed and F1-score on large graphs?
  • RQ3What is the optimal choice of the parameter D, and how does it affect detection quality across different network types?
  • RQ4To what extent does SCoDA's performance correlate with standard community quality metrics like conductance and out-degree fraction?
  • RQ5Can the algorithm be adapted to handle dynamic or evolving networks, and what are the implications of repeated runs with varying edge classifications?

Key findings

  • SCoDA runs more than 10 times faster than existing algorithms like Louvain and SCD on graphs with over one billion edges.
  • On the largest networks (e.g., Friendster, Orkut), SCoDA achieves higher or comparable F1-scores compared to state-of-the-art methods.
  • The choice of D as the mode of the degree distribution yields superior performance compared to using the average or median degree.
  • The algorithm’s performance degrades on social networks with high maximum degree and low density, but remains stable on co-citation and co-purchasing networks.
  • Theoretical analysis shows that SCoDA’s merging strategy is closely related to conductance and out-degree fraction, validating its community detection mechanism.
  • Experiments on synthetic graphs confirm that fixed D values (e.g., D=2) reduce recall, justifying the adaptive choice of D based on degree distribution.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.