A Cross-model Fusion-aware Framework for Optimizing (gather-matmul-scatter)<sub>s</sub> Workload
Modern deep learning models, such as Relation Graph Convolutional Network (RGCN), Sparse Convolutional Networks (SpConv), and Mixture of Experts Networks (MoE), are significantly dependent on the (gather-matmul-scatter) (abbreviated as (g-mm-s) ${ }_{\mathrm{s}}$) workload as their fundamental computational pattern. While existing works have made optimization attempts, several critical challenges remain unsolved, including domain-specific optimization migration, time-consuming exploration, and inefficient dataflow with dynamic inputs.To address these challenges, we introduce Efficient-GMS, a comprehensive framework that enhances ($\mathrm{g}-\mathrm{mm}-\mathrm{s})_{\text {s }}$ workload across diverse input scenarios. Our framework introduces (1) A Fusion-aware framework enabling cross-model optimization migration. We propose a comprehensive dataflow analysis that identifies shared computational patterns across models, enabling the development of four optimized dataflow patterns with vertical and horizontal fusion strategies. (2) Performance model-guided configuration space reduction. We develop a performance model to predict the relative execution efficiency across configurations, thereby reducing the search space and minimizing search time while ensuring optimal configuration selection. (3) Adaptive dataflow selection mechanism. We implement a lightweight heuristic model that dynamically selects optimal dataflow patterns based on the characteristics of the input and the hardware. Experimental results demonstrate that Efficient-GMS achieves significant performance gains, delivering an average end-to-end speedup of $1.46 \times$ in RGCN model, $1.32 \times$ in Sp-Conv-based model, and $1.15 \times$ in MoE model compared to state-of-the-art methods.
Authors
- Xingcheng Zhang (ORCID: https://orcid.org/0000-0002-4136-9782)
- Jiaming Xu (ORCID: https://orcid.org/0000-0002-4373-5723)
- Sheng Yuan (ORCID: https://orcid.org/0009-0003-0376-4719)
- Guohao Dai (ORCID: https://orcid.org/0000-0001-7346-2685)
- Zhenglong Gou
- Ningyi Xu
- Yibo Han
- Yaoxiu Lian (ORCID: https://orcid.org/0009-0007-7858-5132)
- Zhongming Yu (ORCID: https://orcid.org/0000-0003-2064-8106)
- Zhilin Pei
Institutions
- Shanghai Jiao Tong University (CN)
- Artificial Intelligence in Medicine (Canada) (CA)
Publication Details
- Published
- 2025-06-22
- DOI
- https://doi.org/10.1109/dac63849.2025.11132773
- Primary Topic
- Digital Radiography and Breast Imaging
- Type
- article
- Field-Weighted Citation Impact
- 0.00