INVICTUS: Optimizing Boolean Logic Circuit Synthesis via Synergistic Learning and Search

Animesh Basak Chowdhury, Marco Romanelli, Benjamin Tan, Ramesh Karri, Siddharth GargarXiv 2023 · DOI

Abstract

Logic synthesis is a foundational step in electronic design automation (EDA), where high-level hardware descriptions are transformed into optimized logic gate networks. Finding the optimal sequence of logic minimization heuristics—the "synthesis recipe"—is a complex combinatorial problem. We present INVICTUS, a framework that integrates offline reinforcement learning (RL) with Monte-Carlo Tree Search (MCTS). By utilizing a Graph Convolutional Network (GCN) for structural analysis and a BERT-based model for sequence context, INVICTUS guides search processes more efficiently. An integrated out-of-distribution (OOD) detector ensures robustness by modulating the RL agent's influence on novel designs. Experimental results show up to 30% improvement in circuit performance and 6.3× faster runtimes compared to state-of-the-art methods.

Introduction

In modern chip design, logic synthesis converts high-level descriptions (e.g., RTL Verilog) into a netlist of Boolean logic gates. This process relies on And-Inverter Graphs (AIGs) which are iteratively minimized using various heuristics such as rewriting, refactoring, or balancing. The specific sequence of these operations, known as a synthesis recipe, significantly impacts the final circuit's area, delay, and power consumption.

Overview of the logic synthesis flow, transforming RTL Verilog into an optimized AIG via a sequence of minimization heuristics.

The primary challenge lies in the vast search space of possible recipes. Traditional methods rely on human expertise or exhaustive search, which are often suboptimal or computationally prohibitive. While machine learning has been applied to automate this, models often struggle with "out-of-distribution" (OOD) designs—novel circuits that differ significantly from training data.

The INVICTUS Framework

INVICTUS addresses these challenges through a synergistic approach combining offline learning with online search.

1. Offline Reinforcement Learning Agent

The system employs a dual-input neural network. A Graph Convolutional Network (GCN) extracts structural features from the AIG, while a BERT (Bidirectional Encoder Representations from Transformers) model processes the sequence of previously applied heuristics. This allows the agent to understand both the current state of the circuit and the historical context of the synthesis recipe.

2. RL-Guided Monte-Carlo Tree Search (MCTS)

Rather than relying solely on the RL agent's predictions, INVICTUS uses the agent's policy to bias an MCTS process. This "intuition" guides the search toward more promising branches of the recipe tree, drastically reducing the number of iterations needed to find high-quality solutions.

3. Online OOD Detection

To handle novel designs, INVICTUS incorporates an OOD detector that measures the similarity of a new circuit to the training set. If a design is identified as highly novel, the system reduces the influence of the RL agent and relies more on pure MCTS. This prevents the model from providing misleading advice on unfamiliar logic structures.

Experimental Evaluation

The framework was evaluated on standard industry benchmarks, including MCNC and the EPFL Arithmetic and Random Control sets.

Comparison of INVICTUS against MCTS and Simulated Annealing (SA+Pred) across various benchmarks, showing superior reduction in area-delay product.

Key Results

  • Performance Gains: INVICTUS achieved up to a 30% reduction in Area-Delay Product (ADP) compared to state-of-the-art techniques.
  • Efficiency: The framework reached target circuit quality up to 6.3× faster than previous methods.
  • Robustness: The OOD detection mechanism proved vital for the EPFL Random Control set, where high design variability typically causes pure RL models to fail.

Conclusion

INVICTUS demonstrates that the synergy of learned intuition and robust search is highly effective for complex EDA tasks. By incorporating BERT for sequence modeling and an OOD detector for reliability, it sets a new standard for automated logic synthesis. Future work will explore continual learning to allow the agent to adapt to new designs post-deployment and address the computational overhead of the initial training phase.

Summary updated

BibTeX
@misc{chowdhury2023invictus,
  author = {Animesh Basak Chowdhury and Marco Romanelli and Benjamin Tan and Ramesh Karri and Siddharth Garg},
  title = {{INVICTUS: Optimizing Boolean Logic Circuit Synthesis via Synergistic Learning and Search}},
  year = {2023},
  eprint = {2305.13164},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.13164},
}
Figure