arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.08043cs.LGcs.AR

PolyLUT:基于硬件感知结构化剪枝的超低延迟多项式推理

PolyLUT: Ultra-low Latency Polynomial Inference with Hardware-Aware Structured Pruning

Imperial College London(伦敦帝国学院)

Marta Andronic, Jiawen Li, George A. Constantinides

AI总结:

该研究提出面向FPGA的PolyLUT方法,以多元多项式为构建模块结合硬件感知结构化剪枝,解决LUT规模随输入指数增长问题,在三类任务中实现更低延迟与面积开销。

摘要:

标准深度神经网络推理涉及交错线性映射与非线性激活函数的计算。此前针对超低延迟实现的研究已将这些操作硬编码在FPGA查找表(LUTs)中,但FPGA LUT可实现的函数种类远不止于此。本文提出一种面向FPGA部署的DNN训练新方法,以多元多项式为基本构建模块。该方法利用软逻辑提供的灵活性,将多项式求值隐藏在LUT内部,开销极低。通过采用多项式构建模块,我们使用比线性函数少得多的软逻辑层即可达到相同精度,从而显著改善延迟与面积开销。基于LUT的实现还面临一项重大挑战:LUT规模随输入数量呈指数增长。此前的研究依赖先验固定稀疏性,结果严重依赖种子选择。为解决这一问题,我们提出一种结构化剪枝策略,采用定制的硬件感知组正则化器,引导形成能让每个神经元输入数量较少的特定稀疏模式。我们在三项任务上验证了PolyLUT的有效性:网络入侵检测、欧洲核子研究中心(CERN)大型强子对撞机的喷注识别,以及MNIST任务。

英文摘要:

Standard deep neural network inference involves the computation of interleaved linear maps and nonlinear activation functions. Prior work for ultra-low latency implementations has hardcoded these operations inside FPGA lookup tables (LUTs). However, FPGA LUTs can implement a much greater variety of functions. In this paper, we propose a novel approach to training DNNs for FPGA deployment using multivariate polynomials as the basic building block. Our method takes advantage of the flexibility offered by the soft logic, hiding the polynomial evaluation inside the LUTs with minimal overhead. By using polynomial building blocks, we achieve the same accuracy using considerably fewer layers of soft logic than by using linear functions, leading to significant latency and area improvements. LUT-based implementations also face a significant challenge: the LUT size grows exponentially with the number of inputs. Prior work relies on a priori fixed sparsity, with results heavily dependent on seed selection. To address this, we propose a structured pruning strategy using a bespoke hardware-aware group regularizer that encourages a particular sparsity pattern that leads to a small number of inputs per neuron. We demonstrate the effectiveness of PolyLUT on three tasks: network intrusion detection, jet identification at the CERN Large Hadron Collider, and MNIST.

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

↑