[Paper Review] A Circuit Domain Generalization Framework for Efficient Logic Synthesis in Chip Design
This paper proposes PruneX, a data-driven circuit domain generalization framework that accelerates logic synthesis by predicting and pruning ineffective node-level transformations in Resub and Mfs2 operators. By learning domain-invariant representations through transformation-invariant domain knowledge, PruneX reduces runtime by up to 3.1× while maintaining comparable optimization quality on industrial and large-scale circuits.
Logic Synthesis (LS) plays a vital role in chip design -- a cornerstone of the semiconductor industry. A key task in LS is to transform circuits -- modeled by directed acyclic graphs (DAGs) -- into simplified circuits with equivalent functionalities. To tackle this task, many LS operators apply transformations to subgraphs -- rooted at each node on an input DAG -- sequentially. However, we found that a large number of transformations are ineffective, which makes applying these operators highly time-consuming. In particular, we notice that the runtime of the Resub and Mfs2 operators often dominates the overall runtime of LS optimization processes. To address this challenge, we propose a novel data-driven LS operator paradigm, namely PruneX, to reduce ineffective transformations. The major challenge of developing PruneX is to learn models that well generalize to unseen circuits, i.e., the out-of-distribution (OOD) generalization problem. Thus, the major technical contribution of PruneX is the novel circuit domain generalization framework, which learns domain-invariant representations based on the transformation-invariant domain-knowledge. To the best of our knowledge, PruneX is the first approach to tackle the OOD problem in LS operators. We integrate PruneX with the aforementioned Resub and Mfs2 operators. Experiments demonstrate that PruneX significantly improves their efficiency while keeping comparable optimization performance on industrial and very large-scale circuits, achieving up to $3.1 imes$ faster runtime.
Motivation & Objective
- Address the inefficiency of logic synthesis (LS) operators like Resub and Mfs2, which dominate runtime due to a high proportion of ineffective transformations.
- Overcome the out-of-distribution (OOD) generalization problem in LS, where models fail to generalize across diverse circuit structures.
- Develop a novel domain generalization framework that learns transformation-invariant representations to improve model generalization across unseen circuits.
- Integrate the proposed framework into existing LS operators to boost efficiency without sacrificing optimization quality.
- Reduce Time to Market and improve Quality of Results in chip design by minimizing unnecessary transformations in large-scale circuits.
Proposed method
- Construct node-level features using a bipartite graph representation based on functionality, structure, and connectivity information (e.g., fanout, level, cuts, leaves).
- Train operator-specific graph neural networks (GCNNs) with multi-head attention to classify nodes as effective or ineffective for transformation.
- Apply Min-Max normalization to input features to stabilize training and improve generalization across circuits with varying scales.
- Use a Sigmoid-activated multi-head neural network with three fully connected layers (1024 units each) to output transformation effectiveness probabilities.
- Sort nodes by predicted effectiveness scores and apply transformations only to the top k% of predicted effective nodes, reducing computation cost.
- Leverage model selection from multiple training checkpoints to select the best-performing model on validation data, enhancing robustness.
Experimental results
Research questions
- RQ1Can a data-driven framework effectively identify and prune ineffective node-level transformations in logic synthesis operators like Resub and Mfs2?
- RQ2How well can a model trained on one set of circuits generalize to unseen, out-of-distribution circuits in logic synthesis?
- RQ3To what extent can domain generalization techniques improve the efficiency of logic synthesis without degrading optimization quality?
- RQ4What is the impact of pruning ineffective transformations on runtime and Quality of Results in large-scale industrial circuits?
- RQ5Can the proposed framework be generalized to other LS operators such as Rewrite and Refactor that follow the same node-level transformation paradigm?
Key findings
- PruneX reduces the runtime of Resub and Mfs2 operators by up to 3.1× on industrial and very large-scale circuits while maintaining comparable optimization quality.
- The Resub and Mfs2 operators account for approximately 79% of the total logic synthesis runtime, making them a major bottleneck.
- Applying transformations only to true effective nodes achieves the same optimization performance as the default Mfs2 operator, validating the effectiveness of the pruning strategy.
- The marginal shift between predicted and true node IDs during sequential transformation has minimal impact on optimization results due to the sparsity of effective nodes.
- The proposed domain generalization framework enables models to generalize across diverse circuit distributions, solving the OOD generalization problem in LS for the first time.
- The method is operator-agnostic and can be extended to other LS operators such as Rewrite and Refactor, which follow the same node-level transformation paradigm.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.