ITERTL:一种用于RTL代码生成的LLM微调迭代框架
ITERTL: An Iterative Framework for Fine-tuning LLMs for RTL Code Generation
AI总结:
提出ITERTL迭代微调框架,通过循环训练和即插即用数据过滤,提升LLM生成RTL代码的能力,在VerilogEval-human上达到53.8% pass@1,超越GPT4和SOTA开源模型。
摘要:
近年来,大型语言模型(LLMs)展现出卓越的性能,激励研究者探索其在自动化寄存器传输级(RTL)代码生成中的应用,以提高硬件设计效率。然而,现有的针对RTL生成的LLM微调方法通常在固定数据集上进行,这未能充分激发LLM的能力,并且需要大量获取成本高昂的参考数据。为缓解这些问题,我们创新性地引入了一种名为ITERTL的迭代训练范式。在每次迭代中,从上一周期训练的模型中抽取样本,然后将这些新样本用于当前循环的训练。此外,我们引入了一种即插即用的数据过滤策略,从而鼓励模型生成高质量、自包含的代码。我们的模型在VerilogEval-human基准上超越了GPT4和最先进(SOTA)的开源模型,实现了显著的53.8% pass@1率。在数据数量和质量相似的条件下,我们的方法显著优于基线。大量实验验证了所提出方法的有效性。
英文摘要:
Recently, large language models (LLMs) have demonstrated excellent performance, inspiring researchers to explore their use in automating register transfer level (RTL) code generation and improving hardware design efficiency. However, the existing approaches to fine-tune LLMs for RTL generation typically are conducted on fixed datasets, which do not fully stimulate the capability of LLMs and require large amounts of reference data, which are costly to acquire. To mitigate these issues, we innovatively introduce an iterative training paradigm named ITERTL. During each iteration, samples are drawn from the model trained in the previous cycle. Then these new samples are employed for training in current loop. Furthermore, we introduce a plug-and-play data filtering strategy, thereby encouraging the model to generate high-quality, self-contained code. Our model outperforms GPT4 and state-of-the-art (SOTA) open-source models, achieving remarkable 53.8% pass@1 rate on VerilogEval-human benchmark. Under similar conditions of data quantity and quality, our approach significantly outperforms the baseline. Extensive experiments validate the effectiveness of the proposed method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。