SpaceFusion: Advanced Deep Learning Operator Fusion via Space-Mapping Graph
This work proposes SpaceFusion, an advanced scheduler for efficient deep learning operator fusion. First, we develop a novel abstraction, the Space-Mapping Graph (SMG), to holistically model the spatial information of both inter- and intra-operator dependencies. Subsequently, we introduce the spatial and temporal slicers to decompose the fused spaces defined in SMGs, generating fusion schedules by analyzing and transforming dependencies. Finally, we present auto-scheduling methods that use the slicers to automatically create high-performance fusion schedules tailored to specific hardware resource configurations. End-to-end performance evaluations reveal that SpaceFusion achieves up to 8.79x speedup (3.54x on average) over baseline implementations from Huggingface for Transformer models, and a maximum of 2.21x speedup compared to the state-of-the-art manually-tuned implementations powered by FlashAttention.
Authors
- Jianguo Yao (ORCID: https://orcid.org/0000-0002-1142-4496)
- Haibing Guan (ORCID: https://orcid.org/0000-0002-4714-7400)
- Liang Zhu
Institutions
- Shanghai Jiao Tong University (CN)
Publication Details
- Published
- 2025-03-26
- DOI
- https://doi.org/10.1145/3689031.3696087
- Citations
- 1
- Primary Topic
- Graph Theory and Algorithms
- Type
- article
- Field-Weighted Citation Impact
- 1.28