Lune

PLDI2022顶会

Autoscheduling for sparse tensor algebra with an asymptotic cost model

Willow Ahrens, Fredrik Kjolstad, Saman P. Amarasinghe

摘要

While loop reordering and fusion can make big impacts on the constant-factor performance of dense tensor programs, the effects on sparse tensor programs are asymptotic, often leading to orders of magnitude performance differences in practice. Sparse tensors also introduce a choice of compressed storage formats that can have asymptotic effects. Research into sparse tensor compilers has led to simplified languages that express these tradeoffs, but the user is expected to provide a schedule that makes the decisions. This is challenging because schedulers must anticipate the interaction between sparse formats, loop structure, potential sparsity patterns, and the compiler itself. Automating this decision making process stands to finally make sparse tensor compilers accessible to end users.

We present, to the best of our knowledge, the first automatic asymptotic scheduler for sparse tensor programs. We provide an approach to abstractly represent the asymptotic cost of schedules and to choose between them. We narrow down the search space to a manageably small Pareto frontier of asymptotically non-dominating kernels. We test our approach by compiling these kernels with the TACO sparse tensor compiler and comparing them with those generated with the default TACO schedules. Our results show that our approach reduces the scheduling space by orders of magnitude and that the generated kernels perform asymptotically better than those generated using the default schedules.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 16 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Indexed Streams: A Formal Intermediate Representation for Fused Contraction Programs 引用了 Tensor Relational Algebra for Distributed Machine Learning System Design
  • 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 引用了 Compilation of sparse array programming models
  • A sparse iteration space transformation framework for sparse tensor algebra 引用了 Automatic generation of efficient sparse tensor format conversion routines
  • Mosaic: An Interoperable Compiler for Tensor Algebra 引用了 A sparse iteration space transformation framework for sparse tensor algebra
  • Mosaic: An Interoperable Compiler for Tensor Algebra 引用了 The Sparse Abstract Machine
  • Mosaic: An Interoperable Compiler for Tensor Algebra 引用了 SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning
  • The Sparse Abstract Machine 引用了 A sparse iteration space transformation framework for sparse tensor algebra
  • The Sparse Abstract Machine 引用了 Compilation of sparse array programming models
  • The Sparse Abstract Machine 引用了 SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning
  • Compilation of sparse array programming models 引用了 A sparse iteration space transformation framework for sparse tensor algebra
  • Compilation of sparse array programming models 引用了 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 引用了 Compilation of sparse array programming models
  • SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning 引用了 Automatic generation of efficient sparse tensor format conversion routines
  • TeAAL: A Declarative Framework for Modeling Sparse Tensor Accelerators 引用了 A sparse iteration space transformation framework for sparse tensor algebra
  • TeAAL: A Declarative Framework for Modeling Sparse Tensor Accelerators 引用了 Mosaic: An Interoperable Compiler for Tensor Algebra
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper16

  1. SparseTIR: Composable Abstractions for Sparse Compilation in Deep LearningZihao Ye, Ruihang Lai, Junru Shao, Tianqi Chen 等ASPLOS 2023 · 86 次引用
  2. The Sparse Abstract MachineOlivia Hsu, Maxwell Strange, Ritvik Sharma, Jaeyeon Won 等ASPLOS 2023 · 37 次引用
  3. TeAAL: A Declarative Framework for Modeling Sparse Tensor AcceleratorsNandeeka Nayak, Toluwanimi O. Odemuyiwa, Shubham Ugare, Christopher W. Fletcher 等MICRO 2023 · 19 次引用
  4. Mosaic: An Interoperable Compiler for Tensor AlgebraManya Bansal, Olivia Hsu, Kunle Olukotun, Fredrik KjolstadPLDI 2023 · 16 次引用
  5. Indexed Streams: A Formal Intermediate Representation for Fused Contraction ProgramsScott Kovach, Praneeth Kolichala, Tiancheng Gu, Fredrik KjolstadPLDI 2023 · 11 次引用

它引用的 Paper8

  1. A sparse iteration space transformation framework for sparse tensor algebraRyan Senanayake, Changwan Hong, Ziheng Wang, Amalee Wilson 等OOPSLA 2020 · 51 次引用
  2. Tensors: An abstraction for general data processingDimitrios Koutsoukos, Supun Nakandala, Konstantinos Karanasos, Karla Saur 等VLDB 2021 · 38 次引用
  3. Tensor Relational Algebra for Distributed Machine Learning System DesignBinhang Yuan, Dimitrije Jankov, Jia Zou, Yuxin Tang 等VLDB 2021 · 33 次引用
  4. Compilation of sparse array programming modelsRawn Henry, Olivia Hsu, Rohan Yadav, Stephen Chou 等OOPSLA 2021 · 26 次引用
  5. Automatic generation of efficient sparse tensor format conversion routinesStephen Chou, Fredrik Kjolstad, Saman P. AmarasinghePLDI 2020 · 26 次引用

相关 Paper

  1. SparseAuto: An Auto-scheduler for Sparse Tensor Computations using Recursive Loop Nest RestructuringAdhitha Dias, Logan Anderson, Kirshanthan Sundararajah, Artem Pelenitsyn 等OOPSLA 2024 · 6 次引用
  2. Compiler Support for Sparse Tensor ConvolutionsPeiming Liu, Alexander J. Root, Anlun Xu, Yinying Li 等OOPSLA 2024 · 5 次引用
  3. WACO: Learning Workload-Aware Co-optimization of the Format and Schedule of a Sparse Tensor ProgramJaeyeon Won, Charith Mendis, Joel S. Emer, Saman P. AmarasingheASPLOS 2023 · 30 次引用
  4. An Input-Aware Sparse Tensor Compiler Empowered by Vectorized AccelerationXianhao He, Haotian Wang, Jiapeng Zhang, Wangdong Yang 等DAC 2025
  5. Compressed and Parallelized Structured Tensor AlgebraMahdi Ghorbani, Emilien Bauer, Tobias Grosser, Amir ShaikhhaOOPSLA 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖