STile: Searching Hybrid Sparse Formats for Sparse Deep Learning Operators Automatically

Yanyan Shen*, Lei Chen, Jingzhi Fang

*Corresponding author for this work

Research output: Contribution to conferenceConference Paperpeer-review

Abstract

Sparse operators, i.e., operators that take sparse tensors as input, are of great importance in deep learning models. Due to the diverse sparsity patterns in different sparse tensors, it is challenging to optimize sparse operators by seeking an optimal sparse format, i.e., leading to the lowest operator latency. Existing works propose to decompose a sparse tensor into several parts and search for a hybrid of sparse formats to handle diverse sparse patterns. However, they often make a trade-off between search space and search time: their search spaces are limited in some cases, resulting in limited operator running efficiency they can achieve. In this paper, we try to extend the search space in its breadth (by doing flexible sparse tensor transformations) and depth (by enabling multi-level decomposition). We formally define the multi-level sparse format decomposition problem, which is NP-hard, and we propose a framework STile for it. To search efficiently, a greedy algorithm is used, which is guided by a cost model about the latency of computing a sub-task of the original operator after decomposing the sparse tensor. Experiments of two common kinds of sparse operators, SpMM and SDDMM, are conducted on various sparsity patterns, and we achieve 2.1-18.0× speedup against cuSPARSE on SpMMs and 1.5 - 6.9× speedup against DGL on SDDMM. The search time is less than one hour for any tested sparse operator, which can be amortized.
Original languageEnglish
Pages46023
DOIs
Publication statusPublished - Mar 2024
EventProceedings of the ACM on Management of Data -
Duration: 1 Mar 20241 Mar 2024

Conference

ConferenceProceedings of the ACM on Management of Data
Period1/03/241/03/24

Fingerprint

Dive into the research topics of 'STile: Searching Hybrid Sparse Formats for Sparse Deep Learning Operators Automatically'. Together they form a unique fingerprint.

Cite this