NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DeepGate2: Functionality-Aware Circuit Representation Learning

Zhengyuan Shi, Hongyang Pan, Sadaf Khan, Min Li, Yi Liu, Junhua Huang, Hui-Ling Zhen, Mingxuan Yuan, Zhufei Chu, Qiang Xu · DOI

Abstract

Representing the logic and structure of digital circuits is a fundamental challenge in Electronic Design Automation (EDA). While previous efforts in circuit representation learning have utilized Graph Neural Networks (GNNs), they often suffer from weak supervision signals and structural blindness. This paper introduces DeepGate2, a novel framework that enhances circuit understanding by utilizing pairwise truth table differences as a training signal and a streamlined one-round GNN architecture. By incorporating Primary Input Encoding (PIE) with orthogonal vectors, DeepGate2 achieves an order-of-magnitude speedup and significantly higher accuracy in tasks such as logic synthesis and Boolean satisfiability (SAT) solving.

Introduction

In the domain of Electronic Design Automation (EDA), the ability to numerically represent a circuit's function and structure is foundational to optimizing design flows. Traditional methods often struggle to balance the computational cost of processing large-scale netlists with the need for high-fidelity functional representations. Previous state-of-the-art models, such as the original DeepGate (v1), laid the groundwork for using GNNs in this space but were limited by two primary bottlenecks: weak supervision and structural blindness.

DeepGate2 addresses these limitations by rethinking how functional information is supervised and how structural dependencies are initialized. The result is a model that is not only more accurate in predicting circuit behavior but also significantly more efficient for real-world industrial applications.

The Challenge: Weak Supervision and Structural Blindness

The original DeepGate model relied on "logic-1 probability"—the statistical likelihood that a signal is high—to learn functionality. This metric is inherently "lossy." For instance, a signal and its logical inverse (a NOT gate) both possess a logic-1 probability of 0.5, making them indistinguishable to the model despite having opposite functional behaviors.

Furthermore, DeepGate v1 suffered from structural blindness. By assigning the same initial embedding to all primary inputs (PIs), the model could not inherently distinguish between different input sources. To resolve how gates were connected or to identify reconvergent paths, the model required up to 20 rounds of slow message-passing, leading to high inference latency.

The DeepGate2 Framework

DeepGate2 introduces three core innovations to overcome these hurdles:

1. Pairwise Truth Table Difference

Instead of supervising the model based on the absolute statistics of a single gate, DeepGate2 is trained to minimize the difference between the distance of two nodes in the embedding space and the Hamming distance of their actual truth tables. This relative functional signal provides a much richer landscape for the model to learn the nuances of Boolean logic.

2. Primary Input Encoding (PIE)

To solve structural blindness, DeepGate2 assigns unique, orthogonal vectors to each primary input. Because these vectors are mathematically independent, the model can immediately identify functional independence and track the influence of specific inputs through the logic cone. This allows the GNN to recognize reconvergent paths in a single pass.

3. One-Round GNN Architecture

By leveraging the information provided by PIE, DeepGate2 replaces the iterative message-passing of its predecessor with a single-round GNN. The architecture splits embeddings into two concurrent streams—functional and structural—allowing the model to update connectivity and logic behavior simultaneously without the need for repeated iterations.

Experimental Setup and Datasets

The researchers evaluated DeepGate2 using a comprehensive collection of standard EDA benchmarks, including ITC’99, IWLS’05, EPFL, and OpenCore. The dataset comprised 10,824 And-Inverter Graphs (AIGs), with circuit sizes ranging from 36 to over 3,200 logic gates. To provide ground-truth functional data for large circuits where exhaustive truth tables are computationally impossible, the team generated incomplete truth tables using 15,000 random simulation patterns per node.

Key Results and Impact

DeepGate2 demonstrates significant improvements across both efficiency and accuracy metrics:

  • Inference Speed: The one-round GNN design makes DeepGate2 approximately 16.4x faster than DeepGate v1.
  • Functional Accuracy: The model reduced logic probability prediction error by 13.08% and improved the F1-score for identifying logically equivalent gates from 0.67 to 0.94.
  • Logic Synthesis: When integrated into the ABC logic synthesis tool, DeepGate2 reduced the number of SAT calls required for logic sweeping by up to 95%, resulting in a 49% average reduction in total runtime.
  • SAT Solving: Integration with the CaDiCal solver led to an average runtime reduction of 40.05% on industrial instances, showcasing the model's utility in accelerating complex verification tasks.

Conclusion and Future Work

DeepGate2 represents a significant leap forward in circuit representation learning by treating functionality as a relative property and utilizing orthogonal input encoding to bypass structural blindness. While the model currently relies on random simulation patterns and is optimized for And-Inverter Graphs (AIGs), it sets a new standard for efficiency in EDA.

Future research will focus on scaling Primary Input Encoding for circuits with millions of inputs, where vector dimensionality may become a constraint, and extending the framework to support higher-level abstractions such as Register Transfer Level (RTL) designs.

Summary updated

BibTeX
@inproceedings{shi2023deepgate,
  author = {Zhengyuan Shi and Hongyang Pan and Sadaf Khan and Min Li and Yi Liu and Junhua Huang and Hui-Ling Zhen and Mingxuan Yuan and Zhufei Chu and Qiang Xu},
  title = {{DeepGate2: Functionality-Aware Circuit Representation Learning}},
  booktitle = {ICCAD},
  year = {2023},
  url = {https://openreview.net/forum?id=cAs7tLYVm9},
}
Figure