Skip to main content
QUICK REVIEW

[Paper Review] Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Models

Yihong Dong, Xue Jiang|arXiv (Cornell University)|Feb 24, 2024
Explainable Artificial Intelligence (XAI)Computer Science3 citations
TL;DR

This paper proposes CDD (Contamination Detection via output Distribution) and TED (Trustworthy Evaluation via output Distribution) to detect and mitigate data contamination in large language models using only sampled model outputs. CDD identifies contamination through peaked output distributions, achieving 21.8%-30.2% relative improvement over baselines in detection metrics, while TED reduces contamination-induced performance gains by up to 66.9% across 24 settings.

ABSTRACT

Recent statements about the impressive capabilities of large language models (LLMs) are usually supported by evaluating on open-access benchmarks. Considering the vast size and wide-ranging sources of LLMs' training data, it could explicitly or implicitly include test data, leading to LLMs being more susceptible to data contamination. However, due to the opacity of training data, the black-box access of models, and the rapid growth of synthetic training data, detecting and mitigating data contamination for LLMs faces significant challenges. In this paper, we propose CDD, which stands for Contamination Detection via output Distribution for LLMs. CDD necessitates only the sampled texts to detect data contamination, by identifying the peakedness of LLM's output distribution. To mitigate the impact of data contamination in evaluation, we also present TED: Trustworthy Evaluation via output Distribution, based on the correction of LLM's output distribution. To facilitate this study, we introduce two benchmarks, i.e., DetCon and ComiEval, for data contamination detection and contamination mitigation evaluation tasks. Extensive experimental results show that CDD achieves the average relative improvements of 21.8\%-30.2\% over other contamination detection approaches in terms of Accuracy, F1 Score, and AUC metrics, and can effectively detect implicit contamination. TED substantially mitigates performance improvements up to 66.9\% attributed to data contamination across various contamination setups. In real-world applications, we reveal that ChatGPT exhibits a high potential to suffer from data contamination on HumanEval benchmark.

Motivation & Objective

  • To address the challenge of data contamination in LLMs, which undermines the reliability of benchmark evaluations.
  • To detect contamination without access to training data or model parameters, focusing on black-box LLMs like ChatGPT.
  • To develop a method that identifies contamination not only in exact test data but also in semantic variants and paraphrased forms.
  • To enable trustworthy evaluation by correcting for contamination-induced performance overestimation in benchmark results.
  • To provide new benchmarks, DetCon and ComiEval, for contamination detection and mitigation evaluation.

Proposed method

  • CDD detects data contamination by analyzing the peakedness of the LLM’s output distribution across multiple sampling runs.
  • It assumes that training data leads to more peaked output distributions due to memorization, which can be detected via statistical analysis of generated text.
  • TED corrects the output distribution of LLMs to mitigate contamination effects, improving evaluation reliability.
  • The method relies solely on sampled text outputs, making it applicable to black-box models such as GPT-4 and ChatGPT.
  • Two new benchmarks, DetCon and ComiEval, are constructed to evaluate contamination detection and mitigation performance.
  • The approach uses parameter-efficient fine-tuning (LoRA) to simulate contamination in controlled settings.

Experimental results

Research questions

  • RQ1Can data contamination in LLMs be detected using only sampled model outputs, without access to training data or model parameters?
  • RQ2How effective is output distribution analysis in detecting contamination from both exact and variant forms of test data?
  • RQ3To what extent can contamination-induced performance gains be mitigated through output distribution correction?
  • RQ4How does the proposed method compare to existing contamination detection techniques in terms of accuracy, F1, and AUC?
  • RQ5What is the real-world impact of data contamination on widely used benchmarks like HumanEval?

Key findings

  • CDD achieves average relative improvements of 21.8% to 30.2% over baseline methods in accuracy, F1 score, and AUC across multiple contamination detection tasks.
  • CDD effectively detects contamination not only in exact test data but also in semantic variants, such as translated or paraphrased versions.
  • TED mitigates contamination-induced performance gains by up to 66.9% across 24 different evaluation settings and 21 contamination degrees.
  • The method reveals that ChatGPT exhibits high susceptibility to data contamination on the HumanEval benchmark, indicating real-world implications.
  • The proposed benchmarks, DetCon and ComiEval, provide reliable and reproducible evaluation frameworks for contamination detection and mitigation.
  • The approach remains effective even when training data is opaque and synthetic data proliferation introduces variant forms of leaked data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.