Lune

ASPLOS2025Top-tier venue

SmoothE: Differentiable E-Graph Extraction

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

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

7 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • BoolE: Exact Symbolic Reasoning via Boolean Equality Saturation cites Better Together: Unifying Datalog and Equality Saturation
  • BoolE: Exact Symbolic Reasoning via Boolean Equality Saturation cites egg: Fast and extensible equality saturation
  • Efficient Extraction for Effectful E-graphs cites Better Together: Unifying Datalog and Equality Saturation
  • Efficient Extraction for Effectful E-graphs cites egg: Fast and extensible equality saturation
  • Improving Equality Saturation for EDA via Semantic E-Graphs cites Better Together: Unifying Datalog and Equality Saturation
  • Improving Equality Saturation for EDA via Semantic E-Graphs cites egg: Fast and extensible equality saturation
  • Improving Equality Saturation for EDA via Semantic E-Graphs cites Vectorization for digital signal processors via equality saturation
  • Equality Saturation for Quantum Circuit Optimization cites BoolE: Exact Symbolic Reasoning via Boolean Equality Saturation
  • Equality Saturation for Quantum Circuit Optimization cites egg: Fast and extensible equality saturation
  • HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization cites Allo: A Programming Model for Composable Accelerator Design
  • HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization cites egg: Fast and extensible equality saturation
  • HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial Optimization cites Vectorization for digital signal processors via equality saturation
  • Better Together: Unifying Datalog and Equality Saturation cites egg: Fast and extensible equality saturation
  • Better Together: Unifying Datalog and Equality Saturation cites Vectorization for digital signal processors via equality saturation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. HeuriGym: An Agentic Benchmark for LLM-Crafted Heuristics in Combinatorial OptimizationHongzheng Chen, Yingheng Wang, Yaohui Cai, Hins Hu et al.ICLR 2026 · 26 citations
  2. BoolE: Exact Symbolic Reasoning via Boolean Equality SaturationJiaqi Yin, Zhan Song, Chen Chen, Qihao Hu et al.DAC 2025 · 6 citations
  3. Efficient Extraction for Effectful E-graphsOliver Flatt, Anjali Pal, Yihong Zhang, Ryan Tjoa et al.OOPSLA 2026 · 1 citation
  4. Improving Equality Saturation for EDA via Semantic E-GraphsSijie Kong, Jingtao Xia, Daniel Ruelas-Petrisko, Zachary D. Sisco et al.PLDI 2026
  5. Equality Saturation for Quantum Circuit OptimizationGanxiang Yang, Paige Raun, Runzhou Tao, Ronghui GuPLDI 2026

Builds on11

  1. egg: Fast and extensible equality saturationMax Willsey, Chandrakana Nandi, Yisu Remy Wang, Oliver Flatt et al.POPL 2021 · 170 citations
  2. GRANNITE: Graph Neural Network Inference for Transferable Power EstimationYanqing Zhang, Haoxing Ren, Brucek KhailanyDAC 2020 · 115 citations
  3. Vectorization for digital signal processors via equality saturationAlexa VanHattum, Rachit Nigam, Vincent T. Lee, James Bornholt et al.ASPLOS 2021 · 57 citations
  4. Allo: A Programming Model for Composable Accelerator DesignHongzheng Chen, Niansong Zhang, Shaojie Xiang, Zhichen Zeng et al.PLDI 2024 · 41 citations
  5. Better Together: Unifying Datalog and Equality SaturationYihong Zhang, Yisu Remy Wang, Oliver Flatt, David Cao et al.PLDI 2023 · 38 citations

Related papers

  1. Fast and Optimal Extraction for Sparse Equality GraphsAmir Kafshdar Goharshady, Chun Kit Lam, Lionel ParreauxOOPSLA 2024 · 11 citations
  2. E-Syn: E-Graph Rewriting with Technology-Aware Cost Functions for Logic SynthesisChen Chen, Guangyu Hu, Dongsheng Zuo, Cunxi Yu et al.DAC 2024 · 17 citations
  3. Dis/Equality GraphsGeorge Zakhour, Pascal Weisenburger, Jahrim Gabriele Cesario, Guido SalvaneschiPOPL 2025 · 3 citations
  4. Node Graph Optimization Using Differentiable ProxiesYiwei Hu, Paul Guerrero, Milos Hasan, Holly E. Rushmeier et al.SIGGRAPH 2022 · 20 citations
  5. Eco Search: A No-delay Best-First Search Algorithm for Program SynthesisThéo Matricon, Nathanaël Fijalkow, Guillaume LagardeAAAI 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines