Hybrid Graph Models for Logic Optimization via Spatio-Temporal Information

Nan Wu, Jiwon Lee, Yuan Xie, Cong Hao

Abstract

Despite the stride made by machine learning (ML) based performance modeling, two major concerns that may impede production-ready ML applications in EDA are stringent accuracy requirements and generalization capability. To this end, we propose hybrid graph neural network (GNN) based approaches towards highly accurate quality-of-result (QoR) estimations with great generalization capability, specifically targeting logic synthesis optimization. The key idea is to simultaneously leverage spatio-temporal information from hardware designs and logic synthesis flows to forecast performance (i.e., delay/area) of various synthesis flows on different designs. The structural characteristics inside hardware designs are distilled and represented by GNNs; the temporal knowledge (i.e., relative ordering of logic transformations) in synthesis flows can be imposed on hardware designs by combining a virtually added supernode or a sequence processing model with conventional GNN models. Evaluation on 3.3 million data points shows that the testing mean absolute percentage error (MAPE) on designs seen and unseen during training are no more than 1.2% and 3.1%, respectively, which are 7-15X lower than existing studies.

Introduction

In Electronic Design Automation (EDA), logic synthesis serves as the critical bridge between high-level Register Transfer Level (RTL) code and physical gate-level implementations. Engineers apply "synthesis flows"—sequences of mathematical transformations—to optimize a chip's Quality-of-Result (QoR), primarily focusing on area and latency. However, the design space for these flows is astronomical, and traditional EDA tools are often too slow for exhaustive exploration.

While Machine Learning (ML) offers a promising path for fast performance estimation, existing models struggle with two major hurdles:

  1. Accuracy: Production-ready tools require extremely low error rates, typically below 5%.
  2. Generalization: Most models are design-specific; a model trained on one type of circuit (e.g., an adder) often fails to generalize to another (e.g., a multiplier).

The authors identify that previous attempts failed because they did not effectively combine spatial information (the circuit's structural wiring) with temporal information (the specific sequence of optimization steps).

Methods: The LOSTIN Framework

The proposed framework, LOSTIN (Logic Optimization via Spatio-Temporal Information), treats logic synthesis as a multi-modal learning problem. It aims to capture both the static structure of the circuit and the dynamic nature of the optimization sequence.

Overview of the logic optimization design flow and the proposed Hybrid GNN model.

The authors explore two primary architectures:

  • GNN-S (Supernode): This model introduces a "virtual supernode" into the circuit graph. This node is connected to every other node and carries an embedding of the synthesis flow. Through message-passing, the temporal flow information is distributed across the spatial circuit structure.
  • GNN-H (Hybrid): This more advanced approach utilizes a Graph Isomorphism Network (GIN) to extract a spatial embedding of the circuit and a Long Short-Term Memory (LSTM) network to extract a temporal embedding of the synthesis flow sequence. These embeddings are concatenated and processed by a multi-layer perceptron (MLP) for final prediction.

By decoupling the circuit and flow representations, LOSTIN avoids the memory overhead of redundant encoding and better reflects the physical reality of the synthesis process.

Datasets and Evaluation

To validate the approach, the researchers generated a massive, open-source dataset:

  • Source: 11 circuit designs from the EPFL benchmark suite.
  • Scale: 3.3 million data points.
  • Flows: 300,000 random synthesis flows (lengths 10–25) using the ABC tool.
  • Ground Truth: Real area and delay results collected after technology mapping using a 7nm process.

Key Insights

A central finding is that the sequence of transformations is more critical than the transformations themselves. The LSTM component is vital because it captures the temporal dependency—how one optimization sets the stage for the next.

Distribution of circuit delay across different synthesis flow lengths.

Furthermore, the study found that deep GNNs (up to 10 layers) are necessary to provide a sufficient "receptive field," allowing the model to understand how local logic changes affect distant gates. The model's success in inductive scenarios—predicting results for unseen designs—suggests it has learned fundamental relationships between circuit topology and optimization impact.

Results

LOSTIN achieves unprecedented accuracy in QoR estimation:

  • Seen Designs (Transductive): Mean Absolute Percentage Error (MAPE) was less than 1.2%.
  • Unseen Designs (Inductive): MAPE remained below 3.1%.
  • Comparison: These results represent a 7–15× improvement over previous state-of-the-art CNN and LSTM-based models.

Conclusion and Future Work

While LOSTIN sets a new benchmark for logic optimization modeling, challenges remain regarding graph scalability for multi-million gate industrial designs. Future work may involve hierarchical clustering or higher-level abstractions. Additionally, extending this spatio-temporal framework to physical synthesis (placement and routing) could further revolutionize the EDA pipeline.

Summary updated

BibTeX
@inproceedings{wu2022hybrid,
  author = {Nan Wu and Jiwon Lee and Yuan Xie and Cong Hao},
  title = {{Hybrid Graph Models for Logic Optimization via Spatio-Temporal Information}},
  booktitle = {ASAP},
  year = {2022},
  url = {https://openreview.net/forum?id=hwhqrzEMDm4},
}
Figure