VeriLadder: Multi-Agent Specification Refinement Makes Verilog Datasets Truly Trustworthy

VeriLadder uses multi-agent plus EDA tools to build a five-level Verilog dataset, significantly improving functional pass@1 after fine-tuning.
VeriLadder addresses the scarcity and lack of tool verification in Verilog training data by proposing a five-level progressive data construction process combining a multi-agent framework with EDA tools. It annotated 716,627 designs for synthesizability, retained 28% synthesis-failure samples as negatives, and used cross-model family reconstruction validation to raise reconstructable designs from 26.1% to 78.2%. The resulting 11,247 refined specifications, 32,393 paraphrases, and 8,397 one-fact variants enabled fine-tuning Qwen2.5-Coder-7B-Instruct to improve functional pass@1 from 31.7% to 50.0% on VerilogEval v2 and from 35.0% to 45.2% on RTLLM v2, demonstrating the value of tool verification and specification refinement.
The scarcity and uneven quality of training data have long been a major obstacle for AI-assisted chip design, especially for Verilog code generation. Register-transfer-level (RTL) code is rarely made public, and existing datasets mostly perform only syntax checks, failing to verify whether the code truly matches the intent of the instructions. The paper's proposed VeriLadder uses a multi-agent framework combined with EDA tools to build a five-level progressive Verilog dataset, attempting to solve the "data usability" problem at its source.

Why Verilog Datasets Need "Tool Verification"
Most current Verilog training data relies on manual annotation or simple syntax parsing, often ignoring whether the code can pass synthesis in a real tool flow or whether it is functionally equivalent to the original design. This can lead models to learn patterns that "look like Verilog" but are actually non-synthesizable or behaviorally incorrect. According to the paper's analysis, 28% of designs in the RTLCoder dataset fail synthesis. These failed samples were often discarded in the past, but VeriLadder chooses to retain them as negative examples to train models to recognize infeasible designs.
VeriLadder's core idea is to use EDA tools (synthesizers and formal equivalence checkers) as the final judge, while LLM agents are responsible for writing and revising specifications. Only tool-verified specifications are accepted, forming a traceable and reproducible data loop.
Relationship between RTL and Verilog: Register-transfer level (RTL) is an abstraction level in hardware design that describes the flow of data between registers and combinational logic processing, serving as the key link between high-level algorithms and low-level gate-level netlists. Verilog is one of the most mainstream hardware description languages for implementing RTL. Its code must be converted to a gate-level circuit by synthesis tools, then placed and routed to form a chip layout. Therefore, the "correctness" of Verilog code not only means syntactically error-free but also requires synthesizability and behavior matching the design intent.
Synthesis and formal equivalence checking: Synthesis is the process of mapping RTL code to a gate-level netlist; tools check whether the code is synthesizable and whether the expected circuit structure is inferred. Formal equivalence checking uses mathematical methods to prove that two circuits are functionally identical under all input sequences, commonly used to verify whether designs are equivalent before and after synthesis or rewriting. VeriLadder uses these two types of EDA tools as hard judges of data quality, ensuring that "positive examples" in the training data are truly usable.
Five-Level Ladder: Progressive Design from Labels to Hard Negatives
VeriLadder's five levels simulate an engineer's progressively stricter checking process, with each level producing training signals of different granularity.
Level 1: Synthesis Results and Failure Cause Annotation
The first level annotates two large Verilog corpora, RTLCoder and PyraNet, recording synthesis results, failure causes, key warnings, and post-synthesis metrics. 28% of RTLCoder designs fail synthesis; these samples are retained as negative examples rather than cleaned out. This design naturally includes "bad samples" in the dataset, helping the model learn boundaries.
Level 2: Four-Dimensional Instruction Quality Scoring
The second level scores each instruction on four specification quality dimensions, and low-scoring instructions can predict reconstruction failure. This is equivalent to a "health check" for the instructions themselves, providing a screening basis for subsequent refinement.
Level 3: Specification Rewriting Validated Across Model Families
The third level is the key leap of the entire process: each instruction is rewritten into a refined specification, and the specification is accepted only when an LLM from another model family can write a formally equivalent circuit solely by reading that specification. This mechanism increases the proportion of "reconstructable designs" from 26.1% to 78.2%, while retaining all failed specifications and their counterexamples to form contrast data.
Significance of cross-model family validation: Different model families (e.g., Qwen and Llama series) differ in training data, architecture, and inductive biases. If specifications are generated and validated only within the same model family, it is easy to produce "self-consistent but overfitted" specifications—the model can understand its own expressions but cannot be understood by other models. VeriLadder requires an LLM from another model family to reconstruct a formally equivalent circuit solely from the specification, which is equivalent to an independent third-party test of the sufficiency and unambiguity of the specification, thereby filtering out specifications that rely on implicit context or vague expressions.
Hard negatives and one-fact variants: Hard negatives refer to samples that are highly similar to positive examples but contain key errors, forcing the model to learn fine-grained decision boundaries. A one-fact variant is a strict form of hard negative: it differs from a verified design in only one behavioral fact (such as a conditional branch or sequential logic), with everything else identical. Such samples specifically train the model to capture subtle behavioral differences, preventing it from relying on surface patterns rather than truly understanding circuit semantics.
Level 4 and Level 5: Verified Paraphrases and One-Fact Variants
The fourth and fifth levels add verified paraphrases and one-fact variants, respectively. The latter are hard negatives that differ from a verified design in only one behavior, specifically designed to train the model's ability to distinguish subtle behavioral differences.
Scale and Fine-Tuning Results: Data Quality Transforms into Model Capability
VeriLadder annotated the synthesizability of 716,627 designs. Starting from RTLCoder, it provides 11,247 refined specifications, 32,393 paraphrases, and 8,397 one-fact variants. After fine-tuning Qwen2.5-Coder-7B-Instruct with this dataset, functional pass@1 improved from 31.7% to 50.0% on VerilogEval v2, and from 35.0% to 45.2% on RTLLM v2. These improvements demonstrate that data verified by tools and refined specifications can enhance the model's actual code generation ability more than simply increasing data volume.
The dataset and fine-tuned model are both publicly available, providing directly reusable infrastructure for the open-source community and chip design automation research.
Multi-Agent + EDA: A Transferable Data Construction Paradigm
VeriLadder's value lies not only in the Verilog dataset itself. It demonstrates a general paradigm: use LLM agents to generate and revise specifications, use domain tools for hard verification, and then use cross-model family reconstruction tests to ensure specification sufficiency. This process can be transferred to other code generation domains that require strict verification, such as other dialects of hardware description languages, formal verification scripts, and even system programming scenarios with extremely high correctness requirements.
The paper does not avoid limitations: current verification depends on the range of designs that synthesizers and equivalence checkers can handle, and for complex designs beyond tool capabilities, the annotation chain may break. But based on existing results, VeriLadder provides an actionable engineering template for "trustworthy training data."
Background Supplement
Functional pass@1: pass@1 is a common evaluation metric in code generation, referring to the probability that when the model generates only one candidate code for each problem, that code passes all functional tests. In the Verilog context, "functional pass" means the generated RTL code is not only synthesizable but also produces outputs consistent with the reference design when simulated on a testbench. Functional pass@1 is stricter than syntactic pass@1 and directly reflects the behavioral correctness of the generated circuit. VerilogEval v2 and RTLLM v2 are two widely used Verilog generation benchmarks; the former focuses on diverse functional descriptions, while the latter emphasizes instruction following and design complexity in real engineering scenarios.
One-line Summary
VeriLadder uses multi-agent plus EDA tools to build a five-level Verilog dataset, significantly improving functional pass@1 after fine-tuning.
Paragraph Summary
To address the scarcity of Verilog training data and lack of tool verification, VeriLadder proposes a five-level progressive data construction process combining a multi-agent framework with EDA tools. It annotated the synthesizability of 716,627 designs and retained 28% synthesis-failure samples from RTLCoder as negatives; Level 3 uses cross-model family reconstruction validation to increase the proportion of reconstructable designs from 26.1% to 78.2%, while retaining failed specifications and counterexamples. The final output includes 11,247 refined specifications, 32,393 paraphrases, and 8,397 one-fact variants. After fine-tuning Qwen2.5-Coder-7B-Instruct with this data, functional pass@1 improved from 31.7% to 50.0% on VerilogEval v2 and from 35.0% to 45.2% on RTLLM v2, validating the value of tool verification and specification refinement for enhancing the model's actual code generation ability.
Related articles

Andrew Ng Open-Sources OpenWorker: A New Tool for Building AI Agents
Andrew Ng's team open-sources OpenWorker, a Python agent framework with 20K+ GitHub stars. Here's what it is, its key features, and who should use it.

Vibe Coding Speedrun: The 'Flake' Live Social Product's AI Matchmaking Experiment
A developer used Vibe Coding to rapidly build the live social product 'Flake,' using Live API voice interviews to generate user profiles and arrange chats. This article analyzes its tech choices, matching-efficiency debate, costs, and business model, plus the real issues exposed in the live demo.

Big Tech Architect Reveals: From Vibe Coding to Agent Full-Stack Development in Practice
A ByteDance-background architect shares the AI Coding advancement path: from Vibe Coding to Agent full-stack development, covering interview dimensions, SDD/TDD practices, AI efficiency implementation, and full-stack learning routes, with a seven-question self-check framework.