Optimized Spatial Architecture Mapping Flow for Transformer Accelerators

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Xu, Haocheng, Tahmasebi, Faraz, Qiao, Ye, Tian, Hongzheng, Kwon, Hyoukjun, Huang, Sitao
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916431451389952
author Xu, Haocheng
Tahmasebi, Faraz
Qiao, Ye
Tian, Hongzheng
Kwon, Hyoukjun
Huang, Sitao
author_facet Xu, Haocheng
Tahmasebi, Faraz
Qiao, Ye
Tian, Hongzheng
Kwon, Hyoukjun
Huang, Sitao
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_07407
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Optimized Spatial Architecture Mapping Flow for Transformer Accelerators
Xu, Haocheng
Tahmasebi, Faraz
Qiao, Ye
Tian, Hongzheng
Kwon, Hyoukjun
Huang, Sitao
Hardware Architecture
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.
title Optimized Spatial Architecture Mapping Flow for Transformer Accelerators
topic Hardware Architecture
url https://arxiv.org/abs/2410.07407