ChipSeek: 通过集成EDA的强化学习优化Verilog生成
ChipSeek: Optimizing Verilog Generation via EDA-Integrated Reinforcement Learning
AI总结:
ChipSeek通过集成EDA的强化学习框架,优化RTL代码生成,提升功能正确性和PPA指标。
摘要:
大型语言模型已显现为自动化生成寄存器传输级(RTL)代码的强大工具,但面临关键限制:现有方法通常无法同时优化功能正确性和硬件效率指标,如功率、性能和面积(PPA)。依赖监督微调的方法通常生成功能正确但不优的设计,因为缺乏学习硬件优化原则的内在机制。相反,旨在生成后改进PPA性能的外部后处理技术往往效率低下,且不提升LLM的固有能力。为克服这些挑战,我们提出了ChipSeek,一种新颖的基于层次奖励的强化学习框架,旨在鼓励LLM生成功能正确且优化PPA指标的RTL代码。我们的方法将来自EDA仿真器和综合工具的直接反馈整合到层次奖励机制中,促进对硬件设计权衡的深入理解。通过课程引导动态策略优化(CDPO),ChipSeek增强了LLM生成高质量、优化RTL代码的能力。在标准基准上的评估显示,ChipSeek在功能正确性和PPA性能上均优于现有方法。此外,它在特定优化任务中表现突出,当单独针对细粒度优化目标如功率、延迟和面积时,始终产生高效设计。该成果在https://github.com/rong-hash/chipseek上开源。
英文摘要:
Large Language Models have emerged as powerful tools for automating Register-Transfer Level (RTL) code generation, yet they face critical limitations: existing approaches typically fail to simultaneously optimize functional correctness and hardware efficiency metrics such as Power, Performance, and Area (PPA). Methods relying on supervised fine-tuning commonly produce functionally correct but suboptimal designs due to the lack of inherent mechanisms for learning hardware optimization principles. Conversely, external post-processing techniques aiming to refine PPA performance after generation often suffer from inefficiency and do not improve the LLMs' intrinsic capabilities. To overcome these challenges, we propose ChipSeek, a novel hierarchical reward based reinforcement learning framework designed to encourage LLMs to generate RTL code that is both functionally correct and optimized for PPA metrics. Our approach integrates direct feedback from EDA simulators and synthesis tools into a hierarchical reward mechanism, facilitating a nuanced understanding of hardware design trade-offs. Through Curriculum-Guided Dynamic Policy Optimization (CDPO), ChipSeek enhances the LLM's ability to generate high-quality, optimized RTL code. Evaluations on standard benchmarks demonstrate ChipSeek's superior performance, achieving state-of-the-art functional correctness and PPA performance. Furthermore, it excels in specific optimization tasks, consistently yielding highly efficient designs when individually targeting fine-grained optimization goals such as power, delay, and area. The artifact is open-source in https://github.com/rong-hash/chipseek.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。