跳到正文
返回论文列表
cs.AR提交于 已译

面向 Verilog 生成的搜索引导推理轨迹整理

Search-Guided Reasoning Trace Curation for Verilog Generation

Matthew DeLorenzo · Kevin Tieu · Prithwish Jana · Piyush Jha · Dileep Kalathil · Vijay Ganesh · et al.

中文摘要

大语言模型(LLM)的进展提升了 Verilog 生成能力,但多数训练流程蒸馏的是自然语言推理轨迹,其设计决策结构松散,且主要依据最终 RTL 的正确性来筛选。MCTS-SFT 是一个验证器引导的框架,用于整理 Verilog 生成模型监督微调(SFT)所需的推理轨迹。该框架将轨迹构建建模为对中间推理状态的搜索,并用蒙特卡洛树搜索(MCTS)把完整 Verilog 输出的功能反馈回传到更早的设计决策。在此框架内,Plan-MCTS 在紧凑的硬件设计计划上搜索,这些计划显式表示接口、时序、状态、行为和更新规则。研究还考察了保留计划的监督方式,即将搜索得到的结构化状态保留为下游 SFT 目标的一部分。实验发现,Plan-MCTS 的功能性轨迹产出率最高,正确轨迹占 84.2%,而一次性结构化规划为 81.9%,无引导树搜索为 82.0%。在相同的 Plan-MCTS 轨迹和 Verilog 输出下,SFT 时保留显式搜索计划使 pass@10 从 52.56% 提升到 57.7%,表明中间设计决策的表示会实质影响下游学习。另一项 6,000 条轨迹的研究中,MCTS 整理的监督在 VerilogEval-v2 上比全响应思维链蒸馏的 pass@10 最多提升 3.7 个百分点,同时将下游生成长度缩短约 50%。这些结果表明,结构化硬件规划、验证器引导搜索和显式中间状态监督为构建更有效、更省 token 的 Verilog 生成训练数据提供了互补机制。

关键要点

  1. 01现有 Verilog 生成训练多蒸馏自然语言推理轨迹,中间设计决策结构松散且仅按最终 RTL 正确性筛选。
  2. 02MCTS-SFT 用蒙特卡洛树搜索把完整 Verilog 的功能反馈回传到早期设计决策,Plan-MCTS 在显式硬件计划上搜索。
  3. 03Plan-MCTS 正确轨迹产出率 84.2%,高于一次性结构化规划的 81.9% 和无引导树搜索的 82.0%。
  4. 04相同轨迹下保留显式计划使 pass@10 从 52.56% 升至 57.7%,说明中间状态表示影响下游学习。
  5. 056,000 条轨迹研究中,MCTS 监督比全响应思维链蒸馏 pass@10 最多高 3.7 点,生成长度缩短约 50%。

解读

尚无解读。

原始英文摘要

arXiv:2610.37706v1 Announce Type: cross Abstract: Recent advances in large language models (LLMs) have improved Verilog generation. However, most training pipelines distill natural-language reasoning traces whose intermediate design decisions are weakly structured and are primarily selected according to the correctness of the final generated RTL. We present MCTS-SFT, a verifier-guided framework for curating reasoning traces for supervised fine-tuning (SFT) of Verilog generation models. MCTS-SFT formulates trace construction as search over intermediate reasoning states and uses Monte Carlo Tree Search (MCTS) to propagate functional feedback from complete Verilog rollouts to earlier design decisions. Within this framework, we introduce Plan-MCTS, which searches over compact hardware-design plans that explicitly represent interfaces, timing, state, behavior, and update rules. We further study plan-preserving supervision, in which the searched structured state is retained as part of the downstream SFT target. Our experiments find that Plan-MCTS achieves the highest functional trace yield, with 84.2% correct traces compared with 81.9% for one-shot structured planning and 82.0% for unguided tree exploration. For identical Plan-MCTS trajectories and Verilog outputs, retaining the explicit searched plan during SFT raises pass@10 from 52.56% to 57.7%, demonstrating that the representation of intermediate design decisions materially affects downstream learning. In a separate 6,000-trace study, MCTS-curated supervision improves pass@10 over full-response chain-of-thought distillation by up to 3.7 points while reducing downstream generation length by approximately 50% on VerilogEval-v2. These results demonstrate that structured hardware planning, verifier-guided search, and explicit intermediate-state supervision provide complementary mechanisms for constructing more effective and token-efficient training data for Verilog generation.

同方向论文 · cs.AR

查看全部 →

反向发现 · 这篇论文相关的工具与提示词

去交叉发现 →

关联提示词 · 1