arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.05290cs.AR
收藏

MatrixFlow:面向高性能Transformer应用的系统-加速器协同设计

MatrixFlow: System-Accelerator co-design for high-performance transformer applications

Qunyou Liu, Marina Zapater, David Atienza

AI总结:

本文提出MatrixFlow协同设计架构,结合松耦合脉动阵列与数据流矩阵乘法优化,在BERT和ViT模型上实现相比CPU最高22倍、相比现有加速器5-8倍的性能提升。

摘要:

Transformer是人工智能(AI)进步的核心,在从计算机视觉到自然语言处理的多个领域表现卓越。尽管取得了成功,其庞大的参数量和计算需求对高效加速构成了挑战。为解决这些局限,本文提出MatrixFlow,一种基于松耦合脉动阵列的新型协同设计系统-加速器架构,并包含一种用于高效执行Transformer代码的新软件映射方法。MatrixFlow通过一种新颖的基于数据流的矩阵乘法技术进行协同优化,从而降低内存开销。这些创新显著提升了数据吞吐量,这对于处理Transformer所需的大量计算至关重要。我们通过使用gem5进行全系统仿真,在具有不同数据类型的多种BERT和ViT Transformer模型上验证了该方法,展示了应用层面的显著加速。与多核CPU系统相比,我们的方法实现了高达22倍的提升,并分别比最接近的最先进松耦合和紧耦合加速器高出5倍和8倍以上。

英文摘要:

Transformers are central to advances in artificial intelligence (AI), excelling in fields ranging from computer vision to natural language processing. Despite their success, their large parameter count and computational demands challenge efficient acceleration. To address these limitations, this paper proposes MatrixFlow, a novel co-designed system-accelerator architecture based on a loosely coupled systolic array including a new software mapping approach for efficient transformer code execution. MatrixFlow is co-optimized via a novel dataflow-based matrix multiplication technique that reduces memory overhead. These innovations significantly improve data throughput, which is critical for handling the extensive computations required by transformers. We validate our approach through full system simulation using gem5 across various BERT and ViT Transformer models featuring different data types, demonstrating significant application-wide speed-ups. Our method achieves up to a 22x improvement compared to a many-core CPU system, and outperforms the closest state-of-the-art loosely-coupled and tightly-coupled accelerators by over 5x and 8x, respectively.

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

↑