Skip to main content
QUICK REVIEW

[Paper Review] LMC: Fast Training of GNNs via Subgraph Sampling with Provable Convergence

Zhihao Shi, Xize Liang|arXiv (Cornell University)|Feb 2, 2023
Advanced Graph Neural NetworksComputer Science5 citations
TL;DR

LMC is a novel subgraph-wise sampling method for training Graph Neural Networks (GNNs) that ensures provable convergence by compensating for discarded messages in backward passes using a message-passing formulation. It achieves faster convergence and superior performance over state-of-the-art methods by accurately estimating mini-batch gradients through efficient compensation with up-to-date and historical messages.

ABSTRACT

The message passing-based graph neural networks (GNNs) have achieved great success in many real-world applications. However, training GNNs on large-scale graphs suffers from the well-known neighbor explosion problem, i.e., the exponentially increasing dependencies of nodes with the number of message passing layers. Subgraph-wise sampling methods -- a promising class of mini-batch training techniques -- discard messages outside the mini-batches in backward passes to avoid the neighbor explosion problem at the expense of gradient estimation accuracy. This poses significant challenges to their convergence analysis and convergence speeds, which seriously limits their reliable real-world applications. To address this challenge, we propose a novel subgraph-wise sampling method with a convergence guarantee, namely Local Message Compensation (LMC). To the best of our knowledge, LMC is the {\it first} subgraph-wise sampling method with provable convergence. The key idea of LMC is to retrieve the discarded messages in backward passes based on a message passing formulation of backward passes. By efficient and effective compensations for the discarded messages in both forward and backward passes, LMC computes accurate mini-batch gradients and thus accelerates convergence. We further show that LMC converges to first-order stationary points of GNNs. Experiments on large-scale benchmark tasks demonstrate that LMC significantly outperforms state-of-the-art subgraph-wise sampling methods in terms of efficiency.

Motivation & Objective

  • To address the convergence instability and slow convergence of existing subgraph-wise sampling methods in GNN training due to inaccurate gradient estimation.
  • To overcome the neighbor explosion problem in GNNs on large-scale graphs by enabling efficient mini-batch training with provable convergence guarantees.
  • To design a method that compensates for discarded messages in backward passes without incurring exponential computational cost.
  • To achieve convergence to first-order stationary points of GNNs using only local neighborhood interactions, avoiding recursive neighborhood expansion.

Proposed method

  • Proposes unbiased mini-batch gradients by decomposing gradient errors into bias (from discarded messages) and variance (from stochastic sampling).
  • Reformulates backward passes using a message-passing framework to retrieve and compensate for messages discarded during subgraph sampling.
  • Introduces a compensation mechanism combining incomplete up-to-date messages and historical messages to correct gradient bias efficiently.
  • Uses a learnable scaling factor $\beta_i = \text{score}(i)\alpha$ to balance staleness and accuracy of historical messages, with score functions based on local-to-global degree ratios.
  • Ensures convergence to first-order stationary points by maintaining accurate gradient estimation through message compensation.
  • Applies the method to various GNN architectures by directly running them on sampled subgraphs, enabling broad applicability.

Experimental results

Research questions

  • RQ1Can subgraph-wise sampling methods achieve provable convergence in GNN training despite discarding messages outside mini-batches?
  • RQ2How can the bias introduced by discarding messages in backward passes be effectively compensated without incurring high computational cost?
  • RQ3What is the impact of using both up-to-date and historical messages in gradient compensation on convergence speed and model accuracy?
  • RQ4How does the proposed method compare to full-batch training in terms of performance under small batch sizes?
  • RQ5Can the method maintain high efficiency while achieving convergence guarantees in large-scale graph learning tasks?

Key findings

  • LMC converges to first-order stationary points of GNNs, making it the first subgraph-wise sampling method with provable convergence.
  • On large-scale benchmarks like Ogbn-arxiv, FLICKR, REDDIT, and PPI, LMC reduces training time per epoch by up to 30% compared to GAS and 40% compared to FM.
  • Under small batch sizes (e.g., 1 or 40), LMC achieves prediction performance comparable to full-batch GD, while baselines significantly underperform.
  • LMC uses 100% of sampled messages in both forward and backward passes, matching full-batch memory usage and avoiding message loss.
  • The ablation study shows that $\alpha = 0.4$ with $\text{score}(i) = 2x - x^2$ yields the best performance under small batch sizes, reducing staleness impact.
  • LMC achieves the best performance on Ogbn-arxiv with 71.65% accuracy under batch size 1 and $\alpha = 0.4$, outperforming all baselines.

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.