Allspark: Workload Orchestration for Visual Transformers on Processing In-Memory Systems

The advent of Transformers has revolutionized computer vision, offering a powerful alternative to convolutional neural networks (CNNs), especially with the local attention mechanism that excels at capturing local structures within the input and achieve state-of-the-art performance. Processing in-memory (PIM) architecture offers extensive parallelism, low data movement costs, and scalable memory bandwidth, making it a promising solution to accelerate Transformer with memory-intensive operations. However, the crucial issue lies in efficiently deploying an entire model onto resource-limited PIM system while parallelizing each transformer block with potentially many computational branches based on local-attention mechanisms. We present Allspark, which focuses on workload orchestration for visual Transformers on PIM systems, aiming at minimizing inference latency. Firstly, to fully utilize the massive parallelism of PIM, Allspark employs a fine-grained partitioning scheme for computational branches, and formats a systematic layout and interleaved dataflow with maximized data locality and reduced data movement. Secondly, Allspark formulates the scheduling of the complete model on a resource-limited distributed PIM system as an integer linear programming (ILP) problem. Thirdly, as local-global data interactions exhibit complex yet regular dependencies, Allspark provides a two-stage placement method, which simplifies the challenging placement of computational branches on the PIM system into the structured layout and greedy-based binding, to minimize NoC communication costs. Extensive experiments on 3D-stacked DRAM-based PIM systems show that Allspark brings <inline-formula><tex-math notation="LaTeX">$1.2\times$</tex-math></inline-formula> <inline-formula><tex-math notation="LaTeX">$\sim$</tex-math></inline-formula> <inline-formula><tex-math notation="LaTeX">$24.0\times$</tex-math></inline-formula> inference speedup for various visual Transformers over baselines. Compared to Nvidia V100 GPU, Allspark-enriched PIM system yields average speedups of <inline-formula><tex-math notation="LaTeX">$2.3\times$</tex-math></inline-formula> and energy savings of <inline-formula><tex-math notation="LaTeX">$20\times$</tex-math></inline-formula> <inline-formula><tex-math notation="LaTeX">$\sim$</tex-math></inline-formula> <inline-formula><tex-math notation="LaTeX">$55\times$</tex-math></inline-formula>.

Authors

Institutions

Publication Details

Journal
IEEE Transactions on Computers
Published
2024-10-22
DOI
https://doi.org/10.1109/tc.2024.3483633
Citations
2
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.98
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Allspark: Workload Orchestration for Visual Transformers on Processing In-Memory Systems

Mengke Ge, Song Chen, Haitao Du, Junpeng Wang et al.
2 citations
IEEE Transactions on Computers
Parallel Computing and Optimization Techniques
0.98
article

Allspark: Workload Orchestration for Visual Transformers on Processing In-Memory Systems

Mengke Ge, Song Chen, Haitao Du, Junpeng Wang, Yi Kang, Binhan Chen, Yingjian Zhong
article en
2 citations

Abstract

The advent of Transformers has revolutionized computer vision, offering a powerful alternative to convolutional neural networks (CNNs), especially with the local attention mechanism that excels at capturing local structures within the input and achieve state-of-the-art performance. Processing in-memory (PIM) architecture offers extensive parallelism, low data movement costs, and scalable memory bandwidth, making it a promising solution to accelerate Transformer with memory-intensive operations. However, the crucial issue lies in efficiently deploying an entire model onto resource-limited PIM system while parallelizing each transformer block with potentially many computational branches based on local-attention mechanisms. We present Allspark, which focuses on workload orchestration for visual Transformers on PIM systems, aiming at minimizing inference latency. Firstly, to fully utilize the massive parallelism of PIM, Allspark employs a fine-grained partitioning scheme for computational branches, and formats a systematic layout and interleaved dataflow with maximized data locality and reduced data movement. Secondly, Allspark formulates the scheduling of the complete model on a resource-limited distributed PIM system as an integer linear programming (ILP) problem. Thirdly, as local-global data interactions exhibit complex yet regular dependencies, Allspark provides a two-stage placement method, which simplifies the challenging placement of computational branches on the PIM system into the structured layout and greedy-based binding, to minimize NoC communication costs. Extensive experiments on 3D-stacked DRAM-based PIM systems show that Allspark brings <inline-formula><tex-math notation="LaTeX">$1.2\times$</tex-math></inline-formula> <inline-formula><tex-math notation="LaTeX">$\sim$</tex-math></inline-formula> <inline-formula><tex-math notation="LaTeX">$24.0\times$</tex-math></inline-formula> inference speedup for various visual Transformers over baselines. Compared to Nvidia V100 GPU, Allspark-enriched PIM system yields average speedups of <inline-formula><tex-math notation="LaTeX">$2.3\times$</tex-math></inline-formula> and energy savings of <inline-formula><tex-math notation="LaTeX">$20\times$</tex-math></inline-formula> <inline-formula><tex-math notation="LaTeX">$\sim$</tex-math></inline-formula> <inline-formula><tex-math notation="LaTeX">$55\times$</tex-math></inline-formula>.

IEEE Transactions on ComputersVol. 74(2)
University of Science and Technology of China (CN), Anhui University (CN)
Openalex Percentile: Top 24%
Parallel Computing and Optimization Techniques
0.98
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.