Presentation
Insights from Verification: Training a Verilog Generation LLM Using Reinforcement Learning with Testbench Feedback
DescriptionLarge language models (LLMs) have achieved strong results in software programming tasks, which motivates their application to hardware design, especially in generating Verilog code from natural language specifications. Existing methods mainly use instruction tuning, which optimizes token-level probability and does not match the need for functional correctness in Verilog generation. To address this, we use reinforcement learning (RL) with feedback from verification tools, so that the training objective directly reflects functional correctness. RL training with verification feedback is limited by the lack of functional verification code, or testbenches. To solve this, we propose an automatic testbench generation framework that addresses the problems of hallucination and low coverage in LLM-generated testbench by decomposing the task and using additional information from electronic design automation tools. We then train Verilog generation LLMs using reinforcement learning with testbench feedback, achieving state-of-the-art performance. Our method gives consistent gains across different base models and open-source Verilog generation LLMs, showing its generalizability. All datasets, codes, and models are released to support further research in this area.
Event Type
Research Manuscript
TimeMonday, July 2711:10am - 11:23am PDT
LocationMtg Room 201B
Similar Presentations
