Introduction
Modern AI faces a significant energy challenge known as the "von Neumann bottleneck," where the constant movement of data between memory and processing units consumes the majority of power. Compute-in-Memory (CIM) using Non-Volatile Memory (NVM) technologies like RRAM or MRAM offers a promising solution by performing computations directly within the memory array. However, these devices suffer from inherent physical noise and manufacturing variations, which can severely degrade the accuracy of Deep Neural Networks (DNNs). This paper, presented at the 2024 CODES+ISSS conference, introduces a training-side solution to this hardware-side problem.
The Challenge of Hardware Noise
In NVM accelerators, the electrical conductance of a memory cell often deviates from the intended weight value due to manufacturing tolerances. Traditionally, this is mitigated through "write-verify" cycles—a process of iteratively writing and checking values until they are accurate. While effective, this approach is slow and energy-intensive, undermining the efficiency gains of CIM. Software-based solutions like random noise injection during training often lead to unstable convergence or high model uncertainty because random noise is, by definition, unpredictable.
Methodology: Oriented Variational Forward (OVF)
To address these issues, researchers introduced Oriented Variational Forward (OVF), a training mechanism inspired by negative feedback theory in control systems.
The OVF framework operates in three main stages:
- Backbone and Variational Forwards: The model maintains a set of "backbone" weights. During training, multiple forward passes are conducted using these weights while injecting structured noise at levels exceeding expected hardware variations.
- Negative Optimization: The loss function is designed to penalize the model based on these noisy variational outputs. By applying "negative optimization," the network is forced to adjust its backbone weights in a direction that actively suppresses the errors introduced by noise. This acts like a "vaccine," building immunity to the stochastic variations encountered in real-world hardware.
- Deployment: After training, the noise-suppression components are removed, leaving a "hardened" backbone model ready for inference on noisy hardware without additional computational overhead.
Experimental Results
The effectiveness of OVF was evaluated using VGG-8 and ResNet-18 architectures across several benchmarks, including MNIST, CIFAR-10, CIFAR-100, and Tiny ImageNet.
Key findings include:
- Accuracy Improvements: OVF significantly outperformed standard noise-injection methods. For instance, on VGG-8 with MNIST, OVF achieved a 46.71% improvement in Top-1 accuracy under high-noise conditions. Across more complex datasets like CIFAR-100 and Tiny ImageNet, improvements ranged from 3% to 17%.
- Robust Convergence: In scenarios with extreme device variation ($\sigma=0.35$), standard methods often failed to converge. In contrast, OVF demonstrated a 100% success rate in convergence across ten test runs.
- Reduced Uncertainty: By treating noise as a system perturbation to be countered, OVF reduces the "epistemic uncertainty" of the model, leading to more reliable and confident predictions compared to random noise training.
Conclusion and Future Work
OVF represents a significant step toward sustainable edge AI. By shifting the burden of hardware robustness from energy-intensive physical verification to an intelligent training-side solution, it enables the deployment of high-performance DNNs on efficient but noisy NVM accelerators. This reduction in hardware "write-verify" cycles directly saves battery life and time on edge devices. Future work will focus on automating hyperparameter selection for the negative constraint coefficient ($\beta$) and integrating OVF with Neural Architecture Search to further optimize model resilience.
Summary updated