Less is More: Hop-Wise Graph Attention for Scalable and Generalizable Learning on Circuits

Chenhui Deng, Zichao Yue, Cunxi Yu, Gokce Sarar, Ryan Carey +2 more
3/2/2024
cs.LGcs.AR
gnn

Official code: cornell-zhang/HOGA (35 stars, Python, BSD-3-Clause, last commit 2024-08-25).

Abstract

While graph neural networks (GNNs) have gained popularity for learning circuit representations in various electronic design automation (EDA) tasks, they face challenges in scalability when applied to large graphs and exhibit limited generalizability to new designs. These limitations make them less practical for addressing large-scale, complex circuit problems.

Show full abstract

In this work we propose HOGA, a novel attention-based model for learning circuit representations in a scalable and generalizable manner. HOGA first computes hop-wise features per node prior to model training. Subsequently, the hop-wise features are solely used to produce node representations through a gated self-attention module, which adaptively learns important features among different hops without involving the graph topology. As a result, HOGA is adaptive to various structures across different circuits and can be efficiently trained in a distributed manner. To demonstrate the efficacy of HOGA, we consider two representative EDA tasks: quality of results (QoR) prediction and functional reasoning. Our experimental results indicate that (1) HOGA reduces estimation error over conventional GNNs by 46.76% for predicting QoR after logic synthesis; (2) HOGA improves 10.0% reasoning accuracy over GNNs for identifying functional blocks on unseen gate-level netlists after complex technology mapping; (3) The training time for HOGA almost linearly decreases with an increase in computing resources.

View on arXivView PDF

Code Implementations(1)

cornell-zhang/HOGAOfficial100%
BSD-3-Clause

Hop-Wise Graph Attention for Scalable and Generalizable Learning on Circuits

357Python, ShellMar 6, 20242 years agoBSD-3-Clause
distributed-trainingelectronic-design-automationgraph-learninggraph-transformerlogic-synthesis

Similar Papers

Cite this paper

@article{deng2024less,
  title  = {Less is More: Hop-Wise Graph Attention for Scalable and Generalizable Learning on Circuits},
  author = {Chenhui Deng and Zichao Yue and Cunxi Yu and Gokce Sarar and Ryan Carey and Rajeev Jain and Zhiru Zhang},
  year   = {2024},
  eprint = {2403.01317},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.01317v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.01317.svg)](https://codeofpaper.com/paper/2403.01317)

Discussion