InTAR:面向DNNs中高数据量变化的任务间自动重构加速器设计
InTAR: Inter-Task Auto-Reconfigurable Accelerator Design for High Data Volume Variation in DNNs
AI总结:
针对DNNs高数据量变化导致FPGA加速器流水线停顿或频繁片外访存的问题,提出InTAR加速器设计方法,通过在电路设计前静态调度自动切换执行模式,在减少资源开销的同时实现高计算效率与能效。
摘要:
深度神经网络(DNNs)的兴起推动了计算能力和内存需求的增长。现代DNNs在不同任务间表现出高数据量变化(HDV),这给FPGA加速带来了挑战:传统加速器依赖固定的执行模式(数据流或顺序执行),可能导致流水线停顿或需要频繁的片外内存访问。为了解决这些挑战,我们提出了任务间自动重构加速器(InTAR),这是一种用于FPGA上HDV应用的新型加速器设计方法。InTAR结合了顺序执行的高计算效率与数据流执行减少片外内存开销的优势。它基于资源约束和问题规模,在电路设计前确定的静态调度自动切换执行模式。与以往的重构加速器不同,InTAR在电路设计阶段编码重构调度,允许进行特定模型的优化,仅分配必要的逻辑和互连。因此,InTAR以更少资源和低重构时间实现了高时钟频率。此外,InTAR支持HLS等高级工具以快速生成设计。我们使用InTAR实现了一组多任务HDV DNN内核。与数据流和顺序加速器相比,InTAR分别展现出 $\mathbf{1.8\times}$ 和 $\mathbf{7.1 \times}$ 的加速。此外,我们将InTAR扩展到GPT-2 medium作为更复杂的示例,它在FPGA上比SoTA加速器(Allo和DFX)快 $\mathbf{3.65 \sim 39.14\times}$,DSP效率高 $\mathbf{1.72 \sim 10.44\times}$。此外,该设计在能效上比GPU高出 $\mathbf{1.66 \sim 7.17\times}$。代码:https://github.com/OswaldHe/InTAR
英文摘要:
The rise of deep neural networks (DNNs) has driven an increased demand for computing power and memory. Modern DNNs exhibit high data volume variation (HDV) across tasks, which poses challenges for FPGA acceleration: conventional accelerators rely on fixed execution patterns (dataflow or sequential) that can lead to pipeline stalls or necessitate frequent off-chip memory accesses. To address these challenges, we introduce the Inter-Task Auto-Reconfigurable Accelerator (InTAR), a novel accelerator design methodology for HDV applications on FPGAs. InTAR combines the high computational efficiency of sequential execution with the reduced off-chip memory overhead of dataflow execution. It switches execution patterns automatically with a static schedule determined before circuit design based on resource constraints and problem sizes. Unlike previous reconfigurable accelerators, InTAR encodes reconfiguration schedules during circuit design, allowing model-specific optimizations that allocate only the necessary logic and interconnects. Thus, InTAR achieves a high clock frequency with fewer resources and low reconfiguration time. Furthermore, InTAR supports high-level tools such as HLS for fast design generation. We implement a set of multi-task HDV DNN kernels using InTAR. Compared with dataflow and sequential accelerators, InTAR exhibits $\mathbf{1.8\times}$ and $\mathbf{7.1 \times}$ speedups correspondingly. Moreover, we extend InTAR to GPT-2 medium as a more complex example, which is $\mathbf{3.65 \sim 39.14\times}$ faster and a $\mathbf{1.72 \sim 10.44\times}$ more DSP efficient than SoTA accelerators (Allo and DFX) on FPGAs. Additionally, this design demonstrates $\mathbf{1.66 \sim 7.17\times}$ better power efficiency than GPUs. Code: https://github.com/OswaldHe/InTAR
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。