NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Are GATs Out of Balance?

Nimrah Mustafa, Aleksandar Bojchevski, Rebekka Burkholz

TL;DR

Researchers have discovered a mathematical "conservation law" in Graph Attention Networks (GATs) that explains why deep models often fail to train. By introducing a new balanced initialization scheme, they’ve enabled GATs to scale to dozens of layers, achieving significant speedups and better accuracy than standard methods.

The Depth Ceiling in Graph Neural Networks

Graph Neural Networks (GNNs) are the workhorses of modern graph-based AI, but they have a notorious "depth ceiling." While standard deep learning models (like ResNets) thrive with hundreds of layers, GNNs—and specifically Graph Attention Networks (GATs)—usually perform best with only 2 or 3.

Traditionally, researchers blamed this on over-smoothing, a phenomenon where node representations become indistinguishable as they pass through many layers. However, this paper argues that the real culprit might be simpler: optimization dynamics. In deep GATs, the gradients (the signals used to update the model) often fail to propagate effectively to earlier layers. This leaves a huge portion of the network "frozen" and unable to learn, a problem that gets exponentially worse the deeper the network becomes.

Methods: The Conservation Law and Balanced Initialization

The authors tackle this optimization bottleneck by analyzing the "gradient flow" of the network. They derive a conservation law for GATs using positive homogeneous activation functions (like ReLU).

Diagram of a GAT layer illustrating incoming and outgoing weights, which are central to the derived conservation law.

This law states that for any given neuron, the difference between the squared norms of its incoming weights and its outgoing weights (including attention parameters) remains approximately constant throughout training.

Based on this mathematical insight, they propose a Balanced Initialization Scheme:

  1. Zero-init Attention: They start with attention weights at zero so all neighbors are treated equally initially, avoiding early-training bias.
  2. Weight Scaling: They mathematically scale the feature transformation weights so that the "incoming" and "outgoing" norms are perfectly balanced at the start.
  3. LLortho: They introduce a "Looks-Linear-Orthogonal" initialization, which uses mirrored block structures to maintain signal variance across layers.

Key Insights and Ideas

  • The "Frozen" Layer Discovery: Using standard Xavier initialization, the last layer of a GAT typically has much smaller weight norms than the hidden layers. Because of the conservation law, this "imbalance" forces the gradients in earlier layers to stay tiny. In a 10-layer model, the authors found that almost no parameters in the first few layers actually changed during training.
  • Causality of Trainability: The paper proves that "trainability" is directly linked to "balancedness." By simply changing how the weights are initialized to satisfy the conservation law, they could make a 40-layer or even 80-layer GAT train effectively without any other architectural changes (like skip connections).
Comparison of initialization schemes showing that the balanced approach (LLortho+Bal) maintains a high fraction of significant parameters across all layers, preventing early layers from freezing.
  • Attention as a Stepping Stone: While this work focuses on GATs, the authors note that their theorem is a "stepping stone" for studying other attention-based models, including Transformers.

Datasets and Key Results

The authors evaluated their approach across nine diverse benchmark datasets for semi-supervised node classification, including Planetoid (Cora, Citeseer, Pubmed), Wikipedia (Chameleon, Squirrel), WebKB (Cornell, Texas, Wisconsin), and Social Networks (Actor). These datasets represent both homophilic and heterophilic graphs, providing a robust stress test.

Massive Accuracy Gains at Depth: On the Citeseer dataset with 10 layers, a standard GAT achieved only 24.7% accuracy (essentially failing to train). The balanced version hit 68.8%.

Faster Convergence: Balanced models didn't just reach higher accuracy; they got there much faster. In many cases, the balanced models converged in a fraction of the epochs required by standard initialization.

Scaling to 80 Layers: The authors successfully trained GATs and GCNs up to 80 layers deep, showing that the "depth ceiling" is much higher than previously thought if the optimization is handled correctly.

Limitations and Future Work

The current conservation law is specifically derived for the self-attention mechanism used in the original GAT and GATv2. It does not yet directly cover dot-product self-attention (the kind used in standard Transformers), which would require a modified version of the law.

Additionally, while the paper solves the trainability issue, it doesn't claim to solve over-smoothing entirely. Even if a deep model is perfectly trainable, the representations might still collapse if the architecture isn't designed to preserve node-specific information. The authors suggest that future work should explore how these optimization insights can be combined with architectural fixes like skip connections and normalization.

Summary updated

BibTeX
@inproceedings{mustafa2023are,
  author = {Nimrah Mustafa and Aleksandar Bojchevski and Rebekka Burkholz},
  title = {{Are GATs Out of Balance?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=qY7UqLoora},
}
Figure