arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.06724cs.ARcs.LG
收藏

DS-CIM:数字随机计算-内存通过样本区域重映射实现准确的或-累积用于边缘AI模型

DS-CIM: Digital Stochastic Computing-In-Memory Featuring Accurate OR-Accumulation via Sample Region Remapping for Edge AI Models

The Hong Kong University of Science and Technology(香港科学与技术大学);South China University of Technology(华南理工大学);MoE Engineering Research Center of Design and Technology Co-Optimization of IC(MoE设计与技术协同优化集成电路工程研究中心);Westlake University(西湖大学)

Kunming Shao, Liang Zhao, Jiangnan Yu, Zhipeng Liao, Xiaomeng Wang, Yi Zou, Tim Kwang-Ting Cheng, Chi-Ying Tsui

AI总结:

DS-CIM通过样本区域重映射实现高精度和高效率的边缘AI模型计算,适用于INT8 ResNet18和FP8 LLaMA-7B模型。

摘要:

随机计算(SC)提供硬件简单性,但存在低吞吐量的问题,而高吞吐量的数字计算-内存(DCIM)则受限于矩阵-向量乘法(MVM)中昂贵的加法器逻辑。为解决这一权衡,本文提出了一种数字随机CIM(DS-CIM)架构,实现了高精度和高效率。我们通过修改数据表示,在紧凑的、无符号的或基电路中实现带符号的乘法-累积(MAC)。通过复制这个低成本电路64次,仅增加1倍的面积即可提升吞吐量。我们的核心策略,一个具有2D分区的共享伪随机数生成器(PRNG),能够实现单周期互斥激活,以消除或门碰撞。我们还通过随机过程分析和数据重映射解决了1s饱和问题,显著提高了精度和对输入稀疏性的抗性。我们的高精度DS-CIM1变种在CIFAR-10上实现INT8 ResNet18的94.45%精度,其均方根误差(RMSE)仅为0.74%。同时,我们的高效率DS-CIM2变种实现了3566. bona TOPS/W的能效和363.7 TOPS/mm²的面积效率,同时保持低RMSE为3.81%。通过在INT8 ResNet50上ImageNet和FP8 LLaMA-7B模型上的实验,进一步展示了DS-CIM在更大模型中的能力。

英文摘要:

Stochastic computing (SC) offers hardware simplicity but suffers from low throughput, while high-throughput Digital Computing-in-Memory (DCIM) is bottlenecked by costly adder logic for matrix-vector multiplication (MVM). To address this trade-off, this paper introduces a digital stochastic CIM (DS-CIM) architecture that achieves both high accuracy and efficiency. We implement signed multiply-accumulation (MAC) in a compact, unsigned OR-based circuit by modifying the data representation. Throughput is enhanced by replicating this low-cost circuit 64 times with only a 1x area increase. Our core strategy, a shared Pseudo Random Number Generator (PRNG) with 2D partitioning, enables single-cycle mutually exclusive activation to eliminate OR-gate collisions. We also resolve the 1s saturation issue via stochastic process analysis and data remapping, significantly improving accuracy and resilience to input sparsity. Our high-accuracy DS-CIM1 variant achieves 94.45% accuracy for INT8 ResNet18 on CIFAR-10 with a root-mean-squared error (RMSE) of just 0.74%. Meanwhile, our high-efficiency DS-CIM2 variant attains an energy efficiency of 3566.1 TOPS/W and an area efficiency of 363.7 TOPS/mm^2, while maintaining a low RMSE of 3.81%. The DS-CIM capability with larger models is further demonstrated through experiments with INT8 ResNet50 on ImageNet and the FP8 LLaMA-7B model.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑