arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.12201cs.LG
收藏

GraVAC:面向通信高效分布式深度学习训练的自适应压缩方法

GraVAC: Adaptive Compression for Communication-Efficient Distributed DL Training

Indiana University Bloomington(印第安纳大学伯明顿分校)

Sahil Tyagi, Martin Swany

AI总结:

针对分布式数据并行训练中同步通信开销高、理想压缩因子难确定的问题,提出黑盒在线的GraVAC自适应压缩框架,动态调整压缩因子,在保证精度的同时大幅提升训练速度。

摘要:

分布式数据并行(DDP)训练可提升整体应用吞吐量,多设备在数据子集上训练并聚合更新以生成全局共享模型。每次迭代的周期性同步会带来可观开销,而前沿神经网络规模与复杂度的不断增长进一步加剧了这一问题。尽管已有诸多梯度压缩技术旨在降低通信成本,但能实现最大加速比或最小数据交换量的理想压缩因子仍是开放性问题,它会随压缩质量、模型规模与结构、硬件、网络拓扑及带宽的变化而改变。我们提出GraVAC框架,通过评估模型训练进度并测算压缩带来的梯度信息损失,在训练过程中动态调整压缩因子。GraVAC以在线黑盒方式运行,无需对模型或其超参数做任何先验假设,且在相同迭代轮次/训练轮数下,能达到与稠密SGD(即无压缩)相当甚至更优的精度。与使用静态压缩因子相比,GraVAC将ResNet101、VGG16和LSTM的端到端训练时间分别缩短了4.32倍、1.95倍和6.67倍;与其他自适应方案相比,本框架的整体加速比可达1.94倍至5.63倍。

英文摘要:

Distributed data-parallel (DDP) training improves overall application throughput as multiple devices train on a subset of data and aggregate updates to produce a globally shared model. The periodic synchronization at each iteration incurs considerable overhead, exacerbated by the increasing size and complexity of state-of-the-art neural networks. Although many gradient compression techniques propose to reduce communication cost, the ideal compression factor that leads to maximum speedup or minimum data exchange remains an open-ended problem since it varies with the quality of compression, model size and structure, hardware, network topology and bandwidth. We propose GraVAC, a framework to dynamically adjust compression factor throughout training by evaluating model progress and assessing gradient information loss associated with compression. GraVAC works in an online, black-box manner without any prior assumptions about a model or its hyperparameters, while achieving the same or better accuracy than dense SGD (i.e., no compression) in the same number of iterations/epochs. As opposed to using a static compression factor, GraVAC reduces end-to-end training time for ResNet101, VGG16 and LSTM by 4.32x, 1.95x and 6.67x respectively. Compared to other adaptive schemes, our framework provides 1.94x to 5.63x overall speedup.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑