NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Distributed Asynchronous Averaging for Community Detection

Luca Becchetti, Andrea Clementi, Pasin Manurangsi, Emanuele Natale, Francesco Pasquale, Prasad Raghavendra, Luca Trevisan

Abstract

Consider the following asynchronous, opportunistic communication model over a graph $G$: in each round, one edge is activated uniformly and independently at random and (only) its two endpoints can exchange messages and perform local computations. Under this model, we study the following random process: The first time a vertex is an endpoint of an active edge, it chooses a random number, say $\pm 1$ with probability $1/2$; then, in each round, the two endpoints of the currently active edge update their values to their average. We show that, if $G$ exhibits a two-community structure (for example, two expanders connected by a sparse cut), the values held by the nodes will collectively reflect the underlying community structure over a suitable phase of the above process, allowing efficient and effective recovery in important cases. In more detail, we first provide a first-moment analysis showing that, for a large class of almost-regular clustered graphs that includes the stochastic block model, the expected values held by all but a negligible fraction of the nodes eventually reflect the underlying cut signal. We prove this property emerges after a mixing period of length $\mathcal O(n\log n)$. We further provide a second-moment analysis for a more restricted class of regular clustered graphs that includes the regular stochastic block model. For this case, we are able to show that most nodes can efficiently and locally identify their community of reference over a suitable time window. This results in the first opportunistic protocols that approximately recover community structure using only polylogarithmic work per node. Even for the above class of regular graphs, our second moment analysis requires new concentration bounds on the product of certain random matrices that are technically challenging and possibly of independent interest.

Introduction

Community detection—the process of identifying clusters of densely connected nodes—is a cornerstone of network science. While centralized and synchronous distributed algorithms for this task are well-studied, many real-world decentralized systems, such as mobile ad-hoc networks or biological populations, operate under asynchronous and opportunistic constraints. In these settings, nodes do not have a global clock and only interact when they "meet" at random.

This paper introduces the first lightweight opportunistic protocols for community detection in such environments. By leveraging a simple averaging process, nodes can locally and independently identify their community membership using only logarithmic work and storage, providing a scalable solution for decentralized community recovery.

The Asynchronous Averaging Model

The core of the proposed approach is a remarkably simple random process on an undirected graph $G$:

  1. Initialization: Every node $v$ starts with a random value $x_v \in \{+1, -1\}$ chosen the first time it becomes active.
  2. Interaction: In each discrete round, one edge in the graph is selected uniformly at random.
  3. Update: The two nodes connected by that edge exchange their current values and both update their state to the average of the two.

This model reflects "population protocols" where interactions are pairwise and random. Unlike previous distributed averaging techniques that required nodes to communicate with all neighbors simultaneously, this model is strictly local and opportunistic.

Community Recovery Protocols

The researchers analyze two specific protocols that allow nodes to extract community information from the transient state of this averaging process:

  • SIGN-LABELING: Nodes use the sign of their current value at a specific time $T$ as their community label. This protocol is effective when the cut between communities is "sparse," meaning there are relatively few edges connecting the two groups compared to the internal density of the groups.
  • JUMP-LABELING: Nodes track the fluctuations in their values over time. Because values tend to move toward the local community average before eventually converging to the global consensus, the direction of this "drift" serves as a signal. This protocol is robust enough to handle "dense" cuts where communities are more heavily intertwined.

Theoretical Analysis and Insights

The primary challenge in analyzing this process is that community structure is reflected in the transient state. While the system eventually reaches a global consensus (where all nodes hold the same value), there exists a "sweet spot" in time after local mixing has occurred but before global mixing erases the community boundaries.

First and Second-Moment Analysis

The paper provides a rigorous mathematical foundation for this phenomenon:

  • First-Moment Analysis: For almost-regular clustered graphs (including the Stochastic Block Model), the expected values of nodes in one community will consistently increase while the other decreases relative to the global mean during the transient phase. This property emerges after a mixing period of $\mathcal O(n \log n)$ total edge activations.
  • Second-Moment Analysis: To prove high-probability success, the authors developed new concentration bounds for the products of random matrices. This analysis shows that a large fraction of nodes (referred to as "good nodes") stay close enough to their expected values to correctly "freeze" a community label.

Key Results

  • Efficiency: The protocols are extremely lightweight, requiring only polylogarithmic work and storage per node.
  • Accuracy: For a wide class of graphs, the protocols achieve weak reconstruction, correctly classifying all but a negligible fraction of nodes.
  • Local Autonomy: Nodes do not require knowledge of the global graph structure. They only need to track their local interaction count to determine the optimal time to sample their value for labeling.

Conclusion and Future Work

This work demonstrates that community structure can be recovered in asynchronous environments using nothing more than simple local averaging. While the current analysis focuses on regular graphs and two-community structures, it paves the way for future research into more complex network topologies, including power-law distributions and multi-community partitions. Additionally, developing "blind" versions of these protocols—which do not require estimates of the graph's spectral gap—remains an open and promising challenge.

Summary updated

BibTeX
@misc{becchetti2017distributed,
  author = {Luca Becchetti and Andrea Clementi and Pasin Manurangsi and Emanuele Natale and Francesco Pasquale and Prasad Raghavendra and Luca Trevisan},
  title = {{Distributed Asynchronous Averaging for Community Detection}},
  year = {2017},
  eprint = {1703.05045},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.05045},
}
Figure