e-boost: Boosted E-Graph Extraction with Adaptive Heuristics and Exact Solving

Jiaqi Yin, Zhan Song, Chen Chen, Yaohui Cai, Zhiru Zhang, Cunxi Yu

TL;DR

e-boost is a novel hybrid framework that dramatically accelerates e-graph extraction—a major NP-hard bottleneck in equality saturation workflows. By combining a parallelized, multi-threaded heuristic with an adaptive search-space pruning mechanism, e-boost provides a high-quality "warm start" to exact Integer Linear Programming (ILP) solvers. This approach yields up to a 558× runtime speedup over traditional exact methods and a 19.04% optimization improvement over state-of-the-art differentiable frameworks.

What Problem Does This Paper Address?

Equality saturation is a powerful optimization technique used in Electronic Design Automation (EDA), compiler design, and formal verification. It works by using a compact data structure called an e-graph to represent a massive space of mathematically equivalent expressions by iteratively applying rewrite rules.

However, the final step of this process—e-graph extraction (choosing the single "best" expression from the graph)—is notoriously difficult. When using a realistic Directed Acyclic Graph (DAG) cost model that accurately accounts for shared subexpressions, extraction becomes an NP-hard combinatorial optimization problem.

As a result, extraction frequently becomes a massive performance bottleneck. Traditional exact methods (like ILP solvers) guarantee optimal results but fail to scale to large designs, while greedy heuristics are fast but frequently get trapped in poor local optima. Recent differentiable methods (like SmoothE) struggle with convergence speeds and heavily rely on GPU acceleration.

Fig. 1: Normalized runtime proportions: saturation vs. extraction

Methods

The authors introduce e-boost, a fully automated framework that bridges the gap between fast heuristics and exact solvers through three key innovations:

  1. Parallelized Heuristic Extraction: The authors observe that greedy bottom-up cost calculations exhibit "weak data dependence"—the final converged state of local choices doesn't strictly depend on the order in which nodes are processed. e-boost exploits this by processing batches of e-nodes concurrently using multi-threading, drastically speeding up initial cost estimation without degrading quality.
  2. Adaptive Search Space Pruning: Using the calculated heuristic costs, e-boost filters out unpromising candidate nodes. For each e-class, it identifies the minimum local cost ($cost_{min}$) and discards any node whose cost exceeds a parameterized threshold ($cost_{min} \cdot \theta$, where $\theta \ge 1$). This dramatically shrinks the optimization search space.
  3. Initialized Exact Solving (Warm-Start ILP): The pruned problem is formulated as an Integer Linear Program. Instead of forcing the ILP solver to start from scratch, e-boost feeds the initial heuristic solution into the solver as a "warm start," guiding commercial solvers (like Gurobi, CPLEX, or CP-SAT) to high-quality global solutions much faster.

Datasets

The authors evaluated e-boost across 92 diverse benchmarks spanning two primary domains:

  • Logic Synthesis: Large-scale circuit benchmarks from the BoolE and E-Syn suites, including complex arithmetic blocks like 64-bit, 96-bit, and 128-bit multipliers.
  • Computational Kernels: Program optimization benchmarks drawn from popular frameworks including IMpress, TENSAT, ROVER, and Diospyros.

Key Insights and Ideas

  • Weak Data Dependence is a Parallelization Superpower: Realizing that the order of evaluation in bottom-up e-graph heuristics does not impact final convergence allows the algorithm to break sequential bottlenecks and fully leverage modern multi-core CPUs.
  • Local Minima are Excellent Pruning Guides: While local greedy choices don't guarantee global optimality (due to hidden subexpression sharing), nodes with low local costs are highly correlated with the globally optimal solution. This justifies using a simple threshold factor ($\theta$) to safely discard the vast majority of suboptimal candidates.
  • The Hybrid Sweet Spot: Rather than choosing between heuristics or exact solvers, using a heuristic to both prune the graph and warm-start an exact solver allows commercial ILP tools to successfully solve massive graphs that would otherwise cause them to time out or run out of memory.

Key Results

  • Massive Speedups: e-boost achieved a 558× runtime speedup over vanilla ILP solvers and a 138× speedup over the state-of-the-art differentiable framework, SmoothE. For the largest benchmarks (96-bit and 128-bit multipliers), e-boost was the only framework capable of returning a valid solution before timing out.
  • Higher Solution Quality: It delivered 19.04% better performance (lower cost solutions) compared to SmoothE. On benchmarks where vanilla ILP could actually finish, e-boost matched the true global optimum with a negligible average optimality gap of just 0.21%.
  • Downstream EDA Impact: When integrated into the E-Syn logic synthesis tool, e-boost directly translated abstract e-graph improvements into physical circuit benefits, reducing final circuit area by 7.6% using the ASAP 7nm library and 8.1% using the Skywater 130nm library compared to standard baselines.
Convergence curves showing e-boost rapidly reaching lower cost solutions compared to other methods.

Limitations and Future Work

The primary limitation of e-boost lies in its aggressive pruning strategy. If a globally optimal solution relies on an e-node that has an exceptionally high local cost before its subexpression sharing benefits are factored in, the threshold mechanism ($\theta$) might accidentally prune it. This occurred in 9 out of the 92 tested benchmarks (such as the nasneta benchmark), where the framework missed the absolute global optimum (though it still converged to a high-quality solution rapidly).

For future work, the authors note that while this paper focuses primarily on DAG-based cost models, their parallelized heuristic framework can be extended to handle alternative optimization metrics like tree and depth costs.

Summary updated

BibTeX
@inproceedings{yin2025e,
  author = {Jiaqi Yin and Zhan Song and Chen Chen and Yaohui Cai and Zhiru Zhang and Cunxi Yu},
  title = {{e-boost: Boosted E-Graph Extraction with Adaptive Heuristics and Exact Solving}},
  booktitle = {ICCAD},
  year = {2025},
  doi = {10.1109/iccad66269.2025.11240719},
}
Figure