Skip to main content
QUICK REVIEW

[Paper Review] SuperNeurons: FFT-based Gradient Sparsification in the Distributed Training of Deep Neural Networks

Linnan Wang, Wei Wu|arXiv (Cornell University)|Nov 21, 2018
Advanced Neural Network ApplicationsComputer Science36 references3 citations
TL;DR

This paper proposes SuperNeurons, a novel lossy gradient compression framework that leverages FFT-based sparsification in the frequency domain and a range-based variable-precision floating-point quantization to reduce communication overhead in distributed DNN training. By preserving more gradient information than Top-k, QSGD, or TernGrad at the same sparsity ratio, it achieves up to 2.26x faster training on 8 GPUs with minimal accuracy loss, while ensuring convergence through adaptive sparsification ratio control.

ABSTRACT

The performance and efficiency of distributed training of Deep Neural Networks highly depend on the performance of gradient averaging among all participating nodes, which is bounded by the communication between nodes. There are two major strategies to reduce communication overhead: one is to hide communication by overlapping it with computation, and the other is to reduce message sizes. The first solution works well for linear neural architectures, but latest networks such as ResNet and Inception offer limited opportunity for this overlapping. Therefore, researchers have paid more attention to minimizing communication. In this paper, we present a novel gradient compression framework derived from insights of real gradient distributions, and which strikes a balance between compression ratio, accuracy, and computational overhead. Our framework has two major novel components: sparsification of gradients in the frequency domain, and a range-based floating point representation to quantize and further compress gradients frequencies. Both components are dynamic, with tunable parameters that achieve different compression ratio based on the accuracy requirement and systems' platforms, and achieve very high throughput on GPUs. We prove that our techniques guarantee the convergence with a diminishing compression ratio. Our experiments show that the proposed compression framework effectively improves the scalability of most popular neural networks on a 32 GPU cluster to the baseline of no compression, without compromising the accuracy and convergence speed.

Motivation & Objective

  • To address the communication bottleneck in distributed deep learning training, especially in modern architectures like ResNet and Inception where computation-communication overlap is limited.
  • To reduce gradient communication costs without sacrificing model accuracy, by introducing a lossy compression method that preserves more relevant gradient information than existing techniques.
  • To develop a theoretically grounded, robust compression framework that guarantees convergence through dynamic adjustment of the sparsification ratio θ during training.
  • To optimize compression for heterogeneous environments by combining frequency-domain sparsification with adaptive precision quantization.
  • To demonstrate superior end-to-end training performance compared to state-of-the-art lossy methods like QSGD, TernGrad, and Top-k sparsification.

Proposed method

  • The method treats gradients as 1D signals and applies the Fast Fourier Transform (FFT) to convert them into the frequency domain.
  • It performs sparsification by zeroing out near-zero frequency coefficients, removing redundant information while preserving the signal's essential structure.
  • A range-based variable-precision floating-point representation is introduced to quantize the remaining frequency coefficients, allocating more bits to regions with higher gradient magnitude and distribution density.
  • The compression ratio is dynamically controlled via a parameter θ, which can be reduced during training to recover accuracy in case of convergence failure.
  • The framework is designed to be compatible with existing allreduce and parameter server systems, though it requires efficient sparse collective communication support.
  • Theoretical analysis proves convergence under diminishing θ, ensuring robustness and reliability of the method.

Experimental results

Research questions

  • RQ1Can FFT-based gradient sparsification preserve more relevant gradient information than spatial-domain sparsification methods like Top-k, QSGD, and TernGrad?
  • RQ2Does the proposed range-based quantization reduce approximation error compared to uniform quantization in existing lossy methods?
  • RQ3Can the framework maintain model accuracy and convergence while achieving higher compression ratios than state-of-the-art lossy methods?
  • RQ4How does dynamic adjustment of the sparsification ratio θ affect training convergence and final accuracy?
  • RQ5What is the end-to-end wall-clock performance improvement of the proposed method in heterogeneous, GPU-accelerated distributed training environments?

Key findings

  • On an 8-GPU InfiniBand cluster, SuperNeurons accelerates AlexNet training by up to 2.26x compared to no compression.
  • The method achieves 1.31x speedup over QSGD, 1.25x over TernGrad, and 1.47x over Top-k sparsification in end-to-end wall time.
  • At the same sparsification ratio θ, FFT-based sparsification incurs significantly lower approximation error than Top-k, QSGD, and TernGrad, as shown in Figure 15 and Table 2.
  • The range-based quantizer reduces quantization error by better aligning bit allocation with the gradient distribution, outperforming uniform quantization in QSGD and TernGrad.
  • Theoretical analysis confirms that the method converges with diminishing θ, providing a mechanism to recover accuracy in case of training instability.
  • The framework maintains high model accuracy even at high compression ratios, outperforming existing lossy methods in both accuracy and training speed.

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.