On the Initialization of Graph Neural Networks

Jiahang Li, Yakun Song, Xiang Song, David Paul Wipf · DOI

Introduction

In the landscape of deep learning, the initialization of neural network weights is a critical factor for convergence and performance. Standard schemes such as Xavier (Glorot) and Kaiming (He) initialization have become the default for Feedforward and Convolutional architectures. These methods are built on the assumption that input data is independent and identically distributed (i.i.d.) and that neurons within a layer share a uniform variance. However, Graph Neural Networks (GNNs) fundamentally challenge these assumptions through the mechanism of message passing, where a node's state is intrinsically linked to its neighbors' structures.

This paper introduces Virgo (Variance Instability Reduction within GNN Optimization), a novel initialization framework designed specifically for the structural dependencies of graph data. By accounting for graph topology and input features, Virgo stabilizes variance across layers, addressing the vanishing and exploding gradient problems that often plague deep GNNs.

The Problem: Variance Instability in GNNs

The "Goldilocks zone" of initialization requires weights to be large enough to propagate signals through deep architectures but small enough to prevent numerical instability. In GNNs, the recursive aggregation of neighbor information introduces structural dependencies that classic initialization methods ignore. This oversight leads to "variance instability," where the variance of hidden embeddings or gradients fluctuates wildly as they pass through successive layers. This instability hampers training efficiency and limits the effective depth of GNN architectures.

The Virgo Framework

The authors propose a three-step approach to derive a more robust initialization scheme that treats the graph structure as a first-class citizen:

1. Variance Decomposition

The framework mathematically decomposes GNN operations into two distinct components: message propagation paths (the movement of information across the graph topology) and weight propagation paths (the transformation of information through neural network layers). This separation allows for a precise analysis of how graph structure influences variance.

2. Analytical Derivation

Unlike previous heuristic-based approaches, Virgo derives explicit expressions for variance that incorporate the graph adjacency matrix ($\mathbf{A}$) and the initial input features ($\mathbf{h}^0$). A key finding is that a node's variance is directly tied to its "receptive field"—the number and nature of paths connecting it to other nodes in the graph.

3. The Virgo Rule

Based on these derivations, the authors propose setting the initial weight variance to ensure total variance remains consistent between successive layers. Two specific variants are introduced:

  • VirgoFor: Optimized for stable forward propagation of node embeddings.
  • VirgoBack: Optimized for stable backward propagation of gradients.

Experimental Evaluation

The efficacy of Virgo was tested across a comprehensive suite of 15 datasets, spanning three primary graph tasks: Node Classification (e.g., Cora, ogbn-arxiv), Link Prediction (e.g., ogbl-ddi, ogbl-collab), and Graph Classification (e.g., IMDB-B, ogbg-molhiv).

Key Results

  • Superior Performance: Virgo demonstrated superior performance over standard baselines (Xavier, Lecun, Kaiming) in 14 out of 16 link prediction scenarios and 5 out of 6 node classification tasks.
  • Significant Improvements: On the ogbl-ddi dataset, Virgo achieved a 7.31% improvement over the best-performing baseline. It also provided a 1.04% accuracy boost on ogbn-proteins compared to Xavier initialization.
  • Empirical Stability: Empirical tests confirmed that while standard methods often suffer from vanishing gradients over five layers, Virgo maintains a remarkably stable variance profile, validating the theoretical framework.

Discussion and Future Work

The core insight of this work is that initialization shouldn't just depend on the number of neurons (fan-in/fan-out); in GNNs, the graph's topology acts as a multiplier for variance. By including the spectral properties of the adjacency matrix in the initialization formula, Virgo breaks the uniformity assumption of classic methods. Furthermore, the scheme is computationally efficient, requiring only simple pre-computation steps before training begins.

Despite its success, Virgo currently assumes static edge weights, as found in GCN or GraphSAGE. Future research is needed to adapt the framework for Graph Attention Networks (GAT), where edge weights are learnable and dynamic. Additionally, extending Virgo to handle multi-relational graphs (e.g., RGCN) remains an open challenge.

Conclusion

Virgo represents a significant step forward in understanding the optimization dynamics of GNNs. By moving beyond i.i.d. assumptions and incorporating structural awareness into initialization, it enables more stable training and improved performance across a wide range of graph-based tasks.

Summary updated

BibTeX
@inproceedings{li2023initialization,
  author = {Jiahang Li and Yakun Song and Xiang Song and David Paul Wipf},
  title = {{On the Initialization of Graph Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=2t0I8KYaPG},
}
Figure