Executive Summary
PruneX is a novel data-driven framework designed to accelerate logic synthesis in chip design by identifying and skipping "ineffective" circuit transformations. By leveraging a specialized Circuit Domain Generalization (COG) framework, PruneX overcomes the common machine learning challenge of models failing on unseen circuit designs (Out-of-Distribution generalization). The result is up to a 3.1× speedup in runtime while maintaining, or even improving, the final quality of the chip.
The Challenge: Ineffective Transformations in Logic Synthesis
In modern chip design, Logic Synthesis (LS) acts as the "compiler" stage, transforming high-level behavioral descriptions into optimized gate-level netlists. A critical component of this process is Circuit Optimization (CO), where heuristics like Resub and Mfs2 iteratively attempt to simplify subgraphs within a massive Directed Acyclic Graph (DAG) representing the circuit.
However, researchers discovered a massive inefficiency in this standard approach: over 90% of these attempted transformations are "ineffective." This means they do not actually improve the circuit, yet they still consume significant computation time. In fact, the Resub and Mfs2 heuristics alone can account for nearly 80% of the total logic synthesis runtime.
The primary hurdle in using Machine Learning to predict and skip these ineffective steps is Out-of-Distribution (OOD) generalization. A model trained to predict "effective" nodes on a simple arithmetic circuit typically performs poorly on a complex control circuit because their underlying structural distributions are vastly different.
Methodology: The PruneX Paradigm
To address these bottlenecks, the authors propose PruneX, a paradigm that integrates a learned classifier directly into the optimization loop. PruneX prunes ineffective nodes before the computationally heavy transformation attempts begin.
To ensure this classifier remains robust across diverse, unseen chip designs, the authors developed the Circuit Domain Generalization (COG) framework, built on three main pillars:
- Circuit Aggregation: Instead of treating all circuits as a single monolithic dataset, they are grouped into "domains" based on functionality (e.g., arithmetic vs. control) and sample size. This enables the model to learn from distinct, domain-specific structural patterns.
- Knowledge-Driven Subgraph Representation (KDSR): Because transformations are inherently local, the framework uses a Graph Convolutional Neural Network (GCNN) to encode the local subgraph surrounding a node. The subgraph is transformed into a bipartite graph (separating the root node from its neighbors) to extract domain-invariant features critical for the transformation, regardless of the broader chip architecture.
- Domain-Aware Distributional Classifier (DADC): The system employs a multi-head neural network where each "head" learns a classifier tailored to a specific circuit domain. During the "online" synthesis of a new, unseen chip, the outputs of these heads are averaged to deliver a robust, generalized prediction.
Datasets and Benchmarks
The study validated PruneX across three major benchmarks:
- EPFL Benchmark: A standard suite of combinational circuits (e.g., Adder, Multiplier, Sin, Square).
- IWLS Benchmark: A collection of larger, more diverse circuit designs.
- Industrial Benchmark: 27 real-world circuits provided by Huawei HiSilicon, ranging from small modules to massive, very large-scale designs containing up to 20 million nodes.
Key Insights and Innovations
- The Locality Principle: A powerful insight of this work is that while global circuit distributions shift wildly between designs, the local mechanism determining whether a transformation works remains relatively stable. By focusing on subgraphs, the model successfully isolates "transformation-invariant" knowledge.
- Theoretical Error Bounds: The authors provide a theoretical generalization error bound demonstrating that domain-wise training results in a smaller error than simply pooling all data into one generic set.
- The "2PruneX" Strategy: Because PruneX accelerates synthesis so dramatically, designers can afford to run the optimization sequence twice. This "2PruneX" approach actually resulted in better Quality of Results (QoR)—yielding smaller and faster chips—than the default industry-standard heuristics, while still finishing faster overall.
Experimental Results
- Speedup: PruneX achieved up to 3.1× faster runtime on specific circuits (like the "Hyp" circuit) and reduced the runtime of the heavy Mfs2 heuristic by an average of 40.96%.
- Scalability: On massive industrial circuits (20M nodes), PruneX reduced optimization time by up to 10.9 hours for a single pass.
- Accuracy: The COG framework improved prediction recall by 37% on average compared to simple MLP baselines, proving that domain generalization is essential for applying ML to logic synthesis.
- QoR Preservation: Across almost all tests, the reduction in circuit size and delay (depth) remained comparable to (within 1% of) the exhaustive, slower default heuristics.
Limitations and Future Work
While highly effective, the framework has areas for future improvement:
- Serial Inference Bottleneck: Currently, model inference is performed serially or in small batches. On multi-million node circuits, the time spent on model inference becomes noticeable. Future scaling will likely require multi-card parallel inference.
- Class Imbalance: Because "effective" nodes are extremely rare (<10%), the model faces a "needle in a haystack" problem. While Focal Loss was used to mitigate this, more advanced sampling techniques could further improve precision.
- Model Selection: Choosing the optimal training epoch for the final model remains somewhat manual; automated model selection strategies are a target for future research.
Summary updated