Introduction
Compute-in-Memory (CiM) architectures utilizing Non-Volatile Memory (NVM) devices like RRAM or FeFETs represent a promising frontier for energy-efficient Deep Neural Network (DNN) acceleration at the edge. However, these technologies suffer from significant device variation due to manufacturing imperfections and environmental factors. This variation causes the actual electrical conductance of memory cells to deviate from programmed values, leading to unpredictable performance degradation in deployed models.
While most research focuses on maintaining high average accuracy, safety-critical applications—such as autonomous driving or medical diagnostics—require a focus on reliability in "realistic worst-case" scenarios. This paper introduces TRICE, a training methodology designed to optimize the performance of the bottom percentile of hardware instances.
Redefining Reliability: The KPP Metric
Traditional robust training often targets average performance. To better address the needs of safety-critical systems, the authors propose the $k$-th Percentile Performance (KPP) metric. KPP provides a statistical guarantee: for example, a 1st percentile KPP of 90% ensures that 99% of all manufactured hardware instances will achieve at least 90% accuracy.
By shifting the focus from the mean (50th percentile) to the lower tail (e.g., 1st or 5th percentile), designers can ignore statistically impossible "corner cases" while providing rigorous safety bounds for the vast majority of devices.
The TRICE Methodology
The core innovation of this work is TRICE (Training with RIght-Censored Gaussian NoisE). Standard noise injection techniques typically use zero-mean Gaussian noise to simulate hardware errors. However, mathematical analysis reveals that zero-mean noise is sub-optimal for improving KPP because it fails to provide the directional "pressure" needed to shift the weights into more robust regions of the loss landscape.
TRICE addresses this by injecting "right-censored" noise, where noise values exceeding a specific threshold are capped. This modification creates a non-zero expected value in the noise distribution.
As shown above, censoring (capping) noise is distinct from truncating (cutting off) noise. Censoring ensures that the model minimizes both the primary loss and the second-order sensitivity (curvature) of the weights, effectively forcing the network to find "flat" minima that are resistant to hardware variations.
To streamline the training process, the authors also developed an adaptive hyperparameter selection algorithm. This method trains multiple model variants with different noise levels simultaneously, automatically converging on the optimal settings without requiring extensive manual tuning.
Key Results and Insights
The researchers evaluated TRICE across various benchmarks, including LeNet on MNIST and ResNet-18 on CIFAR-10, using simulations of RRAM and FeFET hardware.
- Performance Gains: On ResNet-18, TRICE improved 1st percentile accuracy by 26.01% compared to standard training methods.
- Hardware Realism: When tested against non-uniform FeFET device models derived from real-world measurements, TRICE demonstrated a 15.61% KPP improvement.
- Scalability: The benefits of TRICE become more pronounced as hardware variation increases, making it an essential tool for utilizing high-density, lower-quality memory chips.
Conclusion
TRICE represents a significant step forward in making NVCiM accelerators viable for real-world, safety-critical applications. By moving beyond average-case optimization and leveraging the unique properties of right-censored noise, the method provides a mathematically grounded approach to ensuring high performance in realistic worst-case hardware scenarios. Future work will look to extend this framework to account for spatial correlations in device noise and other non-idealities like voltage drops in crossbar arrays.
Summary updated