Agent Tuning & Optimization 相关度: 6/10

Prism: Symbolic Superoptimization of Tensor Programs

Mengdi Wu, Xiaoyu Jiang, Oded Padon, Zhihao Jia
arXiv: 2604.15272v1 发布: 2026-04-16 更新: 2026-04-16

AI 摘要

Prism提出了一种基于符号表示的张量程序超级优化方法,显著提升了性能。

主要贡献

  • 提出sGraph,一种用于张量程序的符号分层表示
  • 开发了两级搜索优化方法,结合符号推理和自动调优
  • 在LLM工作负载上实现了显著的性能提升

方法论

构建符号图表示程序族,通过符号推理剪枝搜索空间,并使用自动调优进行参数实例化。

原文摘要

This paper presents Prism, the first symbolic superoptimizer for tensor programs. The key idea is sGraph, a symbolic, hierarchical representation that compactly encodes large classes of tensor programs by symbolically representing some execution parameters. Prism organizes optimization as a two-level search: it constructs symbolic graphs that represent families of programs, and then instantiates them into concrete implementations. This formulation enables structured pruning of provably suboptimal regions of the search space using symbolic reasoning over operator semantics, algebraic identities, and hardware constraints. We develop techniques for efficient symbolic graph generation, equivalence verification via e-graph rewriting, and parameter instantiation through auto-tuning. Together, these components allow Prism to bridge the rigor of exhaustive search with the scalability required for modern ML workloads. Evaluation on five commonly used LLM workloads shows that Prism achieves up to $2.2\times$ speedup over best superoptimizers and $4.9\times$ over best compiler-based approaches, while reducing end-to-end optimization time by up to $3.4\times$.

标签

张量程序 超级优化 符号推理 自动调优 LLM

arXiv 分类

cs.PL cs.AI cs.LG