TENET:一个基于数据中心表示的张量数据流建模框架
TENET: A Framework for Modeling Tensor Dataflow Based on Relation-centric Notation
摘要:
加速空间架构上的张量应用提供了高性能和高能效,但需要准确的性能模型来评估各种可扩展的替代方案。这种建模依赖于张量的符号和性能指标的制定。最近提出的以计算为中心和以数据为中心的符号使用命令式指令来描述XML。然而,这两种符号表达能力较差,因此导致优化机会有限和性能模型不准确。在本文中,我们提出了一个框架TENET模型的张量应用的硬件流。我们首先介绍一个以关系为中心的符号,它正式描述了张量计算的硬件流程。以关系为中心的表示法使用关系以统一的方式指定了硬件逻辑、PE互连和数据分配。通过使用更复杂的仿射变换,以关系为中心的符号比以计算为中心和以数据为中心的符号更具表达力。以关系为中心的表示法的另一个优点是它固有地支持准确的度量估计,包括数据重用、带宽、延迟和能量。TENET通过使用整数集结构和运算符计算关系来计算每个性能度量。总体而言,TENET通过识别更复杂的硬件故障,与最先进的以数据为中心的表示法相比,CONV和GEMM内核的延迟分别减少了37.4%和51.4%。
英文摘要:
Accelerating tensor applications on spatial architectures provides high performance and energy-efficiency, but requires accurate performance models for evaluating various dataflow alternatives. Such modeling relies on the notation of tensor dataflow and the formulation of performance metrics. Recent proposed compute-centric and data-centric notations describe the dataflow using imperative directives. However, these two notations are less expressive and thus lead to limited optimization opportunities and inaccurate performance models. In this paper, we propose a framework TENET that models hardware dataflow of tensor applications. We start by introducing a relation-centric notation, which formally describes the hardware dataflow for tensor computation. The relation-centric notation specifies the hardware dataflow, PE interconnection, and data assignment in a uniform manner using relations. The relation-centric notation is more expressive than the compute-centric and data-centric notations by using more sophisticated affine transformations. Another advantage of relation-centric notation is that it inherently supports accurate metrics estimation, including data reuse, bandwidth, latency, and energy. TENET computes each performance metric by counting the relations using integer set structures and operators. Overall, TENET achieves 37.4\% and 51.4\% latency reduction for CONV and GEMM kernels compared with the state-of-the-art data-centric notation by identifying more sophisticated hardware dataflows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。