Abstract
This paper introduces the first round-efficient, massively parallel algorithms for exact community recovery in the Stochastic Block Model (SBM) under the highly restrictive "s-space" Massively Parallel Computation (MPC) model. By developing novel parallel primitives for graph operations, we achieve exact clustering with near-optimal statistical thresholds while maintaining significantly lower memory requirements than previous state-of-the-art parallel methods.
1. Introduction
The Stochastic Block Model (SBM) is a fundamental framework for studying community detection in graphs. In an SBM graph, nodes within the same community connect with probability $p$, while nodes in different communities connect with probability $q$ (where $p > q$). The objective of exact recovery is to correctly identify the community membership of every single node in the graph.
While sequential algorithms for SBM are well-understood, the scale of modern datasets necessitates parallel processing. The Massively Parallel Computation (MPC) model serves as a standard abstraction for frameworks like Spark and MapReduce. This work focuses on the "s-space" regime, where local machine memory is limited to $O(\log n)$—a significant challenge compared to the more common "sublinear space" regime ($n^\delta$ memory).
2. Algorithmic Frameworks
We propose two distinct algorithmic approaches tailored for the s-space MPC model: Neighbor Counting and Power Iterations.
2.1 Neighbor Counting and the Alignment Trick
The neighbor counting approach leverages the intuition that nodes within the same community share more common neighbors than nodes in different communities. The primary challenge in the MPC model is the inability to perform global neighborhood lookups due to memory constraints.
To overcome this, we developed the ReorganizeNBR primitive. This operation aligns neighborhood lists across machines such that the $i$-th entry of every list refers to the same vertex. This alignment allows for efficient bitwise comparison in parallel, effectively turning a complex join operation into a simple scan.
2.2 Power Iterations
For scenarios with lower signal-to-noise ratios, we introduce a spectral approach based on power iterations. This method uses powers of a modified adjacency matrix $B = A - qJ$ to amplify the community structure signal.
Calculating matrix powers $B^r$ is typically communication-intensive. Our innovation lies in decomposing the matrix expansion into combinatorial "walks" on the graph. This allows us to compute the necessary norms for clustering without explicitly materializing the dense matrix $B^r$, making it feasible within the s-space constraints.
3. Key Primitives and Results
Our algorithms are built upon a library of basic graph operations designed for s-space MPC, including RandomSet (sampling), CopyNBR (neighborhood replication), and CompareCut (parallel counting).
Theoretical analysis demonstrates that:
- Neighbor Counting achieves exact recovery in $O(\log_s n)$ rounds when the signal-to-noise ratio is $\frac{p-q}{\sqrt{p}} \ge \tilde{\Omega}(k^{3/4} n^{-1/4})$.
- Power Iterations can handle "fuzzier" communities where $\frac{p-q}{\sqrt{p}} \ge \tilde{\Omega}(k^{1/2} n^{-1/2 + \epsilon})$, approaching the information-theoretic limit.
- Both methods are highly space-efficient, requiring only $\tilde{O}(m)$ total space, where $m$ is the number of edges.
4. Conclusion
This work significantly relaxes the memory and statistical requirements for parallel SBM recovery. By transforming linear algebraic and set-theoretic problems into parallelizable graph traversals and alignment tasks, we provide a robust framework for large-scale community detection. Future work includes extending these primitives to degree-heterogeneous models and developing parameter-free variants.
Summary updated