Statistical physics analysis of graph neural networks: Approaching optimality in the contextual stochastic block model
O. Duranthon, L. Zdeborová
TL;DR
The paper tackles the problem of understanding how depth and architecture affect the generalization of graph neural networks on data generated by the contextual stochastic block model. It develops a replica-based, high-dimensional analysis that yields exact predictions for training and testing performance of a simple, linear GCN with $K$ aggregation steps and residuals, connecting to a continuous-depth limit that resembles a neural ODE on graphs. A key finding is that increasing depth to a point (and scaling residuals appropriately) can approach Bayes-optimal performance, especially when the graph is symmetrized; the continuous GCN with optimal diffusion time $t^*$ can outperform any finite-$K$ counterpart. The work also provides a dynamical mean-field theory interpretation, showing how order parameters play the role of correlation and response functions in a diffusion-on-graph process. Overall, the framework offers sharp, quantitative guidance on how depth, residuals, and regularization shape the generalization of deep GCNs and suggests a path to analyzing other deep architectures.
Abstract
Graph neural networks (GNNs) are designed to process data associated with graphs. They are finding an increasing range of applications; however, as with other modern machine learning techniques, their theoretical understanding is limited. GNNs can encounter difficulties in gathering information from nodes that are far apart by iterated aggregation steps. This situation is partly caused by so-called oversmoothing; and overcoming it is one of the practically motivated challenges. We consider the situation where information is aggregated by multiple steps of convolution, leading to graph convolutional networks (GCNs). We analyze the generalization performance of a basic GCN, trained for node classification on data generated by the contextual stochastic block model. We predict its asymptotic performance by deriving the free energy of the problem, using the replica method, in the high-dimensional limit. Calling depth the number of convolutional steps, we show the importance of going to large depth to approach the Bayes-optimality. We detail how the architecture of the GCN has to scale with the depth to avoid oversmoothing. The resulting large depth limit can be close to the Bayes-optimality and leads to a continuous GCN. Technically, we tackle this continuous limit via an approach that resembles dynamical mean-field theory (DMFT) with constraints at the initial and final times. An expansion around large regularization allows us to solve the corresponding equations for the performance of the deep GCN. This promising tool may contribute to the analysis of further deep neural networks.
