mlsanityData to 14 Oct 2026

VERIRL: Boosting the LLM-based Verilog Code Generation via Reinforcement Learning

arXiv 2508.18462 ↗First posted 25 Aug 2025cs.LG cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Recent advancements in code generation have shown remarkable success across software domains, yet hardware description languages (HDLs) such as Verilog remain underexplored due to their concurrency semantics, syntactic rigidity, and simulation complexity. In this work, we address these challenges by introducing a reinforcement learning (RL) framework tailored for Verilog code generation. We first construct Veribench-53K, a high-quality dataset curated from over 700K Verilog problems, enriched with structured prompts, complexity labels, and diverse testbenches. To tackle the problem of sparse and noisy reward signals, we propose a Trace-back based Rescore mechanism that leverages reasoning paths and iterative refinement to enhance feedback reliability and support reward model training. Furthermore, to mitigate catastrophic forgetting and overfitting during RL fine-tuning, we introduce a sample-balanced weighting strategy that adaptively balances learning dynamics based on reward-probability distributions. These innovations are integrated into an iterative RL pipeline that co-evolves the policy and reward models. In contrast to recent work such as CraftRTL, which relies on large-scale closed-source model distillation, and DeepSeek-style approaches that struggle with sparse feedback, our method demonstrates superior performance using a smaller but high-quality dataset combined with RL optimization. Experiments on Verilog generation tasks demonstrate state-of-the-art performance, with substantial gains in test pass rate, functional correctness, and compilation robustness. Our findings highlight the potential of RL-driven approaches for structured code generation in hardware-centric domains. VERIRL is publicly available at https://github.com/omniAI-Lab/VeriRL.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 29 of its 35 references that are in the map. First posted on arXiv 25 Aug 2025.

Builds on

29 of 35 references.

References · 29

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  6. 2023Qwen Technical Reportcited by 3,344
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  9. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  10. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  11. 2023StarCoder: may the source be with you!cited by 799
  12. 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 672
17 more
  1. 2023Statistical Rejection Sampling Improves Preference Optimizationcited by 323
  2. 2023VerilogEval: Evaluating Large Language Models for Verilog Code Generationcited by 252
  3. 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
  4. 2023ChipNeMo: Domain-Adapted LLMs for Chip Designcited by 174
  5. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 151
  6. 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 130
  7. 2022Benchmarking Large Language Models for Automated Verilog RTL Code Generationcited by 115
  8. 2023RTLFixer: Automatically Fixing RTL Syntax Errors with Large Language Modelscited by 100
  9. 2024BetterV: Controlled Verilog Generation with Discriminative Guidancecited by 100
  10. 2024o1-Coder: an o1 Replication for Codingcited by 78
  11. 2023RTLCoder: Outperforming GPT-3.5 in Design RTL Generation with Our Open-Source Dataset and Lightweight Solutioncited by 71
  12. 2024OriGen:Enhancing RTL Code Generation with Code-to-Code Augmentation and Self-Reflectioncited by 56
  13. 2024CraftRTL: High-quality Synthetic Data Generation for Verilog Code Models with Correct-by-Construction Non-Textual Representations and Targeted Code Repaircited by 42
  14. 2024AutoVCoder: A Systematic Framework for Automated Verilog Code Generation using LLMscited by 36
  15. 2023Reinforcement Learning from Automatic Feedback for High-Quality Unit Test Generationcited by 21
  16. 2024PyraNet: A Multi-Layered Hierarchical Dataset for Verilogcited by 19
  17. 2024ACECode: A Reinforcement Learning Framework for Aligning Code Efficiency and Correctness in Code Language Modelscited by 10

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025VeriReason: Reinforcement Learning with Testbench Feedback for Reasoning-Enhanced Verilog Generation
  2. 2024Large Language Model for Verilog Generation with Code-Structure-Guided Reinforcement Learning
  3. 2025Insights from Verification: Training a Verilog Generation LLM with Reinforcement Learning with Testbench Feedback
  4. 2025ChipSeek: Optimizing Verilog Generation via EDA-Integrated Reinforcement Learning
  5. 2025QiMeng-CodeV-R1: Reasoning-Enhanced Verilog Generation
  6. 2026CVeDRL: An Efficient Code Verifier via Difficulty-aware Reinforcement Learning
  7. 2025QiMeng-SALV: Signal-Aware Learning for Verilog Code Generation
  8. 2026VeriInteresting: An Empirical Study of Model Prompt Interactions in Verilog Code Generation