Wrong Code, Right Structure: Learning Netlist Representations from Imperfect LLM-Generated RTL

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Cai, Siyang, Li, Cangyuan, Han, Yinhe, Wang, Ying
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911501256753152
author Cai, Siyang
Li, Cangyuan
Han, Yinhe
Wang, Ying
author_facet Cai, Siyang
Li, Cangyuan
Han, Yinhe
Wang, Ying
contents Learning effective netlist representations is fundamentally constrained by the scarcity of labeled datasets, as real designs are protected by Intellectual Property (IP) and costly to annotate. Existing work therefore focuses on small-scale circuits with clean labels, limiting scalability to realistic designs. Meanwhile, Large Language Models (LLMs) can generate Register-Transfer-Level (RTL) at scale, but their functional incorrectness has hindered their use in circuit analysis. In this work, we make a key observation: even when LLM-Generated RTL is functionally imperfect, the synthesized netlists still preserve structural patterns that are strongly indicative of the intended functionality. Building on this insight, we propose a cost-effective data augmentation and training framework that systematically exploits imperfect LLM-Generated RTL as training data for netlist representation learning, forming an end-to-end pipeline from automated code generation to downstream tasks. We conduct evaluations on circuit functional understanding tasks, including sub-circuit boundary identification and component classification, across benchmarks of increasing scales, extending the task scope from operator-level to IP-level. The evaluations demonstrate that models trained on our noisy synthetic corpus generalize well to real-world netlists, matching or even surpassing methods trained on scarce high-quality data and effectively breaking the data bottleneck in circuit representation learning.
format Preprint
id arxiv_https___arxiv_org_abs_2603_09161
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Wrong Code, Right Structure: Learning Netlist Representations from Imperfect LLM-Generated RTL
Cai, Siyang
Li, Cangyuan
Han, Yinhe
Wang, Ying
Machine Learning
Artificial Intelligence
Hardware Architecture
Learning effective netlist representations is fundamentally constrained by the scarcity of labeled datasets, as real designs are protected by Intellectual Property (IP) and costly to annotate. Existing work therefore focuses on small-scale circuits with clean labels, limiting scalability to realistic designs. Meanwhile, Large Language Models (LLMs) can generate Register-Transfer-Level (RTL) at scale, but their functional incorrectness has hindered their use in circuit analysis. In this work, we make a key observation: even when LLM-Generated RTL is functionally imperfect, the synthesized netlists still preserve structural patterns that are strongly indicative of the intended functionality. Building on this insight, we propose a cost-effective data augmentation and training framework that systematically exploits imperfect LLM-Generated RTL as training data for netlist representation learning, forming an end-to-end pipeline from automated code generation to downstream tasks. We conduct evaluations on circuit functional understanding tasks, including sub-circuit boundary identification and component classification, across benchmarks of increasing scales, extending the task scope from operator-level to IP-level. The evaluations demonstrate that models trained on our noisy synthetic corpus generalize well to real-world netlists, matching or even surpassing methods trained on scarce high-quality data and effectively breaking the data bottleneck in circuit representation learning.
title Wrong Code, Right Structure: Learning Netlist Representations from Imperfect LLM-Generated RTL
topic Machine Learning
Artificial Intelligence
Hardware Architecture
url https://arxiv.org/abs/2603.09161