arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.05345cs.LGcs.AR
收藏

RTLLM:用于大型语言模型设计RTL生成的开源基准

RTLLM: An Open-Source Benchmark for Design RTL Generation with Large Language Model

Hong Kong University of Science and Technology(香港科技大学)

Yao Lu, Shang Liu, Qijun Zhang, Zhiyao Xie

AI总结:

提出开源基准RTLLM,用于评估LLM生成设计RTL,并引入自我规划提示技巧,显著提升GPT-3.5性能。

摘要:

受最近大型语言模型(LLMs)如ChatGPT成功的启发,研究人员开始探索将LLMs应用于敏捷硬件设计,例如基于自然语言指令生成设计RTL。然而,在现有工作中,目标设计通常相对简单且规模较小,并且由作者自己提出,这使得在不同LLM解决方案之间进行公平比较变得具有挑战性。此外,许多先前的工作仅关注设计正确性,而不评估生成的设计RTL的设计质量。在这项工作中,我们提出了一个名为RTLLM的开源基准,用于通过自然语言指令生成设计RTL。为了系统评估自动生成的设计RTL,我们总结了三个渐进目标,即语法目标、功能目标和设计质量目标。该基准可以自动对任何基于LLM的解决方案进行定量评估。此外,我们提出了一种易于使用但出奇有效的提示工程技巧,名为自我规划(self-planning),该技巧在我们的基准中显著提升了GPT-3.5的性能。

英文摘要:

Inspired by the recent success of large language models (LLMs) like ChatGPT, researchers start to explore the adoption of LLMs for agile hardware design, such as generating design RTL based on natural-language instructions. However, in existing works, their target designs are all relatively simple and in a small scale, and proposed by the authors themselves, making a fair comparison among different LLM solutions challenging. In addition, many prior works only focus on the design correctness, without evaluating the design qualities of generated design RTL. In this work, we propose an open-source benchmark named RTLLM, for generating design RTL with natural language instructions. To systematically evaluate the auto-generated design RTL, we summarized three progressive goals, named syntax goal, functionality goal, and design quality goal. This benchmark can automatically provide a quantitative evaluation of any given LLM-based solution. Furthermore, we propose an easy-to-use yet surprisingly effective prompt engineering technique named self-planning, which proves to significantly boost the performance of GPT-3.5 in our proposed benchmark.

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

↑