Papers › SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning

SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning

11 Jul 2022arXiv:2207.04606archive 2025-07-28

Zihao Ye, Ruihang Lai, Junru Shao, Tianqi Chen, Luis Ceze

Sparse tensors are rapidly becoming critical components of modern deep learning workloads. However, developing high-performance sparse operators can be difficult and tedious, and existing vendor libraries cannot satisfy the escalating demands from new operators. Sparse tensor compilers simplify the development of operators, but efficient sparse compilation for deep learning remains challenging because a single sparse format cannot maximize hardware efficiency, and single-shot compilers cannot keep up with latest hardware and system advances. In this paper, we observe that the key to addressing both these challenges is to leverage composable formats and composable transformations. We propose SparseTIR, a sparse tensor compilation abstraction that offers composable formats and composable transformations for deep learning workloads. SparseTIR constructs a search space over these composable components for performance tuning. With these improvements, SparseTIR obtains consistent performance speedups vs vendor libraries on GPUs for single operators: 1.20-2.34x for GNN operators, 1.05-2.98x for sparse attention operators, and 0.56-7.45x for sparse convolution operators. SparseTIR also accelerates end-to-end GNNs by 1.08-1.52x for GraphSAGE training, and 4.20-40.18x for RGCN inference.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2207.04606")

Code

Syntology Ran 4 of 6 code samples harvested from 2 repositories linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · violated contract; 1 ran · our draft was wrong.

By repository: official repository: 6 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

uwsampl/sparsetir officialmentioned in papermentioned on GitHub report
uwsampl/sparsetir-artifact officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

6 samples harvested; 4 ran; 1 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · violated contract
1ran · our draft was wrong
2unverified

Licence: 0 of the 6 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

convert_indptr_to_mid_array uwsampl/sparsetir/examples/rgms/rgcn/bench_rgcn_composable.py official repository ran · our draft was wrong Apache-2.0 (permissive) · a203c9547e2b44c6 · report
csf_to_ell3d_inv_idx_map uwsampl/sparsetir/examples/rgms/rgcn/bench_rgcn_composable.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 0127dc65e233ffc2 · report
csr2ell_index_map uwsampl/sparsetir/examples/spmm/bench_spmm.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · cfa9a94ddfedfe25 · report
csr2ell_inv_index_map uwsampl/sparsetir/examples/spmm/bench_spmm.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 94854cfdac3baff0 · report
parse_mma_shape uwsampl/sparsetir-artifact/pruned-bert/unstructured-transposed-single-op.py official repository unverified MIT (permissive) · 17a5e59ed6fbf040 · report
train uwsampl/sparsetir-artifact/e2e/sage_dgl.py official repository unverified MIT (permissive) · a63b4fca51872597 · report

Tasks

Deep Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutConvolutionCosine AnnealingDense ConnectionsDropoutGraphSAGELayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionRGCNResidual ConnectionSoftmaxSparse TransformerWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections