Introducing The Heap: A Contamination-Free Dataset for Evaluating Large Language Models

Sunday 09 March 2025


A team of researchers has created a massive dataset of source code, aimed at providing a contamination-free environment for evaluating large language models (LLMs). This dataset, called The Heap, is a significant step forward in ensuring the integrity and fairness of LLM evaluations.


The Heap contains over 733,000 files of source code from various programming languages, carefully curated to exclude duplicates and ensure that each file is unique. The dataset includes code from a range of languages, including popular ones like Python, Java, and C++, as well as less common languages like Haskell and Coq.


To create The Heap, the researchers used a combination of techniques, including exact deduplication based on hashing and near-deduplication using locality-sensitive hashing. This approach allowed them to identify and remove duplicates from other publicly available datasets, ensuring that The Heap is free from contamination.


The importance of deduplicating code datasets cannot be overstated. When LLMs are trained on contaminated data, it can lead to biased results and inaccurate evaluations. By providing a clean dataset like The Heap, researchers can ensure that their models are evaluated fairly and accurately.


One of the key challenges in creating The Heap was dealing with the sheer scale of the task. With over 733,000 files to process, the researchers had to develop efficient algorithms and techniques to identify duplicates and remove them from the dataset. This involved using advanced hashing techniques and exploiting patterns in the code to identify similar files.


The Heap is not just a useful tool for evaluating LLMs; it also has potential applications in other areas of computer science. For example, the dataset could be used to train models that can automatically detect duplicates in large codebases or to develop tools that can help developers identify and fix duplicate code.


Overall, The Heap represents an important step forward in ensuring the integrity of LLM evaluations and providing a valuable resource for researchers and developers. By making this dataset available, the researchers hope to encourage further innovation and progress in the field of natural language processing.


Cite this article: “Introducing The Heap: A Contamination-Free Dataset for Evaluating Large Language Models”, The Science Archive, 2025.


Here Are The Keywords: Large Language Models, Source Code, Dataset, Contamination-Free, Evaluation, Fairness, Accuracy, Deduplication, Hashing, Natural Language Processing


Reference: Jonathan Katzy, Razvan Mihai Popescu, Arie van Deursen, Maliheh Izadi, “The Heap: A Contamination-Free Multilingual Code Dataset for Evaluating Large Language Models” (2025).


Leave a Reply