Spectral embedding of regularized block models

Nathan de Lara, Thomas Bonald

Abstract

Spectral embedding is a cornerstone of graph analysis, yet its performance often degrades on real-world networks due to noise and "dangling sets." This paper introduces a theoretical framework for "complete graph regularization"—adding a small constant weight to all potential edges—to mitigate these issues. We prove that this regularization forces the embedding to prioritize clusters by size, effectively filtering out structural noise. Empirical results on synthetic and real-world datasets, such as Wikipedia for Schools and 20newsgroups, demonstrate that regularization significantly stabilizes clustering performance and improves cluster quality metrics.

Introduction

Spectral embedding transforms complex graph structures into low-dimensional vector spaces, facilitating tasks such as community detection and clustering. However, standard spectral methods are notoriously sensitive to outliers. In real-world "dirty" graphs, small, loosely connected groups of nodes (dangling sets) often dominate the primary dimensions of the embedding, obscuring the meaningful large-scale community structure. While practitioners have long used the heuristic of adding a small constant to the adjacency matrix to improve results, a formal theoretical understanding of this "complete graph regularization" has been lacking until now.

Methodology

The authors analyze regularization through the lens of Block Models, where nodes are partitioned into groups with shared connectivity patterns. The study follows a three-step analytical approach:

  1. Aggregation: The spectral embedding of a large block model is shown to be reducible to a smaller "aggregate graph" where each block is treated as a single node.
  2. Complete Graph Regularization: A regularization parameter $\alpha$ is introduced, adding a weight of $\alpha$ to every node pair in the graph.
  3. Eigenvalue Analysis: The researchers derive explicit relationships between block sizes, $\alpha$, and the resulting eigenvectors by solving the generalized eigenvalue problem.

This framework reveals that regularization acts as a structural filter, forcing the spectral embedding to isolate blocks in decreasing order of size. This "sorting effect" ensures that the most significant clusters are captured in the first few dimensions, while small-scale noise is suppressed.

Results

Robustness to Noise

A critical advantage of regularization is its ability to maintain performance in the presence of structural noise. On the Wikipedia for Schools (WS) dataset, standard spectral embedding ($\alpha=0$) fails catastrophically when even 1% noise (isolated nodes) is introduced, with clustering metrics like ARI and AMI dropping to zero. In contrast, applying regularization ($\alpha=1$) keeps these scores stable and high, demonstrating the method's practical utility for real-world data.

Clustering performance on the WS dataset under noise, comparing standard ($\alpha=0$) and regularized ($\alpha=1$) embeddings.

Empirical Performance Across Datasets

The theoretical insights were validated across three datasets: Stochastic Block Models (SBM), 20newsgroups (NG), and Wikipedia for Schools (WS). Regularization consistently improved or stabilized clustering quality. For instance, on the NG dataset, the V-measure improved from 0.51 to 0.54 with regularization, while the Normalized Standard Deviation (NSD) increased, indicating more balanced cluster recovery.

Summary of clustering metrics (H, C, V, ARI, AMI, FMI, Q, NSD) for SBM, NG, and WS datasets across varying regularization strengths ($\alpha$).

Discussion and Conclusion

The primary contribution of this work is the formal proof of the "sorting effect" induced by complete graph regularization. By providing a baseline connectivity, regularization prevents the algorithm from wasting dimensions on tiny, irrelevant components. Furthermore, the authors demonstrate that this regularization can be implemented efficiently. Although adding a constant to every entry makes a sparse matrix dense, the resulting "Sparse + Rank-1" structure allows for fast computation without high memory overhead.

While the current theory focuses on perfect block models, future work aims to extend these proofs to more complex stochastic models and explore the impact of regularization on downstream tasks like link prediction and graph neural network pre-training.

Summary updated

BibTeX
@inproceedings{lara2020spectral,
  author = {Nathan de Lara and Thomas Bonald},
  title = {{Spectral embedding of regularized block models}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure