Single-Step Hardware-Aware Neural Network Quantization With Mixed Precision

IF 4.9 2区 计算机科学 Q2 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE
IEEE Transactions on Computers Pub Date : 2026-03-01 Epub Date: 2026-02-20 DOI:10.1109/TC.2026.3666546
Jie Hu;Zhihan Zhang;Zhan Li;Qunkang Meng;Xingyu Shi;Qijun Huang;Hao Wang;Sheng Chang
{"title":"Single-Step Hardware-Aware Neural Network Quantization With Mixed Precision","authors":"Jie Hu;Zhihan Zhang;Zhan Li;Qunkang Meng;Xingyu Shi;Qijun Huang;Hao Wang;Sheng Chang","doi":"10.1109/TC.2026.3666546","DOIUrl":null,"url":null,"abstract":"Quantization is a neural network compression technique that effectively improves the deployment performance on inference hardware. Fixed-point quantization methods use the same bit-width for all layers in the network, which leads to difficulties in balancing compression rate and accuracy loss. Therefore, mixed-precision quantization has recently been proposed. The major challenge of the mixed-precision quantization is to select the quantization bit-widths of each layer in network to simultaneously meet the requirements of minimizing accuracy loss and hardware resource consumption. In this paper, we present a Single-Step Hardware-Aware Quantization (SHQ) method. It can calculate the resource consumption of hardware such as Field Programmable Gate Arrays (FPGAs) before actual deployment and find effective quantization schemes by just single step, different from common software-hardware two-step approaches with large workload and time-consuming. Genetic algorithm is combined with SHQ to search quantization schemes with low hardware resource usage and high accuracy. In addition, the correlation between hardware resource cost and qualitative indicators of proxy signal has been analyzed to bring computer-aided design insights of neural network accelerators. Experiments of full-pipeline accelerator deployment on FPGAs platforms show that our approach saves 39% of Digital Signal Processors (DSP) and 59% of Block Random Access Memory (BRAM) usage on MobileNet compared to full 8-bit quantization, while the accuracy drops by only 0.56%. The source code about our method can be found at this link: <uri>https://github.com/hujie369/SHQ</uri>.","PeriodicalId":13087,"journal":{"name":"IEEE Transactions on Computers","volume":"75 5","pages":"1809-1819"},"PeriodicalIF":4.9000,"publicationDate":"2026-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Computers","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/11402920/","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/2/20 0:00:00","PubModel":"Epub","JCR":"Q2","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0

Abstract

Quantization is a neural network compression technique that effectively improves the deployment performance on inference hardware. Fixed-point quantization methods use the same bit-width for all layers in the network, which leads to difficulties in balancing compression rate and accuracy loss. Therefore, mixed-precision quantization has recently been proposed. The major challenge of the mixed-precision quantization is to select the quantization bit-widths of each layer in network to simultaneously meet the requirements of minimizing accuracy loss and hardware resource consumption. In this paper, we present a Single-Step Hardware-Aware Quantization (SHQ) method. It can calculate the resource consumption of hardware such as Field Programmable Gate Arrays (FPGAs) before actual deployment and find effective quantization schemes by just single step, different from common software-hardware two-step approaches with large workload and time-consuming. Genetic algorithm is combined with SHQ to search quantization schemes with low hardware resource usage and high accuracy. In addition, the correlation between hardware resource cost and qualitative indicators of proxy signal has been analyzed to bring computer-aided design insights of neural network accelerators. Experiments of full-pipeline accelerator deployment on FPGAs platforms show that our approach saves 39% of Digital Signal Processors (DSP) and 59% of Block Random Access Memory (BRAM) usage on MobileNet compared to full 8-bit quantization, while the accuracy drops by only 0.56%. The source code about our method can be found at this link: https://github.com/hujie369/SHQ.
混合精度单步硬件感知神经网络量化
量化是一种神经网络压缩技术,可以有效地提高推理硬件上的部署性能。定点量化方法在网络各层使用相同的位宽,导致难以平衡压缩率和精度损失。因此,混合精度量化最近被提出。混合精度量化的主要挑战是选择网络中各层的量化比特宽度,同时满足最小精度损失和硬件资源消耗的要求。本文提出了一种单步硬件感知量化(SHQ)方法。它可以在实际部署前计算出现场可编程门阵列(fpga)等硬件的资源消耗,并通过一步就能找到有效的量化方案,而不像一般的软件-硬件两步法工作量大、耗时长。遗传算法与SHQ算法相结合,搜索出硬件资源占用少、精度高的量化方案。此外,分析了硬件资源成本与代理信号的定性指标之间的相关性,为神经网络加速器的计算机辅助设计提供了思路。在fpga平台上的全流水线加速器部署实验表明,与全8位量化相比,我们的方法在MobileNet上节省了39%的数字信号处理器(DSP)和59%的块随机存取存储器(BRAM)的使用,而精度仅下降了0.56%。关于我们的方法的源代码可以在这个链接中找到:https://github.com/hujie369/SHQ。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Computers
IEEE Transactions on Computers 工程技术-工程:电子与电气
CiteScore
6.60
自引率
5.40%
发文量
199
审稿时长
6.0 months
期刊介绍: The IEEE Transactions on Computers is a monthly publication with a wide distribution to researchers, developers, technical managers, and educators in the computer field. It publishes papers on research in areas of current interest to the readers. These areas include, but are not limited to, the following: a) computer organizations and architectures; b) operating systems, software systems, and communication protocols; c) real-time systems and embedded systems; d) digital devices, computer components, and interconnection networks; e) specification, design, prototyping, and testing methods and tools; f) performance, fault tolerance, reliability, security, and testability; g) case studies and experimental and theoretical evaluations; and h) new and important applications and trends.
×
引用
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学术官方微信
小红书