arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.04379cs.SEcs.AIcs.CL
收藏

VHDL-Eval:一个用于评估大型语言模型在 VHDL 代码生成中表现的框架

VHDL-Eval: A Framework for Evaluating Large Language Models in VHDL Code Generation

IBM Research(IBM研究院)

Prashanth Vijayaraghavan, Luyao Shi, Stefano Ambrogio, Charles Mackin, Apoorva Nitsure, David Beymer, Ehsan Degan

AI总结:

本文提出 VHDL-Eval 框架,通过构建 202 个 VHDL 问题数据集和自验证测试平台,系统评估 LLMs 在 VHDL 代码生成中的表现,发现现有模型存在显著不足,并强调针对 VHDL 进行监督微调的必要性。

摘要:

随着大型语言模型(LLMs)取得前所未有的进展,其应用领域已扩展到涵盖多种编程语言的代码生成任务。尽管在增强 LLMs 以处理流行编程语言方面已取得显著进展,但在针对硬件描述语言(HDLs),尤其是 VHDL 的全面评估框架方面仍存在明显空白。本文通过引入一个专门为评估 LLMs 在 VHDL 代码生成任务中表现而设计的全面评估框架来填补这一空白。我们构建了一个用于评估 LLMs 在 VHDL 代码生成任务上表现的数据集。该数据集通过将一组 Verilog 评估问题翻译为 VHDL,并汇总公开可用的 VHDL 问题构建而成,共计 202 个问题。为评估所生成 VHDL 代码的功能正确性,我们使用了一组精心整理的、专门为这些汇总的 VHDL 问题集设计的自验证测试平台。我们对不同的 LLMs 及其变体进行了初步评估,包括零样本代码生成、上下文学习(ICL)和参数高效微调(PEFT)方法。我们的研究结果凸显了现有 LLMs 在 VHDL 代码生成中面临的巨大挑战,揭示了显著的改进空间。本研究强调了针对 VHDL 专门进行监督微调代码生成模型的必要性,为寻求高效代码生成解决方案的 VHDL 设计者提供了潜在益处。

英文摘要:

With the unprecedented advancements in Large Language Models (LLMs), their application domains have expanded to include code generation tasks across various programming languages. While significant progress has been made in enhancing LLMs for popular programming languages, there exists a notable gap in comprehensive evaluation frameworks tailored for Hardware Description Languages (HDLs), particularly VHDL. This paper addresses this gap by introducing a comprehensive evaluation framework designed specifically for assessing LLM performance in VHDL code generation task. We construct a dataset for evaluating LLMs on VHDL code generation task. This dataset is constructed by translating a collection of Verilog evaluation problems to VHDL and aggregating publicly available VHDL problems, resulting in a total of 202 problems. To assess the functional correctness of the generated VHDL code, we utilize a curated set of self-verifying testbenches specifically designed for those aggregated VHDL problem set. We conduct an initial evaluation of different LLMs and their variants, including zero-shot code generation, in-context learning (ICL), and Parameter-efficient fine-tuning (PEFT) methods. Our findings underscore the considerable challenges faced by existing LLMs in VHDL code generation, revealing significant scope for improvement. This study emphasizes the necessity of supervised fine-tuning code generation models specifically for VHDL, offering potential benefits to VHDL designers seeking efficient code generation solutions.

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

↑