paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Relax: Composable Abstractions for End-to-End Dynamic Machine Learning

Relax:面向端到端动态机器学习的可组合抽象
ASPLOS Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 22025匹配度 6/10 · 论文在 ML 系统中引入符号形状标注与跨层编译抽象,属于 PL/编译技术应用于 ML 系统,与“PL→AI”方向有交集;但其核心是动态形状编译优化,不涉及 Agentic 程序、LLM/Agent 改进静态分析、浮点程序分析或贝叶斯程序分析,因此不是研究方向的核心。引用 26 inbox
Ruihang Lai, Junru Shao, Siyuan Feng, Steven Lyubomirsky, Bohan Hou, Wuwei Lin, Zihao Ye, Hongyi Jin, Yuchen Jin, Jiawei Liu, Lesheng Jin, Yaxing Cai, Ziheng Jiang, Yong Wu, Sunghyun Park, Prakalp Srivastava, Jared Roesch, Todd C. Mowry, Tianqi Chen
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 Relax 编译器抽象,以跨层表示与一等符号形状标注优化端到端动态形状机器学习负载。

现代机器学习负载(尤其是大语言模型)广泛依赖动态形状计算,但其在多样后端上的通用部署仍缺乏有效的端到端编译支持。本文提出 Relax——一种面向端到端动态机器学习优化的编译器抽象。Relax 引入跨层抽象,将计算图、循环级张量程序与外部库调用统一在单一表示中,并引入一等符号形状标注,使动态形状计算能够被全局追踪,从而支持形状感知的跨层优化。作者基于该方案构建了端到端编译框架。在 LLM 上的实验表明,Relax 在多种 GPU 上性能与最先进系统相当,并可将新兴模型部署到手机、嵌入式设备与浏览器等更广泛的环境。

问题
动态形状计算在 LLM 等现代 ML 负载中至关重要,但现有编译方案难以在多样后端环境中对其进行端到端优化与部署。
方法
Relax 提出跨层抽象,把计算图、循环级张量程序与外部库调用统一到单一表示,并引入一等符号形状标注以全局追踪动态形状计算,支撑形状感知的跨层优化。
评估
在多种 GPU 上对 LLM 进行性能评测并与最先进系统比较,同时验证其在手机、嵌入式设备与浏览器等环境中的部署能力。
原文摘要(Abstract)

Dynamic shape computations have become critical in modern machine learning workloads, especially in emerging large language models. The success of these models has driven the demand for their universal deployment across a diverse set of backend environments. In this paper, we present Relax, a compiler abstraction for optimizing end-to-end dynamic machine learning workloads. Relax introduces a cross-level abstraction that encapsulates computational graphs, loop-level tensor programs, and external library calls in a single representation. Relax also introduces first-class symbolic shape annotations to track dynamic shape computations globally across the program, enabling dynamic shape-aware cross-level optimizations. We build an end-to-end compilation framework using the proposed approach to optimize dynamic shape models. Experimental results on LLMs show that Relax delivers performance competitive with state-of-the-art systems across various GPUs and enables deployment of emerging models to a broader set of emerging environments, including mobile phones, embedded devices, and web browsers.

链接与引用

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

BibTeX
@inproceedings{LaiSFLHL0JJ0JCJ25,
  title = {Relax: Composable Abstractions for End-to-End Dynamic Machine Learning},
  author = {Ruihang Lai and Junru Shao and Siyuan Feng and Steven Lyubomirsky and Bohan Hou and Wuwei Lin and Zihao Ye and Hongyi Jin and Yuchen Jin and Jiawei Liu and Lesheng Jin and Yaxing Cai and Ziheng Jiang and Yong Wu and Sunghyun Park and Prakalp Srivastava and Jared Roesch and Todd C. Mowry and Tianqi Chen},
  booktitle = {ASPLOS},
  year = {2025},
  doi = {10.1145/3676641.3716249}
}