arXiv:2502.07842cs.ARcs.AI2025-02被引 3

通过列级量化提升存内计算加速器的精度与效率

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

  • 列级对齐权值与部分和的量化粒度,减少误差
  • 在CIFAR-10/100和ImageNet上分别提升0.99%~2.69%准确率
  • 适合追求高精度且低功耗的存内计算硬件设计者

存内计算(CIM)是实现深度神经网络的有效方法,但随模拟-数字转换器(ADC)精度提高,其开销显著增加。低精度ADC虽可降低开销,却引入部分和量化误差,损害精度。同时,受单元限制及高比特权值需多单元支持,低比特权值约束带来额外挑战。尽管细粒度部分和量化已用于降低ADC分辨率,权值粒度对整体部分和量化精度的限制仍未被充分研究。本文提出在列级对齐权值与部分和的量化粒度,提升精度的同时保持去量化开销,简化训练流程,通过独立列尺度因子增强对存储单元变异的鲁棒性。还构建了面向CIM的开源卷积框架,包含新型分块方法和组卷积,高效处理细粒度权值与部分和。在ResNet-20(CIFAR-10、CIFAR-100)和ResNet-18(ImageNet)上的实验表明,相比现有最优工作,准确率分别提升0.99%、2.69%和1.01%。变异分析显示方法对存储单元变化具有强鲁棒性。结果验证了该量化方案在提升精度与鲁棒性的同时,保持了硬件效率。代码公开于https://github.com/jiyoonkm/ColumnQuant。

原文摘要 · Abstract (English)

Compute-in-memory (CIM) is an efficient method for implementing deep neural networks (DNNs) but suffers from substantial overhead from analog-to-digital converters (ADCs), especially as ADC precision increases. Low-precision ADCs can reduce this overhead but introduce partial-sum quantization errors degrading accuracy. Additionally, low-bit weight constraints, imposed by cell limitations and the need for multiple cells for higher-bit weights, present further challenges. While fine-grained partial-sum quantization has been studied to lower ADC resolution effectively, weight granularity, which limits overall partial-sum quantized accuracy, remains underexplored. This work addresses these challenges by aligning weight and partial-sum quantization granularities at the column-wise level. Our method improves accuracy while maintaining dequantization overhead, simplifies training by removing two-stage processes, and ensures robustness to memory cell variations via independent column-wise scale factors. We also propose an open-source CIM-oriented convolution framework to handle fine-grained weights and partial-sums efficiently, incorporating a novel tiling method and group convolution. Experimental results on ResNet-20 (CIFAR-10, CIFAR-100) and ResNet-18 (ImageNet) show accuracy improvements of 0.99%, 2.69%, and 1.01%, respectively, compared to the best-performing related works. Additionally, variation analysis reveals the robustness of our method against memory cell variations. These findings highlight the effectiveness of our quantization scheme in enhancing accuracy and robustness while maintaining hardware efficiency in CIM-based DNN implementations. Our code is available at https://github.com/jiyoonkm/ColumnQuant.

存内计算量化硬件加速深度学习

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。