[Paper Review] VQ-GNN: A Universal Framework to Scale up Graph Neural Networks using Vector Quantization
VQ-GNN proposes a universal framework to scale Graph Neural Networks (GNNs) on large graphs by using Vector Quantization (VQ) to compress global node representations into a small codebook of reference vectors. Instead of sampling neighbors, it preserves all messages via quantized codewords and low-rank approximations, achieving full-batch performance with significantly reduced memory and inference cost across diverse GNN backbones and benchmarks.
Most state-of-the-art Graph Neural Networks (GNNs) can be defined as a form of graph convolution which can be realized by message passing between direct neighbors or beyond. To scale such GNNs to large graphs, various neighbor-, layer-, or subgraph-sampling techniques are proposed to alleviate the "neighbor explosion" problem by considering only a small subset of messages passed to the nodes in a mini-batch. However, sampling-based methods are difficult to apply to GNNs that utilize many-hops-away or global context each layer, show unstable performance for different tasks and datasets, and do not speed up model inference. We propose a principled and fundamentally different approach, VQ-GNN, a universal framework to scale up any convolution-based GNNs using Vector Quantization (VQ) without compromising the performance. In contrast to sampling-based techniques, our approach can effectively preserve all the messages passed to a mini-batch of nodes by learning and updating a small number of quantized reference vectors of global node representations, using VQ within each GNN layer. Our framework avoids the "neighbor explosion" problem of GNNs using quantized representations combined with a low-rank version of the graph convolution matrix. We show that such a compact low-rank version of the gigantic convolution matrix is sufficient both theoretically and experimentally. In company with VQ, we design a novel approximated message passing algorithm and a nontrivial back-propagation rule for our framework. Experiments on various types of GNN backbones demonstrate the scalability and competitive performance of our framework on large-graph node classification and link prediction benchmarks.
Motivation & Objective
- Address the scalability bottleneck in GNNs caused by 'neighbor explosion' during training on large graphs.
- Overcome the limitations of sampling-based methods, which suffer from unstable performance, high inference cost, and incompatibility with global or multi-hop GNNs.
- Develop a universal framework applicable to various GNN architectures without compromising performance.
- Enable efficient mini-batch training and inference by preserving all messages through quantized representations.
- Provide theoretical and empirical guarantees that the approximation via VQ maintains performance close to full-graph training.
Proposed method
- Use vector quantization (VQ) to compress global node representations into a small, learnable codebook of reference vectors (codewords).
- Introduce a novel approximated message passing mechanism where messages from out-of-mini-batch nodes are approximated using their nearest codewords.
- Apply a low-rank approximation to the graph convolution matrix to reduce computational and memory costs.
- Design a nontrivial back-propagation rule that supports end-to-end training with VQ-based codeword updates.
- Perform VQ codebook updates per GNN layer using mini-batch node representations to refine codewords dynamically.
- Merge messages from nodes assigned to the same codeword to reduce redundancy and improve efficiency.
Experimental results
Research questions
- RQ1Can vector quantization be used as a principled alternative to sampling for scaling GNNs on large graphs?
- RQ2Does VQ-GNN preserve the full-message information of GNNs without sacrificing performance on node classification and link prediction tasks?
- RQ3How does VQ-GNN compare to sampling-based methods in terms of training stability, inference efficiency, and generalization across diverse datasets and GNN architectures?
- RQ4Can VQ-GNN effectively scale GNNs that rely on many-hop or global context, which are incompatible with standard sampling techniques?
- RQ5What is the theoretical and empirical justification for the effectiveness of the low-rank VQ approximation in preserving GNN performance?
Key findings
- VQ-GNN achieves performance comparable to or better than full-graph training across all benchmarks, including PPI, Reddit, and ogbl-collab.
- On the ogbl-collab link prediction benchmark, VQ-GNN outperforms sampling-based baselines such as NS-SAGE, Cluster-GCN, and GraphSAINT-RW, which show performance drops on this challenging dataset.
- VQ-GNN maintains robust performance across diverse GNN backbones, including GCN, SAGE-Mean, and GAT, demonstrating its universality.
- The framework reduces memory usage and inference cost significantly by avoiding neighbor sampling while preserving all messages through quantized codewords.
- Theoretical analysis shows that the low-rank approximation of the graph convolution matrix is sufficient for effective learning, with bounded approximation error.
- VQ-GNN enables full-batch training and inference on large graphs by replacing neighbor sampling with a deterministic, codeword-based message approximation.
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.