Lune

OOPSLA2024Top-tier venue

SparseAuto: An Auto-scheduler for Sparse Tensor Computations using Recursive Loop Nest Restructuring

Adhitha Dias, Logan Anderson, Kirshanthan Sundararajah, Artem Pelenitsyn, Milind Kulkarni

Abstract

Automated code generation and performance enhancements for sparse tensor algebra have become essential in many real-world applications, such as quantum computing, physical simulations, computational chemistry, and machine learning. General sparse tensor algebra compilers are not always versatile enough to generate asymptotically optimal code for sparse tensor contractions. This paper shows how to generate asymptotically better schedules for complex sparse tensor expressions using kernel fission and fusion. We present generalized loop restructuring transformations to reduce asymptotic time complexity and memory footprint. Furthermore, we present an auto-scheduler that uses a partially ordered set (poset)-based cost model that uses both time and auxiliary memory complexities to prune the search space of schedules. In addition, we highlight the use of Satisfiability Module Theory (SMT) solvers in sparse auto-schedulers to approximate the Pareto frontier of better schedules to the smallest number of possible schedules, with user-defined constraints available at compile-time. Finally, we show that our auto-scheduler can select better-performing schedules and generate code for them. Our results show that the auto-scheduler provided schedules achieve orders of-magnitude speedup compared to the code generated by the Tensor Algebra Compiler (TACO) for several computations on different real-world tensors.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Galley: Modern Query Optimization for Sparse Tensor Programs cites Autoscheduling for sparse tensor algebra with an asymptotic cost model
  • SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning cites A sparse iteration space transformation framework for sparse tensor algebra
  • SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning cites FeatGraph: a flexible and efficient backend for graph neural network systems
  • SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning cites Autoscheduling for sparse tensor algebra with an asymptotic cost model
  • Autoscheduling for sparse tensor algebra with an asymptotic cost model cites A sparse iteration space transformation framework for sparse tensor algebra
  • GALA: A High Performance Graph Neural Network Acceleration LAnguage and Compiler cites SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning
  • GALA: A High Performance Graph Neural Network Acceleration LAnguage and Compiler cites Autoscheduling for sparse tensor algebra with an asymptotic cost model
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Galley: Modern Query Optimization for Sparse Tensor ProgramsKyle Deeds, Willow Ahrens, Magdalena Balazinska, Dan SuciuSIGMOD 2025 · 3 citations
  2. GALA: A High Performance Graph Neural Network Acceleration LAnguage and CompilerDamitha Lenadora, Nikhil Jayakumar, Chamika Sudusinghe, Charith MendisOOPSLA 2025 · 1 citation

Builds on5

  1. SparseTIR: Composable Abstractions for Sparse Compilation in Deep LearningZihao Ye, Ruihang Lai, Junru Shao, Tianqi Chen et al.ASPLOS 2023 · 86 citations
  2. FeatGraph: a flexible and efficient backend for graph neural network systemsYuwei Hu, Zihao Ye, Minjie Wang, Jiali Yu et al.SC 2020 · 57 citations
  3. A sparse iteration space transformation framework for sparse tensor algebraRyan Senanayake, Changwan Hong, Ziheng Wang, Amalee Wilson et al.OOPSLA 2020 · 51 citations
  4. Sparta: high-performance, element-wise sparse tensor contraction on heterogeneous memoryJiawen Liu, Jie Ren, Roberto Gioiosa, Dong Li et al.PPoPP 2021 · 31 citations
  5. Autoscheduling for sparse tensor algebra with an asymptotic cost modelWillow Ahrens, Fredrik Kjolstad, Saman P. AmarasinghePLDI 2022 · 30 citations

Related papers

  1. Compressed and Parallelized Structured Tensor AlgebraMahdi Ghorbani, Emilien Bauer, Tobias Grosser, Amir ShaikhhaOOPSLA 2025 · 1 citation
  2. Compiler Support for Sparse Tensor ConvolutionsPeiming Liu, Alexander J. Root, Anlun Xu, Yinying Li et al.OOPSLA 2024 · 5 citations
  3. Mosaic: An Interoperable Compiler for Tensor AlgebraManya Bansal, Olivia Hsu, Kunle Olukotun, Fredrik KjolstadPLDI 2023 · 16 citations
  4. Compilation of Modular and General Sparse WorkspacesGenghan Zhang, Olivia Hsu, Fredrik KjolstadPLDI 2024 · 6 citations
  5. FaSTCC: Fast Sparse Tensor Contractions on CPUsSaurabh Raje, Hunter McCoy, Atanas Rountev, Prashant Pandey et al.SC 2025 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines