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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Liu, Qunyou, Zapater, Marina, Atienza, David
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910863402729472
author Liu, Qunyou
Zapater, Marina
Atienza, David
author_facet Liu, Qunyou
Zapater, Marina
Atienza, David
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2503_05290
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MatrixFlow: System-Accelerator co-design for high-performance transformer applications
Liu, Qunyou
Zapater, Marina
Atienza, David
Hardware Architecture
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.
title MatrixFlow: System-Accelerator co-design for high-performance transformer applications
topic Hardware Architecture
url https://arxiv.org/abs/2503.05290