Abstract
Analog In-Memory Computing (AIMC) presents a promising low-power alternative to traditional digital hardware for training massive AI models. However, hardware non-idealities, particularly asymmetric weight updates, have historically prevented standard training algorithms like Stochastic Gradient Descent (SGD) from achieving exact convergence. This work provides the first rigorous theoretical proof that the Tiki-Taka algorithm can overcome these hardware flaws. By mathematically characterizing the "asymptotic error" floor of Analog SGD and analyzing the filtering properties of Tiki-Taka, the authors demonstrate that exact convergence is achievable, paving the way for high-performance, energy-efficient analog AI training.
Introduction
Modern AI training is increasingly constrained by the energy costs of moving data between processors and memory in Von Neumann architectures. Analog In-Memory Computing (AIMC) addresses this by performing matrix-vector multiplications directly within memory using the physical conductance of resistive materials. Despite its efficiency, AIMC suffers from hardware imperfections. Specifically, when updating a weight (conductance), the increase ($+$) and decrease ($-$) are often asymmetric. Standard SGD assumes symmetric updates; on analog hardware, this mismatch causes training to "drift" and stall, resulting in an intrinsic error floor that limits final model accuracy.
The Challenge of Asymmetric Updates
In digital systems, stochastic noise typically has a zero mean and cancels out over time. In contrast, analog hardware asymmetry acts as a biased noise source. This bias pushes weights toward a specific "symmetric point" rather than the true mathematical optimum. The authors developed a discrete-time mathematical model for Analog SGD to capture this behavior, showing how weight updates are scaled by current values, leading to saturation.
As shown in the figure above, while Digital SGD continues to converge as the learning rate decreases, Analog SGD hits a performance floor. This "asymptotic error" is a fundamental limit of the standard algorithm on asymmetric hardware, regardless of hyperparameter tuning.
Tiki-Taka: Achieving Exact Convergence
To solve this, the authors analyzed "Tiki-Taka," a two-stage heuristic algorithm. Tiki-Taka utilizes an auxiliary analog array ($P$) to track a moving average of gradients. This auxiliary array effectively acts as a low-pass filter, dampening the high-frequency noise and asymmetric drift before weights are transferred to the main array ($W$).
The core contribution of this paper is the formal convergence analysis of Tiki-Taka. The authors rigorously prove that this filtering process allows the system to converge to a critical point exactly, eliminating the error floor associated with standard Analog SGD.
The table above summarizes these theoretical findings, highlighting that Tiki-Taka achieves a zero asymptotic error, matching the theoretical capability of Digital SGD despite hardware non-idealities.
Experimental Validation
The theory was validated using synthetic least-squares benchmarks and real-world datasets including MNIST and CIFAR-10.
- MNIST: On CNN training, Analog SGD suffered a >6% accuracy drop compared to digital. Tiki-Taka reduced this gap to less than 1%, achieving near-digital parity.
- CIFAR-10: Using ResNet-34, Tiki-Taka achieved 95.15% accuracy, slightly outperforming the Digital SGD baseline of 93.44%. This suggests that inherent analog noise may even provide a beneficial regularization effect, making networks more robust.
Conclusion
This work bridges the gap between hardware physics and optimization theory, proving that exact training on imperfect analog hardware is possible. While currently focused on Asymmetric Linear Devices (ALD), future research will extend these proofs to more complex, non-linear device characteristics and optimize transfer frequencies to further enhance efficiency in large-scale analog AI systems.
Summary updated