Is CodeXGLUE Deprecated? Quantifying Data Leakage in Large Language Models of Code
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student 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
2026-04-232026-04-152026-04-23Bibliographically approved