Analog In-memory Training on General Non-ideal Resistive Elements: The Impact of Response Functions
Zhaoxian Wu, Quan Xiao, Tayfun Gokmen, Omobayode Fagbohungbe, Tianyi Chen
TL;DR
This work analyzes gradient-based training on analog in-memory computing hardware with generic non-ideal resistive response functions, showing that asymmetric updates induce an implicit penalty that biases toward a symmetric point and prevents exact convergence. It develops Residual Learning, a bilevel framework that introduces a residual array $P_k$ to align the algorithmic stationary point with the hardware's symmetric point, achieving provable convergence to a true optimum under zero-shift and extending to practical issues like limited granularity and IO noise. The paper further extends to Residual Learning v2 with digital buffering and thresholded transfer to combat read noise and discretization, and validates the theory with MNIST and CIFAR simulations using FCN, CNN, and ResNet architectures, where RL and RLv2 close the gap to Digital SGD while preserving AIMC efficiency. Overall, the approach provides a rigorous foundation for on-chip analog training with non-ideal devices and offers practical algorithms to mitigate hardware imperfections, supporting scalable energy-efficient learning on resistive crossbar arrays.
Abstract
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.
