Are Large Language Models Memorizing Bug Benchmarks?

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Ramos, Daniel, Mamede, Claudia, Jain, Kush, Canelas, Paulo, Gamboa, Catarina, Goues, Claire Le
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910899428655104
author Ramos, Daniel
Mamede, Claudia
Jain, Kush
Canelas, Paulo
Gamboa, Catarina
Goues, Claire Le
author_facet Ramos, Daniel
Mamede, Claudia
Jain, Kush
Canelas, Paulo
Gamboa, Catarina
Goues, Claire Le
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_13323
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Are Large Language Models Memorizing Bug Benchmarks?
Ramos, Daniel
Mamede, Claudia
Jain, Kush
Canelas, Paulo
Gamboa, Catarina
Goues, Claire Le
Software Engineering
Artificial Intelligence
Machine Learning
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.
title Are Large Language Models Memorizing Bug Benchmarks?
topic Software Engineering
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2411.13323