Blog

Stay updated with our latest news and announcements.

Insights

[Summary] Opposing Mean Error Compensation for Accuracy Enhancement in Analog Compute-in-Memory With Resistive Switching Devices

Woocheol LeeWoocheol Lee

Our study has been accepted for publication in the prestigious IEEE Transactions on Electron Devices. We conducted a collaborative simulation-based study with Georgia Tech to enhance the computational accuracy of Analog Compute-in-Memory systems using Resistive Synapse Cells (HfOx/Ta). Our research focused on significantly improving AI model accuracy by simply altering the weight data input method, without the need for developing new devices. In this blog post, we'll delve into the details of our study.

 

As the complexity of AI models continues to grow, the need for new hardware architectures that enable energy-efficient computation has become increasingly important. One promising solution is Analog Compute-in-Memory technology, which offers the potential for low-power, high-speed processing. This technology can be implemented using resistive switching cells, which store and process data simultaneously. However, a significant challenge arises from the conductance variation in these resistive switching cells, which can lead to reduced accuracy in AI models. Our research addresses this issue by presenting an innovative methodology that improves model accuracy without the need for cell engineering.

 

We introduced an "Opposing Mean Error Compensation (OMEC)" characteristic of AI models in this study. When one cell has a conductance error, another cell can be adjusted to have a conductance error in the opposite direction to compensate for it. Figure 1 illustrates a real-world example of OMEC. Fig. 1(a) shows the representation of conductance variation in resistive cells in terms of mean error and standard deviation. Fig. 1(b) displays the actual conductance variation of cells for two different schemes. Both Scheme 1 and Scheme 2 have nearly identical standard deviation values, and their mean errors are similar in absolute terms. The key difference is that the mean error in Scheme 1 is predominantly positive, while in Scheme 2, the mean error is evenly distributed between positive and negative values. Fig. 1(c) and 3(d) show the histograms of MAC errors when performing MAC operations for Schemes 1 and 2, respectively. In Scheme 1, the MAC error persists even after more than 4000 MAC operations, whereas in Scheme 2, the MAC error nearly disappears. As a result, the AI model accuracy for Scheme 1 is 82.78%, while for Scheme 2, it is higher at 91.12%. In other words, although the conductance variations are similar for Schemes 1 and 2, Scheme 2 achieves higher accuracy due to the OMEC.


Fig. 1. (a) The illustration explaining how Mean Error and Standard Deviation metrics are defined. (b) The graph showing the mean error and standard deviation of cell conductance for different weight levels across two different schemes. Histogram of normalized MAC errors for (c) Scheme 1 and (d) Scheme 2.



By utilizing OMEC, we present a method to dramatically improve accuracy. By understanding the conductance distribution characteristics of each cell level in advance, we can reflect this in the cell writing process to enhance the accuracy of the AI model. Figure 2 demonstrates cases where accuracy drops due to cell variation and how OMEC has been used to improve accuracy in these scenarios. By intentionally writing a value that is either one level higher or lower into the cells for a certain proportion of the weight data, we can compensate for the mean error (Fig. 2 (a)-(c)). Accuracy improvements were observed in all cases, with a particularly dramatic improvement in case 3, where accuracy increased from 12.6% to 90.7%.


Fig. 2. Accuracy enhancement with the application of OMEC across three different real cell data scenarios. (a)-(c) illustrate the conductance variations at different levels before and after the implementation of OMEC for Case 1, Case 2, and Case 3, respectively. (d) shows the AI model's accuracy prior to and following the application of OMEC.

 

The significance of our research lies in understanding and leveraging the characteristics of AI models in relation to cell variation to relax the requirements of the cells. While previous studies have proposed noise-aware training methods that involve re-training or fine-tuning AI models to account for cell variation, these approaches can be prohibitively resource-intensive and time-consuming, especially for large models. In contrast, our method directly modifies the weights by understanding the AI model's characteristics, allowing for a straightforward application without consuming extensive computing resources.

 

For more detailed information on this study, please refer to the publication.


The Publication : Link



Popular Insights

Previous Next List