e-boost通过自适应剪枝与初始化求解,实现高效且精准的表达式提取。
e-boost: Boosted E-Graph Extraction with Adaptive Heuristics and Exact Solving
- 并行启发式提取结合弱数据依赖,提升多线程效率。
- 自适应阈值剪枝大幅缩小搜索空间,保留近优解。
- 初始化整数规划求解加速收敛,适合逻辑综合场景。
e-graph在逻辑综合与形式验证等领域备受关注,其提取问题是典型的NP难组合优化问题,需从指数级等价表达式中寻找最优项,是e-graph优化任务的主要性能瓶颈。传统方法面临权衡:启发式方法快速但不保证最优,精确方法虽能得最优解但计算成本过高。本文提出e-boost框架,包含三项创新:(1) 基于弱数据依赖的并行启发式提取,可并发计算有向无环图成本,实现高效多线程处理而不损失质量;(2) 参数化阈值自适应剪枝,仅保留有潜力的候选解,显著缩小解空间同时保持近优解;(3) 初始化精确求解,将简化后问题建模为带热启动能力的整数线性规划,引导求解器更快收敛至高质量解。在形式验证与逻辑综合多个基准测试中,e-boost相较传统精确方法(ILP)提速558倍,较当前最优框架SmoothE提升19.04%性能。在真实逻辑综合任务中,相比传统综合工具,使用两种不同技术映射库分别实现7.6%和8.1%的面积优化。代码已开源:https://github.com/Yu-Maryland/e-boost。
原文摘要 · Abstract (English)
E-graphs have attracted growing interest in many fields, particularly in logic synthesis and formal verification. E-graph extraction is a challenging NP-hard combinatorial optimization problem. It requires identifying optimal terms from exponentially many equivalent expressions, serving as the primary performance bottleneck in e-graph based optimization tasks. However, traditional extraction methods face a critical trade-off: heuristic approaches offer speed but sacrifice optimality, while exact methods provide optimal solutions but face prohibitive computational costs on practical problems. We present e-boost, a novel framework that bridges this gap through three key innovations: (1) parallelized heuristic extraction that leverages weak data dependence to compute DAG costs concurrently, enabling efficient multi-threaded performance without sacrificing extraction quality; (2) adaptive search space pruning that employs a parameterized threshold mechanism to retain only promising candidates, dramatically reducing the solution space while preserving near-optimal solutions; and (3) initialized exact solving that formulates the reduced problem as an Integer Linear Program with warm-start capabilities, guiding solvers toward high-quality solutions faster. Across the diverse benchmarks in formal verification and logic synthesis fields, e-boost demonstrates 558x runtime speedup over traditional exact approaches (ILP) and 19.04% performance improvement over the state-of-the-art extraction framework (SmoothE). In realistic logic synthesis tasks, e-boost produces 7.6% and 8.1% area improvements compared to conventional synthesis tools with two different technology mapping libraries. e-boost is available at https://github.com/Yu-Maryland/e-boost.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。