Skip to main navigation Skip to search Skip to main content

VeriRepair: Toward Reliable LLM-Based RTL Repair via CoT-Supervised Multi-Objective Fine-Tuning and Hybrid Retrieval

  • Lei Peng*
  • , Aijiao Cui
  • , Yier Jin
  • *Corresponding author for this work
  • Harbin Institute of Technology Shenzhen
  • University of Science and Technology of China

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Ensuring the reliability of Register-Transfer Level (RTL) designs is critical, yet automated Verilog repair remains challenging due to requirements on synthesizability, timing correctness, and functional consistency. Existing LLM-based approaches rely on heuristic prompting, lack structured reasoning, and are trained on narrow datasets, which limits generalization and leads to logically inconsistent fixes. We present VeriRepair, the firsta novel framework to introduce Chain-of-Thought (CoT) supervision into hardware repair, combined multi-objective fine-tuning with a hybrid retrieval-augmented inference mechanism. We construct a 13k-pair RTL bug-fix dataset, covering more than 40 error types across six categories and enriched with reasoning annotations. The model is jointly fine-tuned on repaired code and reasoning traces, yielding more accurate and interpretable fixes. During inference, a hybrid retriever leverages semantic and structural similarity to guide patch generation. Experiments demonstrate that VeriRepair attains 76.6% Top-1 accuracy, surpassing VeriDebug by 20.1% and CirFix by 44.9%. Moreover, the framework is readily deployable in real industrial flows, integrating with pre-synthesis lint/fix pipelines and simulation- or UVM-based verification. The dataset is open source and available on GitHub: https://github.com/90ICEDA/verirepair.

Original languageEnglish
Title of host publication2026 Design, Automation and Test in Europe Conference, DATE 2026 - Proceedings
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9783982674117
DOIs
StatePublished - 2026
Externally publishedYes
Event2026 Design, Automation and Test in Europe Conference, DATE 2026 - Verona, Italy
Duration: 20 Apr 202622 Apr 2026

Publication series

NameProceedings -Design, Automation and Test in Europe, DATE
ISSN (Print)1530-1591

Conference

Conference2026 Design, Automation and Test in Europe Conference, DATE 2026
Country/TerritoryItaly
CityVerona
Period20/04/2622/04/26

Keywords

  • AST
  • Chain-of-Thought Reasoning
  • Code Repair
  • LLMs
  • RAG

Fingerprint

Dive into the research topics of 'VeriRepair: Toward Reliable LLM-Based RTL Repair via CoT-Supervised Multi-Objective Fine-Tuning and Hybrid Retrieval'. Together they form a unique fingerprint.

Cite this