Optimizing Sparse Tensor Compilation for Sparse Output

View at publisher
Authors: Shideh Hashemian, Michael F. P. O’boyle, Amir Shaikhha
Cited by: 0
References: 28

Abstract

Sparse tensor algebra plays an important role in many scientific and engineering applications, yet existing sparse libraries and compilers face challenges when the output tensor is sparse. Array-based storage formats, such as CSR, require costly memory reallocations and rely on intermediate tensors (workspaces) to handle sparse scattering into the output, which limits performance and scalability. We introduce a new approach that employs our proposed flexible map-based storage format to directly support sparse scattering into the output without requiring extra workspaces. Our system then applies code and storage-specific optimizations to maximize efficiency. Experimental results across a range of kernels and datasets demonstrate an average speedup of 8.06× over a state-of-the-art compiler and 5.28× over a sparse tensor library.

Fields of Study & Subjects

Parallel Computing and Optimization Techniques Tensor decomposition and applications Matrix Theory and Algorithms

Publication details

Journal / source
ACM SIGPLAN International Conference on Compiler Construction (CC)
Pages
27–39
Publication date
28 January 2026