QiMeng-CRUX: 通过核心精细化理解表达缩小自然语言与Verilog之间的差距以电路设计
QiMeng-CRUX: Narrowing the Gap Between Natural Language and Verilog via Core Refined Understanding eXpression for Circuit Design
AI总结:
QiMeng-CRUX通过核心精细化理解表达缩小自然语言与Verilog之间的差距,提升硬件代码生成的准确性和效率。
摘要:
大型语言模型(LLMs)在硬件描述语言(HDL)生成方面展现出有前途的能力。然而,现有方法往往依赖于自由形式的自然语言描述,这些描述通常模糊、冗余且无结构,这给下游Verilog代码生成带来了显著挑战。我们将硬件代码生成视为从一个开放的自然语言空间到一个领域特定、高度约束的目标空间的复杂转换。为了弥合这一差距,我们引入了核心精细化理解表达(CRUX),一个结构化的中间空间,能够捕捉用户意图的本质语义,同时组织表达以实现精确的Verilog代码生成。我们进一步设计了一个两阶段训练框架,包括联合表达建模和双空间优化,以提高CRUX和Verilog代码的质量。在多个Verilog生成基准测试中,我们的模型CRUX-V在通用模型中实现了最先进的性能,特别是在具有挑战性的设计任务下。此外,CRUX空间在作为其他代码模型的输入提示时证明了其可转移性和有效性,突显了其在缩小自由形式自然语言描述与精确Verilog生成之间差距方面的有效性。
英文摘要:
Large language models (LLMs) have shown promising capabilities in hardware description language (HDL) generation. However, existing approaches often rely on free-form natural language descriptions that are often ambiguous, redundant, and unstructured, which poses significant challenges for downstream Verilog code generation. We treat hardware code generation as a complex transformation from an open-ended natural language space to a domain-specific, highly constrained target space. To bridge this gap, we introduce Core Refined Understanding eXpression (CRUX), a structured intermediate space that captures the essential semantics of user intent while organizing the expression for precise Verilog code generation. We further design a two-stage training framework, comprising Joint Expression Modeling and Dual-Space Optimization, to enhance the quality of both CRUX and Verilog code. Experiments across multiple Verilog generation benchmarks demonstrate that our model, CRUX-V, achieves state-of-the-art performance among general models, particularly under challenging design tasks. Furthermore, the CRUX space proves transferable and beneficial when used as input prompts for other code models, highlighting its effectiveness in narrowing the gap between free-form natural language descriptions and precise Verilog generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。