Logic Synthesis with Generative Deep Neural Networks
Xihan Li, Xing Li, Lei Chen, Xing Zhang, Mingxuan Yuan, Jun Wang
TL;DR
This paper tackles the challenge of applying deep learning to logic synthesis under strict equivalence constraints. It introduces ctrw, a rewriting operator built on the Circuit Transformer that preserves equivalence during subgraph replacement. A two-stage training regime—supervised pretraining plus iterative self-improvement via Monte-Carlo Tree Search—together with DAG-aware and fanout-free window rewriting enables scalable, equivalence-preserving optimization. Experiments on the IWLS 2023 benchmark show substantial circuit-size reductions and feasibility guarantees, indicating a viable path for neural-guided logic synthesis on larger circuits via AI platforms.
Abstract
While deep learning has achieved significant success in various domains, its application to logic circuit design has been limited due to complex constraints and strict feasibility requirement. However, a recent generative deep neural model, "Circuit Transformer", has shown promise in this area by enabling equivalence-preserving circuit transformation on a small scale. In this paper, we introduce a logic synthesis rewriting operator based on the Circuit Transformer model, named "ctrw" (Circuit Transformer Rewriting), which incorporates the following techniques: (1) a two-stage training scheme for the Circuit Transformer tailored for logic synthesis, with iterative improvement of optimality through self-improvement training; (2) integration of the Circuit Transformer with state-of-the-art rewriting techniques to address scalability issues, allowing for guided DAG-aware rewriting. Experimental results on the IWLS 2023 contest benchmark demonstrate the effectiveness of our proposed rewriting methods.
