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.
Methods
The authors introduce e-boost, a fully automated framework that bridges the gap between fast heuristics and exact solvers through three key innovations:
- 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-boostexploits this by processing batches of e-nodes concurrently using multi-threading, drastically speeding up initial cost estimation without degrading quality. - Adaptive Search Space Pruning: Using the calculated heuristic costs,
e-boostfilters 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. - 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-boostfeeds 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
BoolEandE-Synsuites, 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, andDiospyros.
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-boostachieved 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-boostwas 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-boostmatched the true global optimum with a negligible average optimality gap of just 0.21%. - Downstream EDA Impact: When integrated into the
E-Synlogic synthesis tool,e-boostdirectly 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.
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