A Two-stage Training Framework for Hardware Constraints of Computing-in-Memory Architecture

Hao-Wen Kuo, Rui-Hsuan Wang, Zhaofang Li, Shih-Ting Lin, Meng-Fan Chang, K. Tang
{"title":"A Two-stage Training Framework for Hardware Constraints of Computing-in-Memory Architecture","authors":"Hao-Wen Kuo, Rui-Hsuan Wang, Zhaofang Li, Shih-Ting Lin, Meng-Fan Chang, K. Tang","doi":"10.1109/APCCAS55924.2022.10090308","DOIUrl":null,"url":null,"abstract":"Analog computing-in-memory (CIM) involves high-density interleaved memory arrays beneficial to deep neural networks involving several parallel computations. Furthermore, it displays considerable potential in achieving high energy efficiency in artificial intelligence (AI) accelerators. This work presents a two-stage training framework that considers hardware architecture constraints and analyzes the nonidealities in CIM devices. (1) We designed a CIM convolution algorithm that can be commonly used in various neural networks. (2) In addition, the training framework can quantize weights and activations to their target bit widths and inject noise during the training process to improve the inference robustness of a neural network. In ResNet, our results in Fig. 7 revealed that our framework could improve 2.26% and 8.95% top-1 accuracy on CIFAR-10 and CIFAR-100 without injecting noise. (3) An MVM quantizer offers flexible quantization intervals to the output distribution of each layer for retaining crucial information and enhancing accuracy after the quantization process. The experimental results in Fig. 8 revealed that the accuracy of the ResNet and VGG models increased by 4.48% and 5.46% on CIFAR-10 with traditional linear quantization, respectively. The results of this study demonstrate that the proposed framework is practical and valuable for the fabrication and design of CIM chip systems.","PeriodicalId":243739,"journal":{"name":"2022 IEEE Asia Pacific Conference on Circuits and Systems (APCCAS)","volume":"138 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE Asia Pacific Conference on Circuits and Systems (APCCAS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/APCCAS55924.2022.10090308","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Analog computing-in-memory (CIM) involves high-density interleaved memory arrays beneficial to deep neural networks involving several parallel computations. Furthermore, it displays considerable potential in achieving high energy efficiency in artificial intelligence (AI) accelerators. This work presents a two-stage training framework that considers hardware architecture constraints and analyzes the nonidealities in CIM devices. (1) We designed a CIM convolution algorithm that can be commonly used in various neural networks. (2) In addition, the training framework can quantize weights and activations to their target bit widths and inject noise during the training process to improve the inference robustness of a neural network. In ResNet, our results in Fig. 7 revealed that our framework could improve 2.26% and 8.95% top-1 accuracy on CIFAR-10 and CIFAR-100 without injecting noise. (3) An MVM quantizer offers flexible quantization intervals to the output distribution of each layer for retaining crucial information and enhancing accuracy after the quantization process. The experimental results in Fig. 8 revealed that the accuracy of the ResNet and VGG models increased by 4.48% and 5.46% on CIFAR-10 with traditional linear quantization, respectively. The results of this study demonstrate that the proposed framework is practical and valuable for the fabrication and design of CIM chip systems.
内存计算体系结构硬件约束的两阶段训练框架
内存模拟计算(CIM)是一种高密度交错存储阵列,有利于涉及多个并行计算的深度神经网络。此外,它在实现人工智能(AI)加速器的高能效方面显示出相当大的潜力。这项工作提出了一个考虑硬件架构约束的两阶段训练框架,并分析了CIM设备中的非理想性。(1)设计了一种通用于各种神经网络的CIM卷积算法。(2)此外,训练框架可以将权重和激活量化到目标比特宽度,并在训练过程中注入噪声,以提高神经网络的推理鲁棒性。在ResNet中,我们的结果如图7所示,我们的框架在不注入噪声的情况下可以在CIFAR-10和CIFAR-100上分别提高2.26%和8.95%的top-1准确率。(3) MVM量化器为每层的输出分布提供了灵活的量化间隔,以保留关键信息并提高量化处理后的精度。图8的实验结果显示,采用传统的线性量化方法,ResNet和VGG模型在CIFAR-10上的准确率分别提高了4.48%和5.46%。研究结果表明,所提出的框架对于CIM芯片系统的制造和设计具有实用价值。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信