BeaCIM: A Digital Compute-in-Memory DNN Processor With Bi-Directional Exponent Alignment for FP8 Training

IF 4.9 2区 工程技术 Q2 ENGINEERING, ELECTRICAL & ELECTRONIC
Yang Zhou;Yang Wang;Wenxin Yin;Yazheng Jiang;Jingchuan Wei;Yubin Qin;Yang Hu;Shaojun Wei;Shouyi Yin
{"title":"BeaCIM: A Digital Compute-in-Memory DNN Processor With Bi-Directional Exponent Alignment for FP8 Training","authors":"Yang Zhou;Yang Wang;Wenxin Yin;Yazheng Jiang;Jingchuan Wei;Yubin Qin;Yang Hu;Shaojun Wei;Shouyi Yin","doi":"10.1109/TCSII.2025.3541101","DOIUrl":null,"url":null,"abstract":"Previous digital Compute-In-Memory (DCIM) exhibits limitations in Deep Neural Network (DNN) training with FP8, which is playing an increasingly important role in model training. Most of the previous DCIM purely align exponents to the maximum one when computing floating-point data. This method struggles to balance accuracy and energy efficiency when using FP8. In this brief, we propose BeaCIM, a DCIM processor with bi-directional exponent alignment. There are several contributions. First, we propose a new exponent alignment mechanism, which can dynamically adjust the shared exponent <inline-formula> <tex-math>$(E^{*})$ </tex-math></inline-formula> towards the numerical distribution center of exponents. Second, we use the Shift-on-Product (SOP) method to address the limitation of data bitwidth, and present <inline-formula> <tex-math>$E^{*}$ </tex-math></inline-formula> calculator based on the Ordinary Least Squares (OLS). Finally, we performed RTL-level circuit implementation and evaluated BeaCIM using various datasets and models. Our experiments show the following results: <xref>(1)</xref> Compared with the standard hybrid FP8 training, our bi-directional exponent alignment FP8 training exhibits an average top-1 accuracy drop less than 0.75% across different models and datasets. <xref>(2)</xref> BeaCIM can achieve an energy efficiency of 31.5 TFLOPS/W at FP8, which is 2.6-<inline-formula> <tex-math>$19.3\\times $ </tex-math></inline-formula> better than state-of-the-art works.","PeriodicalId":13101,"journal":{"name":"IEEE Transactions on Circuits and Systems II: Express Briefs","volume":"72 4","pages":"608-612"},"PeriodicalIF":4.9000,"publicationDate":"2025-02-11","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Circuits and Systems II: Express Briefs","FirstCategoryId":"5","ListUrlMain":"https://ieeexplore.ieee.org/document/10879560/","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"ENGINEERING, ELECTRICAL & ELECTRONIC","Score":null,"Total":0}
引用次数: 0

Abstract

Previous digital Compute-In-Memory (DCIM) exhibits limitations in Deep Neural Network (DNN) training with FP8, which is playing an increasingly important role in model training. Most of the previous DCIM purely align exponents to the maximum one when computing floating-point data. This method struggles to balance accuracy and energy efficiency when using FP8. In this brief, we propose BeaCIM, a DCIM processor with bi-directional exponent alignment. There are several contributions. First, we propose a new exponent alignment mechanism, which can dynamically adjust the shared exponent $(E^{*})$ towards the numerical distribution center of exponents. Second, we use the Shift-on-Product (SOP) method to address the limitation of data bitwidth, and present $E^{*}$ calculator based on the Ordinary Least Squares (OLS). Finally, we performed RTL-level circuit implementation and evaluated BeaCIM using various datasets and models. Our experiments show the following results: (1) Compared with the standard hybrid FP8 training, our bi-directional exponent alignment FP8 training exhibits an average top-1 accuracy drop less than 0.75% across different models and datasets. (2) BeaCIM can achieve an energy efficiency of 31.5 TFLOPS/W at FP8, which is 2.6- $19.3\times $ better than state-of-the-art works.
用于FP8训练的双向指数对齐的数字内存计算DNN处理器
以往的数字内存计算(DCIM)在FP8深度神经网络(DNN)训练中表现出局限性,而深度神经网络在模型训练中发挥着越来越重要的作用。以前的大多数DCIM在计算浮点数据时纯粹将指数对齐到最大值。当使用FP8时,这种方法很难平衡精度和能源效率。在本文中,我们提出了一个双向指数对齐的DCIM处理器BeaCIM。有几个贡献。首先,我们提出了一种新的指数对齐机制,该机制可以动态地将共享指数$(E^{*})$调整到指数的数值分布中心。其次,我们使用乘积偏移(SOP)方法来解决数据位宽的限制,并提出了基于普通最小二乘(OLS)的$E^{*}$计算器。最后,我们进行了rtl级电路实现,并使用各种数据集和模型评估了BeaCIM。实验结果表明:(1)与标准混合FP8训练相比,我们的双向指数对齐FP8训练在不同模型和数据集上的平均前1准确率下降小于0.75%。(2)在FP8下,BeaCIM可以实现31.5 TFLOPS/W的能源效率,比最先进的产品高2.6- 19.3倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Circuits and Systems II: Express Briefs
IEEE Transactions on Circuits and Systems II: Express Briefs 工程技术-工程:电子与电气
CiteScore
7.90
自引率
20.50%
发文量
883
审稿时长
3.0 months
期刊介绍: TCAS II publishes brief papers in the field specified by the theory, analysis, design, and practical implementations of circuits, and the application of circuit techniques to systems and to signal processing. Included is the whole spectrum from basic scientific theory to industrial applications. The field of interest covered includes: Circuits: Analog, Digital and Mixed Signal Circuits and Systems Nonlinear Circuits and Systems, Integrated Sensors, MEMS and Systems on Chip, Nanoscale Circuits and Systems, Optoelectronic Circuits and Systems, Power Electronics and Systems Software for Analog-and-Logic Circuits and Systems Control aspects of Circuits and Systems.
×
引用
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学术文献互助群
群 号:604180095
Book学术官方微信