LHNN: lattice hypergraph neural network for VLSI congestion prediction

Bowen Wang, Guibao Shen, Dong Li, Jianye Hao, Wulong Liu, Yu Huang, Hongzhong Wu, Yibo Lin, Guangyong Chen, Pheng-Ann Heng

Introduction

In the physical design of Very Large Scale Integration (VLSI) circuits, the placement stage is critical. During this phase, millions of electronic cells are assigned specific physical coordinates on a chip. A primary objective of placement is to minimize congestion—a state where the demand for routing resources exceeds the available capacity in a given area. High congestion leads to "unroutable" designs, forcing designers back to earlier stages of the design flow, which is both time-consuming and costly.

Traditionally, designers rely on global routers to generate accurate congestion maps. However, global routing is computationally expensive. While recent machine learning approaches, particularly Convolutional Neural Networks (CNNs), have attempted to accelerate this process by treating the circuit layout as an image, they suffer from two major limitations: the loss of complex netlist topology and a limited receptive field that fails to account for long-range logical connections. This paper introduces the Lattice Hypergraph Neural Network (LHNN) to address these gaps by simultaneously modeling physical geometry and logical wiring.

Methodology

The Lattice Hypergraph (LH-graph)

The core innovation of this work is the Lattice Hypergraph (LH-graph), a heterogeneous graph structure that represents the circuit from two complementary perspectives:

  1. Lattice Component: This models physical proximity by connecting adjacent grid cells (G-cells). It allows the model to capture local spatial congestion patterns similar to how a CNN operates.
  2. Hypergraph Component: This models logical connectivity. It connects G-cells that belong to the same "net" (the logical signal path between pins). This structure enables information to "jump" across the chip, reflecting how distant physical areas are intertwined through shared wiring.

LHNN Architecture

The LHNN architecture processes the LH-graph through three specialized functional blocks:

  • FeatureGen: This module aggregates initial netlist data and raw features into the graph nodes.
  • HyperMP (Hypergraph Message Passing): This block propagates features along the logical netlist connections, capturing the influence of net topology on congestion.
  • LatticeMP (Lattice Message Passing): This block propagates features between physically neighboring cells, capturing spatial diffusion and local resource competition.

Joint Supervision

Unlike standard models that treat congestion prediction as a simple binary classification task (congested vs. not congested), LHNN utilizes Joint Supervision. The model is trained to simultaneously predict continuous routing demand and the binary congestion status. This multi-task learning approach preserves the nuanced gradients of routing pressure, preventing the loss of information that occurs when data is prematurely thresholded.

Experimental Results

Performance Benchmarks

The researchers evaluated LHNN using 15 designs from the industry-standard ISPD 2011 and DAC 2012 benchmarks. Ground truth congestion maps were generated using the NCTU-GR 2.0 global router.

LHNN demonstrated significant performance gains over established image-to-image baselines:

  • F1 Score: LHNN achieved a score of 40.89, a substantial improvement over U-net (29.75) and Pix2Pix (30.20), representing a >35% increase in predictive power.
  • Accuracy: The model reached an overall accuracy of 95.46%.
  • Visual Fidelity: While CNNs often produce "blurry" predictions that average out congestion, LHNN provides sharper distinctions, significantly reducing both false positives and false negatives.

Ablation and Robustness

Ablation studies revealed that the HyperMP block is the most critical component of the architecture. Removing the logical connectivity modeling resulted in the sharpest decline in performance. Furthermore, LHNN proved remarkably robust; even when stripped of complex input features and provided only with a basic terminal mask, it maintained an F1 score of 38.02—a level of performance that standard CNN baselines could not reach even with full feature sets.

Discussion and Insights

Topology vs. Geometry

The success of LHNN underscores that in VLSI design, logical topology is as vital as physical geometry. By allowing information to flow along the paths of the wires themselves, the model captures the true nature of routing demand.

Feature Recovery

An interesting theoretical insight from the study is that many "hand-crafted" features traditionally used by CAD engineers (such as RUDY or net density maps) are essentially specific instances of a single message-passing step on the LH-graph. This suggests that LHNN is capable of "re-inventing" or optimizing these classical heuristics automatically during training.

Conclusion

LHNN represents a significant step forward in fast, accurate congestion prediction. By bridging the gap between graph-based logical representations and grid-based physical layouts, it outperforms traditional image-based models. Future work will focus on efficiently incorporating very large "global" nets into the hypergraph and integrating LHNN into active placement tools like DREAMPlace to provide real-time, congestion-aware guidance during the design process.

Summary updated

BibTeX
@inproceedings{wang2022lhnn,
  author = {Bowen Wang and Guibao Shen and Dong Li and Jianye Hao and Wulong Liu and Yu Huang and Hongzhong Wu and Yibo Lin and Guangyong Chen and Pheng-Ann Heng},
  title = {{LHNN: lattice hypergraph neural network for VLSI congestion prediction}},
  booktitle = {DAC},
  year = {2022},
  url = {https://openreview.net/forum?id=qPTXoLSZdWj},
}
Figure