Enabling High-Throughput Inference of Transformers on Near-Data Processing Architectures
The rapid adoption of Transformer models in AI has exposed critical inefficiencies in conventional computing architectures, particularly due to their large memory footprint and low data reuse. Near-Data Processing (NDP) architectures have emerged as a promising solution to mitigate the memory wall problem, especially for memory-intensive neural network (NN) workloads. However, existing AI compilation frameworks, optimized for von Neumann architectures, fail to exploit the distributed nature and fine-grained parallelism inherent in the NDP architectures, especially for memory-intensive Transformer models. This work proposes a mapping framework that leverages novel pipeline parallelism to maximize the inference throughput of Transformers on NDP architectures. Firstly, we propose a pipeline layout strategy called Rect-zigzag, which offers superior flexibility to existing pipeline layout strategies (such as 1D static layout and zigzag layout) while adapting to the fine-grained partitioning required by Transformer models. Secondly, we propose a dynamic programming-based mapping algorithm capable of achieving joint optimization of partitioning and pipeline layout for Transformer models. Experiments demonstrate that our method enables the inference throughput of Transformers to reach 1.14∼3.92× that of the baseline methods.
Authors
- Mengke Ge (ORCID: https://orcid.org/0000-0001-7888-9370)
- Song Chen (ORCID: https://orcid.org/0000-0003-0341-3428)
- Qin Xu (ORCID: https://orcid.org/0000-0002-1338-802X)
- Yingjian Zhong
Institutions
- Anhui University (CN)
- Institute of Art (PL)
- National Science Centre (PL)
Publication Details
- Published
- 2025-05-09
- DOI
- https://doi.org/10.1109/iseda65950.2025.11101057
- Primary Topic
- Advanced Memory and Neural Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China