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

压缩激活有助于模拟并行训练吗?

Does compressing activations help model parallel training?

University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Carnegie Mellon University(卡内基梅隆大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学);Petuum Inc.(Petuum公司)

Song Bian, Dacheng Li, Hongyi Wang, Eric P. Xing, Shivaram Venkataraman

摘要:

大型Transformer模型以其在一系列任务中的出色性能而闻名,但由于需要通信密集型模型并行,因此训练它们可能很困难。提高训练速度的一种方法是压缩通信中的消息大小。以前的方法主要集中在压缩梯度的数据并行设置,但压缩模型并行设置是一个研究不足的领域。我们已经发现,模型并行与数据并行具有根本不同的特性。在这项工作中,我们提出了第一个实证研究的有效性压缩方法的模型并行。我们使用一个流行的Transformer训练框架来实现和评估三种常见的压缩算法--基于修剪的、基于学习的和基于量化的。我们在160多个设置和8个流行的数据集上评估了这些方法,同时考虑了不同的超参数、硬件以及微调和预训练阶段。当模型按比例放大时,我们还提供分析。最后,我们提供的见解,未来的发展模型并行压缩算法。

英文摘要:

Large-scale Transformer models are known for their exceptional performance in a range of tasks, but training them can be difficult due to the requirement for communication-intensive model parallelism. One way to improve training speed is to compress the message size in communication. Previous approaches have primarily focused on compressing gradients in a data parallelism setting, but compression in a model-parallel setting is an understudied area. We have discovered that model parallelism has fundamentally different characteristics than data parallelism. In this work, we present the first empirical study on the effectiveness of compression methods for model parallelism. We implement and evaluate three common classes of compression algorithms - pruning-based, learning-based, and quantization-based - using a popular Transformer training framework. We evaluate these methods across more than 160 settings and 8 popular datasets, taking into account different hyperparameters, hardware, and both fine-tuning and pre-training stages. We also provide analysis when the model is scaled up. Finally, we provide insights for future development of model parallelism compression algorithms.

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

↑