arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2104.00237cs.LGcs.MS
收藏

优化器融合:具有更好局部性和局部性的有效训练

Optimizer Fusion: Efficient Training with Better Locality and Parallelism

The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Zixuan Jiang, Jiaqi Gu, Mingjie Liu, Keren Zhu, David Z. Pan

摘要:

机器学习框架采用迭代优化器来训练神经网络。传统的急切执行将可训练参数的更新与向前和向后计算分离。然而,由于缺乏数据局部性和计算并行性,这种方法引入了非平凡的训练时间开销。在这项工作中,我们建议将优化器与向前或向后计算相融合,以在训练过程中更好地利用局部性和并行性。通过重新安排前向计算、梯度计算和参数更新的顺序,我们提出的方法提高了迭代优化器的效率。实验结果表明,我们可以实现高达20%的训练时间减少各种配置。由于我们的方法不改变优化算法,它们可以用作训练过程的通用“插件”技术。

英文摘要:

Machine learning frameworks adopt iterative optimizers to train neural networks. Conventional eager execution separates the updating of trainable parameters from forward and backward computations. However, this approach introduces nontrivial training time overhead due to the lack of data locality and computation parallelism. In this work, we propose to fuse the optimizer with forward or backward computation to better leverage locality and parallelism during training. By reordering the forward computation, gradient calculation, and parameter updating, our proposed method improves the efficiency of iterative optimizers. Experimental results demonstrate that we can achieve an up to 20% training time reduction on various configurations. Since our methods do not alter the optimizer algorithm, they can be used as a general "plug-in" technique to the training process.

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

↑