Abstract
This paper presents a theoretical performance analysis of Graph Neural Networks (GNNs) applied to classification tasks. While GNNs offer data-driven flexibility compared to model-dependent Bayesian inference, their internal mechanisms often remain opaque. We develop a mean-field theory for a minimal GNN architecture focused on the graph partitioning problem. Our theoretical predictions demonstrate strong agreement with numerical experiments, revealing that the network's architecture itself, rather than just backpropagation, is a primary driver of performance.
Introduction
Despite the widespread adoption of GNNs, their success is frequently treated as a "black box." It is often unclear whether high performance arises from the specific learning of model parameters or the inherent properties of the architecture. To investigate this, we focus on the graph partitioning problem—identifying hidden communities within a graph—using the Stochastic Block Model (SBM) as a benchmark. Our goal is to define the "detectability limit," the threshold where graph noise renders communities indistinguishable from random chance, and to see how GNNs behave relative to this limit.
Methodology
To isolate the effects of network structure, we utilize a minimal feedforward GNN architecture. This setup allows us to compare untrained GNNs (using random weights and a k-means classifier) against trained versions optimized via backpropagation.
Our study relies on synthetic data generated via the SBM, where nodes are assigned to groups and edges are placed with varying probabilities. By adjusting the average degree ($c$) and the strength of the group structure ($\epsilon$), we map the phase space of GNN performance. For unsupervised training, we introduce a loss function based on Normalized Mutual Information (NMI) to overcome the "label-switching" problem inherent in standard cross-entropy losses for clustering.
Theoretical Framework: Dynamical Mean-Field Theory
We employ tools from statistical physics, specifically the Martin-Siggia-Rose formalism, to derive self-consistent equations that predict the behavior of the GNN's internal states. This dynamical mean-field theory allows us to theoretically estimate the detectability limit of an untrained GNN. A key finding is that the architecture acts as a powerful feature extractor for graph topology even before any weights are updated.
Experimental Results and the Detectability Limit
Our results show that while training via backpropagation improves the quantitative accuracy (overlap) of partitioning, it does not significantly shift the detectability limit. If a graph is too noisy for an untrained GNN to detect a signal, training typically fails to find one as well.
As shown in the phase diagrams, there is a clear transition between "detectable" and "undetectable" regions. For a graph with an average degree of 8, the GNN's limit occurs around $\epsilon \approx 0.33$. The theoretical predictions (represented by the green line in the phase diagram) align closely with the experimental heatmaps. Furthermore, we observed that deep GNNs (exceeding 25 layers) require stability mechanisms like Residual Connections and Batch Normalization to prevent signal degradation.
Discussion and Conclusion
This study demonstrates that the architecture of a GNN is a fundamental component of its success in graph partitioning. While GNNs achieve results comparable to traditional spectral methods, they offer superior flexibility for data-driven tasks.
Future work should extend this mean-field perspective to more complex scenarios, such as graphs with overlapping communities, varying group sizes, and high-dimensional node attributes. Additionally, the scalability of the NMI loss function for a large number of clusters ($K \gg 2$) remains an open area for investigation.
Summary updated