VeriLadder:用多智能体与EDA工具构建可验证Verilog数据集
VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets
搞芯片设计或EDA方向的人值得看:它不靠人工标注,而是让综合器和形式等价检查器当裁判,把规格重写后可重建率从26.1%拉到78.2%,微调后Qwen2.5-Coder-7B在VerilogEval v2上直接涨了近20个百分点。数据集和模型都开源了,做硬件代码生成的团队可以直接拿来微调。
论文提出VeriLadder,一个五级Verilog数据集及构建它的多智能体框架:LLM智能体负责撰写和修订规格说明,由综合器和形式等价性检查器两类EDA工具决定条目是否合格。Level 1为RTLCoder和PyraNet两个语料标注综合结果,其中28%的RTLCoder设计无法通过综合,被保留为负样本。
技术机制上,Level 2从四个维度为指令的规格质量打分,低分会预示重建失败;Level 3将指令改写为精炼规格,且要求另一个模型家族的LLM仅凭该规格写出与原电路形式等价的设计才予接受,使可重建设计占比从26.1%提升到78.2%。Level 4和5进一步加入经过验证的改写样本和单事实变体——与已验证设计仅差一种行为的困难负样本。整个数据集覆盖716,627个设计的可综合性标注,并从RTLCoder提供11,247份精炼规格、32,393条改写和8,397个单事实变体。
效果方面,用VeriLadder微调Qwen2.5-Coder-7B-Instruct后,功能pass@1在VerilogEval v2上从31.7%提升到50.0%,在RTLLM v2上从35.0%提升到45.2%。数据集和微调模型已公开。针对RTL代码少有公开、现有数据集只查语法不查指令正确性的痛点,这套以EDA工具为裁判的数据构建流程为芯片设计方向的LLM训练提供了可复用范式。
VeriLadder: A Multi-Agent Specification Refinement System for Tool-Verified Verilog Datasets
Training data is a bottleneck in AI, especially for large language models (LLMs) that write Verilog, because register-transfer-level (RTL) code is rarely published and existing datasets mostly check code for syntax, not instruction correctness. This paper presents VeriLadder, a five-level Verilog dataset, and the multi-agent framework that builds it, in which LLM agents write and revise specifications, and EDA tools (a synthesizer and a formal equivalence checker) decide what is accepted. Its levels follow an engineer's checks. Level 1 labels designs from two large Verilog corpora, namely RTLCoder and PyraNet, with synthesis results, failure causes, critical warnings and post-synthesis metrics. 28% of RTLCoder designs fail synthesis and are kept as negatives. Level 2 grades each instruction on four specification qualities, and low grades predict failed rebuilds. Level 3 rewrites each instruction into a refined specification and accepts it only if an LLM from another model family, reading only that specification, writes a circuit formally equivalent to the original. This raises the share of rebuildable designs from 26.1% to 78.2%, keeping every failed specification with its counterexample. Levels 4 and 5 add verified paraphrases and one-fact variants, hard negatives that differ only in one behavior from the verified design. VeriLadder labels the synthesizability of 716,627 designs and, from RTLCoder, provides 11,247 refined specifications, 32,393 paraphrases and 8,397 one-fact variants. Fine-tuning Qwen2.5-Coder-7B-Instruct on VeriLadder raises functional pass@1 from 31.7% to 50.0% on VerilogEval v2 and from 35.0% to 45.2% on RTLLM v2. The dataset and fine-tuned models are publicly available.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:VeriLadder、Verilog、Qwen2.5-Coder、RTLCoder,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Saeid Rajabi, Chengmo Yang, Satwik Patnaik),经 AITOP 多维评分管线结构化提炼。