SySTeC: A Symmetric Sparse Tensor Compiler
Name
3696443.3708919.pdf
Size
1.46 MB
Format
Adobe PDF
Checksum (MD5)
0feb614cd9507f5c642a000d4a7b3872
Author(s) • •
Patel, Radha
Ahrens, Willow
Amarasinghe, Saman
Date Issued
March 1, 2025
Publisher
ACM|Proceedings of the 23rd ACM/IEEE International Symposium on Code Generation and Optimization
Citation
Patel, Radha, Ahrens, Willow and Amarasinghe, Saman. 2025. "SySTeC: A Symmetric Sparse Tensor Compiler."
Version
Final published version
Abstract
Symmetric and sparse tensors arise naturally in many domains including linear algebra, statistics, physics, chemistry, and graph theory. Symmetric tensors are equal to their transposes, so in the n-dimensional case we can save up to a factor of n! by avoiding redundant operations. Sparse tensors, on the other hand, are mostly zero, and we can save asymptotically by processing only nonzeros. Unfortunately, specializing for both symmetry and sparsity at the same time is uniquely challenging. Optimizing for symmetry requires consideration of n! transpositions of a triangular kernel, which can be complex and error prone. Considering multiple transposed iteration orders and triangular loop bounds also complicates iteration through intricate sparse tensor formats. Additionally, since each combination of symmetry and sparse tensor formats requires a specialized implementation, this leads to a combinatorial number of cases. A compiler is needed, but existing compilers cannot take advantage of both symmetry and sparsity within the same kernel. In this paper, we describe the first compiler which can automatically generate symmetry-aware code for sparse or structured tensor kernels. We introduce a taxonomy for symmetry in tensor kernels, and show how to target each kind of symmetry. Our implementation demonstrates significant speedups ranging from 1.36x for SSYMV to 30.4x for a 5-dimensional MTTKRP over the non-symmetric state of the art.
Description
CGO ’25, March 01–05, 2025, Las Vegas, NV, USA
MIT Department
Massachusetts Institute of Technology. Computer Science and Artificial Intelligence Laboratory
Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science
Terms of Use
Creative Commons Attribution
Persistent DSpace Link
DOI of Published Version
https://doi.org/10.1145/3696443.3708919