TL;DR
The paper introduces GPA (GNN-based Path-Aware multi-view circuit learning), a novel deep learning framework designed to bridge the "semantic gap" in logic synthesis by predicting accurate post-mapping circuit delays. By integrating functional, structural, and technology-specific views with a path-aware Transformer pooling mechanism, GPA guides technology mapping engines to achieve up to a 19.9% reduction in critical-path delay over traditional heuristic methods without sacrificing area efficiency.
What Problem Does This Paper Address?
In electronic design automation (EDA), technology mapping is the crucial step that transforms a technology-independent Boolean network (like an And-Inverter Graph, or AIG) into a gate-level netlist using cells from a specific manufacturing library. The primary goal is to minimize critical-path delay while keeping area overhead low.
However, traditional mapping tools suffer from a fundamental limitation: they rely on abstract, technology-agnostic delay models during the early stages of optimization. These models fail to account for real-world physical factors like load capacitance, signal transitions, and downstream logic context. As a result, early-stage delay estimates deviate significantly from actual post-mapping timing behavior. As shown in Figure 1, even minor perturbations in how candidate "cuts" (sub-graphs mapped to single gates) are selected can lead to wildly suboptimal implementations, proving that standard heuristics struggle to find the true timing-optimal configuration.
Methods
GPA addresses this challenge by acting as an intelligent, data-driven guidance mechanism for the mapping engine. The framework consists of three core components that process the circuit from multiple "views":
- AIG Encoder: Extracts node-level representations from the technology-independent graph. It splits embeddings into a structural part (capturing graph topology) and a functional part (capturing logic operations like AND/NOT).
- Post-Mapping (PM) Encoder: A simple multi-layer perceptron (MLP) that embeds the physical constraints and characteristics of the target technology library, providing a global context to the model.
- Path-Aware GAT Transformer Pooling: This is the core innovation. First, a global Graph Attention Network (GAT) layer allows nodes to aggregate information from their multi-hop neighborhoods, capturing path-level context. Then, a dedicated cut-transformer models the complex intra-cut interactions among the leaf nodes of a candidate cut, which are averaged to form a final predictive cut embedding.
Pre-training and Downstream Mapping
To ensure the AIG encoder understands general circuit properties, it undergoes self-supervised pre-training using a multi-task objective: predicting randomly masked edges (structural task) and predicting node logic types (functional task).
For the downstream task, GPA is trained as a classifier. Real cell delays from post-mapping netlists are discretized into $K=8$ delay classes (e.g., 0–100 ps, 100–200 ps, etc.). During logic synthesis, GPA infers the delay class for every candidate cut, serving as a highly accurate cost metric that guides the mapper's dynamic programming algorithm to select the optimal path.
Datasets
- Pre-training & Fine-tuning: The authors utilized 15,000 randomly selected sub-circuits for pre-training and 5,000 for fine-tuning, sourced from the open-source ForgeEDA and DeepCircuitX datasets (containing designs up to 4,096 nodes).
- Evaluation: The framework was validated using the standard 19 EPFL combinational benchmarks.
- Technology Libraries: Netlists were generated and evaluated using the open-source SkyWater 130nm and ASAP 7nm process design kits (PDKs).
Key Insights and Ideas
- Fusing Function and Structure: Unlike prior machine learning approaches that rely on rigid, handcrafted features, GPA learns expressive node embeddings directly from the graph. Handcrafted features often conflate structurally distinct sub-circuits, whereas GPA's dual-view encoding preserves unique Boolean functionality alongside topology.
- Path-Awareness via Transformers: Circuit delay is inherently path-dependent. By utilizing a Transformer architecture over the cut's leaf nodes, GPA successfully captures long-range context and downstream loading effects that local graph convolutions typically miss.
- Breaking the Area-Delay Trade-off: When swapping the AIG encoder for an XOR-Majority Graph (XMG) encoder to handle heterogeneous logic, GPA achieved simultaneous reductions in both delay and area compared to the state-of-the-art MCH heuristic. This indicates that data-driven models can discover non-obvious structural compositions that rigid human-designed heuristics overlook.
Key Results
GPA was integrated into ALSO, an open-source logic synthesis framework built on mockturtle, yielding significant performance improvements across the 19 EPFL benchmarks:
- vs. Traditional Heuristics (
techmap): Achieved an average 19.9% delay reduction under the SkyWater 130nm library, with strong gains (up to 65% reduction) on timing-critical circuits like adders. - vs. Mixed Structural Choices (
mch): Outperformed MCH in 13 out of 19 circuits, providing a 2.1% average delay reduction alongside a 2.4% area reduction. - vs. ML State-of-the-Art (
SLAP): Achieved a 4.1% average delay reduction under the ASAP 7nm library, with a dramatic 69.3% delay improvement on thedecbenchmark, demonstrating superior generalization over handcrafted feature methods.
Limitations and Future Work
While GPA shows impressive gains, the authors note a few areas for improvement:
- Discretization Granularity: The current framework bins delays into 8 distinct classes. Expanding the model to predict finer-grained delay classes or continuous values could improve mapping precision.
- Feature Integration: Future iterations will focus on integrating more post-mapping physical information directly into the training loop and developing tighter architectural modules to link technology-independent logic networks with final gate-level netlists.
Summary updated