Self-Supervised Graph Contrastive Pretraining for Device-level Integrated Circuits

Sungyoung Lee, Ziyi Wang, Seunggeun Kim, Taekyun Lee, David Z. PanarXiv 2025 · DOI

Abstract

Electronic Design Automation (EDA) has seen significant progress in digital circuit design through machine learning, yet analog circuits remain a challenge due to their continuous nature and data scarcity. We present DICE (Device-level Integrated Circuits Encoder), a self-supervised graph neural network (GNN) framework that operates at the device level. By employing circuit-aware graph augmentations and contrastive learning, DICE learns functional representations across diverse topologies, significantly outperforming existing models in performance prediction and circuit similarity tasks.

Introduction: The Analog Gap in EDA

While machine learning has revolutionized digital chip design by abstracting logic into gates, analog and mixed-signal circuits remain difficult to model. Analog designs operate at the device level—using individual transistors, resistors, and capacitors—where continuous parameters and complex physics dominate. Existing AI tools often fail here due to two primary hurdles: analog incompatibility and extreme data scarcity. Labeled circuit data is expensive, requiring computationally intensive simulations.

Furthermore, standard graph augmentation techniques used in general machine learning, such as randomly adding or removing edges, are destructive in the context of circuits. A random connection can create a short circuit, fundamentally altering the device's semantics and making the resulting graph physically nonsensical. Traditional approaches often resort to training separate models for every single circuit topology, which is inefficient and lacks generalization.

Figure 3: Simple graph augmentations can break circuit semantics, while traditional methods often require separate models for each topology.

The DICE Framework

To address these challenges, we introduce DICE, a self-supervised pretraining framework designed to understand circuits at their most fundamental level. DICE represents integrated circuits as device-level graphs, where nodes correspond to specific device types (e.g., NMOS, PMOS, resistors) and edges represent current flow and control signals.

The core of DICE lies in its "circuit-aware" augmentations and contrastive pretraining strategy:

  1. Device-Level Graph Construction: Circuits are modeled using 9 node types and 5 edge types, providing a universal language for both analog and digital domains.
  2. Circuit-Aware Augmentations: To enable self-supervised learning without breaking physical laws, DICE uses:
  3. Positive Augmentation: Adding identical devices in series or parallel. This preserves overall circuit behavior while varying the graph structure.
  4. Negative Augmentation: Replacing subgraphs with different components (e.g., swapping a resistor for an inductor) to create functionally distinct "negative" examples.
  5. Contrastive Pretraining: DICE employs a contrastive loss function to pull representations of a circuit and its positive augmentations together in vector space while pushing away negative samples.
Figure 6: The DICE architecture overview, showing the parser, positive/negative data augmentation, and the GNN-based encoder.

Experimental Results and Insights

DICE was evaluated on a benchmark of 160,000 graphs derived from 55 initial topologies. Using NGSPICE for ground truth labels, the model was tested on tasks including circuit similarity and performance metric prediction (e.g., gain, power, and delay).

Key findings include:

  • Superior Accuracy: DICE achieved 93.94% accuracy in circuit similarity tasks, significantly outperforming supervised baselines.
  • High-Precision Prediction: For operational amplifier (OPAMP) metrics, DICE reached an $R^2$ of over 0.99 for power and 0.97 for gain.
  • Generalization: Unlike previous methods that required topology-specific models, a single pretrained DICE model generalized effectively across diverse circuit structures.
  • Semantic Preservation: The results confirm that respecting circuit semantics during augmentation is crucial. By focusing on series/parallel additions, the model learns features robust to parameter variations, which is essential for real-world design.

Conclusion and Future Directions

DICE represents a major step toward a universal encoder for integrated circuits. By bridging the gap between digital gate-level abstractions and analog device-level realities, it provides a scalable path for AI-driven EDA. Future work will focus on scaling DICE to million-transistor systems and exploring more advanced backbones like Graph Transformers to capture long-range dependencies in complex power grids.

Paper Citation: Lee, S., et al. "DICE: Device-level Integrated Circuits Encoder with Graph Contrastive Pretraining." arXiv:2502.08949v2, 2025.

Summary updated

BibTeX
@misc{lee2025self,
  author = {Sungyoung Lee and Ziyi Wang and Seunggeun Kim and Taekyun Lee and David Z. Pan},
  title = {{Self-Supervised Graph Contrastive Pretraining for Device-level Integrated Circuits}},
  year = {2025},
  eprint = {2502.08949},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08949},
}
Figure