arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.04535cs.ARcs.LGhep-ex
收藏

da4ml:FPGA上的实时神经网络分布式算术

da4ml: Distributed Arithmetic for Real-time Neural Networks on FPGAs

California Institute of Technology(加利福尼亚技术研究所);Imperial College London(伦敦帝国理工学院);CERN(欧洲核子研究中心);Institute of Physics Belgrade(贝尔格莱德物理研究所)

Chang Sun, Zhiqiang Que, Vladimir Loncar, Wayne Luk, Maria Spiropulu

AI总结:

本文提出一种高效算法,用于在FPGA上实现常数矩阵向量乘法,同时优化面积和延迟,减少芯片资源并降低延迟,使之前不可行的网络得以实现。

摘要:

对于需要微秒级延迟的神经网络,如用于欧洲核子研究中心大型强子对撞机的网络,通常完全展开并流水线化部署在FPGA上。部署此类神经网络的瓶颈是面积利用率,这直接与所需的常数矩阵向量乘法(CMVM)操作有关。本文提出了一种高效的算法,用于在FPGA上使用分布式算术实现CMVM操作,同时优化面积消耗和延迟。该算法在资源减少方面与最先进的算法相似,但计算速度显著更快。所提出的算法是开源的,并整合到hls4ml库中,这是一个用于在FPGA上运行实时神经网络推断的免费开源库。我们展示了所提出算法可以将芯片资源减少高达三分之一,同时减少延迟,使之前不可行的网络得以实现。

英文摘要:

Neural networks with a latency requirement on the order of microseconds, like the ones used at the CERN Large Hadron Collider, are typically deployed on FPGAs fully unrolled and pipelined. A bottleneck for the deployment of such neural networks is area utilization, which is directly related to the required constant matrix-vector multiplication (CMVM) operations. In this work, we propose an efficient algorithm for implementing CMVM operations with distributed arithmetic on FPGAs that simultaneously optimizes for area consumption and latency. The algorithm achieves resource reduction similar to state-of-the-art algorithms while being significantly faster to compute. The proposed algorithm is open-sourced and integrated into the \texttt{hls4ml} library, a free and open-source library for running real-time neural network inference on FPGAs. We show that the proposed algorithm can reduce on-chip resources by up to a third for realistic, highly quantized neural networks while simultaneously reducing latency, enabling the implementation of previously infeasible networks.

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

↑