arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.26904cs.AI
收藏

基于多目标强化学习与大语言模型的帕累托最优RTL代码生成

Pareto-Optimal RTL Code Generation via Multi-Objective Reinforcement Learning with Large Language Models

Research & Development Group, Hitachi, Ltd.(日立公司研发集团)

Koki Takeshita, Kenji Uebayashi, Hikaru Tomonari, Masaya Tsunokake, Koichiro Yawata, Tatsuya Sasaki, Yusuke Ohtsubo, Kota Dohi, Yasuhiro Sogawa

AI总结:

本研究提出基于多目标强化学习与LLM的RTL代码生成方法,优化电路集的PPA目标空间质量与多样性,在RTLLM v2基准上超体积较基线提升13.3个百分点、较单目标RL提升14.4个百分点,且多样性更优。

摘要:

近期研究提出了带可验证奖励的强化学习(RLVR)方法,该方法使大语言模型(LLM)能够从自然语言规范生成高质量RTL电路。现有方法通过将多个目标聚合为单个标量奖励来优化电路PPA(功耗、性能、面积),这使得难以同时生成不同权衡下的多样化帕累托最优解,例如低功耗、低延迟和小面积的权衡。然而,在实际设计中,各目标的相对重要性会随产品需求和设计约束而变化;因此,获取多样化且高质量的候选集是有益的,设计者可在后续选择偏好的权衡方案。本研究首次提出一种基于LLM的电路生成学习方法,该方法不优化单个电路的质量,而是优化PPA目标空间中通过多次生成得到的整个电路集的质量与多样性。所提方法包含两部分:(1)基于生成的训练流水线,将整个帕累托解集的覆盖度改进重新表述为序列电路生成问题;(2)基于超体积贡献(HVC)的奖励函数,用于衡量生成的电路对帕累托前沿的贡献程度。在RTLLM v2基准上的评估表明,所提方法相较于无PPA优化的基线方法,相对超体积提升了13.3个百分点,相较于单目标强化学习方法提升了14.4个百分点,同时在电路多样性上也表现出优越性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑