[Paper Review] Rethinking Benchmark and Contamination for Language Models with Rephrased Samples
This paper introduces rephrased samples—semantically equivalent but linguistically varied test cases—that evade standard n-gram and embedding-based decontamination methods. It proposes an LLM-based decontamination method that detects such variations, revealing previously unknown contamination in real-world datasets like RedPajama-1T and StarCoder-Data, with 8–18% overlap to HumanEval, and calls for fresh, one-time benchmarks to ensure reliable LLM evaluation.
Large language models are increasingly trained on all the data ever produced by humans. Many have raised concerns about the trustworthiness of public benchmarks due to potential contamination in pre-training or fine-tuning datasets. While most data decontamination efforts apply string matching (e.g., n-gram overlap) to remove benchmark data, we show that these methods are insufficient, and simple variations of test data (e.g., paraphrasing, translation) can easily bypass these decontamination measures. Furthermore, we demonstrate that if such variation of test data is not eliminated, a 13B model can easily overfit a test benchmark and achieve drastically high performance, on par with GPT-4. We validate such observations in widely used benchmarks such as MMLU, GSK8k, and HumanEval. To address this growing risk, we propose a stronger LLM-based decontamination method and apply it to widely used pre-training and fine-tuning datasets, revealing significant previously unknown test overlap. For example, in pre-training sets such as RedPajama-Data-1T and StarCoder-Data, we identified that 8-18\% of the HumanEval benchmark overlaps. Interestingly, we also find such contamination in synthetic dataset generated by GPT-3.5/4, suggesting a potential risk of unintentional contamination. We urge the community to adopt stronger decontamination approaches when using public benchmarks. Moreover, we call for the community to actively develop fresh one-time exams to evaluate models accurately. Our decontamination tool is publicly available at https://github.com/lm-sys/llm-decontaminator.
Motivation & Objective
- To expose the limitations of current decontamination methods like n-gram overlap and embedding similarity in detecting semantically equivalent but linguistically varied test data.
- To demonstrate that simple rephrasing of benchmark samples enables 13B models to overfit and achieve GPT-4-level performance while evading detection.
- To reveal previously undetected contamination in widely used pre-training and synthetic datasets, including those from GPT-3.5/4.
- To advocate for the creation of fresh, one-time benchmarks to ensure accurate and trustworthy LLM evaluation.
Proposed method
- Generate rephrased samples using LLMs to paraphrase or translate original benchmark questions, preserving semantics but evading string-based detection.
- Apply embedding similarity search to identify top-k candidate matches for each test sample.
- Use a strong LLM (e.g., GPT-4) to assess whether any of the top-k candidates are semantically too close to the test sample, enabling detection of subtle contamination.
- Apply the LLM decontaminator to real-world datasets like RedPajama-1T, StarCoder-Data, and CodeAlpaca to uncover hidden test overlaps.
- Evaluate the performance of models fine-tuned on rephrased benchmarks to demonstrate overfitting and evasion of standard detection.
- Propose the adoption of dynamic, one-time exams (e.g., like CodeForces) as a long-term solution to benchmark contamination.
Experimental results
Research questions
- RQ1Can simple linguistic variations such as paraphrasing or translation bypass standard n-gram and embedding-based decontamination methods in LLM benchmarks?
- RQ2To what extent can a 13B model overfit a benchmark when trained on rephrased test samples, achieving performance comparable to GPT-4 while remaining undetected?
- RQ3What is the true extent of benchmark contamination in widely used pre-training and synthetic datasets, including those generated by GPT-3.5/4?
- RQ4How effective is an LLM-based decontamination method in detecting semantically similar but string-mismatched contamination compared to existing techniques?
- RQ5Can fresh, one-time benchmarks mitigate the risk of contamination and improve the reliability of LLM evaluation?
Key findings
- Rephrased samples—generated via paraphrasing or translation—can evade detection by standard n-gram overlap and embedding similarity methods, enabling model overfitting without triggering contamination alarms.
- A 13B Llama-2 model fine-tuned on rephrased MMLU, GSM-8k, and HumanEval samples achieves performance on par with GPT-4, demonstrating significant overfitting potential.
- The LLM-based decontamination method significantly outperforms traditional approaches by combining embedding search with LLM judgment for semantic similarity.
- In pre-training datasets like RedPajama-Data-1T and StarCoder-Data, 8–18% of HumanEval test cases are found to be contaminated via rephrased variants.
- A synthetic dataset like CodeAlpaca, generated by GPT-3.5, contains 12.8% rephrased samples from HumanEval, indicating a risk of unintentional contamination in synthetic data training.
- The study reveals previously unknown contamination in open-source and proprietary datasets, urging the community to adopt stronger decontamination and move toward dynamic, one-time evaluation benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.