Multilayer Dataflow: Orchestrate Butterfly Sparsity to Accelerate Attention Computation
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 ( on average) as well as energy efficiency advancement in attention workloads. In comparison with SOTA attention accelerators of the same peak performance, our dataflow architecture acquires - efficiency improvement as well as - energy reduction with butterfly sparsity optimization.
Cite
@article{arxiv.2411.00734,
title = {Multilayer Dataflow: Orchestrate Butterfly Sparsity to Accelerate Attention Computation},
author = {Haibin Wu and Wenming Li and Kai Yan and Zhihua Fan and Peiyang Wu and Yuqun Liu and Yanhuan Liu and Ziqing Qiang and Meng Wu and Kunming Liu and Xiaochun Ye and Dongrui Fan},
journal= {arXiv preprint arXiv:2411.00734},
year = {2024}
}
Comments
9 pages, 17 figures, ISCA 2025, 2024/11/23, Butterfly Sparsity Optimization Using Dataflow