TL;DR
PRO-V-R1 is the first trainable, open-source agentic framework designed for autonomous Register-Transfer Level (RTL) hardware verification. By combining LLM-based reasoning with programmatic tools and reinforcement learning, this compact 8B parameter model outperforms proprietary giants like GPT-4o in functional correctness while delivering an 8.8× speedup.
What Problem Does This Paper Address?
In chip design, Register-Transfer Level (RTL) verification is the ultimate bottleneck, eating up 60% to 70% of total development time. It requires engineers to write complex "testbenches" that simulate hardware designs, throw corner-case inputs at them, and check if the outputs match the specifications.
While Large Language Models (LLMs) have gotten remarkably good at generating hardware code (RTL generation), they struggle significantly with verification and testbench generation. As shown in the paper, there is a stark capability gap:
To bypass this, current state-of-the-art automated systems use commercial LLMs (like GPT-4o) to generate Python-based Functional Reference Models (FRMs) instead of raw Verilog testbenches. However, relying on closed-source models introduces massive data-privacy risks for proprietary chip designs, incurs high costs, and suffers from hallucinations caused by the subtle semantic mismatches between Python and Verilog. Until now, a fully open-source, end-to-end trainable alternative has been completely missing.
Methods
The authors introduce PRO-V-R1, a framework that transforms a general-purpose open-source model (Qwen3-8B) into a hardware verification expert using a three-pronged approach:
- PRO-V sys (Agentic System): A modular multi-agent workflow that splits the verification task into three specialized roles:
- Testcase Generator: Creates bit-accurate, multi-cycle input stimuli by writing and executing short Python scripts via a Code Interpreter tool.
- FRM Generator: Generates Python-based golden reference models to compute expected outputs.
- Judge: Uses majority voting and self-verification to catch errors, utilizing a Testbench Edit Tool to refine the test suite before passing it to an industrial simulator (Verilator).
- Supervised Fine-Tuning (SFT) Data Pipeline: High-quality verification reasoning traces are incredibly scarce. The authors built a pipeline that prompts a powerful "teacher" model to generate trajectories, filtering them through a strict verification filter. Only trajectories where the simulated RTL perfectly matches the Python reference model are kept, forming the
D_SFTdataset. - Efficient RL with Structured Credit Assignment: To help the model generalize, they apply Group Relative Policy Optimization (GRPO). Crucially, they design agent-specific rewards: the Testcase agent is rewarded for creating a runnable simulation harness, while the FRM agent is rewarded only when the generated testbench successfully passes the strict verification filter.
Datasets
The framework was trained and evaluated using two primary hardware design benchmarks:
- VerilogEval-v2: A benchmark for evaluating LLMs on Verilog code generation tasks.
- RTLLM v2.0: An RTL generation benchmark repository.
To rigorously test the testbenches' ability to catch actual hardware bugs, the authors used DeepSeek-V3.2 to create 10 RTL mutants (faulty variations) for every single problem in both datasets.
Key Insights and Ideas
- The Single-Language Advantage: Prior tools forced LLMs to generate both HDL (Verilog) and Python simultaneously, causing high cognitive load and frequent syntax errors. PRO-V-R1 succeeds by restricting the LLM's output entirely to Python code, letting external programmatic tools handle the translation and execution.
- Fixing the Semantic Gap via Post-Training: Standard LLMs often fail because they treat hardware bit-vectors like standard Python strings (e.g., misinterpreting bit slicing and indexing). The authors show that targeted post-training successfully imbues the model with hardware-aware reasoning, teaching it to use proper bitwise operations instead of string manipulation.
- Bypassing LLM Math Limitations: LLMs are notoriously bad at generating long, precise numerical sequences (like a 256-bit vector). Instead of forcing the LLM to write the raw bits, PRO-V-R1 instructs the agent to write a script that generates the bits, letting the Python interpreter do the heavy lifting.
Key Results
Evaluated on the three-level protocol (Eval0 for compilation, Eval1 for functional correctness against golden RTL, and Eval2 for fault detection against mutants), PRO-V-R1 achieved breakthrough results on VerilogEval-v2:
- Superior Correctness: It achieved a 57.7% functional correctness rate (Eval1), significantly outperforming the previous state-of-the-art open-source baseline, CorrectBench (25.6%), and beating commercial GPT-4o (43.0%).
- Robust Fault Detection: It scored 34.0% on the strictest mutant detection metric (Eval2-100), proving it doesn't just write simple testbenches, but actually exercises complex corner cases.
- Massive Speedup: Thanks to parallel program sampling and the elimination of expensive self-verification loops, PRO-V-R1 achieved an 8.8× speedup over CorrectBench, dropping the mean latency from 805.4 seconds down to just 91.2 seconds per task.
Limitations and Future Work
While PRO-V-R1 narrows the verification gap significantly for an 8B parameter model, ultra-large proprietary models like DeepSeek-R1 (671B) and Claude 3.5 Sonnet still maintain a slight edge on the most brutal fault-detection metrics (Eval2-100). The authors note that this leaves clear headroom for future work, suggesting that further scaling of the verification-specific training data and more advanced RL optimization will bridge this remaining gap.
Summary updated