English

Optimizer Fusion: Efficient Training with Better Locality and Parallelism

Machine Learning 2021-04-02 v1 Mathematical Software

Abstract

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.

Keywords

Cite

@article{arxiv.2104.00237,
  title  = {Optimizer Fusion: Efficient Training with Better Locality and Parallelism},
  author = {Zixuan Jiang and Jiaqi Gu and Mingjie Liu and Keren Zhu and David Z. Pan},
  journal= {arXiv preprint arXiv:2104.00237},
  year   = {2021}
}

Comments

It is published as a paper at the Hardware Aware Efficient Training (HAET) workshop of ICLR 2021. There are 4 pages excluding references and appendices

R2 v1 2026-06-24T00:45:35.504Z