Transferable Parasitic Estimation via Graph Contrastive Learning and Label Rebalancing in AMS Circuits
Shen, Hua, Zou et al.
Graph representation learning on Analog-Mixed Signal (AMS) circuits is crucial for various downstream tasks, e.g., parasitic estimation. However, the scarcity of design data, the unbalanced distribution of labels, and the inherent diversity of circuit implementations pose significant challenges to learning robust and transferable circuit representations. To address these limitations, we propose CircuitGCL, a novel graph contrastive learning framework that integrates representation scattering and label rebalancing to enhance transferability across heterogeneous circuit graphs. CircuitGCL employs a self-supervised strategy to learn topology-invariant node embeddings through hyperspherical representation scattering, eliminating dependency on large-scale data. Simultaneously, balanced mean squared error (BMSE) and balanced softmax cross-entropy (BSCE) losses are introduced to mitigate label distribution disparities between circuits, enabling robust and transferable parasitic estimation. Evaluated on parasitic capacitance estimation (edge-level task) and ground capacitance classification (node-level task) across TSMC 28nm AMS designs, CircuitGCL outperforms all state-of-the-art (SOTA) methods, with the $R^2$ improvement of $33.64\% \sim 44.20\%$ for edge regression and F1-score gain of $0.9\times \sim 2.1\times$ for node classification. Our code is available at https://github.com/ShenShan123/CircuitGCL.
academic
Transferable Parasitic Estimation via Graph Contrastive Learning and Label Rebalancing in AMS Circuits
This paper proposes the CircuitGCL framework to address parasitic parameter estimation in analog-mixed-signal (AMS) circuits. The framework tackles challenges arising from scarce circuit design data, imbalanced label distributions, and circuit implementation diversity through graph contrastive learning and label rebalancing techniques. CircuitGCL employs a self-supervised strategy to learn topology-invariant node embeddings through representation scattering on hyperspheres, while introducing balanced mean squared error (BMSE) and balanced softmax cross-entropy (BSCE) loss functions to mitigate label distribution discrepancies across circuits. Experiments on TSMC 28nm AMS designs demonstrate that the method achieves R² improvements of 33.64%–44.20% on edge regression tasks and F1-score improvements of 0.9×–2.1× on node classification tasks.
Modern AMS circuits integrate analog modules (such as amplifiers and oscillators) and digital subsystems (such as controllers and SRAM arrays), requiring extensive manual iterations during design. As process nodes continue to shrink, parasitic effects become increasingly critical, particularly parasitic capacitance, which significantly impacts circuit performance by increasing propagation delay, raising power consumption, and degrading signal integrity.
Traditional design flows rely on post-layout simulation to verify parasitic effects, a time-consuming and costly approach. Parasitic parameter prediction at the pre-layout stage can substantially reduce design iteration cycles and improve design efficiency. Graph neural networks (GNNs) provide an effective solution by modeling circuits as graph structures for parasitic parameter prediction.
Data Scarcity: High-quality AMS circuit data (including SPICE netlists and post-layout parasitic parameters) is typically proprietary and expensive to generate
Circuit Diversity: AMS circuits span analog, digital, and mixed-signal domains with different design principles and performance requirements
Label Imbalance: Parasitic capacitance distributions exhibit long-tail characteristics with severe underrepresentation of large capacitance values
Poor Transferability: Existing methods trained on specific circuit types struggle to generalize to other circuit topologies
CircuitGCL Framework: Adapts representation scattering mechanism (RSM) to graph contrastive learning, generating transferable representations directly applicable to unseen AMS designs without task-specific fine-tuning
Label Rebalancing Techniques: Addresses data imbalance in circuit datasets through balanced MSE and balanced BSCE loss functions, enhancing cross-domain transfer capability
Unified Theoretical Framework: Provides unified theoretical foundations for imbalanced regression and classification based on distribution alignment principles
Broad Applicability: The method extends directly to resistance/inductance prediction, crosstalk analysis, IR drop estimation, and cross-process migration tasks
Input: Schematic netlists of AMS circuits, modeled as heterogeneous graphs G = (V, E), where nodes V represent nets, transistor devices, and pins, and edges E encode connectivity relationships
Output:
Converts heterogeneous AMS graphs to homogeneous graphs, using node type attributes X ∈ {0,1,2}^{N×1} to distinguish net, device, and pin nodes. Enhanced feature matrix X_C ∈ R^{N×d_C} captures detailed design parameters and connectivity statistics.
CircuitGPS uses dual-anchor shortest path distance (DSPD) for positional encoding, but computational and storage costs scale quadratically with graph size. CircuitGCL's GCL pretraining exhibits high parallelism and good model scalability, significantly outperforming DSPD on large-scale circuits.
BSCE application to all baseline methods yields significant accuracy improvements, with more pronounced effects on large-scale designs. Balanced MSE significantly enhances model performance in data-scarce regions.
Mainstream GCL frameworks implicitly perform representation scattering, which is critical to their success. This work adopts SGRL as the GCL foundation, embedding node representations on hyperspheres.
CircuitGCL successfully addresses data scarcity and label imbalance in AMS circuit design through self-supervised representation learning and distribution-aware loss functions
RSM-generated topology-invariant embeddings demonstrate excellent cross-domain transfer capability
Balanced loss functions theoretically unify imbalanced regression and classification problems
Achieves state-of-the-art performance on multiple TSMC 28nm designs
Design Space Exploration: Quick screening of candidate solutions in large design spaces
Cross-design Transfer: Applying models trained on one circuit to new circuit designs
EDA Tool Integration: Core algorithm module for commercial EDA tools
Overall Assessment: This is a high-quality interdisciplinary research paper that successfully applies cutting-edge machine learning techniques to practical EDA problems. The methodology is novel, experiments are comprehensive, results are significant, and it possesses important theoretical and practical value.