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

Assortative-Constrained Stochastic Block Models

Daniel Gribel, Thibaut Vidal, Michel Gendreau · DOI

Introduction

Stochastic Block Models (SBMs) have long been a cornerstone of community detection, offering a flexible probabilistic framework for partitioning nodes in a network. However, this flexibility is often a double-edged sword. Standard SBMs are "agnostic" to the nature of the communities they identify; they are equally likely to find assortative structures (where nodes connect primarily within their own group) and disassortative structures (where nodes prefer connecting to other groups). In many real-world applications, such as social networks or functional brain mapping, researchers specifically seek assortative communities. In these contexts, the agnostic nature of SBMs can lead the algorithm into "spurious" disassortative local minima, particularly when dealing with sparse or noisy data.

This paper introduces the Assortative-Constrained Degree-Corrected SBM (AC-DC-SBM), a model designed to enforce assortativity constraints. By incorporating domain-specific priors into the likelihood maximization process, AC-DC-SBM prevents the algorithm from being trapped by misleading non-assortative solutions.

The Challenge: Agnostic SBMs and Spurious Minima

In community detection, the goal is often to find groups with dense internal links. While the Degree-Corrected SBM (DC-SBM) is powerful because it accounts for varying node degrees (hubs), it remains mathematically indifferent to the type of structure. In sparse networks, disassortative solutions can sometimes yield a higher likelihood than the true assortative structure simply due to random fluctuations in the data.

Traditional alternatives like modularity maximization force assortativity but are often too restrictive, failing to account for heterogeneous node degrees and varying community sizes. AC-DC-SBM seeks a middle ground: the expressiveness of a degree-corrected SBM with the structural guidance of assortativity constraints.

Methodology: The AC-DC-SBM Framework

The authors propose a constrained maximum-likelihood approach. The model requires that every diagonal element in the edge probability matrix (representing internal group connections) is greater than or equal to any off-diagonal element (representing external connections).

To solve this constrained optimization problem, the authors developed an iterative algorithm combining local search with an efficient interior-point solver. To maintain computational efficiency, the algorithm first checks the unconstrained solution; it only invokes the more expensive constrained optimization if the initial result violates the assortativity requirement.

Experimental Evaluation

The model was rigorously tested against standard DC-SBM using both synthetic and real-world datasets. On Planted Partition Models (PPM), AC-DC-SBM demonstrated superior performance in the "phase transition" regime, where the signal-to-noise ratio makes community recovery theoretically difficult.

Normalized Mutual Information (NMI) comparison between standard DC-SBM and AC-DC-SBM across varying noise levels.

As shown in the figure above, at an $\omega_{out}/\omega_{in}$ ratio of 0.25, AC-DC-SBM achieved an average Normalized Mutual Information (NMI) of 0.55, significantly outperforming the standard DC-SBM's 0.34. This indicates that the constraints allow the model to recover the true community structure even when the network signal is weak.

Key Insights: Robustness and the "Hub" Trap

A common failure mode for standard DC-SBM is the "hub" trap, where the model identifies a single community as a central hub that mediates all inter-group traffic. While this might be mathematically likely in a specific data realization, it often contradicts the physical reality of the system. AC-DC-SBM effectively filters out these spurious solutions.

Distribution of solutions by the number of assortative groups found, demonstrating AC-DC-SBM's ability to avoid non-assortative local minima.

In tests across 50 general SBM datasets, AC-DC-SBM showed remarkable stability. While the standard model often settled on solutions with only two assortative groups (out of four), the constrained model consistently identified the full assortative structure. This robustness was further validated on a real-world network of the cat cortex, where AC-DC-SBM successfully identified four known functional brain regions that standard models failed to distinguish.

Conclusion

AC-DC-SBM represents a significant step forward in making SBMs more practical for domain-specific research. By enforcing "strong assortativity," the model pushes the detectability limit in sparse networks and avoids the misleading local minima that plague agnostic algorithms. Future work will focus on automating the selection of the number of communities ($K$) and scaling the interior-point solver for massive networks with millions of nodes.

Summary updated

BibTeX
@inproceedings{gribel2020assortative,
  author = {Daniel Gribel and Thibaut Vidal and Michel Gendreau},
  title = {{Assortative-Constrained Stochastic Block Models}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9413275},
}
Figure