arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.11022cs.AR
收藏

ASiM:对基于SRAM的模拟CiM电路推理精度的建模与分析

ASiM: Modeling and Analyzing Inference Accuracy of SRAM-Based Analog CiM Circuits

Wenlun Zhang, Shimpei Ando, Yung-Chin Chen, Kentaro Yoshioka

AI总结:

针对基于SRAM的模拟存内计算能效与精度权衡研究不足、现有仿真工具精度预测不一致的问题,本文提出ASiM仿真框架,高保真建模关键电路效应,支持多类DNN任务,并验证了数模混合执行与多数表决方案的鲁棒性提升效果。

摘要:

基于SRAM的模拟存内计算(Analog Compute-in-Memory, ACiM)在深度神经网络(DNN)处理中展现出可观的能效潜力。然而,优化能效的工作往往会牺牲精度,且由于全系统验证难度较大,这种权衡关系尚未得到充分研究。具体而言,现有仿真工具很少针对基于SRAM的ACiM,且精度预测结果不一致,凸显了建立标准化的、具备SRAM存内计算电路感知能力的评估方法的必要性。\n本文提出ASiM,这是一个用于评估基于SRAM的ACiM系统推理精度的仿真框架。ASiM能够捕捉基于SRAM的模拟存内计算系统中的关键效应,包括ADC量化、位并行编码和模拟噪声——由于这些效应在电荷域架构中的表现与其他存储技术截然不同,必须进行高保真建模。ASiM支持多种现代DNN工作负载,包括CNN以及ViT等基于Transformer的模型,还可扩展至ImageNet分类等大规模任务。\n我们的结果表明,位并行编码能够提升能效,仅带来适度的精度下降;但即使是1 LSB的模拟噪声也会显著损害推理性能,在ImageNet这类复杂任务中尤为明显。为解决这一问题,我们探索了数模混合执行方案和多数表决方案,二者均能在不抵消能效收益的前提下增强系统鲁棒性。ASiM填补了硬件设计与推理性能之间的空白,为高能效、高精度ACiM的部署提供了可落地的参考思路。

英文摘要:

SRAM-based Analog Compute-in-Memory (ACiM) demonstrates promising energy efficiency for deep neural network (DNN) processing. Nevertheless, efforts to optimize efficiency frequently compromise accuracy, and this trade-off remains insufficiently studied due to the difficulty of performing full-system validation. Specifically, existing simulation tools rarely target SRAM-based ACiM and exhibit inconsistent accuracy predictions, highlighting the need for a standardized, SRAM CiM circuit-aware evaluation methodology. This paper presents ASiM, a simulation framework for evaluating inference accuracy in SRAM-based ACiM systems. ASiM captures critical effects in SRAM based analog compute in memory systems, such as ADC quantization, bit parallel encoding, and analog noise, which must be modeled with high fidelity due to their distinct behavior in charge domain architectures compared to other memory technologies. ASiM supports a wide range of modern DNN workloads, including CNN and Transformer-based models such as ViT, and scales to large-scale tasks like ImageNet classification. Our results indicate that bit-parallel encoding can improve energy efficiency with only modest accuracy degradation; however, even 1 LSB of analog noise can significantly impair inference performance, particularly in complex tasks such as ImageNet. To address this, we explore hybrid analog-digital execution and majority voting schemes, both of which enhance robustness without negating energy savings. ASiM bridges the gap between hardware design and inference performance, offering actionable insights for energy-efficient, high-accuracy ACiM deployment.

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

↑