On Graph Classification Networks, Datasets and Baselines

Enxhell Luzhnica, Ben Day, Pietro LiòarXiv 2019

This paper, presented at the ICML 2019 Workshop on Learning and Reasoning with Graph-Structured Data, provides a sobering "reality check" for the graph neural network (GNN) community. While research has trended toward increasingly complex architectures, the authors demonstrate that much of this complexity may be unnecessary—or even untrainable—under standard conditions.

TL;DR

The authors reveal that many "state-of-the-art" graph classification models suffer from vanishing gradients in deeper layers, often relying on skip-connections to function at all. Surprisingly, simple baselines—like a structure-blind MLP or a single-layer GCN—frequently match or outperform these complex models on standard benchmarks.

The Problem: Complexity vs. Trainability

In recent years, the field of graph classification has been inspired by the success of Convolutional Neural Networks (CNNs) in computer vision. This has led to the development of deep GNNs featuring sophisticated "pooling" layers (like DiffPool or Graph U-Net) designed to coarsen graphs hierarchically.

However, the authors noticed a disconnect: while these models are theoretically deep, it wasn't clear if they were actually learning in those deeper layers. They set out to investigate the gradient flow and activation dynamics of these "bloated" networks to see if the added complexity actually provides a performance benefit over simpler, more traditional approaches.

Methods

The researchers approached the problem through three main avenues:

  1. Diagnostic Analysis: They tracked activations and gradient flow in deep GNNs using standard initializations (like Glorot or Kaiming).
  2. REINIT (A New Initialization Scheme): To combat the vanishing gradients they discovered, they proposed a data-driven initialization method. Similar to LSUV (Layer-sequential Unit-variance), REINIT passes a batch through the network and scales weights layer-by-layer to ensure activations maintain a variance of one.
  3. Extreme Ablations (Simple Baselines): They designed three "minimalist" models to serve as benchmarks: a structure-blind MLP, a GCN(R)-MLP (fixed, random weights), and a trainable GCN-MLP.

Key Insights: The Vanishing Act

Under standard initialization, activations in deep GNNs with top-k pooling quickly decay to zero. Gradients for deeper layers effectively vanish, meaning the "deep" part of the network remains static during training.

  • Jumping Knowledge (JK) as a Crutch: The authors argue that JK-connections (skip-connections from every layer to the end) act as bypasses. These models often perform well not because they are learning deep hierarchical features, but because the JK-structure allows the training to ignore the useless deeper layers and focus on the input.
  • The Power of Randomness: One of the most striking findings is that a GCN with random, untrained weights provides enough structural information to be competitive. This is because even a random GCN acts as a structural feature extractor similar to the Weisfeiler-Lehman (WL) graph kernel test.

Key Results

The quantitative results were eye-opening. On the DD protein dataset, a Structure-blind MLP achieved 80.22% accuracy, outperforming specialized graph models like GraphSAGE (75.42%) and PatchySAN (76.27%).

Figure 2: Comparison of gradient flow and activation dynamics between standard initialization and the proposed REINIT scheme.

As shown in the diagnostic plots, the proposed REINIT scheme successfully allowed gradients to flow into deeper layers. However, even when these deeper layers could train, they didn't always improve final accuracy, suggesting the models were over-parameterized for the tasks.

Conclusion

The authors conclude that current standard datasets (like PROTEINS or DD) might be too small or simple to require the hierarchical coarsening modern GNNs aim to provide. They issue a call to action for the research community to include stronger, simpler baselines and perform rigorous ablation studies to ensure new architectural complexity is truly justified.

Summary updated

BibTeX
@misc{luzhnica2019graph,
  author = {Enxhell Luzhnica and Ben Day and Pietro Liò},
  title = {{On Graph Classification Networks, Datasets and Baselines}},
  year = {2019},
  eprint = {1905.04682},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.04682},
}
Figure