arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.08700cs.ARcs.AIcs.DCcs.LGcs.PF
收藏

Flex-TPU:一种具备运行时可重构数据流架构的灵活TPU

Flex-TPU: A Flexible TPU with Runtime Reconfigurable Dataflow Architecture

University of South Carolina(南卡罗来纳大学)

Mohammed Elbtity, Peyton Chandarana, Ramtin Zand

AI总结:

针对传统TPU单一数据流限制DNN推理性能、降低计算单元利用率的问题,本文提出可在运行时按层动态切换数据流的Flex-TPU,实验显示其性能最高提升2.75倍,仅带来极小面积与功耗开销。

摘要:

张量处理单元(TPU)是最知名的机器学习(ML)加速器之一,既在数据中心中大规模部署,也应用于微型机器学习场景。与图形处理单元(GPU)等传统机器学习加速器相比,TPU具备多项改进与优势——它专门针对深度神经网络(DNN)执行过程中大量存在的矩阵-矩阵乘法与矩阵-向量乘法所需的乘累加(MAC)运算设计。这些优化包括利用脉动阵列架构提供的时间数据流范式,最大化数据复用并最小化数据传输。尽管这种设计带来了显著的性能收益,但当前的TPU实现仅局限于单一数据流,即输入静止、输出静止或权重静止架构中的一种。这会限制DNN推理可达到的性能,降低计算单元的利用率。因此,本文的工作是开发一种可重构数据流TPU,名为Flex-TPU,它能够在运行时针对每一层动态改变数据流。我们的实验在多个知名机器学习工作负载上,将Flex-TPU与传统TPU设计进行对比,全面测试了其可行性。结果表明,我们的Flex-TPU设计相比传统TPU实现了最高达2.75倍的显著性能提升,且仅带来极小的面积与功耗开销。

英文摘要:

Tensor processing units (TPUs) are one of the most well-known machine learning (ML) accelerators utilized at large scale in data centers as well as in tiny ML applications. TPUs offer several improvements and advantages over conventional ML accelerators, like graphical processing units (GPUs), being designed specifically to perform the multiply-accumulate (MAC) operations required in the matrix-matrix and matrix-vector multiplies extensively present throughout the execution of deep neural networks (DNNs). Such improvements include maximizing data reuse and minimizing data transfer by leveraging the temporal dataflow paradigms provided by the systolic array architecture. While this design provides a significant performance benefit, the current implementations are restricted to a single dataflow consisting of either input, output, or weight stationary architectures. This can limit the achievable performance of DNN inference and reduce the utilization of compute units. Therefore, the work herein consists of developing a reconfigurable dataflow TPU, called the Flex-TPU, which can dynamically change the dataflow per layer during run-time. Our experiments thoroughly test the viability of the Flex-TPU comparing it to conventional TPU designs across multiple well-known ML workloads. The results show that our Flex-TPU design achieves a significant performance increase of up to 2.75x compared to conventional TPU, with only minor area and power overheads.

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

↑