Paper Overview
- Field: NLP
- Authors: Prashanth Vijayaraghavan, Apoorva Nitsure, Luyao Shi
- Published: 2025-06-01
- arXiv: 2506.00631
- On benchmark Verilog and VHDL datasets, StepPRM-RTL outperforms the best previous methods by more than 10% on functional correctness and reasoning fidelity metrics.
- Ablation studies confirm that the combination of PRM-guided rewards and stepwise trajectory exploration is the key driver of performance.
- The approach generalizes across RTL languages (Verilog and VHDL).
Introduction
Automatic generation of RTL (Register Transfer Level) code for digital hardware designs remains challenging due to long-horizon reasoning, multi-step dependencies, and strict correctness constraints in Verilog and VHDL.
Method
StepPRM-RTL combines three components:
1. Stepwise trajectory modeling — reasoning trajectories are constructed from canonical solutions, where each step contains a rationale and an incremental code modification. 2. Process Reward Model (PRM) — evaluates intermediate steps, providing dense feedback that guides reinforcement-style updates during fine-tuning. 3. Retrieval-Augmented Fine-Tuning (RAFT) — the dense PRM feedback steers the reinforcement-style updates in RAFT.
Additionally, Monte Carlo Tree Search (MCTS) explores alternative reasoning paths, enriching the training dataset with high-quality trajectories.
By integrating step-level and outcome-aware rewards, the model learns both how to construct correct RTL and *why* each step is needed — going beyond standard supervised or outcome-based training.
Results
Conclusion
StepPRM-RTL provides a scalable framework for high-fidelity, interpretable code generation, establishing a new standard for LLM-assisted hardware design automation.
Original Abstract
Automatic generation of RTL code for digital hardware designs remains challenging due to long-horizon reasoning, multi-step dependencies, and strict correctness constraints in Verilog and VHDL. We present StepPRM-RTL, a novel framework that combines stepwise trajectory modeling, process-reward modeling (PRM), and retrieval-augmented fine-tuning (RAFT) to enhance both the functional correctness and reasoning fidelity of LLM-based RTL code generation. StepPRM-RTL constructs stepwise reasoning trajectories from canonical solutions, where each step contains a rationale and incremental code modification. A Process Reward Model (PRM) evaluates intermediate steps, providing dense feedback that guides reinforcement-style updates during RAFT fine-tuning. Monte Carlo Tree Search (MCTS) explores alternative reasoning paths...
---
Full paper: arXiv:2506.00631