Lune

OOPSLA2023Top-tier venue

Compiling Structured Tensor Algebra

Mahdi Ghorbani, Mathieu Huot, Shideh Hashemian, Amir Shaikhha

Abstract

Tensor algebra is essential for data-intensive workloads in various computational domains. Computational scientists face a trade-off between the specialization degree provided by dense tensor algebra and the algorithmic efficiency that leverages the structure provided by sparse tensors. This paper presents StructTensor, a framework that symbolically computes structure at compilation time. This is enabled by Structured Tensor Unified Representation (STUR), an intermediate language that can capture tensor computations as well as their sparsity and redundancy structures. Through a mathematical view of lossless tensor computations, we show that our symbolic structure computation and the related optimizations are sound. Finally, for different tensor computation workloads and structures, we experimentally show how capturing the symbolic structure can result in outperforming state-of-the-art frameworks for both dense and sparse tensor algebra.

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.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Optimizing Tensor Programs on Flexible Storage cites Functional collection programming with semi-ring dictionaries
  • Compressed and Parallelized Structured Tensor Algebra cites Optimizing Tensor Programs on Flexible Storage
  • Compressed and Parallelized Structured Tensor Algebra cites Functional collection programming with semi-ring dictionaries
  • Compressed and Parallelized Structured Tensor Algebra cites Finch: Sparse and Structured Tensor Programming with Control Flow
  • PyTond: Efficient Python Data Science on the Shoulders of Databases cites Optimizing Tensor Programs on Flexible Storage
  • PyTond: Efficient Python Data Science on the Shoulders of Databases cites Functional collection programming with semi-ring dictionaries
  • Finch: Sparse and Structured Tensor Programming with Control Flow cites Optimizing Tensor Programs on Flexible Storage
  • Finch: Sparse and Structured Tensor Programming with Control Flow cites Functional collection programming with semi-ring dictionaries
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Finch: Sparse and Structured Tensor Programming with Control FlowWillow Ahrens, Teodoro Fields Collin, Radha Patel, Kyle Deeds et al.OOPSLA 2025 · 6 citations
  2. PyTond: Efficient Python Data Science on the Shoulders of DatabasesHesam Shahrokhi, Amirali Kaboli, Mahdi Ghorbani, Amir ShaikhhaICDE 2024 · 4 citations
  3. Compressed and Parallelized Structured Tensor AlgebraMahdi Ghorbani, Emilien Bauer, Tobias Grosser, Amir ShaikhhaOOPSLA 2025 · 1 citation

Builds on2

  1. Functional collection programming with semi-ring dictionariesAmir Shaikhha, Mathieu Huot, Jaclyn Smith, Dan OlteanuOOPSLA 2022 · 31 citations
  2. Optimizing Tensor Programs on Flexible StorageMaximilian Schleich, Amir Shaikhha, Dan SuciuSIGMOD 2023 · 21 citations

Related papers

  1. A Mechanized Algebra of Verified Data Structures for Optimizing Sparse Tensor ProgramsAmanda Liu, Gilbert Louis Bernstein, Shoaib Kamil, Adam Chlipala et al.PLDI 2026
  2. FreeTensor: a free-form DSL with holistic optimizations for irregular tensor programsShizhi Tang, Jidong Zhai, Haojie Wang, Lin Jiang et al.PLDI 2022 · 16 citations
  3. UniSparse: An Intermediate Language for General Sparse Format CustomizationJie Liu, Zhongyuan Zhao, Zijian Ding, Benjamin Brock et al.OOPSLA 2024 · 7 citations
  4. Compilation of dynamic sparse tensor algebraStephen Chou, Saman P. AmarasingheOOPSLA 2022 · 8 citations
  5. SpDISTAL: Compiling Distributed Sparse Tensor ComputationsRohan Yadav, Alex Aiken, Fredrik KjolstadSC 2022 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines