TL;DR
This paper introduces a novel preprocessing framework for Circuit Satisfiability (CSAT) that bridges Electronic Design Automation (EDA) techniques with modern SAT solvers. By combining reinforcement learning (RL)-guided logic synthesis with a cost-customized Look-Up Table (LUT) mapping strategy, the framework simplifies circuit structures specifically to optimize SAT-solving efficiency, achieving up to a 63% reduction in solving time.
What Problem Does This Paper Address?
The Circuit Satisfiability (CSAT) problem is foundational to Electronic Design Automation (EDA) tasks like logic equivalence checking (LEC) and automatic test pattern generation (ATPG). While modern SAT solvers are incredibly powerful, they are optimized for formulas in Conjunctive Normal Form (CNF).
Converting a complex logic circuit into CNF typically destroys its natural structural hierarchy, resulting in a massive, flat formula filled with redundant clauses that bog down the solver. Existing circuit-based preprocessing methods don't solve this issue either, as they traditionally focus on hardware metrics like minimizing area or power (PPA) rather than making the underlying logic easier for a mathematical solver to navigate.
Methods
The authors propose an EDA-driven preprocessing pipeline that transforms raw circuit structures into solver-friendly CNF formats.
The pipeline consists of two primary phases:
- RL-Guided Logic Synthesis: The authors formulate logic synthesis as a Markov Decision Process (MDP). A Deep Q-learning agent is trained to select the optimal sequence of synthesis operations (such as rewrite, refactor, balance, and resub). The agent's state space includes graph-level circuit features (e.g., gate ratios, depth) combined with structural embeddings from DeepGate2. Crucially, the reward function is tied directly to the reduction of variable branching times during the SAT solving process, rather than circuit size.
- Cost-Customized LUT Mapping: Instead of using standard technology mappers that minimize physical area or delay, the authors developed a customized mapper using the mockturtle library. This mapper evaluates 4-input LUTs based on their branching complexity—the total number of possible input combinations that can satisfy a given output. For example, XOR gates inherently present more branching choices (and thus more difficulty for a solver) than standard AND gates.
Datasets
The framework was evaluated using industrial-scale benchmarks derived from real-world LEC and ATPG tasks:
- Training Set: 200 "easy" instances (with baseline solving times ranging from 0.04s to 6.68s) used to train the RL agent.
- Testing Set: 300 "hard" industrial instances to evaluate overall runtime performance.
All circuits were initially processed in the standard And-Inverter Graph (AIG) format.
Key Insights and Ideas
- Shifting the Optimization Target: The core "aha moment" is realizing that what makes a circuit good for hardware (small area, low delay) does not make it good for a SAT solver. Preprocessing must explicitly target the solver's search space complexity.
- Branching Complexity as a Metric: Quantifying the difficulty of local logic gates based on their truth-table branching choices allows the technology mapper to actively "hide" highly complex internal logic nodes inside simpler LUT structures before converting them to CNF.
- RL for Recipe Generation: Circuit optimization sequences are highly non-linear and non-intuitive. Using structural circuit embeddings allows the RL agent to successfully predict which sequence of operations will minimize solver friction.
Key Results
The framework was integrated and tested with two state-of-the-art SAT solvers, Kissat and CaDiCaL:
- Significant Speedups: For the CaDiCaL solver, the proposed framework reduced the total solving time for the 300 hard test instances from 19,422 seconds (baseline) down to 7,179 seconds—a 63.03% reduction in runtime.
- Outperforming Prior Art: Compared to the leading traditional circuit-based preprocessing approach, the new framework achieved a 35.16% runtime reduction.
- Ablation Verification: Ablation studies confirmed that the RL agent provided an 11.95% improvement over a random synthesis policy, while the cost-customized mapper solved instances 50.80% faster than a conventional area/delay-driven mapper.
Limitations and Future Work
While highly effective for combinational logic circuits, the current framework is limited to static, combinational CSAT problems. The authors note that promising future directions include extending this machine learning-guided preprocessing approach to sequential circuits and exploring its utility across broader, more complex EDA verification applications.
Summary updated