The Sparse Abstract Machine
Olivia Hsu, Maxwell Strange, Ritvik Sharma, Jaeyeon Won, Kunle Olukotun, Joel S. Emer, Mark A. Horowitz, Fredrik Kjølstad
Abstract
We propose the Sparse Abstract Machine (SAM), an abstract machine model for targeting sparse tensor algebra to reconfigurable and fixed-function spatial dataflow accelerators. SAM defines a streaming dataflow abstraction with sparse primitives that encompass a large space of scheduled tensor algebra expressions. SAM dataflow graphs naturally separate tensor formats from algorithms and are expressive enough to incorporate arbitrary iteration orderings and many hardware-specific optimizations. We also present Custard, a compiler from a high-level language to SAM that demonstrates SAM's usefulness as an intermediate representation. We automatically bind from SAM to a streaming dataflow simulator. We evaluate the generality and extensibility of SAM, explore the performance space of sparse tensor algebra optimizations using SAM, and show SAM's ability to represent dataflow hardware.
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.
18 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- FuseMax: Leveraging Extended Einsums to Optimize Attention Accelerator Design cites Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplication
- MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product cites SpArch: Efficient Architecture for Sparse Matrix Multiplication
- FEASTA: A Flexible and Efficient Accelerator for Sparse Tensor Algebra in Machine Learning cites MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product
- FEASTA: A Flexible and Efficient Accelerator for Sparse Tensor Algebra in Machine Learning cites Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplication
- FEASTA: A Flexible and Efficient Accelerator for Sparse Tensor Algebra in Machine Learning cites SIGMA: A Sparse and Irregular GEMM Accelerator with Flexible Interconnects for DNN Training
- FEASTA: A Flexible and Efficient Accelerator for Sparse Tensor Algebra in Machine Learning cites SpArch: Efficient Architecture for Sparse Matrix Multiplication
- Mosaic: An Interoperable Compiler for Tensor Algebra cites MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise Product
- Mosaic: An Interoperable Compiler for Tensor Algebra cites Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplication
- Mosaic: An Interoperable Compiler for Tensor Algebra cites SIGMA: A Sparse and Irregular GEMM Accelerator with Flexible Interconnects for DNN Training
- Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplication cites SIGMA: A Sparse and Irregular GEMM Accelerator with Flexible Interconnects for DNN Training
- Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplication cites SpArch: Efficient Architecture for Sparse Matrix Multiplication
- HotTiles: Accelerating SpMM with Heterogeneous Accelerator Architectures cites SIGMA: A Sparse and Irregular GEMM Accelerator with Flexible Interconnects for DNN Training
- HotTiles: Accelerating SpMM with Heterogeneous Accelerator Architectures cites Sparse GPU kernels for deep learning
- Finch: Sparse and Structured Tensor Programming with Control Flow cites Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplication
Cited by top-tier papers18
- HotTiles: Accelerating SpMM with Heterogeneous Accelerator ArchitecturesGerasimos Gerogiannis, Sriram Aananthakrishnan, Josep Torrellas, Ibrahim HurHPCA 2024 · 19 citations
- FEASTA: A Flexible and Efficient Accelerator for Sparse Tensor Algebra in Machine LearningKai Zhong, Zhenhua Zhu, Guohao Dai, Hongyi Wang et al.ASPLOS 2024 · 16 citations
- Mosaic: An Interoperable Compiler for Tensor AlgebraManya Bansal, Olivia Hsu, Kunle Olukotun, Fredrik KjolstadPLDI 2023 · 16 citations
- FuseMax: Leveraging Extended Einsums to Optimize Attention Accelerator DesignNandeeka Nayak, Xinrui Wu, Toluwanimi O. Odemuyiwa, Michael Pellauer et al.MICRO 2024 · 10 citations
- Finch: Sparse and Structured Tensor Programming with Control FlowWillow Ahrens, Teodoro Fields Collin, Radha Patel, Kyle Deeds et al.OOPSLA 2025 · 6 citations
Builds on19
- SIGMA: A Sparse and Irregular GEMM Accelerator with Flexible Interconnects for DNN TrainingEric Qin, Ananda Samajdar, Hyoukjun Kwon, Vineet Nadella et al.HPCA 2020 · 490 citations
- SpArch: Efficient Architecture for Sparse Matrix MultiplicationZhekai Zhang, Hanrui Wang, Song Han, William J. DallyHPCA 2020 · 280 citations
- MatRaptor: A Sparse-Sparse Matrix Multiplication Accelerator Based on Row-Wise ProductNitish Kumar Srivastava, Hanchen Jin, Jie Liu, David H. Albonesi et al.MICRO 2020 · 223 citations
- Sparse GPU kernels for deep learningTrevor Gale, Matei Zaharia, Cliff Young, Erich ElsenSC 2020 · 170 citations
- Gamma: leveraging Gustavson's algorithm to accelerate sparse matrix multiplicationGuowei Zhang, Nithya Attaluri, Joel S. Emer, Daniel SánchezASPLOS 2021 · 158 citations
Related papers
- TensorLib: A Spatial Accelerator Generation Framework for Tensor AlgebraLiancheng Jia, Zizhang Luo, Liqiang Lu, Yun LiangDAC 2021 · 49 citations
- SpDISTAL: Compiling Distributed Sparse Tensor ComputationsRohan Yadav, Alex Aiken, Fredrik KjolstadSC 2022 · 7 citations
- A sparse iteration space transformation framework for sparse tensor algebraRyan Senanayake, Changwan Hong, Ziheng Wang, Amalee Wilson et al.OOPSLA 2020 · 51 citations
- UniSparse: An Intermediate Language for General Sparse Format CustomizationJie Liu, Zhongyuan Zhao, Zijian Ding, Benjamin Brock et al.OOPSLA 2024 · 7 citations
- Streaming Tensor Programs: A Streaming Abstraction for Dynamic ParallelismGina Sohn, Genghan Zhang, Konstantin Hoßfeld, Jungwoo Kim et al.ASPLOS 2026 · 1 citation
