paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Compiling Structured Tensor Algebra

编译结构化张量代数
OOPSLA 7(OOPSLA2)2023匹配度 3/10 · 该论文属于张量编译器与ML系统优化,与PL/编译方向有边缘交叉,并涉及编译期符号化结构分析;但它不涉及LLM/Agent、程序静态分析、浮点程序分析或贝叶斯程序分析,与用户画像的核心研究问题距离较远。引用 10 inbox
Mahdi Ghorbani, Mathieu Huot, Shideh Hashemian, Amir Shaikhha
crossref: 2026-09-10

AI 速览

一句话:提出 StructTensor,在编译期符号化计算张量结构,并用 STUR 统一表示稀疏与冗余结构,优化密集与稀疏张量代数性能。

张量代数广泛用于数据密集型计算,但密集张量代数提供的专门化与稀疏张量带来的算法效率之间存在权衡。本文提出 StructTensor 框架,在编译期符号化地计算张量结构;其核心是结构化张量统一表示 STUR,一种可同时刻画张量计算及其稀疏性和冗余性结构的中间语言。作者从无损张量计算的数学视角证明符号结构计算及相关优化是可靠的。实验表明,在不同张量计算工作负载和结构上,捕捉符号结构可使系统在密集和稀疏张量代数上均优于现有最先进框架。

问题
密集张量代数的专门化与利用稀疏结构的算法效率之间存在权衡,需要统一编译方法兼顾二者。
方法
提出 StructTensor 与 STUR 中间语言,在编译期符号化计算张量及其稀疏/冗余结构,并进行相关优化;用无损张量计算数学证明可靠性。
评估
在不同张量计算工作负载和结构上进行实验,与最先进密集/稀疏张量代数框架比较性能。
原文摘要(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.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot1842,
  title = {Compiling Structured Tensor Algebra},
  author = {Mahdi Ghorbani and Mathieu Huot and Shideh Hashemian and Amir Shaikhha},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {OOPSLA2},
  year = {2023},
  doi = {10.1145/3622804}
}