Scalable K-FAC Training for Deep Neural Networks with Distributed Preconditioning

Lin Zhang, Shaohuai Shi, Wei Wang, Bo Li
6/30/2022
cs.LGcs.DC

Official code: lzhangbv/kfac_pytorch (6 stars, Python, MIT, last commit 2022-09-19).

Abstract

The second-order optimization methods, notably the D-KFAC (Distributed Kronecker Factored Approximate Curvature) algorithms, have gained traction on accelerating deep neural network (DNN) training on GPU clusters. However, existing D-KFAC algorithms require to compute and communicate a large volume of second-order information, i.e., Kronecker factors (KFs), before preconditioning gradients, resulting in large computation and communication overheads as well as a high memory footprint.

Show full abstract

In this paper, we propose DP-KFAC, a novel distributed preconditioning scheme that distributes the KF constructing tasks at different DNN layers to different workers. DP-KFAC not only retains the convergence property of the existing D-KFAC algorithms but also enables three benefits: reduced computation overhead in constructing KFs, no communication of KFs, and low memory footprint. Extensive experiments on a 64-GPU cluster show that DP-KFAC reduces the computation overhead by 1.55x-1.65x, the communication cost by 2.79x-3.15x, and the memory footprint by 1.14x-1.47x in each second-order update compared to the state-of-the-art D-KFAC methods.

View on arXivView PDF

Code Implementations(1)

MIT

[TCC 2022] Scalable K-FAC Training for Deep Neural Networks With Distributed Preconditioning

60Python, ShellDec 30, 20204 years agoMIT

Similar Papers

Cite this paper

@article{zhang2022scalable,
  title  = {Scalable K-FAC Training for Deep Neural Networks with Distributed Preconditioning},
  author = {Lin Zhang and Shaohuai Shi and Wei Wang and Bo Li},
  year   = {2022},
  eprint = {2206.15143},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.15143}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.15143.svg)](https://codeofpaper.com/paper/2206.15143)

Discussion