[Paper Review] Degree-Quant: Quantization-Aware Training for Graph Neural Networks
This paper proposes Degree-Quant, a novel quantization-aware training method for graph neural networks that stabilizes low-precision inference by addressing unique GNN quantization challenges such as node degree variance and numerical instability. It achieves INT8 performance on par with FP32 models and up to 26% accuracy gains over baselines at INT4, enabling up to 4.7× speedup on CPU with 4–8× memory reduction.
Graph neural networks (GNNs) have demonstrated strong performance on a wide variety of tasks due to their ability to model non-uniform structured data. Despite their promise, there exists little research exploring methods to make them more efficient at inference time. In this work, we explore the viability of training quantized GNNs, enabling the usage of low precision integer arithmetic during inference. We identify the sources of error that uniquely arise when attempting to quantize GNNs, and propose an architecturally-agnostic method, Degree-Quant, to improve performance over existing quantization-aware training baselines commonly used on other architectures, such as CNNs. We validate our method on six datasets and show, unlike previous attempts, that models generalize to unseen graphs. Models trained with Degree-Quant for INT8 quantization perform as well as FP32 models in most cases; for INT4 models, we obtain up to 26% gains over the baselines. Our work enables up to 4.7x speedups on CPU when using INT8 arithmetic.
Motivation & Objective
- Address the lack of efficient, generalizable quantization methods for GNNs despite their growing use in resource-constrained environments.
- Identify and resolve unique sources of performance degradation in GNN quantization, including node degree variability, straight-through estimator (STE) sensitivity, and quantization statistics tracking.
- Develop a stable, architecture-agnostic quantization-aware training framework that generalizes to unseen graphs and supports off-the-shelf hardware with INT8 and INT4 arithmetic.
- Demonstrate significant inference speedups and memory reductions on CPU and GPU platforms using standard hardware operators.
- Enable deployment of GNNs on edge devices such as smartphones, where floating-point inference is impractical due to hardware constraints.
Proposed method
- Introduce Degree-Quant (DQ), a quantization-aware training framework that uses percentile-based quantization ranges instead of absolute min/max to improve dynamic range resolution and stability.
- Apply stochastic protective masking to stabilize training by randomly masking high-degree nodes during backpropagation, reducing gradient variance and improving convergence.
- Use a modified straight-through estimator (STE) that accounts for node degree and feature distribution, minimizing error propagation in low-precision settings.
- Track quantization statistics per layer using running percentiles (e.g., 99.9th percentile) to adaptively scale quantization ranges without requiring layer-specific tuning.
- Apply uniform quantization to all network components—weights, activations, messages, and aggregations—ensuring compatibility with integer-only accelerators.
- Design the method to be architecture-agnostic, enabling deployment across GCN, GAT, and GIN models without architectural modifications.
Experimental results
Research questions
- RQ1What are the primary sources of performance degradation when quantizing GNNs to low precision (e.g., INT4, INT8), and how do they differ from CNNs?
- RQ2How can quantization-aware training be made stable and generalizable across diverse graph structures and unseen graphs?
- RQ3Can percentile-based quantization ranges outperform absolute min/max ranges in preserving model accuracy during low-precision inference?
- RQ4To what extent does stochastic masking of high-degree nodes improve training stability and final performance in quantized GNNs?
- RQ5What are the real-world latency and memory benefits of deploying quantized GNNs on CPUs and GPUs using standard integer arithmetic?
Key findings
- Degree-Quant achieves INT8 model performance that matches or exceeds FP32 baselines on all six benchmark datasets, including Reddit, Cora, Citeseer, and Zinc.
- At INT4, models trained with Degree-Quant outperform existing quantization-aware training baselines by up to 26% in accuracy, demonstrating significant gains in low-precision regimes.
- The method generalizes to unseen graphs, unlike prior work, which fails to maintain performance when tested on out-of-distribution graph structures.
- On a 22-core Intel Xeon Gold 6152 CPU, INT8 inference with Degree-Quant achieves up to 4.7× speedup compared to FP32, with 4–8× reductions in runtime memory usage.
- The percentile-based quantization range selection improves resolution by 50% compared to absolute min/max, reducing quantization error and stabilizing training.
- Ablation studies confirm that stochastic masking contributes most to performance gains, while percentile-based ranges enhance stability and reduce hyperparameter tuning.
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.