EDA-Driven Preprocessing for SAT Solving

Zhengyuan Shi, Tiebing Tang, Sadaf Khan, Hui-Ling Zhen, Mingxuan Yuan, Zhufei Chu, Qiang Xu · OpenReview

Abstract

Effective formulation of problems into Conjunctive Normal Form (CNF) is critical in modern Boolean Satisfiability (SAT) solving for optimizing solver performance. Addressing the limitations of existing methods, our Electronic Design Automation (EDA)-driven preprocessing framework introduces a novel methodology for preparing SAT instances, leveraging both circuit and CNF formats for enhanced flexibility and efficiency. Central to our approach is the integration of a new logic synthesis technique, guided by a reinforcement learning agent, and a novel cost-customized LUT mapping strategy, enabling efficient handling of diverse SAT challenges. By transforming the SAT competition benchmarks into circuit instances, our framework demonstrates substantial performance improvements, as evidenced by a 52.42% reduction on average compared to solving directly. Moreover, our framework achieves a remarkable 96.14% runtime reduction on average for a set of logic equivalence checking problems that exhibit inherent circuit structures. These results highlight the effectiveness and versatility of our approach in handling both CNF and circuit instances. The code is available at https://github.com/cure-lab/EDA4SAT.

Introduction

The Circuit Satisfiability (CSAT) problem is a cornerstone of hardware design, utilized in tasks ranging from Logic Equivalence Checking (LEC) to Automatic Test Pattern Generation (ATPG). While modern SAT solvers are highly powerful, they are primarily designed for formulas in Conjunctive Normal Form (CNF). Converting a complex circuit into CNF often strips away structural information, resulting in "solver-unfriendly" formulas. Traditional EDA tools, which optimize for Power, Performance, and Area (PPA), do not necessarily produce circuits that are easy for SAT solvers to process. This research addresses this gap by introducing a preprocessing framework that treats "solvability" as a primary optimization metric.

Overview of the EDA-driven preprocessing framework for SAT solving.

Methodology

The proposed framework utilizes a two-stage preprocessing pipeline designed to bridge the structural strengths of circuits with the processing power of CNF-based SAT solvers.

RL-Guided Logic Synthesis

The framework formulates logic synthesis as a Markov Decision Process (MDP). A Deep Q-Learning agent is trained to select sequences of synthesis operations—such as rewrite, refactor, or balance—that simplify the circuit for the solver. Unlike standard synthesis, the agent is rewarded for reducing variable branching times, a proxy for the search effort a SAT solver must expend. To "understand" the circuit's logic, the agent uses structural embeddings from DeepGate2.

The Reinforcement Learning (RL) loop for logic synthesis optimization.

Cost-Customized LUT Mapping

Following synthesis, the circuit is mapped into Look-Up Tables (LUTs). While standard mappers minimize area, this framework utilizes a customized mapper (built on the mockturtle library) that prioritizes "branching complexity." For instance, XOR-heavy logic is notoriously difficult for SAT solvers. The mapper assigns higher costs to these complex structures, encouraging a final representation that hides difficult internal logic inside the LUTs, thereby streamlining the eventual CNF conversion.

Experimental Results

The framework was evaluated using industrial-scale benchmarks derived from real-world EDA tasks, including LEC and ATPG.

  • Solver Efficiency: When tested with the CaDiCaL solver, the framework achieved a 63.03% reduction in total solving time compared to baseline CNF conversion and a 35.16% reduction compared to existing circuit-based methods.
  • LEC Performance: For logic equivalence checking problems, the framework demonstrated a remarkable 96.14% average runtime reduction, highlighting its effectiveness for problems with inherent circuit structures.
  • Ablation Analysis: The study confirmed that both components are vital; the RL agent alone provided an 11.95% improvement, but the most significant gains were realized when combined with cost-customized LUT mapping.

Conclusion and Future Work

This research demonstrates that optimizing circuits for solvability rather than traditional PPA metrics can yield substantial performance gains in SAT solving. By discovering non-intuitive synthesis "recipes" via RL and using customized LUT mapping to manage logic complexity, the framework effectively prepares industrial-scale problems for modern solvers. Future work includes extending the framework to sequential circuits and refining the proxy metrics used for solver-friendliness.

Summary updated

BibTeX
@inproceedings{shi2025eda,
  author = {Zhengyuan Shi and Tiebing Tang and Sadaf Khan and Hui-Ling Zhen and Mingxuan Yuan and Zhufei Chu and Qiang Xu},
  title = {{EDA-Driven Preprocessing for SAT Solving}},
  booktitle = {DAC},
  year = {2025},
  url = {https://openreview.net/forum?id=jkWkp3MY8Z},
}
Figure