arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.12774cs.LGcs.ARmath.OC
收藏

面向模拟内存计算的精确基于梯度的训练

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

Rensselaer Polytechnic Institute(伦斯勒理工学院);IBM T. J. Watson Research Center(IBM T. J. 沃森研究中心)

Zhaoxian Wu, Tayfun Gokmen, Malte J. Rasch, Tianyi Chen

AI总结:

针对模拟内存计算中SGD训练因器件非对称更新无法精确收敛的问题,本文构建理论基础并证明Tiki-Taka算法可精确收敛,消除渐近误差,仿真验证了分析正确性。

摘要:

鉴于使用大型视觉或语言模型的高昂经济与环境成本,模拟内存加速器为高能效AI提供了一种颇具前景的解决方案。尽管近期已有不少针对模拟加速器推理的研究,但训练视角的探索仍显不足。近期研究表明,数字AI训练的“主力算法”——随机梯度下降(SGD)算法,应用于非理想器件上的模型训练时无法精确收敛。本文提出了模拟器件上基于梯度的训练的理论基础。我们首先刻画了SGD的非收敛问题,该问题由模拟器件上的非对称更新导致。随后我们给出了渐近误差的下界,证明基于SGD的模拟训练存在根本性的性能极限,而非我们分析过程中的人为产物。为解决这一问题,我们研究了一种名为Tiki-Taka的启发式模拟算法,该算法近期在实验中表现出优于SGD的性能,本文严格证明了其能够精确收敛至临界点,从而消除渐近误差。仿真实验验证了上述分析的正确性。

英文摘要:

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.

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

↑