On the Convergence Theory of Pipeline Gradient-based Analog In-memory Training

Zhaoxian Wu, Quan Xiao, Tayfun Gokmen, Hsinyu Tsai, Kaoutar El Maghraoui +1 more
10/19/2024
cs.LGcs.ARmath.OC

No official code found. Best implementation: IBM/aihwkit (489 stars, MIT, PyTorch, last commit 2026-04-22).

Abstract

Aiming to accelerate the training of large deep neural networks (DNN) in an energy-efficient way, analog in-memory computing (AIMC) emerges as a solution with immense potential. AIMC accelerator keeps model weights in memory without moving them from memory to processors during training, reducing overhead dramatically. Despite its efficiency, scaling up AIMC systems presents significant challenges. Since weight copying is expensive and inaccurate, data parallelism is less efficient on AIMC accelerators. It necessitates the exploration of pipeline parallelism, particularly asynchronous pipeline parallelism, which utilizes all available accelerators during the training process. This paper examines the convergence theory of stochastic gradient descent on AIMC hardware with an asynchronous pipeline (Analog-SGD-AP). Although there is empirical exploration of AIMC accelerators, the theoretical understanding of how analog hardware imperfections in weight updates affect the training of multi-layer DNN models remains underexplored. Furthermore, the asynchronous pipeline parallelism results in stale weights issues, which render the update signals no longer valid gradients. To close the gap, this paper investigates the convergence properties of Analog-SGD-AP on multi-layer DNN training. We show that the Analog-SGD-AP converges with iteration complexity $O(\varepsilon^{-2}+\varepsilon^{-1})$ despite the aforementioned issues, which matches the complexities of digital SGD and Analog SGD with synchronous pipeline, except the non-dominant term $O(\varepsilon^{-1})$. It implies that AIMC training benefits from asynchronous pipelining almost for free compared with the synchronous pipeline by overlapping computation.

View on arXivView PDF

Code Implementations(1)

IBM/aihwkitCommunity100%
PyTorchMIT

IBM Analog Hardware Acceleration Kit

489191C, C++Sep 17, 20206 months agoMIT
aianalog-devicescudaneural-networkspytorch

Similar Papers

Cite this paper

@article{wu2024convergence,
  title  = {On the Convergence Theory of Pipeline Gradient-based Analog In-memory Training},
  author = {Zhaoxian Wu and Quan Xiao and Tayfun Gokmen and Hsinyu Tsai and Kaoutar El Maghraoui and Tianyi Chen},
  year   = {2024},
  eprint = {2410.15155},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.15155v2}
}

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/2410.15155.svg)](https://codeofpaper.com/paper/2410.15155)

Discussion