DVD: A Robust Method for Detecting Variant Contamination in Large Language Model Evaluation

Renzhao Liang, Jingru Chen, Bo Jia, Bo Deng, Chenggang Xie, Yidong Wang, Ke Jin, Xin Wang, Linfeng Zhang, Cunxiang WangarXiv 2026

TL;DR

As large language models (LLMs) increasingly train on synthetic and augmented data, they risk encountering "variant contamination"—test questions paraphrased or structurally altered to evade traditional detection while still inflating benchmark scores. To combat this, researchers have introduced DVD (Detection via Variance of generation Distribution), a training-free method that flags contaminated data by detecting when a model awkwardly toggles between memorized templates and creative generation. DVD consistently outperforms traditional perplexity and edit-distance baselines across various model architectures and scales.

What Problem Does This Paper Address?

Data contamination—where evaluation benchmarks accidentally leak into an LLM's training set—is a major headache in AI evaluation. It creates an illusion of strong reasoning capabilities when the model is actually just reciting its notes.

While traditional detectors are decent at catching verbatim copies using n-gram overlaps or perplexity spikes, a more insidious threat has emerged: variant contamination. Thanks to advanced data augmentation tools (like GPT-4), training sets can now contain questions that are semantically identical to test benchmarks but completely rewritten at the lexical or syntactic level (e.g., changing names, altering narrative structures, or swapping numerical values).

As shown in the paper, traditional detection methods completely break down in this scenario, sometimes performing worse than random guessing (an AUC below 0.5). Because the surface text changes, shallow cues disappear, yet the model still exploits its memorized solution templates to ace the test.

Figure 1: Performance of traditional contamination de- tection methods on the variant contamination identifi- cation task. In the figure, an AUC value below 0.5 in- dicates that the models predictions are inversely corre- lated with the true labels, while an AUC close to 0.5 suggests performance equivalent to random guessing.

Methods

Instead of looking at static, surface-level text features, the authors propose DVD (Detection via Variance of generation Distribution). DVD probes the model's internal "cognitive state" by analyzing how its output distribution fluctuates across multiple stochastic decoding runs using temperature sampling.

The core intuition relies on a mixture-distribution framework. When a model encounters a contaminated variant, it experiences an internal tug-of-war, alternating between two states:

  1. Memory Adherence State: A high-confidence regime where the model clings to memorized training templates.
  2. Perturbation Drift State: A low-confidence, exploratory regime driven by the randomness of temperature sampling.

This constant switching causes the probability of the model's least likely tokens (the "tail tokens") to fluctuate wildly. For uncontaminated data, the model stays firmly in the drift state, yielding a stable, smooth variance.

[Input Prompt] ──> [Temperature Sampling (N runs)] ──> [Identify k-least probable tokens] ──> [Calculate Variance of Synthetic Difficulty] ──> [High Variance = Contaminated]

To quantify this, DVD calculates Synthetic Difficulty: the normalized sum of the log-likelihoods of the $k$ least probable tokens in a generated response. By running this over $N$ diverse answers, DVD computes the sample variance. High variance signals variant contamination.

Figure 2: Our Method Pipeline

Datasets

Because no benchmark existed for this specific problem, the authors built one using two prominent datasets:

  • Omni-MATH: A benchmark for olympiad-level mathematics.
  • SuperGPQA: A difficult, general-reasoning dataset spanning 285 graduate disciplines.

They used GPT-4o to generate semantically equivalent variants across four transformation strategies: entity substitution, scenario conversion, numerical rewriting, and narrative restructuring. They then simulated contamination by fine-tuning open-source models—specifically the Qwen2.5 series (ranging from 1.5B to 32B parameters) and Llama3.1-8B-Instruct—using both full-parameter and LoRA fine-tuning.

Key Insights and Ideas

  • The Bimodal Fingerprint: Statistical analysis revealed that contaminated samples consistently produce a distinct bi-modal distribution in their tail-token log-likelihoods (one peak for memory recall, one for random drift). Clean samples produce a clean, unimodal Gaussian-like distribution.
  • The Fragility of Perplexity: Traditional metrics like Loss and Perplexity fail because minor phrasing changes drastically alter local token probabilities, completely blinding these metrics to the fact that the model has memorized the underlying logic template.
  • Variance Over Absolute Values: Rather than measuring how hard a question is for a model, measuring how much the difficulty fluctuates across random generations provides a highly robust, architecture-agnostic signature of memorization.

Key Results

DVD demonstrated remarkable accuracy and cross-domain robustness:

  • Outperforming Baselines: Across both datasets, DVD consistently beat all baselines (including Min-K%++, CDD, Zlib, and Embedding Similarity). On SuperGPQA with LoRA fine-tuning, DVD improved the Area Under the ROC Curve (AUC) by up to 0.22 over the strongest baseline.
  • Scale and Architecture Agnostic: The method maintained high performance regardless of whether it was evaluating a small 1.5B model or a massive 32B model, and worked equally well on both Qwen and Llama architectures.
  • Robustness Across Training: As shown in Figure 4, DVD achieves strong AUC scores early in the training stages and remains stable across multiple epochs.
Figure 4: Average performance of the DVD method across different epochs.

Limitations and Future Work

While powerful, the authors note a few limitations:

  • Open-Ended Tasks: For tasks with multiple valid reasoning paths or open-ended answers, natural generation diversity increases baseline variance, which can muddy the waters and require task-specific calibration.
  • Generation Sensitivity: DVD is sensitive to generation lengths, stopping criteria, and answer formats, meaning evaluation prompts must be carefully standardized.
  • Computational Cost: Because it requires repeated sampling ($N=50$ runs per item in the experiments), it demands a higher computational budget than single-forward-pass methods like perplexity.
  • Real-World Messiness: The benchmark relies on clean, LLM-generated variants. Real-world pretraining data might feature messier, cross-domain variant contamination that requires further study.

Summary updated

BibTeX
@misc{liang2026dvd,
  author = {Renzhao Liang and Jingru Chen and Bo Jia and Bo Deng and Chenggang Xie and Yidong Wang and Ke Jin and Xin Wang and Linfeng Zhang and Cunxiang Wang},
  title = {{DVD: A Robust Method for Detecting Variant Contamination in Large Language Model Evaluation}},
  year = {2026},
  eprint = {2601.04895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.04895},
}
Figure