DCR: Quantifying Data Contamination in LLMs Evaluation

Cheng Xu, Nan Yan, Shuhao Guan, Changhong Jin, Yuke Mei +2 more
7/15/2025
cs.CL

No official code found. Best implementation: chengxuphd/dcr (1 star, Apache-2.0, last commit 2025-11-01).

Abstract

The rapid advancement of large language models (LLMs) has heightened concerns about benchmark data contamination (BDC), where models inadvertently memorize evaluation data during the training process, inflating performance metrics, and undermining genuine generalization assessment. This paper introduces the Data Contamination Risk (DCR) framework, a lightweight, interpretable pipeline designed to detect and quantify BDC risk across four granular levels: semantic, informational, data, and label. By synthesizing contamination scores via a fuzzy inference system, DCR produces a unified DCR Factor that adjusts raw accuracy to reflect contamination-aware performance. Validated on 9 LLMs (0.5B-72B) across sentiment analysis, fake news detection, and arithmetic reasoning tasks, the DCR framework reliably diagnoses contamination severity and with accuracy adjusted using the DCR Factor to within 4% average error across the three benchmarks compared to the uncontaminated baseline. Emphasizing computational efficiency and transparency, DCR provides a practical tool for integrating contamination assessment into routine evaluations, fostering fairer comparisons and enhancing the credibility of LLM benchmarking practices.

View on arXivView PDF

Code Implementations(1)

chengxuphd/dcrCommunity100%
Apache-2.0
11PythonJul 15, 202511 months agoApache-2.0

Similar Papers

Cite this paper

@article{xu2025dcr,
  title  = {DCR: Quantifying Data Contamination in LLMs Evaluation},
  author = {Cheng Xu and Nan Yan and Shuhao Guan and Changhong Jin and Yuke Mei and Yibing Guo and M-Tahar Kechadi},
  year   = {2025},
  eprint = {2507.11405},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.11405v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.11405.svg)](https://codeofpaper.com/paper/2507.11405)

Discussion