跳到正文
arXiv cs.AI· Matthew DeLorenzo, Kevin Tieu, Prithwish Jana, Piyush Jha, Dileep Kalathil, Vijay Ganesh, Jeyavijayan Rajendran·· 2 小时前AI 评分39

MCTS-SFT:基于搜索引导的推理轨迹筛选方法提升 LLM Verilog 生成效果

Search-Guided Reasoning Trace Curation for Verilog Generation

AI 导读

MCTS-SFT 是一种以验证器引导的框架,用蒙特卡洛树搜索(MCTS)为大语言模型的 Verilog 生成微调筛选结构化推理轨迹,其中 Plan-MCTS 在硬件设计计划空间中搜索。

正文 · 原文

View PDF HTML (experimental)

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.
Subjects: Hardware Architecture (cs.AR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.37706 [cs.AR]
  (or arXiv:2610.37706v1 [cs.AR] for this version)
  https://doi.org/10.48550/arXiv.2610.37706

arXiv-issued DOI via DataCite

Submission history

From: Matthew DeLorenzo [view email]
[v1] Mon, 26 Oct 2026 18:47:49 UTC (128 KB)

来源:arXiv cs.AI · arxiv.org