arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.11065cs.AR
收藏

现代FPGA器件DSP原语中宽整数数据路径上的算术打包

Arithmetic Packing on Wide Integer Datapaths in DSP Primitives of Modern FPGA Devices

Friedrich-Alexander Universität Erlangen-Nürnberg(埃尔朗根-纽伦堡弗里德里希·亚历山大大学);AMD Research and Advanced Development(AMD研究与先进开发部)

Titus Bornträger, Shane Fleming, Philipp Holzinger, Dietmar Fey, Michaela Blott, Thomas B. Preußer

AI总结:

提出利用DSP内部预加法器动态打包任意位宽多输入到宽乘法器路径的方法,并设计两种架构分别优化矩阵向量乘和卷积,集成到FINN框架后相比参考实现LUT减少21%,FPS/DSP提升36%。

摘要:

深度神经网络越来越多地采用低精度量化来降低计算需求。虽然FPGA非常适合异构精度的工作负载,但其专用的数字信号处理(DSP)切片仅具有固定宽度的数据路径,低比特宽算术会显著利用不足。虽然先前的方法已经引入了将多个值打包到同一宽DSP数据路径上,但它们要么只支持特定的固定位宽,要么在DSP外部额外使用支持逻辑造成浪费。本文提出了一种高效的方法,通过利用DSP的内部预加法器,动态地将多个(无)符号输入与任意位宽打包到宽乘法器路径中。在此基础上,我们提出了两种不同的架构,一种针对矩阵向量乘法优化,另一种针对卷积优化。我们的实现已集成到AMD的FINN框架中。通过这些优化,与FINN参考相比,UltraNet模型的LUT利用率降低了21%,FPS/DSP提高了36%。

英文摘要:

Deep Neural Networks increasingly employ low-precision quantization to reduce computational requirements. While FPGAs are well suited for workloads with heterogeneous precisions, their dedicated digital signal processing (DSP) slices only feature fixed-width datapaths that are significantly underutilized by low-bitwidth arithmetic. While previous approaches have already introduced the packing of multiple values onto the same wide DSP datapath, they either only support specific fixed bitwidths or are wasteful regarding the use of additional support logic external to the DSP. This paper proposes an efficient method to dynamically pack multiple (un-)signed inputs with arbitrary bitwidths into a wide multiplier path by leveraging the DSP's internal pre-adder. Building on this, we present two distinct architectures, one optimized for matrix-vector multiplications and the other for convolutions. Our implementations are integrated into AMD's FINN framework. With these optimizations, we reduce the LUT utilization by 21% and increase the FPS/DSP by 36% for the UltraNet model compared to the FINN reference.

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

↑