Abstract
Compute-in-memory (CIM) accelerators offer significant energy efficiency for deep learning by performing computations within memory arrays. However, the overhead of high-precision analog-to-digital converters (ADCs) remains a critical bottleneck. This paper proposes a novel quantization strategy that aligns both weight and partial-sum granularities at the column-wise level. By utilizing learnable scale factors and a one-stage quantization-aware training (QAT) framework, the proposed method achieves state-of-the-art accuracy on image classification benchmarks without increasing hardware complexity. Furthermore, the approach demonstrates enhanced robustness to physical memory cell variations.
Introduction
Compute-in-Memory (CIM) architectures are highly efficient for Deep Neural Networks (DNNs) because they perform matrix multiplications directly within the memory array, eliminating the energy-heavy process of shuffling data back and forth to a CPU/GPU. However, the analog outputs (partial sums) of these operations must be converted back to digital signals using Analog-to-Digital Converters (ADCs).
High-precision ADCs consume a massive amount of area and energy. To mitigate this, low-precision ADCs are used, requiring quantization of partial sums—a process that inherently degrades model accuracy. Previous research attempted to recover accuracy by using fine-grained quantization for partial sums (e.g., per-column scale factors) while keeping weights quantized at a coarse, layer-wise level. This mismatch in granularity limits achievable accuracy, necessitates complex two-stage training pipelines, and leaves systems vulnerable to physical variations in memory cells.
Methods
To resolve the granularity mismatch, the authors propose aligning the quantization of both weights and partial sums at the column-wise level.
Column-wise Quantization
Instead of sharing a single scale factor across an entire layer, each column in the CIM array is assigned its own learnable scale factor for both weights and partial sums. This optimization is performed using Learned Step Size Quantization (LSQ). By assigning independent scale factors to each column, the network naturally learns to absorb and compensate for device-level variations, making the resulting model much more robust for real-world silicon.
Zero Overhead Dequantization
The authors demonstrate that if partial sums are already quantized column-wise, applying column-wise quantization to weights does not increase the number of dequantization multiplications required per layer. This allows for finer granularity without additional hardware overhead.
Custom Convolution Framework
The authors developed an open-source CIM-oriented convolution framework. It employs a novel array tiling method—transforming linear im2col operations into convolutions—and group convolutions to eliminate sequential array-indexing delays and accurately simulate bit-scalable CIM hardware.
One-Stage QAT
Aligning granularities enables the model to undergo Quantization-Aware Training (QAT) from scratch in a single stage. This is more efficient than the two-stage processes required by mismatched methods, where weights often overfit to full-precision partial sums in the first stage. Aligning them allows the network to adapt to quantization errors holistically.
Key Results
The framework was evaluated on standard image classification benchmarks: CIFAR-10, CIFAR-100 (using ResNet-20), and ImageNet (using ResNet-18).
- Accuracy Gains: The proposed method achieved state-of-the-art accuracy. Compared to prior works, top-1 accuracy improved by +0.99% on CIFAR-10 (90.21%), +2.69% on CIFAR-100 (72.09%), and +1.01% on ImageNet (68.51%).
- Faster Training: Shifting to one-stage QAT reduced training time by 34.27% while improving accuracy.
- Variation Tolerance: The column-wise aligned model maintained significantly higher inference accuracy under simulated log-normal noise (modeling physical memory cell variations) compared to baseline methods.
Conclusion
This work demonstrates that aligning weight and partial-sum quantization at the column-wise level provides "free" accuracy gains and improved hardware robustness for CIM accelerators. While currently focused on convolutional neural networks for image classification, future work could explore the application of this scheme to Transformer architectures and validation on physical CIM silicon.
Summary updated