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

Alpha-RTL: 面向RTL硬件优化的测试时训练

Alpha-RTL: Test-Time Training for RTL Hardware Optimization

SKLP, Institute of Computing Technology, Chinese Academy of Sciences(SKLP,计算技术研究所,中国科学院);University of the Chinese Academy of Sciences(中国科学院大学);School of Advanced Interdisciplinary Sciences(先进交叉学科学院)

Peilong Zhou, Zhirong Chen, Cangyuan Li, Haoyu Gao, Kaiyan Chang, Ziming Qu, Ying Wang

AI总结:

提出TTT-RTL框架,通过测试时强化学习结合EDA反馈(语法检查、仿真和PPA奖励)优化LLM生成的RTL设计,在RTLLM v2.0和工业级C910 FPU单元上分别降低PPA乘积65.1%和ADP 59.4%。

摘要:

大型语言模型(LLM)在生成功能正确的寄存器传输级(RTL)硬件设计方面展现出越来越大的潜力。最近的系统通过集成EDA的强化学习(结合语法、仿真和PPA奖励)进一步改进,但在部署前训练通用RTL生成器,而测试时方法使用冻结策略进行搜索。我们则在测试时执行强化学习,使LLM策略能够针对特定RTL问题适应可执行的EDA反馈。我们提出TTT-RTL,据我们所知,这是首个针对每个设计的测试时训练框架,它闭环了LLM策略与用于RTL优化的EDA流水线。TTT-RTL采样候选实现,通过语法检查和仿真验证它们,使用综合得出的PPA乘积对有效设计进行评分,通过PUCT索引的设计状态池重用高奖励变体,并使用熵策略梯度目标更新策略。为了在稀疏或平台期奖励下稳定策略更新,我们引入了一个自适应KL预算控制器,该控制器使用参考KL、有效样本量和奖励饱和信号来调整熵约束。在Nangate 45nm工艺下的RTLLM v2.0上,TTT-RTL将几何平均PPA乘积相对于参考降低了65.1%,优于最强的已发布冻结策略智能体基线(26.1%)。在Sky130工艺下的工业级XuanTie C910 FPU前导零预测单元上,TTT-RTL实现了59.4%的ADP降低,消融实验证实策略适应、状态重用和KL预算控制各自都有贡献。这些结果表明,带有可执行EDA反馈的测试时训练可以将基于LLM的RTL生成从功能正确性推向物理优化的硬件。

英文摘要:

Large language models (LLMs) have shown increasing promise in generating functionally correct register-transfer-level (RTL) hardware designs. Recent systems improve further through EDA-integrated reinforcement learning with syntax, simulation, and PPA rewards, but train a general RTL generator before deployment while test-time approaches search with a frozen policy. We instead perform reinforcement learning at test time, allowing the LLM policy to adapt to executable EDA feedback for the specific RTL problem at hand. We propose TTT-RTL, to our knowledge the first per-design test-time training framework that closes the loop between an LLM policy and an EDA pipeline for RTL optimization. TTT-RTL samples candidate implementations, verifies them through syntax checking and simulation, scores valid designs using synthesis-derived PPA product, reuses high-reward variants through a PUCT-indexed design-state pool, and updates the policy with an entropic policy-gradient objective. To stabilize policy updates under sparse or plateaued rewards, we introduce an adaptive KL-budget controller that adjusts the entropy constraint using reference KL, effective sample size, and reward saturation signals. On RTLLM v2.0 under Nangate 45nm, TTT-RTL reduces the geometric-mean PPA product by 65.1% over the reference, outperforming the strongest published frozen-policy agent baseline at 26.1%. On an industrial XuanTie C910 FPU leading-zero-anticipation unit under Sky130, TTT-RTL achieves a 59.4% ADP reduction, and ablations confirm that policy adaptation, state reuse, and KL-budget control each contribute. These results suggest that test-time training with executable EDA feedback can move LLM-based RTL generation beyond functional correctness toward physically optimized hardware.

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

↑