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

面向Transformer加速器的优化空间架构映射流程

Optimized Spatial Architecture Mapping Flow for Transformer Accelerators

Haocheng Xu, Faraz Tahmasebi, Ye Qiao, Hongzheng Tian, Hyoukjun Kwon, Sitao Huang

AI总结:

针对Transformer模型空间加速器人工设计效率低的问题,提出SAMT框架,通过动态算子融合与最优数据流映射协同搜索,在多场景下显著降低推理延迟与能耗。

摘要:

基于Transformer的大语言模型的最新创新显著推动了通用神经语言理解与生成领域的发展。这类大模型拥有数十亿可训练参数,其部署依赖高性能硬件加速器来高效提供所需算力。空间架构(如TPU)为加速计算密集型工作负载提供了颇具前景的解决方案。然而,现有空间架构的设计过程以人工为主,针对新应用和新问题维度往往需要耗时重新设计,极大限制了面向Transformer模型的最优设计加速器的开发。为应对这些挑战,我们提出SAMT(面向Transformer的空间架构映射),这是一个专为优化Transformer推理工作负载到空间加速器的数据流映射而设计的综合框架。我们证明了SAMT在提升面向Transformer模型的空间架构性能方面的有效性。我们提出并利用了适用于Transformer模型的动态算子融合方案,并协同搜索空间加速器的最优数据流映射策略。在边缘、移动和云端场景下,与传统空间加速器设计相比,SAMT将受评估Transformer模型的推理延迟显著降低了12%至91%,能耗降低了3%至23%。

英文摘要:

Recent innovations in Transformer-based large language models have significantly advanced the field of general-purpose neural language understanding and generation. With billions of trainable parameters, deployment of these large models relies on high-performance hardware accelerators to efficiently deliver the required computation. Spatial architectures, such as TPUs, offer a promising solution to accelerating computation-intensive workloads. However, the design process for existing spatial architectures is predominantly manual, and it often involves time-consuming redesigns for new applications and new problem dimensions, which greatly limits the development of optimally designed accelerators for Transformer models. To address these challenges, we propose SAMT (Spatial Architecture Mapping for Transformers), a comprehensive framework designed to optimize the dataflow mapping of Transformer inference workloads onto spatial accelerators. We demonstrate the effectiveness of SAMT in improving the performance of spatial accelerators for Transformer models. We propose and leverage the dynamic operator fusion schemes for the Transformer models and co-search the optimal dataflow mapping strategies for spatial accelerators. SAMT significantly reduces inference latency by 12% to 91% and energy consumption by 3% to 23% for evaluated Transformer models compared to traditional spatial accelerator designs among edge, mobile and cloud settings.

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

↑