FEATHER:一种支持数据重排的可重构加速器用于低成本芯片数据流切换
FEATHER: A Reconfigurable Accelerator with Data Reordering Support for Low-Cost On-Chip Dataflow Switching
AI总结:
FEATHER通过Nest空间数组和BIRRD多阶段缩减网络实现灵活的数据重排,支持无缝切换最优数据流,提升推理延迟和能效。
摘要:
ML模型推断的执行涉及不同数据流(即不同的分块、顺序、并行性和形状)。为每个工作层选择最优数据流可将延迟降低两个数量级。然而,为不同数据流重新配置硬件涉及芯片数据布局重排和数据路径重新配置,导致非平凡开销,阻碍ML加速器利用不同数据流,导致性能低下。为此,我们提出了FEATHER,一种创新的加速器,利用新颖的Nest空间数组和BIRRD多阶段缩减网络,实现灵活的数据缩减和布局重排,从而在不显著增加延迟和资源开销的情况下,实现无缝切换最优数据流。为了系统评估数据流和布局之间的性能交互,我们增强了Timeloop,一种最先进的数据流成本建模和搜索框架,使其具备布局评估能力,并将其称为Layoutloop。我们将FEATHER建模到Layoutloop中,并在边缘ZCU104 FPGA上部署FEATHER。在Layoutloop中,FEATHER相比NVDLA、SIGMA和Eyeriss等现有方案,在ResNet-50和MobiletNet-V3上实现了1.27~2.89倍的推理延迟提升和1.3~6.43倍的能效提升。在实际FPGA设备上,FEATHER的吞吐量比Xilinx DPU/Gemmini高2.65/3.91倍。值得注意的是,这些性能和能效提升仅以6%的面积增加代价,相对于固定数据流的Eyeriss-like加速器。我们的代码已发布在https://github.com/maeri-project/FEATHER。
英文摘要:
The inference of ML models composed of diverse structures, types, and sizes boils down to the execution of different dataflows (i.e. different tiling, ordering, parallelism, and shapes). Using the optimal dataflow for every layer of workload can reduce latency by up to two orders of magnitude over a suboptimal dataflow. Unfortunately, reconfiguring hardware for different dataflows involves on-chip data layout reordering and datapath reconfigurations, leading to non-trivial overhead that hinders ML accelerators from exploiting different dataflows, resulting in suboptimal performance. To address this challenge, we propose FEATHER, an innovative accelerator that leverages a novel spatial array termed Nest and a novel multi-stage reduction network called BIRRD for performing flexible data reduction with layout reordering under the hood, enabling seamless switching between optimal dataflows with negligible latency and resources overhead. For systematically evaluating the performance interaction between dataflows and layouts, we enhance Timeloop, a state-of-the-art dataflow cost modeling and search framework, with layout assessment capabilities, and term it as Layoutloop. We model FEATHER into Layoutloop and also deploy FEATHER end-to-end on the edge ZCU104 FPGA. FEATHER delivers 1.27~2.89x inference latency speedup and 1.3~6.43x energy efficiency improvement compared to various SoTAs like NVDLA, SIGMA and Eyeriss under ResNet-50 and MobiletNet-V3 in Layoutloop. On practical FPGA devices, FEATHER achieves 2.65/3.91x higher throughput than Xilinx DPU/Gemmini. Remarkably, such performance and energy efficiency enhancements come at only 6% area over a fixed-dataflow Eyeriss-like accelerator. Our code is released at https://github.com/maeri-project/FEATHER.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。