Abstract
In memory computing (IMC) architectures for deep learning (DL) accelerators leverage energy-efficient and highly parallel matrix vector multiplication (MVM) operations, implemented directly in memory arrays. Such IMC designs have been explored based on CMOS as well as emerging non-volatile memory (NVM) technologies like RRAM. IMC architectures generally involve a large number of cores consisting of memory arrays, storing the trained weights of the DL model. Peripheral units like DACs and ADCs are also used for applying inputs and reading out the output values. Recently reported designs reveal that the ADCs required for reading out the MVM results, consume more than 85% of the total compute power and also dominate the area, thereby eschewing the benefits of the IMC scheme. Mitigation of imperfections in the ADCs, namely, non-linearity and variations, incur significant design overheads, due to dedicated calibration units. In this work we present peripheral aware design of IMC cores, to mitigate such over-heads. It involves incorporating the non-idealities of ADCs in the training of the DL models, along with that of the memory units. The proposed approach applies equally well to both current mode as well as charge mode MVM operations demonstrated in recent years, and can significantly simplify the design of mixed-signal IMC units.
The ADC Bottleneck in IMC
In-Memory Computing (IMC) has emerged as a leading architecture for Deep Learning (DL) accelerators by performing Matrix-Vector Multiplication (MVM) directly within memory arrays. This approach drastically reduces the energy cost associated with data movement. However, a significant bottleneck remains: the peripheral circuitry.
Recent studies indicate that Analog-to-Digital Converters (ADCs) can consume over 85% of the total compute power and dominate the silicon area. Traditionally, engineers have sought to mitigate hardware imperfections—such as non-linearity and manufacturing variations—through high-precision hardware design and complex calibration circuits. These solutions often negate the efficiency gains of the IMC paradigm. This research explores an alternative: rather than building perfect hardware, can we train neural networks to be resilient to "imperfect" but efficient ADCs?
Methodology: Peripheral-Aware Design
The researchers propose a co-design framework that bridges circuit-level non-idealities with algorithmic training. The process involves three key stages:
- Hardware Modeling: The team characterized Current-Controlled Oscillator (CCO)-based and SAR ADCs using Monte Carlo simulations to capture random manufacturing variations and non-linear transfer functions.
- ADC-Aware Training: The standard ReLU activation function is replaced during training with the actual, distorted transfer curves of the simulated ADCs. This allows the model to learn weights that compensate for hardware non-linearity.
- Variation Aware Training (VAT): To account for the unique "noise" of every individual ADC on a chip, the training process incorporates hundreds of different Monte Carlo characteristic samples. This ensures the resulting model is robust across a wide distribution of hardware instances.
Key Results and Insights
The effectiveness of this approach was evaluated using the ResNet-20 architecture on the CIFAR-10 dataset.
- Accuracy Recovery: Without hardware awareness, a 7-bit CCO-based ADC caused accuracy to drop from a 93.26% baseline to 75.13%. After ADC-aware retraining, accuracy recovered to 92.81%, nearly matching the ideal floating-point performance.
- Superiority over Calibration: Traditional hardware calibration schemes were found to be less effective and more costly. A standard "Single Point Calibration" resulted in only 88.5% accuracy while incurring a 3x area penalty compared to the VAT approach.
- Efficiency Gains: By relaxing the requirements for ADC linearity and precision, designers can utilize smaller transistors and lower supply voltages, significantly reducing the power and area footprint of the accelerator.
Conclusion
This work demonstrates that software resilience can effectively substitute for hardware precision in IMC accelerators. By incorporating peripheral non-idealities into the training loop, it is possible to deploy high-performance deep learning models on highly efficient, "approximate" hardware. Future research will look toward validating these techniques on larger-scale datasets like ImageNet and addressing dynamic variations such as temperature fluctuations and aging.
Summary updated