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

大型语言模型是否在记忆缺陷基准?

Are Large Language Models Memorizing Bug Benchmarks?

Carnegie Mellon University(卡内基梅隆大学);INESC-ID;FEUP(波尔图大学工程学院);LASIGE

Daniel Ramos, Claudia Mamede, Kush Jain, Paulo Canelas, Catarina Gamboa, Claire Le Goues

AI总结:

本文评估了流行LLMs对广泛使用的缺陷基准的数据泄露易感性,发现codegen-multi等模型在Defects4J中存在明显记忆,而LLaMa 3.1等较新模型泄露有限,强调了谨慎选择基准和采用稳健指标的必要性。

摘要:

大型语言模型(LLMs)已成为各种软件工程任务的重要组成部分,包括代码生成、缺陷检测和修复。为了评估模型在这些领域的性能,已经开发了许多包含来自软件项目的真实世界缺陷的缺陷基准。然而,软件工程界日益增长的担忧是,由于数据泄露的风险,这些基准可能无法可靠地反映真实的LLM性能。尽管存在这种担忧,但量化潜在泄露影响的研究仍然有限。在本文中,我们系统地评估了流行的LLMs,以评估它们对广泛使用的缺陷基准数据泄露的易感性。为了识别潜在的泄露,我们使用了多个指标,包括对常用训练数据集中基准成员资格的研究,以及负对数似然和n-gram准确性的分析。我们的研究结果表明,某些模型,特别是codegen-multi,在Defects4J等广泛使用的基准中表现出明显的记忆证据,而在LLaMa 3.1等更大数据集上训练的较新模型则表现出有限的泄露迹象。这些结果强调了需要仔细选择基准并采用稳健的指标来充分评估模型能力。

英文摘要:

Large Language Models (LLMs) have become integral to various software engineering tasks, including code generation, bug detection, and repair. To evaluate model performance in these domains, numerous bug benchmarks containing real-world bugs from software projects have been developed. However, a growing concern within the software engineering community is that these benchmarks may not reliably reflect true LLM performance due to the risk of data leakage. Despite this concern, limited research has been conducted to quantify the impact of potential leakage. In this paper, we systematically evaluate popular LLMs to assess their susceptibility to data leakage from widely used bug benchmarks. To identify potential leakage, we use multiple metrics, including a study of benchmark membership within commonly used training datasets, as well as analyses of negative log-likelihood and n-gram accuracy. Our findings show that certain models, in particular codegen-multi, exhibit significant evidence of memorization in widely used benchmarks like Defects4J, while newer models trained on larger datasets like LLaMa 3.1 exhibit limited signs of leakage. These results highlight the need for careful benchmark selection and the adoption of robust metrics to adequately assess models capabilities.

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

↑