[Paper Review] Sketch-GNN: Scalable Graph Neural Networks with Sublinear Training Complexity
Sketch-GNN trains GNNs on compact sketches of adjacency and node features, achieving sublinear training time and memory with respect to graph size while preserving competitive accuracy. It uses polynomial tensor sketching and learnable LSH to approximate nonlinear activations and message passing.
Graph Neural Networks (GNNs) are widely applied to graph learning problems such as node classification. When scaling up the underlying graphs of GNNs to a larger size, we are forced to either train on the complete graph and keep the full graph adjacency and node embeddings in memory (which is often infeasible) or mini-batch sample the graph (which results in exponentially growing computational complexities with respect to the number of GNN layers). Various sampling-based and historical-embedding-based methods are proposed to avoid this exponential growth of complexities. However, none of these solutions eliminates the linear dependence on graph size. This paper proposes a sketch-based algorithm whose training time and memory grow sublinearly with respect to graph size by training GNNs atop a few compact sketches of graph adjacency and node embeddings. Based on polynomial tensor-sketch (PTS) theory, our framework provides a novel protocol for sketching non-linear activations and graph convolution matrices in GNNs, as opposed to existing methods that sketch linear weights or gradients in neural networks. In addition, we develop a locality-sensitive hashing (LSH) technique that can be trained to improve the quality of sketches. Experiments on large-graph benchmarks demonstrate the scalability and competitive performance of our Sketch-GNNs versus their full-size GNN counterparts.
Motivation & Objective
- Motivate scalable GNN training on very large graphs without full-graph memory or linear-time dependence on graph size.
- Introduce a sketch-based framework that compresses the adjacency and feature matrices before training.
- Extend polynomial tensor sketching to approximate nonlinear activations in GNNs.
- Develop learnable locality-sensitive hashing to adapt sketches during training and improve accuracy.
Proposed method
- Represent message passing as a nonlinear operation on CXW and approximate CXW via polynomial tensor sketches.
- Use count sketch and tensor sketch to sketch C and XW to small matrices, enabling sublinear memory and time.
- Expand the nonlinearity with a power series and learn coefficients ck to approximate activations.
- Introduce learnable SimHash-based LSH to adapt sketching to evolving hidden representations.
- Provide a two-sided sketch framework that enables efficient computation of sketched representations across layers.
- Incorporate skip connections to mitigate error accumulation across layers.
Experimental results
Research questions
- RQ1Can GNN training be done with sublinear time and memory in graph size by sketching adjacency and feature matrices?
- RQ2How can nonlinear activations in GNNs be approximated within a sketch-based framework without unsketching to the full space?
- RQ3Can learnable LSH improve the quality of sketches during training and maintain competitive accuracy?
- RQ4What are the theoretical and empirical trade-offs in memory, time, and accuracy for Sketch-GNN across common GNN architectures?
Key findings
- Sketch-GNN achieves sublinear training complexity with respect to graph size while maintaining competitive accuracy on large benchmarks.
- The framework sketched the n×n adjacency and n×d feature matrices to much smaller sketches, enabling O(c) memory and time per layer (with c independent of n).
- Polynomial tensor sketch (PTS) is used to approximate nonlinear activations in combination with tensor/count sketches of CX and XW.
- Learnable LSH approaches adapt hash tables during training to improve sketch quality and reduce performance loss.
- Skip connections help mitigate error accumulation across layers in the sketch-based pipeline.
- Experimental results show competitive performance versus full-graph GNNs and favorable scalability on large graphs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.