liu.seSearch for publications in DiVA
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Is CodeXGLUE Deprecated? Quantifying Data Leakage in Large Language Models of Code
Linköping University, Department of Computer and Information Science, Software and Systems.
Linköping University, Department of Computer and Information Science, Software and Systems.
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Large language models (LLMs) have demonstrated remarkable performance in varioussoftware engineering (SE) tasks such as code generation, code summarization, code trans-lation, and code search. These models are pre-trained on large-scale open-source corporaand evaluated using benchmark datasets. However, when the same or highly similar codeappears in both the pre-training data and the evaluation benchmarks, it creates a riskof data leakage. In such cases, the model may appear to perform well not because itgeneralizes, but because it has already encountered the answers during training. Thisinflates evaluation scores and leads to an inaccurate understanding of the model’s truecapabilities.

Motivated by these challenges, this thesis undertakes a systematic analysis of dataleakage in benchmark datasets. To this end, we employ data portraits, documentationartifacts that record training data and enable efficient membership inference throughcompact data sketches, allowing fast, space-efficient inspection of web-scale corpora. Wefirst identify suitable hyperparameter configurations for applying data portraits at thelevel of individual source code functions. Using these hyperparameters, we then quantifyoverlap and data leakage between source code functions in pre-training datasets (TheStack, CodeParrot, and The Pile) and the benchmark dataset CodeXGLUE.

The results indicate substantial evidence of data leakage within the benchmarkdataset. Importantly, achieving reliable function-level detection required calibrating thedata portrait tool, as the default parameters were insufficient for fine-grained code anal-ysis. By systematically tuning the n-gram and threshold values, the tool was optimizedto accurately capture overlaps between the pre-training corpora and CodeXGLUE. Thesefindings underscore the need for improved dataset curation and evaluation methodologiesthat explicitly account for leakage in LLM-based SE research.

Place, publisher, year, edition, pages
2026. , p. 52
Keywords [en]
LLMs, Large language models of Code, LLMs of Code, Data Leakage, Data Portraits, Pre-training Datasets, Benchmark Datasets, CodeXGLUE, Data leakage quantification
National Category
Software Engineering Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-222922ISRN: LIU-IDA/LITH-EX-A--26/010--SEOAI: oai:DiVA.org:liu-222922DiVA, id: diva2:2053239
Subject / course
Computer science
Presentation
2025-06-16, Donald Knuth, Linköping, 13:00
Supervisors
Examiners
Available from: 2026-04-23 Created: 2026-04-15 Last updated: 2026-04-23Bibliographically approved

Open Access in DiVA

fulltext(1716 kB)320 downloads
File information
File name FULLTEXT01.pdfFile size 1716 kBChecksum SHA-512
855e1d4530de9cfc480082e976973505b8e9288905b64af1ed9e3655f33b4da460ca2fcbcf0237e62ecc90f4ae9ac9807ddcfe55745a085a8bedf4fc0953ac44
Type fulltextMimetype application/pdf

By organisation
Software and Systems
Software EngineeringComputer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 320 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 944 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf