Skip to main content
QUICK 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 Science参考文献 36被引用 3
一句话总结

该论文提出 SuperNeurons,一种新颖的有损梯度压缩框架,通过在频域中利用基于 FFT 的稀疏化以及基于范围的可变精度浮点量化,减少分布式 DNN 训练中的通信开销。在相同稀疏度下,其保留的梯度信息比 Top-k、QSGD 或 TernGrad 更多,在 8 块 GPU 上实现最高 2.26 倍的训练加速,且精度损失极小,同时通过自适应稀疏化比率控制确保收敛。

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.

研究动机与目标

  • 为解决分布式深度学习训练中的通信瓶颈,特别是在 ResNet 和 Inception 等现代架构中计算-通信重叠有限的问题。
  • 通过引入一种有损压缩方法,在不牺牲模型精度的前提下减少梯度通信成本,该方法保留的梯度相关信息比现有技术更多。
  • 开发一种理论基础扎实、鲁棒的压缩框架,通过在训练过程中动态调整稀疏化比率 θ 来保证收敛。
  • 通过结合频域稀疏化与自适应精度量化,优化异构环境下的压缩性能。
  • 与最先进的有损方法(如 QSGD、TernGrad 和 Top-k 稀疏化)相比,展示出更优的端到端训练性能。

提出的方法

  • 该方法将梯度视为一维信号,并应用快速傅里叶变换(FFT)将其转换到频域。
  • 通过置零近似为零的频率系数实现稀疏化,去除冗余信息,同时保留信号的基本结构。
  • 引入基于范围的可变精度浮点表示来量化剩余的频率系数,将更多比特分配给梯度幅值较大且分布密度较高的区域。
  • 通过参数 θ 动态控制压缩比率,可在训练过程中降低 θ 以在出现收敛失败时恢复精度。
  • 该框架设计为与现有的 allreduce 和参数服务器系统兼容,但需要高效的稀疏集体通信支持。
  • 理论分析证明了在 θ 渐减条件下的收敛性,确保了方法的鲁棒性和可靠性。

实验结果

研究问题

  • RQ1基于 FFT 的梯度稀疏化是否能比空间域稀疏化方法(如 Top-k、QSGD 和 TernGrad)保留更多相关梯度信息?
  • RQ2与现有有损方法中的均匀量化相比,所提出的基于范围的量化是否能降低近似误差?
  • RQ3该框架是否能在高于现有最先进有损方法的压缩比率下,仍保持模型精度和收敛性?
  • RQ4稀疏化比率 θ 的动态调整如何影响训练收敛性和最终精度?
  • RQ5在异构、GPU 加速的分布式训练环境中,该方法的端到端实际运行时间性能提升如何?

主要发现

  • 在 8 块 GPU 的 InfiniBand 集群上,与无压缩相比,SuperNeurons 将 AlexNet 训练速度最高提升 2.26 倍。
  • 在端到端实际运行时间上,相比 QSGD 提升 1.31 倍,相比 TernGrad 提升 1.25 倍,相比 Top-k 稀疏化提升 1.47 倍。
  • 在相同稀疏化比率 θ 下,基于 FFT 的稀疏化相比 Top-k、QSGD 和 TernGrad 的近似误差显著更低,如图 15 和表 2 所示。
  • 基于范围的量化器通过更合理地分配比特数以匹配梯度分布,降低了量化误差,优于 QSGD 和 TernGrad 中的均匀量化。
  • 理论分析证实,当 θ 逐渐减小,该方法可实现收敛,为训练不稳定时恢复精度提供了机制。
  • 即使在高压缩比率下,该框架仍能保持高模型精度,在精度和训练速度上均优于现有有损方法。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。