arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.06309cs.LGcs.ARmath.OC
收藏

基于通用非理想电阻元件的类比内存训练:响应函数的影响

Analog In-memory Training on General Non-ideal Resistive Elements: The Impact of Response Functions

Cornell University(康奈尔大学);IBM T. J. Watson Research Center(IBM T.J.沃森研究中⼼);Rensselaer Polytechnic Institute(拉特盖尔理工学院)

Zhaoxian Wu, Quan Xiao, Tayfun Gokmen, Omobayode Fagbohungbe, Tianyi Chen

AI总结:

本文研究了非理想响应函数对类比内存计算训练动态的影响,提出残差学习算法以解决非对称响应函数带来的问题,并通过模拟验证了理论成果。

摘要:

随着训练和部署大型视觉或语言模型的经济和环境成本显著增加,类比内存计算(AIMC)作为一种有前途的能量高效解决方案逐渐显现。然而,从训练的角度来看,尤其是其训练动态,仍处于探索阶段。在AIMC硬件中,可训练的权重由电阻元件的电导率表示,并通过连续的电信号进行更新。虽然电导率在每次脉冲下会以恒定值变化,但现实中,这种变化会被非线性和非对称的响应函数放大,导致训练动态非理想。本文为在具有非理想响应函数的AIMC硬件上进行基于梯度的训练提供了理论基础。我们证明了非对称响应函数对类比SGD产生负面影响,通过在目标上施加隐含的惩罚。为解决这一问题,我们提出了残差学习算法,该算法通过求解双层优化问题,可以证明精确收敛到临界点。我们证明所提出的方法可以扩展到解决其他硬件缺陷,如响应粒度有限的问题。目前已知,这是首次研究一类通用非理想响应函数的影响。结论通过模拟验证了我们的理论见解。

英文摘要:

As the economic and environmental costs of training and deploying large vision or language models increase dramatically, analog in-memory computing (AIMC) emerges as a promising energy-efficient solution. However, the training perspective, especially its training dynamic, is underexplored. In AIMC hardware, the trainable weights are represented by the conductance of resistive elements and updated using consecutive electrical pulses. While the conductance changes by a constant in response to each pulse, in reality, the change is scaled by asymmetric and non-linear response functions, leading to a non-ideal training dynamic. This paper provides a theoretical foundation for gradient-based training on AIMC hardware with non-ideal response functions. We demonstrate that asymmetric response functions negatively impact Analog SGD by imposing an implicit penalty on the objective. To overcome the issue, we propose Residual Learning algorithm, which provably converges exactly to a critical point by solving a bilevel optimization problem. We demonstrate that the proposed method can be extended to address other hardware imperfections, such as limited response granularity. As we know, it is the first paper to investigate the impact of a class of generic non-ideal response functions. The conclusion is supported by simulations validating our theoretical insights.

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

↑