Tango: rethinking quantization for graph neural network training on GPUs

Shiyang Chen, Da Zheng, Caiwen Ding, Chengying Huan, Yuede Ji, Hang Liu · DOI

Introduction

Training Graph Neural Networks (GNNs) is a computationally intensive process, often bottlenecked by both memory bandwidth and processing power. While quantization—reducing data precision to 8-bit or 4-bit integers—is a standard optimization in deep learning, it has historically struggled with GNNs. Most existing quantized GNN systems suffer from a "quantization overhead" trap, where the cost of managing low-precision data and ensuring convergence outweighs the speed gains from reduced precision.

Presented at SC ’23, Tango is a novel framework that rethinks the quantization pipeline specifically for GNNs on GPUs. It is the first system to successfully maintain model accuracy while delivering a genuine 1.2×–1.5× speedup over full-precision baselines like the Deep Graph Library (DGL).

Challenges in Quantized GNN Training

Quantizing GNNs presents two primary hurdles that standard CNNs or Transformers do not face as acutely:

  1. The Accuracy-Overhead Tradeoff: Maintaining accuracy often requires complex techniques like stochastic rounding. However, standard GPU implementations of these techniques are slow, negating the throughput benefits of quantization.
  2. Sparse Primitive Bottlenecks: GNNs rely on sparse operations such as Sparse-Dense Matrix Multiplication (SPMM) and Sampled Dense-Dense Matrix Product (SDDMM). These are memory-bound rather than compute-bound; simply using 8-bit arithmetic does not solve the underlying irregular memory access patterns.

The Tango Framework

Tango addresses these challenges through a combination of "accuracy-aware" and "speed-aware" optimizations.

Lightweight Accuracy Rules

Tango employs a custom pseudo-random generator (based on xoshiro256++) to implement Fast Stochastic Rounding, which is 20× faster than native GPU libraries. To handle bit-width selection, Tango introduces the ErrorX metric, a lightweight calculation of relative quantization error.

The ErrorX metric allows Tango to automatically determine the minimum bit-width (B) required for a specific dataset to maintain accuracy.

Furthermore, Tango utilizes Selective Precision. Mathematical analysis revealed that the Softmax layer acts as an "error amplifier" due to its exponential nature. By keeping Softmax and weight updates in FP32 while quantizing heavy-lifting primitives (GEMM, SPMM), Tango preserves 99% of baseline accuracy.

Quantization-Accelerated Primitives

To overcome the overhead of data conversion, Tango fuses quantization and dequantization directly into the matrix multiplication kernels. This "on-the-fly" approach hides latency behind the actual computation.

Tango's on-the-fly GEMM fuses quantization steps into the computation to eliminate data conversion overhead.

For sparse operations, Tango introduces Incidence-Matrix SPMM. By reformulating the graph structure using an incidence matrix (mapping nodes to edges), Tango can leverage highly optimized 2-matrix kernels from libraries like cuSPARSE. This improves cache hits and turns irregular memory access into more manageable patterns.

Experimental Evaluation

The authors evaluated Tango on five benchmarks, including ogbn-arxiv, ogbn-products, and Pubmed, covering node classification and link prediction tasks.

  • Performance: Tango achieved an average speedup of 1.2× on GCN and 1.5× on GAT compared to FP32 DGL. Against previous quantized systems like EXACT, Tango was 2.9× to 4.1× faster.
  • Accuracy: Across all tested datasets, Tango maintained >99% of the FP32 baseline accuracy.
  • Scalability: The framework scales effectively across multiple GPUs. Because 8-bit tensors are 4× smaller than FP32, the volume of data moved during gradient synchronization (all-reduce) is significantly reduced, leading to better multi-GPU efficiency.

Conclusion

Tango demonstrates that quantization can be a viable path for accelerating GNN training if the system is designed to minimize conversion overhead and prioritize memory efficiency. By focusing on the interplay between sparse primitives and low-precision arithmetic, Tango provides a blueprint for next-generation GNN training systems. Future work may explore finer-grained quantization (row-level or group-level) to push bit-widths even lower without sacrificing convergence.

Summary updated

BibTeX
@inproceedings{chen2023tango,
  author = {Shiyang Chen and Da Zheng and Caiwen Ding and Chengying Huan and Yuede Ji and Hang Liu},
  title = {{Tango: rethinking quantization for graph neural network training on GPUs}},
  booktitle = {SC},
  year = {2023},
  doi = {10.1145/3581784.3607037},
}
Figure