arXiv:2504.14560cs.ARcs.AI2025-04被引 16

用自适应推理提升硬件代码生成效率,性能逼近商用模型。

ReasoningV: Efficient Verilog Code Generation with Adaptive Hybrid Reasoning Model

  • 融合训练能力与动态推理深度调整,降低计算开销。
  • 在VerilogEval-human上达57.8%通过率,优于开源模型10.4个百分点。
  • 开源数据集与代码,适合硬件自动化研究者使用。

大型语言模型在Verilog代码生成方面取得显著进展,但仍面临数据质量、推理能力与计算效率的挑战。本文提出ReasoningV,一种结合训练内禀能力与动态推理适应性的混合推理模型。框架包含三项创新:(1) ReasoningV-5K,一个由PyraNet样本经多维筛选构建的5,000个功能验证实例的高质量数据集,附带推理路径;(2) 两阶段训练策略,先参数高效微调打基础,再全参数优化增强推理;(3) 自适应推理机制,根据问题复杂度动态调节推理深度,最多减少75%的令牌消耗,同时保持性能。实验显示,ReasoningV在VerilogEval-human上的pass@1准确率达57.8%,性能接近领先商用模型Gemini-2.0-flash(59.5%),并超越此前最佳开源模型10.4个百分点。模型、数据与代码已开源,为人工智能驱动的硬件设计自动化提供更可靠、可及的新路径。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have advanced Verilog code generation significantly, yet face challenges in data quality, reasoning capabilities, and computational efficiency. This paper presents ReasoningV, a novel model employing a hybrid reasoning strategy that integrates trained intrinsic capabilities with dynamic inference adaptation for Verilog code generation. Our framework introduces three complementary innovations: (1) ReasoningV-5K, a high-quality dataset of 5,000 functionally verified instances with reasoning paths created through multi-dimensional filtering of PyraNet samples; (2) a two-stage training approach combining parameter-efficient fine-tuning for foundational knowledge with full-parameter optimization for enhanced reasoning; and (3) an adaptive reasoning mechanism that dynamically adjusts reasoning depth based on problem complexity, reducing token consumption by up to 75\% while preserving performance. Experimental results demonstrate ReasoningV's effectiveness with a pass@1 accuracy of 57.8\% on VerilogEval-human, achieving performance competitive with leading commercial models like Gemini-2.0-flash (59.5\%) and exceeding the previous best open-source model by 10.4 percentage points. ReasoningV offers a more reliable and accessible pathway for advancing AI-driven hardware design automation, with our model, data, and code available at https://github.com/BUAA-CLab/ReasoningV.

Verilog生成自适应推理硬件自动化LLM优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。