Graph Neural Networks Do Not Always Oversmooth

Bastian Epping, Alexandre René, Moritz Helias, Michael T Schaub

Introduction

Graph Neural Networks (GNNs) are the go-to architecture for processing relational data, but they notoriously suffer from a fatal flaw: oversmoothing. As layers are added to a GNN, the repeated message-passing between neighboring nodes causes the features of all nodes to exponentially converge to the exact same state. Because all nodes end up looking identical, the network loses its expressive power.

Consequently, most GNNs used in practice are incredibly shallow (typically 2 to 4 layers). This is in stark contrast to standard Deep Neural Networks (DNNs) like CNNs or Transformers, where massive depth is the key to their success. Deep GNNs are theoretically necessary to exchange information between nodes that are far apart in a graph. This paper tackles a fundamental question: Is oversmoothing an inescapable mathematical reality of GNNs, or can we engineer our way out of it to build truly deep graph networks?

The authors prove that oversmoothing is not inevitable. By simply increasing the variance of the initial weights, GNNs enter a "chaotic" phase where features remain distinct. This simple initialization tweak allows for the creation of highly expressive GNNs with hundreds or even thousands of layers.

Methodology: A Gaussian Process Perspective

The authors approach this problem by analyzing Graph Convolutional Networks (GCNs) through the lens of Gaussian Processes (GPs). In the limit of infinitely wide hidden layers, a randomly initialized neural network behaves like a GP. This equivalence allows the authors to track how the distance between node features evolves layer by layer.

They adapt a technique previously used to study standard DNNs:

  1. They examine the GCN's dynamics around the "zero distance" state (the oversmoothed state where all node features are identical).
  2. They linearize the multidimensional GCN dynamics to see if this oversmoothed state is stable (attractive) or unstable (repulsive).
  3. They generalize the concept of "information propagation depth"—how deep a signal can travel before being lost—from standard DNNs to the graph domain.

By framing the network's behavior as a dynamical system, they can identify different "phases" of the network based purely on its initialization hyperparameters.

Key Insights and Ideas

Oversmoothing is a Phase, Not a Rule

The authors identify two distinct phases for GCNs. The "regular" phase is where oversmoothing happens. However, by simply increasing the variance of the initial weights ($\sigma_w^2$), the network transitions into a "chaotic" (non-oversmoothing) phase.

Phase diagram and layer-wise distance

Just like in standard deep learning, the "sweet spot" for network performance is right at the phase transition (the critical point) between oversmoothing and chaos. Here, the information propagation depth diverges, allowing signals to travel infinitely deep.

Topology Survives in Chaos

In the chaotic phase, even at infinite depth, node features do not converge to a single point. Instead, they converge to finite distances that actually reflect the underlying graph topology. For example, nodes in different communities remain further apart than nodes in the same community.

Distance matrices showing topology survival

Why Previous Proofs Missed This

Earlier theoretical papers rigorously "proved" that oversmoothing in GNNs was inevitable. However, the authors point out that those proofs relied on assumptions bounding the maximum singular values of the weight matrices. Mathematically, those assumptions artificially restricted the networks to the oversmoothing phase, blinding researchers to the existence of the chaotic phase.

Key Results

To validate their theory, the authors tested their findings on both synthetic and real-world datasets:

  • 1,000-Layer GNNs: On the Contextual Stochastic Block Model (CSBM)—a synthetic graph generator with distinct community structures—GCN GPs initialized in the chaotic phase remained informative for node classification even at more than 1,000 layers.
  • Finite-Size Validation: The infinite-width theory perfectly predicted the behavior of finite-size GCNs (width = 200). When initialized at the critical transition point, finite GCNs maintained high performance without oversmoothing, peaking around 15 layers.
  • Real-World Success: On the standard Cora citation network benchmark, by tuning the weight variance to the critical point ($\sigma_{w,crit}^2 \approx 1$), the authors successfully trained GCNs with over 100 layers, matching the accuracy of the original, shallow GCNs proposed by Kipf and Welling.

Limitations and Future Work

While groundbreaking, the approach has a few limitations:

  • Computational Cost for Large Graphs: To find the exact phase transition point, one must calculate the eigenvalues of an $N^2 \times N^2$ matrix (where $N$ is the number of nodes). This $O(N^6)$ runtime is prohibitively expensive for massive graphs, requiring approximation heuristics in practice.
  • Infinite Width Assumption: The core theory relies on the GP equivalence, which strictly holds only for infinitely wide networks. While it empirically works well for width=200, calculating corrections for narrower networks is left for future work.
  • Shift Operator Constraints: The primary analytical results assume a row-stochastic shift operator. While preliminary experiments show the chaotic phase exists for the standard Kipf & Welling shift operator too, the exact equilibrium states behave slightly differently. Extending this rigorous formalism to other architectures like Graph Attention Networks (GATs) is a promising next step.

Summary updated

BibTeX
@inproceedings{epping2024graph,
  author = {Bastian Epping and Alexandre René and Moritz Helias and Michael T Schaub},
  title = {{Graph Neural Networks Do Not Always Oversmooth}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=nY7fGtsspU},
}
Figure