Computer Science > Hardware Architecture
arXiv:2411.00734 (cs)
[Submitted on 1 Nov 2024 (v1), last revised 25 Nov 2024 (this version, v2)]
Title:Multilayer Dataflow: Orchestrate Butterfly Sparsity to Accelerate Attention Computation
Authors:Haibin Wu,Wenming Li,Kai Yan,Zhihua Fan,Peiyang Wu,Yuqun Liu,Yanhuan Liu,Ziqing Qiang,Meng Wu,Kunming Liu,Xiaochun Ye,Dongrui Fan
View a PDF of the paper titled Multilayer Dataflow: Orchestrate Butterfly Sparsity to Accelerate Attention Computation, by Haibin Wu and 11 other authors
View PDFHTML (experimental)Abstract:Recent neural networks (NNs) with self-attention exhibit competitiveness across different AI domains, but the essential attention mechanism brings massive computation and memory demands. To this end, various sparsity patterns are introduced to reduce the quadratic computation complexity, among which the structured butterfly sparsity has been proven efficient in computation reduction while maintaining model accuracy. However, its complicated data accessing pattern brings utilization degradation and makes parallelism hard to exploit in general block-oriented architecture like GPU. Since the reconfigurable dataflow architecture is known to have better data reusability and architectural flexibility in general NN-based acceleration, we want to apply it to the butterfly sparsity for acquiring better computational efficiency for attention workloads. We first propose a hybrid butterfly-sparsity network to obtain better trade-offs between attention accuracy and performance. Next, we propose a scalable multilayer dataflow method supported by coarse-grained streaming parallelism designs, to orchestrate the butterfly sparsity computation on the dataflow array. The experiments show that compared with Jetson Xavier NX, our design has a speedup of up to $14.34\times$ ($9.29\times$ on average) as well as $11.14\times$ energy efficiency advancement in attention workloads. In comparison with SOTA attention accelerators of the same peak performance, our dataflow architecture acquires $2.38\times$-$4.7\times$ efficiency improvement as well as $6.60\times$-$15.37\times$ energy reduction with butterfly sparsity optimization.
Comments: | 9 pages, 17 figures, ISCA 2025, 2024/11/23, Butterfly Sparsity Optimization Using Dataflow |
Subjects: | Hardware Architecture (cs.AR) |
Cite as: | arXiv:2411.00734 [cs.AR] |
(orarXiv:2411.00734v2 [cs.AR] for this version) | |
https://doi.org/10.48550/arXiv.2411.00734 arXiv-issued DOI via DataCite |
Submission history
From: Haibin Wu [view email][v1] Fri, 1 Nov 2024 16:53:29 UTC (16,830 KB)
[v2] Mon, 25 Nov 2024 12:01:41 UTC (16,831 KB)
Full-text links:
Access Paper:
- View PDF
- HTML (experimental)
- TeX Source
- Other Formats
View a PDF of the paper titled Multilayer Dataflow: Orchestrate Butterfly Sparsity to Accelerate Attention Computation, by Haibin Wu and 11 other authors
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer(What is the Explorer?)
Connected Papers(What is Connected Papers?)
Litmaps(What is Litmaps?)
scite Smart Citations(What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv(What is alphaXiv?)
CatalyzeX Code Finder for Papers(What is CatalyzeX?)
DagsHub(What is DagsHub?)
Gotit.pub(What is GotitPub?)
Hugging Face(What is Huggingface?)
Papers with Code(What is Papers with Code?)
ScienceCast(What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower(What are Influence Flowers?)
CORE Recommender(What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community?Learn more about arXivLabs.