张量神经网络硬件加速器的全面设计空间探索
Beyond MACs: Deployment-Constrained Design Space Exploration for Tensorized Neural Networks
AI总结:
本文提出了一种联合探索框架,通过统一设计空间优化张量神经网络的收缩路径、硬件架构和数据流映射,以提升边缘平台上的部署效率。
摘要:
高阶张量分解已被广泛采用以获得适用于边缘部署的紧凑深度神经网络。然而,现有研究主要关注其算法优势,如准确率和压缩比,而忽视了硬件部署效率。这种缺乏硬件意识的设计往往掩盖了张量化模型的潜在延迟和能耗收益。尽管一些工作试图通过优化乘法累加操作的收缩序列来降低计算成本,但它们通常忽略了底层硬件特性,导致实际性能不佳。我们观察到,收缩路径、硬件架构和数据流映射紧密耦合,必须在统一的设计空间内联合优化以最大化在真实设备上的部署效率。为此,我们提出了一种联合探索框架,将这些维度统一在一个设计空间中,以高效地在边缘平台上训练和推断张量化神经网络。该框架制定了一个以延迟为导向的搜索目标,并通过在统一设计空间内进行全局延迟驱动的探索来解决该目标,以实现端到端的模型效率。优化后的配置在可配置FPGA内核上实现,相比密集基线,推断和训练延迟分别降低了4倍和3.85倍。
英文摘要:
Tensor-train (TT) compression reduces neural-network parameters, but the latency of a tensorized layer is set by its contraction order and its mapping onto hardware: a contraction path with fewer multiply-accumulate operations (MACs) is not necessarily faster on a systolic array. We present a deployment-constrained, latency-guided design space exploration (DSE) framework for fixed-rank tensorized neural networks (TNNs) under a fixed processing-element (PE) budget. Using MAC-guided path pruning, it evaluates feasible combinations of contraction paths, three PE-array partitions, and input-, output-, and weight-stationary dataflows. By minimizing the sum of inference and training latency estimates, it selects a single physical PE partition shared across layers and both modes, while allowing layer- and mode-specific paths and dataflows. On ResNet-18 and ViT-Ti/4, 25%-50% of the layers select a path other than the minimum-MAC one, the best dataflow varies across layers and models, and on a representative ViT layer the latency-selected candidate reduces simulated latency by 23.5% relative to the minimum-MAC candidate. Deployed on a Xilinx VU9P FPGA accelerator that supports both inference and training, the complete TT+INT8 system achieves 3.28x-4.00x inference and 3.42x-3.85x training speedups over dense implementations with the same PE budget.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。