Towards Exact Gradient-based Training on Analog In-memory Computing

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wu, Zhaoxian, Gokmen, Tayfun, Rasch, Malte J., Chen, Tianyi
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914839304077312
author Wu, Zhaoxian
Gokmen, Tayfun
Rasch, Malte J.
Chen, Tianyi
author_facet Wu, Zhaoxian
Gokmen, Tayfun
Rasch, Malte J.
Chen, Tianyi
contents Given the high economic and environmental costs of using large vision or language models, analog in-memory accelerators present a promising solution for energy-efficient AI. While inference on analog accelerators has been studied recently, the training perspective is underexplored. Recent studies have shown that the "workhorse" of digital AI training - stochastic gradient descent (SGD) algorithm converges inexactly when applied to model training on non-ideal devices. This paper puts forth a theoretical foundation for gradient-based training on analog devices. We begin by characterizing the non-convergent issue of SGD, which is caused by the asymmetric updates on the analog devices. We then provide a lower bound of the asymptotic error to show that there is a fundamental performance limit of SGD-based analog training rather than an artifact of our analysis. To address this issue, we study a heuristic analog algorithm called Tiki-Taka that has recently exhibited superior empirical performance compared to SGD and rigorously show its ability to exactly converge to a critical point and hence eliminates the asymptotic error. The simulations verify the correctness of the analyses.
format Preprint
id arxiv_https___arxiv_org_abs_2406_12774
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards Exact Gradient-based Training on Analog In-memory Computing
Wu, Zhaoxian
Gokmen, Tayfun
Rasch, Malte J.
Chen, Tianyi
Machine Learning
Hardware Architecture
Optimization and Control
Given the high economic and environmental costs of using large vision or language models, analog in-memory accelerators present a promising solution for energy-efficient AI. While inference on analog accelerators has been studied recently, the training perspective is underexplored. Recent studies have shown that the "workhorse" of digital AI training - stochastic gradient descent (SGD) algorithm converges inexactly when applied to model training on non-ideal devices. This paper puts forth a theoretical foundation for gradient-based training on analog devices. We begin by characterizing the non-convergent issue of SGD, which is caused by the asymmetric updates on the analog devices. We then provide a lower bound of the asymptotic error to show that there is a fundamental performance limit of SGD-based analog training rather than an artifact of our analysis. To address this issue, we study a heuristic analog algorithm called Tiki-Taka that has recently exhibited superior empirical performance compared to SGD and rigorously show its ability to exactly converge to a critical point and hence eliminates the asymptotic error. The simulations verify the correctness of the analyses.
title Towards Exact Gradient-based Training on Analog In-memory Computing
topic Machine Learning
Hardware Architecture
Optimization and Control
url https://arxiv.org/abs/2406.12774