Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
38 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

DICE: Detecting In-distribution Contamination in LLM's Fine-tuning Phase for Math Reasoning (2406.04197v2)

Published 6 Jun 2024 in cs.CL

Abstract: The advancement of LLMs relies on evaluation using public benchmarks, but data contamination can lead to overestimated performance. Previous researches focus on detecting contamination by determining whether the model has seen the exact same data during training. Besides, prior work has already shown that even training on data similar to benchmark data inflates performance, namely \emph{In-distribution contamination}. In this work, we argue that in-distribution contamination can lead to the performance drop on OOD benchmarks. To effectively detect in-distribution contamination, we propose DICE, a novel method that leverages the internal states of LLMs to locate-then-detect the contamination. DICE first identifies the most sensitive layer to contamination, then trains a classifier based on the internal states of that layer. Experiments reveal DICE's high accuracy in detecting in-distribution contamination across various LLMs and math reasoning datasets. We also show the generalization capability of the trained DICE detector, which is able to detect contamination across multiple benchmarks with similar distributions. Additionally, we find that DICE's predictions correlate with the performance of LLMs fine-tuned by either us or other organizations, achieving a coefficient of determination ($R2$) between 0.61 and 0.75. The code and data are available at https://github.com/THU-KEG/DICE.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Shangqing Tu (18 papers)
  2. Kejian Zhu (3 papers)
  3. Yushi Bai (31 papers)
  4. Zijun Yao (50 papers)
  5. Lei Hou (127 papers)
  6. Juanzi Li (144 papers)
Citations (1)
X Twitter Logo Streamline Icon: https://streamlinehq.com