Lune

ASPLOS2025顶会

SmoothE: Differentiable E-Graph Extraction

Yaohui Cai, Kaixin Yang, Chenhui Deng, Cunxi Yu, Zhiru Zhang

2025年份
12被引次数
7顶会引用

摘要

E-graphs have gained increasing popularity in compiler optimization, program synthesis, and theorem proving tasks. They enable compact representation of many equivalent expressions and facilitate transformations via rewrite rules without phase ordering limitations. A major bene!t of using e-graphs is the ability to explore a large space of equivalent expressions, allowing the extraction of an expression that best meets certain optimization objectives (or cost models). However, current e-graph extraction methods often face unfavorable scalability-quality trade-o"s and only support simple linear cost functions, limiting their applicability to more realistic optimization problems.

In this work, we propose SmoothE, a di"erentiable e-graph extraction algorithm designed to handle complex cost models and optimized for GPU acceleration. More speci!cally, we approach the e-graph extraction problem from a probabilistic perspective, where the original discrete optimization is relaxed to a continuous di"erentiable form. This formulation supports any di"erentiable cost functions and enables e#cient searching for solutions using gradient descent. We implement SmoothE in PyTorch to leverage the advancements of the modern machine learning ecosystem. Additionally, we introduce performance optimization techniques to exploit sparsity and data parallelism. We evaluate SmoothE on a variety of realistic e-graphs from !ve di"erent applications using three distinct cost models, including both linear and non-linear ones. Our experiments demonstrate that SmoothE consistently achieves a favorable trade-o" between scalability and solution quality.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了最后一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

lune papers fulltext 86e661ff-6475-426c-8754-51442324c2ff

引用它的顶会 Paper7

问问它们各自怎么用它

它引用的顶会 Paper11

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖