Research projects · 2018 – 2021

Spectral methods for community detection

Fast, theoretically grounded spectral algorithms to cluster sparse, heterogeneous and time-evolving graphs.

spectrumReImspectral embeddingv₁v₂

This line of work was the core of my PhD at GIPSA-lab (Université Grenoble Alpes), under the supervision of Romain Couillet and Nicolas Tremblay.

Spectral clustering is one of the most popular approaches to find communities in graphs, but standard methods break down on sparse graphs and on graphs with heterogeneous degree distributions — exactly the regime of most real-world networks. Building on tools from statistical physics, random matrix theory and graph signal processing, we studied the Bethe-Hessian matrix and proposed improved variants that

  • achieve optimal community recovery in sparse heterogeneous graphs (NeurIPS 2019, ICASSP 2019);
  • give a unified view of regularized Laplacians in the sparse regime (JMLR, ICASSP 2020);
  • extend to time-evolving graphs (NeurIPS 2020) and to weighted graphs for node classification (J. Stat. Mech.).

The algorithms are available in the Julia and Python packages CoDeBetHe.

Software & data

CoDeBetHe

Community Detection with the Bethe Hessian

Efficient implementation of our spectral algorithms for community detection in sparse, heterogeneous and time-evolving graphs. Available in Julia (CoDeBetHe.jl) and Python (pip install codebethe).

Julia Python GitHub stars

Publications 7

PhD thesis PhD thesis, Université Grenoble Alpes 2021

Spectral methods for graph clustering

L. Dall'Amico

Categorization, i.e. the ability to assign the same labels to objects sharing similar properties, is one of the main task in machine learning. In recent times, the ever increasing amount of data at our disposal gives us unprecedented possibilities to devise sophisticated and statistically significant categorization methods but it also requires a considerable effort in designing scalable and efficient algorithms, capable to properly deal with these datasets. Spectral clustering (SC) is one of the most popular techniques to categorize the items of a dataset that can be represented as a graph. This is a class of unsupervised algorithms in which the “best” partition does not require the help of additional information to be determined and is instead obtained by exploiting the dependencies between the dataset’s items. In SC algorithms, the information concerning the class structure of the input dataset is determined by the eigenvectors of a suited matrix. The intuitions and results justifying SC are at the crossroads between several fields such as statistics, random matrix theory, computer science, network science, signal processing, statistical physics and have so far mostly been treated independently. In this manuscript, we study the challenging (but relevant) sparse setting, in which only few entries of the matrix representation of the input dataset are non-zero. We focus in particular on the applications of SC for community detection (in both static and dynamical graphs) and for the sparsification of kernel matrices for time-efficient clustering of high dimensional vectors. We build on the recent advances in statistical physics for SC to propose improved algorithms that provably outperform the existing methods for both synthetic as well as real clustering tasks. Moreover, we propose a simple framework that gives a unified view of some of the most inflential state-of-the-art methods for SC. The existing algorithms from the literature can often be considered as corner cases of our proposed methods that constitute instead an “optimum” capable of self-adapting to the hardness of the clustering problem. We further detail extensively how to efficiently implement our proposed algorithms for practical SC tasks.
J. Stat. Mech. Journal of Statistical Mechanics: Theory and Experiment 2021

Nishimori meets Bethe: a spectral method for node classification in sparse weighted graphs

L. Dall'Amico, Romain Couillet, Nicolas Tremblay

This article unveils a new relation between the Nishimori temperature parametrizing a distribution P and the Bethe free energy on random Erdős-Rényi graphs with edge weights distributed according to P. Estimating the Nishimori temperature being a task of major importance in Bayesian inference problems, as a practical corollary of this new relation, a numerical method is proposed to accurately estimate the Nishimori temperature from the eigenvalues of the Bethe Hessian matrix of the weighted graph. The algorithm, in turn, is used to propose a new spectral method for node classification in weighted (possibly sparse) graphs. The superiority of the method over competing state-of-the-art approaches is demonstrated both through theoretical arguments and real-world data experiments.
NeurIPS Advances in Neural Information Processing Systems 33 (NeurIPS 2020) 2020

Community detection in sparse time-evolving graphs with a dynamical Bethe-Hessian

L. Dall'Amico, Romain Couillet, Nicolas Tremblay

This article considers the problem of community detection in sparse dynamical graphs in which the community structure evolves over time. A fast spectral algorithm based on an extension of the Bethe- Hessian matrix is proposed, which benefits from the positive correlation in the class labels and in their temporal evolution and is designed to be applicable to any dynamical graph with a community structure. Under the dynamical degree-corrected stochastic block model, in the case of two classes of equal size, we demonstrate and support with extensive simulations that our proposed algorithm is capable of making non-trivial community reconstruction as soon as theoretically possible, thereby reaching the optimal detectability threshold and provably outperforming competing spectral methods
ICASSP IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP 2020) 2020

Optimal Laplacian regularization for sparse spectral community detection

L. Dall'Amico, Romain Couillet, Nicolas Tremblay

Regularization of the classical Laplacian matrices was empirically shown to improve spectral clustering in sparse networks. It was observed that small regularizations are preferable, but this point was left as a heuristic argument. In this paper we formally determine a proper regularization which is intimately related to alternative stateof-the-art spectral techniques for sparse graphs.
JMLR Journal of Machine Learning Research 2020

A unified framework for spectral clustering in sparse graphs

L. Dall'Amico, Romain Couillet, Nicolas Tremblay

This article considers spectral community detection in the regime of sparse networks with heterogeneous degree distributions, for which we devise an algorithm to efficiently retrieve communities. Specifically, we demonstrate that a conveniently parametrized form of regularized Laplacian matrix can be used to perform spectral clustering in sparse networks, without suffering from its degree heterogeneity. Besides, we exhibit important connections between this proposed matrix and the now popular non-backtracking matrix, the Bethe-Hessian matrix, as well as the standard Laplacian matrix. Interestingly, as opposed to competitive methods, our proposed improved parametrization inherently accounts for the hardness of the classification problem. These findings are summarized under the form of an algorithm capable of both estimating the number of communities and achieving high-quality community reconstruction
NeurIPS Advances in Neural Information Processing Systems 32 (NeurIPS 2019) 2019

Revisiting the Bethe-Hessian: Improved Community Detection in Sparse Heterogeneous Graphs

L. Dall'Amico, Romain Couillet, Nicolas Tremblay

Spectral clustering is one of the most popular, yet still incompletely understood, methods for community detection on graphs. This article studies spectral clustering based on the Bethe-Hessian matrix $H_r = (r^2 − 1)I_n + D − rA$ for sparse heterogeneous graphs (following the degree-corrected stochastic block model) in a two-class setting. For a specific value $r = \zeta$, clustering is shown to be insensitive to the degree heterogeneity. We then study the behavior of the informative eigenvector of $H_{\zeta}$ and, as a result, predict the clustering accuracy. The article concludes with an overview of the generalization to more than two classes along with extensive simulations on synthetic and real networks corroborating our findings.
ICASSP IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP 2019) 2019

Community detection in sparse realistic graphs: improving the Bethe-Hessian

L. Dall'Amico, Romain Couillet

This article improves over the recently proposed Bethe Hessian matrix for community detection on sparse graphs, assuming here a more realistic setting where node degrees are inhomogeneous. We notably show that the parametrization proposed in the seminal work on the Bethe Hessian clustering can be ameliorated with positive consequences on correct classification rates. Extensive simulations support our claims.

People in this project