arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.01910cs.LGcs.AIcs.AR
收藏

MG-Verilog:面向增强LLM辅助Verilog生成的多粒度数据集

MG-Verilog: Multi-grained Dataset Towards Enhanced LLM-assisted Verilog Generation

Georgia Institute of Technology(佐治亚理工学院)

Yongan Zhang, Zhongzhi Yu, Yonggan Fu, Cheng Wan, Yingyan Celine Lin

AI总结:

本文针对现有硬件数据集规模与细节不足的问题,提出多粒度Verilog数据集MG-Verilog及均衡微调方案,并通过开源基础设施和实验验证其能持续提升LLM辅助硬件设计性能。

摘要:

大型语言模型(LLMs)近年来在简化硬件设计流程方面展现出潜力,其通过封装大量领域特定数据来实现这一目标。此外,它们还允许用户通过自然语言指令与设计流程进行交互,从而使硬件设计对开发者更加易于访问。然而,在硬件设计中有效利用LLMs需要在推理过程中(例如通过上下文学习)、微调或预训练阶段提供领域特定数据。遗憾的是,现有公开可用的硬件数据集通常在规模、复杂性或细节程度上受到限制,这阻碍了LLMs在硬件设计任务中的有效性。为了解决这一问题,我们首先提出了一套用于创建高质量硬件数据集的标准,这些数据集能够有效增强LLM辅助的硬件设计。基于这些标准,我们提出了一个多粒度Verilog(MG-Verilog)数据集,该数据集包含不同细节层次的描述以及相应的代码样本。为了使更广泛的硬件设计社区受益,我们开发了一个开源基础设施,便于数据集的轻松访问、集成和扩展,以满足特定项目的需求。此外,为了充分利用MG-Verilog数据集在复杂性和细节程度上各不相同的潜力,我们引入了一种均衡微调方案。该方案作为一个独特的用例,用于利用数据集所提供的多样化细节层次。大量实验表明,所提出的数据集和微调方案能够持续提升LLMs在硬件设计任务中的性能。

英文摘要:

Large Language Models (LLMs) have recently shown promise in streamlining hardware design processes by encapsulating vast amounts of domain-specific data. In addition, they allow users to interact with the design processes through natural language instructions, thus making hardware design more accessible to developers. However, effectively leveraging LLMs in hardware design necessitates providing domain-specific data during inference (e.g., through in-context learning), fine-tuning, or pre-training. Unfortunately, existing publicly available hardware datasets are often limited in size, complexity, or detail, which hinders the effectiveness of LLMs in hardware design tasks. To address this issue, we first propose a set of criteria for creating high-quality hardware datasets that can effectively enhance LLM-assisted hardware design. Based on these criteria, we propose a Multi-Grained-Verilog (MG-Verilog) dataset, which encompasses descriptions at various levels of detail and corresponding code samples. To benefit the broader hardware design community, we have developed an open-source infrastructure that facilitates easy access, integration, and extension of the dataset to meet specific project needs. Furthermore, to fully exploit the potential of the MG-Verilog dataset, which varies in complexity and detail, we introduce a balanced fine-tuning scheme. This scheme serves as a unique use case to leverage the diverse levels of detail provided by the dataset. Extensive experiments demonstrate that the proposed dataset and fine-tuning scheme consistently improve the performance of LLMs in hardware design tasks.

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

↑