Introduction
In modern chip design, Logic Synthesis (LS) is the critical process of transforming abstract mathematical circuit representations into optimized networks of logic gates. A key phase is pre-mapping optimization, where sequences of operators such as rewrite, refactor, or resub are applied to minimize area and delay.
Traditionally, finding the optimal sequence is a complex search problem. While recent research has applied Reinforcement Learning (RL) to "learn" these sequences, these methods typically require "online training"—training a new model for every unique circuit. This approach is often 1,000x slower than heuristic scripts like Resyn2, making it impractical for high-throughput industrial environments.
The State-Agnostic Nature of Logic Synthesis RL
Researchers from Huawei Noah’s Ark Lab investigated why RL is effective for logic synthesis by testing three distinct types of input "states":
- Statistical features: Metadata like node and edge counts.
- Graph features: Structural information captured via Graph Neural Networks (GNNs).
- Random features: Purely stochastic noise.
Surprisingly, the RL agents performed nearly identically regardless of whether they were fed complex graph embeddings or random noise. This discovery suggests that the optimal choice of operators is driven by general properties of logic optimization rather than the specific topology of an individual circuit.
Methodology: The Common Sequence Approach
Leveraging this "state-agnostic" insight, the authors proposed a two-phase algorithm designed for speed and generalizability:
- Phase 1 (General Training): A shared RL policy is trained across diverse circuits using non-informative features, forcing the agent to identify universally effective "critical operators."
- Phase 2 (Sequence Distillation): The learned policy is used to sample and evaluate sequences on a training set to identify a single "common sequence" that performs well across the board.
Results and Industrial Impact
The proposed common sequence matches or exceeds the performance of custom-trained RL models while offering massive improvements in runtime. Because the sequence is pre-computed, it can be applied instantly to new circuits, eliminating the need for slow online training.
Key findings include:
- Efficiency: The common sequence achieves a ~16% reduction in area and delay, comparable to GNN-based RL but with a runtime normalized to 1.0 (vs. 1000+ for graph embeddings).
- Scalability: On the massive industrial-scale C347 circuit (3.4 million nodes), the common sequence significantly outperformed the industry-standard
Resyn2script. - Generalization: A sequence trained on only 10 circuits maintained high performance across 30 unseen benchmarks, proving its robustness.
Conclusion
This research challenges the assumption that complex circuit feature extraction is necessary for effective RL-based logic synthesis. By demonstrating that a single, state-agnostic common sequence can rival specialized models, the authors provide a path toward integrating AI-driven optimization into standard industrial EDA (Electronic Design Automation) flows. Future work will look into hyper-parameter optimization for individual operators and clustering circuits to develop specialized sequence libraries.
Summary updated