arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.06745cs.LGcs.ARhep-exphysics.ins-det
收藏

面向FPGA和ASIC的Hessian感知量化神经网络的端到端协同设计

End-to-end codesign of Hessian-aware quantized neural networks for FPGAs and ASICs

Fermi National Accelerator Laboratory(费米国家加速器实验室);University of California Berkeley(加州大学伯克利分校);International Computer Science Institute(国际计算机科学研究所);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);University of California San Diego(加州大学圣地亚哥分校)

Javier Campos, Zhen Dong, Javier Duarte, Amir Gholami, Michael W. Mahoney, Jovan Mitrevski, Nhan Tran

AI总结:

本文提出端到端协同设计工作流,结合HAWQ量化、QONNX中间表示和hls4ml工具流,在FPGA和ASIC上高效部署神经网络,并在LHC 40 MHz触发场景中验证了混合精度分类器。

摘要:

我们开发了一种端到端工作流,用于训练和实现协同设计的神经网络(NNs),以适配高效的现场可编程门阵列(FPGA)和专用集成电路(ASIC)硬件。我们的方法利用了神经网络的Hessian感知量化(HAWQ)、量化开放神经网络交换(QONNX)中间表示,以及hls4ml工具流,将神经网络转译为FPGA和ASIC固件。这使得非专家也能在单一开源工作流中实现高效的神经网络硬件部署,可广泛应用于科学和工业领域的实时机器学习应用。我们在一个粒子物理应用中演示了该工作流,该应用涉及必须在欧洲核子研究中心大型强子对撞机(LHC)40 MHz碰撞速率下运行的触发决策。鉴于极高的碰撞速率,所有数据处理必须在严格的面积和延迟约束下在定制ASIC和FPGA硬件上实现。基于这些约束,我们在模拟的LHC质子-质子碰撞中实现了一个优化的混合精度神经网络分类器,用于高动量粒子喷注。

英文摘要:

We develop an end-to-end workflow for the training and implementation of co-designed neural networks (NNs) for efficient field-programmable gate array (FPGA) and application-specific integrated circuit (ASIC) hardware. Our approach leverages Hessian-aware quantization (HAWQ) of NNs, the Quantized Open Neural Network Exchange (QONNX) intermediate representation, and the hls4ml tool flow for transpiling NNs into FPGA and ASIC firmware. This makes efficient NN implementations in hardware accessible to nonexperts, in a single open-sourced workflow that can be deployed for real-time machine learning applications in a wide range of scientific and industrial settings. We demonstrate the workflow in a particle physics application involving trigger decisions that must operate at the 40 MHz collision rate of the CERN Large Hadron Collider (LHC). Given the high collision rate, all data processing must be implemented on custom ASIC and FPGA hardware within a strict area and latency. Based on these constraints, we implement an optimized mixed-precision NN classifier for high-momentum particle jets in simulated LHC proton-proton collisions.

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

↑