DR-CircuitGNN: Training Acceleration of Heterogeneous Circuit Graph Neural Network on GPUs

Yuebo Luo, Shiyang Li, Junran Tao, Kiran Gautam Thorat, Xi Xie, Hongwu Peng, Nuo Xu, Caiwen Ding, Shaoyi Huang

TL;DR

This paper introduces DR-CircuitGNN, a novel framework designed to significantly accelerate the training of Heterogeneous Graph Neural Networks (HGNNs) for Electronic Design Automation (EDA) tasks on GPUs. By introducing a dynamic, row-wise sparsity-aware activation function (D-ReLU) and optimizing Sparse Matrix Multiplication (SpMM) kernels, DR-CircuitGNN tackles the computational bottlenecks inherent in processing complex circuit graphs, achieving substantial speedups without compromising accuracy.

What Problem Does This Paper Address?

The increasing complexity of integrated circuit (IC) designs has led to a surge in the scale and intricacy of Electronic Design Automation (EDA) datasets. Graph Neural Networks (GNNs), and more specifically Heterogeneous GNNs (HGNNs), have emerged as powerful tools for modeling these circuits due to their ability to capture both topological and geometric relationships. However, the enhanced representational power of HGNNs comes at a significant computational cost. The core message-passing mechanism in HGNNs relies heavily on Sparse Matrix-Matrix Multiplication (SpMM), which becomes a major bottleneck, especially with the large, heterogeneous graphs common in EDA. Existing HGNN training pipelines suffer from inefficiencies due to:

  1. Kernel-level bottlenecks: SpMM operations are computationally intensive and can be inefficiently handled, particularly with the irregular sparsity patterns found in circuit graphs.
  2. Workload imbalance: The distribution of node degrees in circuit graphs can be highly skewed, leading to "evil rows" that cause significant idle time for GPU threads.
  3. Suboptimal scheduling: Sequential processing of independent subgraphs within HGNNs leads to synchronization overhead and underutilization of GPU resources.

These challenges hinder the scalability and efficiency of applying HGNNs to real-world EDA problems.

Methods

DR-CircuitGNN addresses these challenges through several key innovations:

  • Hetero-Dynamic ReLU (D-ReLU): This novel activation function injects balanced row-wise sparsity into node embeddings. Unlike standard ReLU, D-ReLU dynamically thresholds embeddings based on the top-k most significant elements in each row. This selective preservation of important features helps mitigate workload imbalance on GPUs by creating more uniform sparsity patterns.
  • DR-SpMM Kernels (Forward and Backward):
    • Forward Pass: A specialized DR-SpMM forward kernel is designed to efficiently handle the irregular adjacency patterns in circuit subgraphs. It leverages row-wise sparsity generated by D-ReLU and maps it directly onto edge and node types, accelerating the message-passing stage.
  • Backward Pass: A customized DR-SpMM backward kernel is developed to efficiently process circuit graph gradients. It utilizes column-major neighbor indexing and the preserved indices from D-ReLU to accelerate gradient aggregation.
  • Parallel Optimization Strategy: The framework employs a multi-threaded CPU approach for initializing independent subgraphs concurrently. These subgraphs are then processed in parallel on the GPU using multiple cudaStreams. This strategy maximizes CPU-GPU concurrency and improves overall training efficiency by overlapping initialization and kernel execution.

Datasets

The paper utilizes the following datasets:

  • CircuitNet: A large, open-source dataset for machine learning in VLSI CAD, containing over 10,000 circuit designs.
  • Mini-CircuitNet: A smaller subset of CircuitNet (120 designs: 100 training, 20 testing) created for comparative analysis and to manage computational constraints for homogeneous GNN models.

Key Insights and Ideas

  • Balanced Sparsity is Key: The paper demonstrates that simply inducing sparsity (like ReLU) isn't enough; balanced row-wise sparsity is crucial for mitigating workload imbalance in HGNNs, especially in the context of EDA graphs.
  • SpMM is the Dominant Bottleneck: The analysis clearly shows that SpMM operations consume a significant portion of the training time, making its optimization paramount for performance gains.
  • Heterogeneity Demands Tailored Kernels: Standard SpMM kernels are not optimized for the diverse edge types and node types present in circuit graphs. DR-CircuitGNN's specialized kernels are designed to exploit this heterogeneity.
  • CPU-GPU Concurrency is Underutilized: Existing HGNN frameworks often fail to fully leverage the independent nature of subgraph processing. The proposed parallel scheduling effectively bridges this gap.

Key Results

DR-CircuitGNN achieves significant performance improvements:

  • Speedups:
    • Up to 3.51× and 4.09× speedups for forward and backward propagation, respectively, compared to state-of-the-art methods (DGL and GNNAdvisor) on representative CircuitNet designs.
  • Up to 2.71× speedup over the official DGL implementation (cuSPARSE) on full-size CircuitNet and sampled Mini-CircuitNet.
  • Accuracy: The proposed method achieves these speedups with negligible impact on correlation scores and error rates for congestion prediction tasks.
  • Kernel Performance: DR-SpMM kernels show consistent acceleration across different K-values and embedding dimensions, outperforming cuSPARSE and GNNA.

Limitations and Future Work

  • Optimal K-value Profiling: While the paper proposes a method to find optimal K-values for D-ReLU, this profiling step adds overhead. The authors note that this is a one-time effort per dataset, but it's still a consideration.
  • CUDA Runtime Limitations: The paper acknowledges that perfect parallelism is limited by resource contention and CUDA runtime scheduling overhead.
  • Future Work: The authors suggest exploring better CUDA stream scheduling and potentially leveraging technologies like CXL for improved GPU resource management. They also aim to extend their framework to other EDA tasks beyond congestion prediction.

Summary updated

BibTeX
@inproceedings{luo2025dr,
  author = {Yuebo Luo and Shiyang Li and Junran Tao and Kiran Gautam Thorat and Xi Xie and Hongwu Peng and Nuo Xu and Caiwen Ding and Shaoyi Huang},
  title = {{DR-CircuitGNN: Training Acceleration of Heterogeneous Circuit Graph Neural Network on GPUs}},
  booktitle = {ICS},
  year = {2025},
}
Figure