paperbot · PL 论文追踪

全部论文 待读 收藏

P2 TensorIR: An Abstraction for Automatic Tensorized Program Optimization

TensorIR:面向自动张量化程序优化的抽象
ASPLOS Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22023匹配度 3/10 · 论文提出TensorIR编译器抽象用于张量计算优化,属于机器学习编译器领域,与用户关注的静态分析、形式化验证、浮点/贝叶斯程序分析及LLM交叉方向不直接相关;虽涉及PL与ML交叉,但更偏向编译优化而非程序分析,因此匹配度低。引用 76 inbox
Siyuan Feng, Bohan Hou, Hongyi Jin, Wuwei Lin, Junru Shao, Ruihang Lai, Zihao Ye, Lianmin Zheng, Cody Hao Yu, Yong Yu, Tianqi Chen
crossref: 2026-09-12

AI 速览

一句话:提出 TensorIR,将张量计算作为一等公民的编译器抽象,支持自动张量化优化,性能媲美手工优化系统。

在多种设备上部署深度学习模型面临硬件专用加速原语多样、工程复杂度高等问题。本文提出 TensorIR,一种用于优化带张量计算原语程序的编译器抽象。它泛化现有机器学习编译器的循环嵌套表示,将张量计算提升为一等公民,从而统一描述计算与硬件加速原语。作者在 TensorIR 之上构建端到端框架,针对给定张量计算原语自动优化深度学习模型。实验表明,TensorIR 编译能自动调用目标硬件后端的张量计算原语,并在多个平台上达到与当前最先进手工优化系统相竞争的性能。

问题
如何为多样硬件加速原语与深度学习模型提供统一编译器抽象,并自动优化张量计算程序。
方法
泛化循环嵌套表示,将张量计算作为一等公民设计 TensorIR,并在其上构建端到端自动优化框架。
评估
在多种硬件后端上自动使用张量计算原语,并与最先进手工优化系统进行跨平台性能对比。
原文摘要(Abstract)

Deploying deep learning models on various devices has become an important topic. The wave of hardware specialization brings a diverse set of acceleration primitives for multi-dimensional ten- sor computations. These new acceleration primitives, along with the emerging machine learning models, bring tremendous engineering challenges. In this paper, we present TensorIR, a compiler abstraction for optimizing programs with these tensor computation primitives. TensorIR generalizes the loop nest representation used in existing machine learning compilers to bring tensor computation as the first-class citizen. Finally, we build an end-to-end framework on top of our abstraction to automatically optimize deep learning models for given tensor computation primitives. Experimental results show that TensorIR compilation automatically uses the tensor computation primitives for given hardware backends and delivers performance that is competitive to state-of-art hand-optimized systems across platforms.

链接与引用

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

BibTeX
@inproceedings{paperbot9992,
  title = {TensorIR: An Abstraction for Automatic Tensorized Program Optimization},
  author = {Siyuan Feng and Bohan Hou and Hongyi Jin and Wuwei Lin and Junru Shao and Ruihang Lai and Zihao Ye and Lianmin Zheng and Cody Hao Yu and Yong Yu and Tianqi Chen},
  booktitle = {ASPLOS},
  year = {2023},
  doi = {10.1145/3575693.3576933}
}