OpenLLM-RTL:面向大语言模型辅助设计的RTL生成开放数据集与基准
OpenLLM-RTL: Open Dataset and Benchmark for LLM-Aided Design RTL Generation
AI总结:
针对LLM辅助RTL生成领域缺乏公开数据集与基准的问题,本文发布RTLLM 2.0、AssertEval基准及RTLCoder-Data数据集,提出验证数据质量的新方法,整合为统一框架并证实数据与训练优化可提升LLM性能。
摘要:
基于大语言模型(LLM)和自然语言指令自动生成设计RTL在敏捷电路设计中已展现出巨大潜力。然而,公共领域缺乏数据集和基准,阻碍了LLM解决方案的开发与公平评估。本文从三个维度介绍了我们在开放数据集和基准方面的最新进展:(1)RTLLM 2.0,一款用于评估LLM设计RTL生成能力的更新版基准。该基准已扩充至50个人工设计的电路,每个设计都提供设计描述、测试用例和正确的RTL代码。(2)AssertEval,一款用于评估LLM在RTL验证中断言生成能力的开源基准。该基准包含18个设计,每个设计都提供规格说明、信号定义和正确的RTL代码。(3)RTLCoder-Data,一个包含8万条指令-代码数据样本的扩展开源数据集。此外,我们提出了一种新的基于验证的方法,用于检验训练数据样本的功能正确性。基于该技术,我们进一步发布了包含7000条经过验证的高质量样本的数据集。这三项研究被整合到一个框架中,为用于RTL代码生成与验证的LLM的开发和评估提供现成支持。最后,大量实验表明,扩大训练数据集规模、提升数据质量以及优化训练方案均可提升LLM的性能。
英文摘要:
The automated generation of design RTL based on large language model (LLM) and natural language instructions has demonstrated great potential in agile circuit design. However, the lack of datasets and benchmarks in the public domain prevents the development and fair evaluation of LLM solutions. This paper highlights our latest advances in open datasets and benchmarks from three perspectives: (1) RTLLM 2.0, an updated benchmark assessing LLM's capability in design RTL generation. The benchmark is augmented to 50 hand-crafted designs. Each design provides the design description, test cases, and a correct RTL code. (2) AssertEval, an open-source benchmark assessing the LLM's assertion generation capabilities for RTL verification. The benchmark includes 18 designs, each providing specification, signal definition, and correct RTL code. (3) RTLCoder-Data, an extended open-source dataset with 80K instruction-code data samples. Moreover, we propose a new verification-based method to verify the functionality correctness of training data samples. Based on this technique, we further release a dataset with 7K verified high-quality samples. These three studies are integrated into one framework, providing off-the-shelf support for the development and evaluation of LLMs for RTL code generation and verification. Finally, extensive experiments indicate that LLM performance can be boosted by enlarging the training dataset, improving data quality, and improving the training scheme.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。