Pareto-Optimal RTL Code Generation via Multi-Objective Reinforcement Learning with Large Language Models
Organizations: Research & Development Group, Hitachi, Ltd.
Abstract
Recent studies have proposed reinforcement learning with verifiable rewards (RLVR) methods that enable LLMs to generate high-quality RTL circuits from natural-language specifications. Existing approaches optimize circuit PPA (Power, Performance, Area) by aggregating multiple objectives into a single scalar reward, making it difficult to simultaneously generate diverse Pareto-optimal solutions across different trade-offs such as low power, low latency, and small area. However, in practical design, the relative importance of each objective varies depending on product requirements and design constraints; thus, obtaining a diverse and high-quality candidate set is beneficial in that designers can choose a preferred trade-off a posteriori. In this work, we are the first to propose a learning method for LLM-based circuit generation that optimizes, not the quality of a single circuit, but the quality and diversity of the entire circuit set obtained through multiple generations in the PPA objective space. The proposed method consists of (1) a generation-based training pipeline that reformulates coverage improvement of the entire Pareto solution set into a sequential circuit generation problem, and (2) a reward function based on Hypervolume Contribution (HVC) that measures how much a generated circuit contributes to the Pareto front. Evaluation on the RTLLM v2 benchmark shows that the proposed method achieves +13.3 percentage points in relative Hypervolume over a baseline without PPA optimization and +14.4 percentage points over a single-objective reinforcement learning method, while also demonstrating superiority in circuit diversity.
Figures & tables
| Base Model | Method | rHV (iter=1) | rHV (iter=5) | rHV (iter=10) |
|---|---|---|---|---|
| VeriReason-3B | Base | 13.1% | 17.5% | 19.1% |
| Single-Objective PPA | 10.4% | 15.4% | 18.0% | |
| Sequential TB | 15.5% | 18.5% | 19.2% | |
| Sequential TB+PPA | 17.2% | 20.6% | 21.6% | |
| Sequential HVC (Ours) | 22.9% | 30.7% | 32.4% | |
| CodeV-R1-Distil-7B | Base | 23.1% | 34.1% | 38.4% |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | VeriReason-3B | CodeV-R1-Distil-7B |
|---|---|---|
| Num. GPUs | 4 | 4 |
| GPU | H200 | H200 |
| Batch Size (per device) | 2 | 2 |
| Gradient Accumulation Steps | 4 | 4 |
| Learning Rate | ||
| Max Steps | 15,000 | 1,500 |
| Base Model | Comparison | rHV Diff (95% CI) |
|---|---|---|
| VeriReason-3B | Ours Base | |
| Ours Single-Objective PPA | ||
| Ours Sequential TB | ||
| Ours Sequential TB+PPA | ||
| CodeV-R1-Distil-7B | Ours Base | |
| Ours Single-Objective PPA |
| Base Model | Method | rHV (iter=1) | rHV (iter=5) | rHV (iter=10) |
|---|---|---|---|---|
| VeriReason-3B | Base | 2.2% | 6.4% | 10.3% |
| Single-Objective PPA | 0.9% | 5.3% | 10.3% | |
| Sequential TB | 0.0% | 0.2% | 0.3% | |
| Sequential TB+PPA | 0.1% | 0.9% | 3.4% | |
| Sequential HVC (Ours) | 3.0% | 15.1% | 19.4% | |
| CodeV-R1-Distil-7B | Base | 11.5% | 23.9% | 32.1% |
RTL Code Generation
Register-transfer-level (RTL) code generation turns hardware specifications into synthesizable circuits, balancing functional correctness with area, timing, and power.
See all 31 papers