Compilation of sparse array programming models
Rawn Henry, Olivia Hsu, Rohan Yadav, Stephen Chou, Kunle Olukotun, Saman P. Amarasinghe, Fredrik Kjolstad
摘要
This paper shows how to compile sparse array programming languages. A sparse array programming language is an array programming language that supports element-wise application, reduction, and broadcasting of arbitrary functions over dense and sparse arrays with any fill value. Such a language has great expressive power and can express sparse and dense linear and tensor algebra, functions over images, exclusion and inclusion filters, and even graph algorithms.
Our compiler strategy generalizes prior work in the literature on sparse tensor algebra compilation to support any function applied to sparse arrays, instead of only addition and multiplication. To achieve this, we generalize the notion of sparse iteration spaces beyond intersections and unions. These iteration spaces are automatically derived by considering how algebraic properties annotated onto functions interact with the fill values of the arrays. We then show how to compile these iteration spaces to efficient code.
When compared with two widely-used Python sparse array packages, our evaluation shows that we generate built-in sparse array library features with a performance of 1.4× to 53.7× when measured against PyData/Sparse for user-defined functions and between 0.98× and 5.53× when measured against SciPy/Sparse for sparse array slicing. Our technique outperforms PyData/Sparse by 6.58× to 70.3×, and (where applicable) performs between 0.96× and 28.9× that of a dense NumPy implementation, on end-to-end sparse array applications. We also implement graph linear algebra kernels in our system with a performance of between 0.56× and 3.50× compared to that of the hand-optimized SuiteSparse:GraphBLAS library.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 17 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Indexed Streams: A Formal Intermediate Representation for Fused Contraction Programs 引用了 A sparse iteration space transformation framework for sparse tensor algebra
- Indexed Streams: A Formal Intermediate Representation for Fused Contraction Programs 引用了 Autoscheduling for sparse tensor algebra with an asymptotic cost model
- A sparse iteration space transformation framework for sparse tensor algebra 引用了 Automatic generation of efficient sparse tensor format conversion routines
- The Sparse Abstract Machine 引用了 A sparse iteration space transformation framework for sparse tensor algebra
- The Sparse Abstract Machine 引用了 SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning
- The Sparse Abstract Machine 引用了 Autoscheduling for sparse tensor algebra with an asymptotic cost model
- Compilation of dynamic sparse tensor algebra 引用了 Automatic generation of efficient sparse tensor format conversion routines
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning 引用了 A sparse iteration space transformation framework for sparse tensor algebra
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning 引用了 Automatic generation of efficient sparse tensor format conversion routines
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning 引用了 Autoscheduling for sparse tensor algebra with an asymptotic cost model
- Autoscheduling for sparse tensor algebra with an asymptotic cost model 引用了 A sparse iteration space transformation framework for sparse tensor algebra
- Autoscheduling for sparse tensor algebra with an asymptotic cost model 引用了 Automatic generation of efficient sparse tensor format conversion routines
引用它的顶会 Paper17
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep LearningZihao Ye, Ruihang Lai, Junru Shao, Tianqi Chen 等ASPLOS 2023 · 86 次引用
- The Sparse Abstract MachineOlivia Hsu, Maxwell Strange, Ritvik Sharma, Jaeyeon Won 等ASPLOS 2023 · 37 次引用
- Autoscheduling for sparse tensor algebra with an asymptotic cost modelWillow Ahrens, Fredrik Kjolstad, Saman P. AmarasinghePLDI 2022 · 30 次引用
- Indexed Streams: A Formal Intermediate Representation for Fused Contraction ProgramsScott Kovach, Praneeth Kolichala, Tiancheng Gu, Fredrik KjolstadPLDI 2023 · 11 次引用
- Compilation of dynamic sparse tensor algebraStephen Chou, Saman P. AmarasingheOOPSLA 2022 · 8 次引用
它引用的 Paper2
相关 Paper
- Compilation of Shape Operators on Sparse ArraysAlexander J. Root, Bobby Yan, Peiming Liu, Christophe Gyurgyik 等OOPSLA 2024 · 3 次引用
- Compilation of Modular and General Sparse WorkspacesGenghan Zhang, Olivia Hsu, Fredrik KjolstadPLDI 2024 · 6 次引用
- SpDISTAL: Compiling Distributed Sparse Tensor ComputationsRohan Yadav, Alex Aiken, Fredrik KjolstadSC 2022 · 7 次引用
- Compiler Support for Sparse Tensor ConvolutionsPeiming Liu, Alexander J. Root, Anlun Xu, Yinying Li 等OOPSLA 2024 · 5 次引用
- Mosaic: An Interoperable Compiler for Tensor AlgebraManya Bansal, Olivia Hsu, Kunle Olukotun, Fredrik KjolstadPLDI 2023 · 16 次引用
