跳到正文
arXiv cs.AI· David Pissarra, Jinkun Lin, Haitian Jiang, Aurojit Panda, Jinyang Li·· 10 天前AI 评分27

Cleave:通过解耦代数搜索与算子调度扩展张量程序优化

Cleave: Scaling Tensor Program Optimization via Decoupled Algebraic Search and Operator Scheduling

AI 导读

机器学习编译器 Cleave 通过符号化解耦,在符号形状计算图上做超优化发现变换,再对具体形状调度,生成的 kernel 比最优基线快最高 2.8 倍(平均 1.6 倍),编译时间比 Mirage 平均减少 5.9 倍。在生产服务动态负载上,Cleave 对每个算子仅编译一次,相对 FlashInfer 手写 FA2 和 FA3 后端分别取得 1.4 倍和 1.7 倍的几何平均加速。代码已开源。

正文 · 原文

View PDF HTML (experimental)

Abstract:Optimized kernels such as FlashAttention and FlashDecoding are crucial for accelerating today's large models. Most of them are handwritten by experts because existing ML compilers cannot match their efficiency. Producing such kernels requires fusing computations with multiple reductions, which requires both algebraic transformation of the computation graph and operator scheduling of the transformed graph. Unfortunately, searching the two jointly yields a space too large to navigate. We propose Cleave, an ML compiler built on symbolic decoupling: Cleave discovers transformations by performing superoptimization on a graph with symbolic shapes, and then schedules each resulting graph on concrete shapes. Representing shapes as symbols makes equivalence checking cheap and lets a new Split operator, with a symbolic split count, parallelize along a reduction dimension. Cleave's scheduler fuses graphs with multiple reductions through iterative tiling and horizontal fusion. Evaluation on common LLM subgraphs shows that Cleave generates kernels up to 2.8x faster than the best baseline (1.6x on average) and reduces compilation time by 5.9x on average compared to Mirage. For dynamic workloads captured from production serving traces, Cleave compiles each operator once and achieves geometric mean speedups of 1.4x and 1.7x over FlashInfer's handwritten FA2 and FA3 backends. Cleave's code is available at: this https URL
Subjects: Programming Languages (cs.PL); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.07742 [cs.PL]
  (or arXiv:2610.07742v1 [cs.PL] for this version)
  https://doi.org/10.48550/arXiv.2610.07742

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: David Pissarra [view email]
[v1] Tue, 6 Oct 2026 04:37:22 UTC (722 KB)

来源:arXiv cs.AI · arxiv.org