mlsanityData to 14 Oct 2026

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

arXiv 2406.04197 ↗First posted 6 Jun 2024cs.CLcited by 11

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

The advancement of large language models (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 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.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 31 of its 41 references that are in the map. First posted on arXiv 6 Jun 2024.

Builds on

31 of 41 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024A Careful Examination of Large Language Model Performance on Grade School Arithmetic1 May
  2. 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoning29 Sep

Other references · 29

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  6. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  7. 2020Extracting Training Data from Large Language Modelscited by 2,189
  8. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
  9. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  10. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  11. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 878
  12. 2022PAL: Program-aided Language Modelscited by 652
17 more
  1. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
  2. 2023Detecting Pretraining Data from Large Language Modelscited by 387
  3. 2021A Diverse Corpus for Evaluating and Developing English Math Word Problem Solverscited by 318
  4. 2022Data Contamination: From Memorization to Exploitationcited by 236
  5. 2023Proving Test Set Contamination in Black Box Language Modelscited by 230
  6. 2023Benchmarking Foundation Models with Language-Model-as-an-Examinercited by 172
  7. 2024Benchmarking Benchmark Leakage in Large Language Modelscited by 106
  8. 2023DyVal: Dynamic Evaluation of Large Language Models for Reasoning Taskscited by 101
  9. 2023KoLA: Carefully Benchmarking World Knowledge of Large Language Modelscited by 85
  10. 2024Benchmark Self-Evolving: A Multi-Agent Framework for Dynamic LLM Evaluationcited by 75
  11. 2021Memorization vs. Generalization: Quantifying Data Leakage in NLP Performance Evaluationcited by 70
  12. 2023LatestEval: Addressing Data Contamination in Language Model Evaluation through Dynamic and Time-Sensitive Test Constructioncited by 58
  13. 2023"According to ...": Prompting Language Models Improves Quoting from Pre-Training Datacited by 42
  14. 2024KIEval: A Knowledge-grounded Interactive Evaluation Framework for Large Language Modelscited by 36
  15. 2024Evading Data Contamination Detection for Language Models is (too) Easycited by 30
  16. 2024TRUCE: Private Benchmarking to Prevent Contamination and Improve Comparative Evaluation of LLMscited by 24
  17. 2023CLEAN-EVAL: Clean Evaluation on Contaminated Large Language Modelscited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 7; 2026: 3.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Does Data Contamination Detection Work (Well) for LLMs? A Survey and Evaluation on Detection Assumptions
  2. 2025Do LLMs Overthink Basic Math Reasoning? Benchmarking the Accuracy-Efficiency Tradeoff in Language Models
  3. 2026How reliable are LLMs when it comes to playing dice?
  4. 2024Exposing the Achilles' Heel: Evaluating LLMs Ability to Handle Mistakes in Mathematical Reasoning
  5. 2026Improving Mathematical Reasoning Capabilities in Large Language Models via Reasoning Process Error Classification
  6. 2025DeepDistill: Enhancing LLM Reasoning Capabilities via Large-Scale Difficulty-Graded Data Training
  7. 2025Rethinking Fine-Tuning when Scaling Test-Time Compute: Limiting Confidence Improves Mathematical Reasoning
  8. 2025BeyondBench: Contamination-Resistant Evaluation of Reasoning in Language Models