Column-wise Quantization of Weights and Partial Sums for Accurate and Efficient Compute-In-Memory Accelerators

Jiyoon Kim, Kang Eun Jeon, Yulhwa Kim, Jong Hwan Ko

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.

Comparison of the proposed method with prior works in CIM quantization.

Methods

To resolve the granularity mismatch, the authors propose aligning the quantization of both weights and partial sums at the column-wise level.

Comparison of weight and partial-sum quantization granularities across different CIM schemes.

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

BibTeX
@inproceedings{kim2025column,
  author = {Jiyoon Kim and Kang Eun Jeon and Yulhwa Kim and Jong Hwan Ko},
  title = {{Column-wise Quantization of Weights and Partial Sums for Accurate and Efficient Compute-In-Memory Accelerators}},
  booktitle = {DATE},
  year = {2025},
  doi = {10.23919/date64628.2025.10993018},
}
Figure