Skip to main content
QUICK REVIEW

[Paper Review] GNNAutoScale: Scalable and Expressive Graph Neural Networks via Historical Embeddings

Matthias Fey, Jan Eric Lenssen|arXiv (Cornell University)|Jun 10, 2021
Advanced Graph Neural NetworksComputer Science16 citations
TL;DR

GNNAutoScale (GAS) enables scalable training of arbitrary message-passing Graph Neural Networks (GNNs) on large graphs by using historical embeddings to prune the computation graph, achieving constant GPU memory usage regardless of input size. It maintains full model expressiveness and achieves state-of-the-art performance on large-scale benchmarks like ogbn-products and Reddit, outperforming prior methods including VR-GCN and MVS-GNN.

ABSTRACT

We present GNNAutoScale (GAS), a framework for scaling arbitrary message-passing GNNs to large graphs. GAS prunes entire sub-trees of the computation graph by utilizing historical embeddings from prior training iterations, leading to constant GPU memory consumption in respect to input node size without dropping any data. While existing solutions weaken the expressive power of message passing due to sub-sampling of edges or non-trainable propagations, our approach is provably able to maintain the expressive power of the original GNN. We achieve this by providing approximation error bounds of historical embeddings and show how to tighten them in practice. Empirically, we show that the practical realization of our framework, PyGAS, an easy-to-use extension for PyTorch Geometric, is both fast and memory-efficient, learns expressive node representations, closely resembles the performance of their non-scaling counterparts, and reaches state-of-the-art performance on large-scale graphs.

Motivation & Objective

  • To address the scalability challenge of training deep and expressive GNNs on large graphs due to GPU memory limits and neighbor explosion.
  • To maintain the full expressive power of message-passing GNNs while enabling scalable training, avoiding the performance degradation caused by edge sub-sampling or non-trainable propagations.
  • To generalize beyond specific GNN architectures by decoupling scalability from the message-passing mechanism, enabling application to diverse GNN operators like GCNII and PNA.
  • To provide theoretical bounds on approximation errors from historical embeddings and show practical methods to tighten these bounds.
  • To enable training of full-batch GNNs on large-scale datasets (e.g., ogbn-products) using only a single GPU with CPU-stored history

Proposed method

  • GAS uses historical embeddings—node representations from prior training iterations—as a memory-efficient substitute for out-of-mini-batch nodes in the computation graph.
  • It prunes the GNN computation graph to retain only nodes in the current mini-batch and their direct 1-hop neighbors, reducing GPU memory consumption to a constant regardless of GNN depth.
  • Historical embeddings are updated per iteration and used to propagate information from non-active nodes, preserving topological dependencies without storing full computation graphs.
  • The framework provides theoretical approximation error bounds based on embedding staleness and function Lipschitz continuity, with practical strategies to tighten these bounds.
  • PyGAS, a PyTorch Geometric extension, implements GAS with minimal code changes, enabling seamless integration with existing GNN codebases.
  • The method is orthogonal to model design, allowing it to be applied to any message-passing GNN, including deep (GCNII) and expressive (PNA) architectures.

Experimental results

Research questions

  • RQ1Can we scale arbitrary message-passing GNNs to large graphs without sub-sampling edges or sacrificing model expressiveness?
  • RQ2What is the theoretical approximation error introduced by using historical embeddings, and how can it be minimized in practice?
  • RQ3Can historical embeddings maintain the expressive power of full-batch GNNs while enabling constant GPU memory usage?
  • RQ4Does the GAS framework achieve state-of-the-art performance on large-scale graph benchmarks when applied to deep and expressive GNNs?
  • RQ5Can GAS be generalized across diverse GNN architectures without architectural modifications?

Key findings

  • GAS enables training of full-batch GNNs on large graphs like ogbn-products (2.4M nodes, 61.9M edges) using only a single GPU, with GPU memory usage constant in input size.
  • On the ogbn-products dataset, PNA-GAS achieved 79.91% accuracy, outperforming the previous SOTA method GraphSAINT (79.08%) and full-batch PNA (which failed due to OOM).
  • For Reddit, PNA-GAS achieved 97.17% accuracy, surpassing GraphSAINT (97.00%) and VR-GCN (94.50%), demonstrating superior performance on large-scale node classification.
  • The GCNII-GAS model achieved 96.77% accuracy on Reddit, outperforming the full-batch GCNII (which failed due to OOM), showing that deeper models can be trained at scale.
  • Memory consumption for storing histories was only ~2GB per layer on ogbn-products, making it feasible to store on CPU RAM, while training remained efficient and scalable.
  • PyGAS, the open-source implementation, enabled training of deep and expressive GNNs on large graphs with minimal code changes, achieving performance close to non-scaling counterparts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.