arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2401.10417cs.ARcs.PL
收藏

SSR:用于Transformer加速中延迟吞吐量权衡的空间序列混合架构

SSR: Spatial Sequential Hybrid Architecture for Latency Throughput Tradeoff in Transformer Acceleration

Jinming Zhuang, Zhuoping Yang, Shixin Ji, Heng Huang, Alex K. Jones, Jingtong Hu, Yiyu Shi, Peipei Zhou

AI总结:

本文提出空间序列混合架构SSR及自动化框架,通过结合顺序与空间执行模型优化Transformer加速中的延迟吞吐量权衡,在AMD VCK190上实现显著性能提升。

摘要:

随着芯片计算强度的增加,计算层形状与可用计算资源之间的不匹配显著限制了芯片的利用率。受此观察驱动,先前的工作讨论了空间加速器或数据流架构以最大化吞吐量。然而,使用空间加速器可能会增加执行延迟。在本工作中,我们首先系统地研究了两种执行模型:(1)顺序(时间上)启动一个单片加速器,以及(2)空间上启动多个加速器。从观察中,我们发现这两种执行模型之间存在延迟吞吐量权衡,将这两种策略结合在一起可以给我们一个更高效的延迟吞吐量帕累托前沿。为了实现这一点,我们提出了空间序列架构(SSR)和SSR设计自动化框架,以在部署深度学习推理时共同探索这两种策略。我们使用7nm AMD Versal ACAP VCK190板为四个端到端的基于Transformer的深度学习模型实现SSR加速器。与8nm Nvidia GPU A10G、16nm AMD FPGAs ZCU102和U250相比,SSR在不同批量大小下实现了平均2.53倍、35.71倍和14.20倍的吞吐量提升。平均能效提升分别为8.51倍、6.75倍和21.22倍。与VCK190上的仅顺序解决方案和仅空间解决方案相比,我们的空间序列混合解决方案在相同延迟要求下实现了更高的吞吐量,在相同吞吐量要求下实现了更低的延迟。我们还使用SSR分析模型演示了如何使用SSR优化其他计算平台上的解决方案,例如14nm Intel Stratix 10 NX。

英文摘要:

With the increase in the computation intensity of the chip, the mismatch between computation layer shapes and the available computation resource significantly limits the utilization of the chip. Driven by this observation, prior works discuss spatial accelerators or dataflow architecture to maximize the throughput. However, using spatial accelerators could potentially increase the execution latency. In this work, we first systematically investigate two execution models: (1) sequentially (temporally) launch one monolithic accelerator, and (2) spatially launch multiple accelerators. From the observations, we find that there is a latency throughput tradeoff between these two execution models, and combining these two strategies together can give us a more efficient latency throughput Pareto front. To achieve this, we propose spatial sequential architecture (SSR) and SSR design automation framework to explore both strategies together when deploying deep learning inference. We use the 7nm AMD Versal ACAP VCK190 board to implement SSR accelerators for four end-to-end transformer-based deep learning models. SSR achieves average throughput gains of 2.53x, 35.71x, and 14.20x under different batch sizes compared to the 8nm Nvidia GPU A10G, 16nm AMD FPGAs ZCU102, and U250. The average energy efficiency gains are 8.51x, 6.75x, and 21.22x, respectively. Compared with the sequential-only solution and spatial-only solution on VCK190, our spatial-sequential-hybrid solutions achieve higher throughput under the same latency requirement and lower latency under the same throughput requirement. We also use SSR analytical models to demonstrate how to use SSR to optimize solutions on other computing platforms, e.g., 14nm Intel Stratix 10 NX.

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

↑