[Paper Review] DeepGate2: Functionality-Aware Circuit Representation Learning
DeepGate2 introduces a functionality-aware circuit representation learning framework that improves upon DeepGate by using pairwise truth table differences as supervision and a single-round GNN to jointly learn structural and functional embeddings. It achieves a 10x speedup and 40.05% average runtime reduction in SAT solving, with significant gains in logic synthesis and Boolean satisfiability tasks.
Circuit representation learning aims to obtain neural representations of circuit elements and has emerged as a promising research direction that can be applied to various EDA and logic reasoning tasks. Existing solutions, such as DeepGate, have the potential to embed both circuit structural information and functional behavior. However, their capabilities are limited due to weak supervision or flawed model design, resulting in unsatisfactory performance in downstream tasks. In this paper, we introduce DeepGate2, a novel functionality-aware learning framework that significantly improves upon the original DeepGate solution in terms of both learning effectiveness and efficiency. Our approach involves using pairwise truth table differences between sampled logic gates as training supervision, along with a well-designed and scalable loss function that explicitly considers circuit functionality. Additionally, we consider inherent circuit characteristics and design an efficient one-round graph neural network (GNN), resulting in an order of magnitude faster learning speed than the original DeepGate solution. Experimental results demonstrate significant improvements in two practical downstream tasks: logic synthesis and Boolean satisfiability solving. The code is available at https://github.com/cure-lab/DeepGate2
Motivation & Objective
- Address the limitations of DeepGate in capturing precise circuit functionality due to weak supervision based on signal probability approximations.
- Overcome the inefficiency of multi-round message passing in DeepGate by designing a faster, single-round GNN architecture.
- Improve circuit representation learning by incorporating authentic functional information through pairwise truth table differences.
- Enable effective downstream applications in logic synthesis and SAT solving by learning more discriminative and functional-aware embeddings.
- Achieve both higher learning effectiveness and significantly improved inference efficiency compared to the original DeepGate framework.
Proposed method
- Use pairwise truth table differences—computed via rapid logic simulation—as a strong, functional supervision signal to guide representation learning.
- Design a functionality-aware loss function that minimizes the discrepancy between embedding distances and actual truth table Hamming distances.
- Decompose node embeddings into two distinct streams: functional embeddings (initially uniform for PIs) and structural embeddings (initially orthogonal for PIs).
- Process both functional and structural information through separate aggregation streams in a single forward pass of the GNN, enabling one-round message passing.
- Initialize PI embeddings with orthogonal vectors to preserve functional independence and enable the model to distinguish between gates driven by common inputs.
- Integrate the learned embeddings into downstream EDA tools by transferring gate similarity to variable similarity in SAT solvers, guiding conflict-driven decision-making.
Experimental results
Research questions
- RQ1Can pairwise truth table differences serve as an effective and scalable supervision signal for circuit representation learning?
- RQ2How can a single-round GNN architecture effectively capture both structural and functional characteristics of logic circuits?
- RQ3To what extent does functionality-aware supervision improve downstream EDA tasks such as logic synthesis and SAT solving?
- RQ4Can the proposed method achieve a significant speedup over multi-round GNNs while maintaining or improving representation quality?
- RQ5Does the model generalize well to large-scale industrial circuits in practical EDA workloads?
Key findings
- DeepGate2 achieves a 10x speedup in learning compared to the original DeepGate, with inference time proportional to circuit size and less than 10% of total runtime on average.
- The model reduces average runtime by 40.05% in SAT solving across five industrial benchmarks, with a peak reduction of 63.62% on instance I1.
- On instance I1, the baseline solver took 88.01 seconds, while the hybrid solver with DeepGate2 completed in 32.02 seconds, demonstrating substantial acceleration.
- The model maintains high accuracy in logic probability prediction and logic equivalence checking, outperforming DeepGate in both effectiveness and efficiency.
- The integration of DeepGate2 into SAT solvers via variable similarity guidance leads to faster conflict detection and reduced search space.
- Even on larger instances like I4 and I5, the model shows measurable performance gains, indicating strong scalability and generalization beyond small circuits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.