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

Kratos:面向具有细粒度稀疏性与混合精度的展开式深度神经网络(Unrolled DNN)的 FPGA 基准

Kratos: An FPGA Benchmark for Unrolled DNNs with Fine-Grained Sparsity and Mixed Precision

Xilai Dai, Yuzong Chen, Mohamed S. Abdelfattah

AI总结:

本文提出 FPGA 基准 Kratos,面向具有细粒度稀疏性与混合精度的展开式 DNN,通过实验揭示其高频运行与面积缩减潜力,并基于架构案例研究展示约 2 倍面积缩减,为专用可编程架构设计提供依据。

摘要:

FPGA 为加速深度神经网络(DNN)推理提供了灵活的平台,尤其适用于具有细粒度非结构化稀疏性和混合算术精度的非均匀工作负载。为了利用这些冗余,一种新兴方法是对每个 DNN 层进行部分或完全展开计算。这样,参数级和位级的无效运算可以被完全跳过,从而节省相关的面积和功耗。然而,展开式实现在扩展性方面表现不佳,并限制了可在 FPGA 上展开的 DNN 规模。这促使我们研究新的可重构架构,以在利用稀疏性和混合精度的同时提高展开式 DNN 的效率。为了实现这一目标,我们提出了 Kratos:一个聚焦的 FPGA 基准,包含具有不同稀疏程度和不同算术精度的展开式 DNN 原语。我们的分析表明,展开式 DNN 可以在非常高的频率下运行,达到 Arria 10 器件的最大频率限制。此外,我们发现通过细粒度稀疏性和低位宽可以实现显著的面积缩减。基于这些结果,我们通过一项架构案例研究对 FPGA 结构进行了定制,以适配展开式 DNN,结果表明在当前 FPGA 中使用更小的 LUT 尺寸时可实现约 2 倍的面积缩减。这为进一步探索专为稀疏和低精度展开式 DNN 而构建的新型可编程架构铺平了道路。我们的源代码和基准可在 github.com/abdelfattah-lab/Kratos-benchmark 获取。

英文摘要:

FPGAs offer a flexible platform for accelerating deep neural network (DNN) inference, particularly for non-uniform workloads featuring fine-grained unstructured sparsity and mixed arithmetic precision. To leverage these redundancies, an emerging approach involves partially or fully unrolling computations for each DNN layer. That way, parameter-level and bit-level ineffectual operations can be completely skipped, thus saving the associated area and power. Regardless, unrolled implementations scale poorly and limit the size of a DNN that can be unrolled on an FPGA. This motivates the investigation of new reconfigurable architectures to improve the efficiency of unrolled DNNs, while taking advantage of sparsity and mixed precision. To enable this, we present Kratos: a focused FPGA benchmark of unrolled DNN primitives with varying levels of sparsity and different arithmetic precisions. Our analysis reveals that unrolled DNNs can operate at very high frequencies, reaching the maximum frequency limit of an Arria 10 device. Additionally, we found that substantial area reductions can be achieved through fine-grained sparsity and low bit-width. We build on those results to tailor the FPGA fabric for unrolled DNNs through an architectural case study demonstrating $\sim$2$\times$ area reduction when using smaller LUT sizes within current FPGAs. This paves the way for further exploration of new programmable architectures that are purpose-built for sparse and low-precision unrolled DNNs. Our source code and benchmark are available on github.com/abdelfattah-lab/Kratos-benchmark.

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

↑