arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.12443cs.LGcs.DC
收藏

Pipe-BD:流水线平行精馏

Pipe-BD: Pipelined Parallel Blockwise Distillation

Seoul National University(首尔国立大学);Yonsei University(延世大学);NAVER(NAVER(韩国NAVER公司))

Hongsun Jang, Jaewon Jung, Jaeyong Song, Joonsang Yu, Youngsok Kim, Jinho Lee

摘要:

训练大型深度神经网络模型具有很高的挑战性,因为它们需要大量的计算和内存。通过将一个大的模型分解为多个小的模型,Bundle蒸馏提供了一种有前途的方法来实现更快的收敛。在最先进的分块蒸馏方法中,使用多个GPU以数据并行方式逐块执行训练。为了产生学生块的输入,教师模型从开始执行,直到训练中的当前块。然而,这导致冗余教师执行的高开销、低GPU利用率和额外的数据加载。为了解决这些问题,我们提出了Pipe-BD,一种新的并行化方法块式蒸馏。Pipe-BD积极利用流水线并行进行分块蒸馏,消除了冗余的教师块执行,并增加了每个设备的批量大小,以提高资源利用率。我们还扩展到混合并行高效的工作负载平衡。因此,Pipe-BD在不修改分段蒸馏的数学公式的情况下实现了显著的加速。我们在PyTorch上实现了Pipe-BD,实验表明Pipe-BD在多个场景、模型和数据集上都是有效的。

英文摘要:

Training large deep neural network models is highly challenging due to their tremendous computational and memory requirements. Blockwise distillation provides one promising method towards faster convergence by splitting a large model into multiple smaller models. In state-of-the-art blockwise distillation methods, training is performed block-by-block in a data-parallel manner using multiple GPUs. To produce inputs for the student blocks, the teacher model is executed from the beginning until the current block under training. However, this results in a high overhead of redundant teacher execution, low GPU utilization, and extra data loading. To address these problems, we propose Pipe-BD, a novel parallelization method for blockwise distillation. Pipe-BD aggressively utilizes pipeline parallelism for blockwise distillation, eliminating redundant teacher block execution and increasing per-device batch size for better resource utilization. We also extend to hybrid parallelism for efficient workload balancing. As a result, Pipe-BD achieves significant acceleration without modifying the mathematical formulation of blockwise distillation. We implement Pipe-BD on PyTorch, and experiments reveal that Pipe-BD is effective on multiple scenarios, models, and datasets.

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

↑