Skip to main content
QUICK REVIEW

[Paper Review] ConStat: Performance-Based Contamination Detection in Large Language Models

Jasper Dekoninck, Mark Niklas Müller|arXiv (Cornell University)|May 25, 2024
Topic ModelingComputer Science3 citations
TL;DR

ConStat introduces a performance-based definition of data contamination in large language models, detecting and quantifying it through statistical comparison of model performance across original and reference benchmarks. It identifies significant contamination in major models like Mistral, Llama, Yi, and top Open LLM Leaderboard models by measuring non-generalizing performance gains.

ABSTRACT

Public benchmarks play an essential role in the evaluation of large language models. However, data contamination can lead to inflated performance, rendering them unreliable for model comparison. It is therefore crucial to detect contamination and estimate its impact on measured performance. Unfortunately, existing detection methods can be easily evaded and fail to quantify contamination. To overcome these limitations, we propose a novel definition of contamination as artificially inflated and non-generalizing benchmark performance instead of the inclusion of benchmark samples in the training data. This perspective enables us to detect any model with inflated performance, i.e., performance that does not generalize to rephrased samples, synthetic samples from the same distribution, or different benchmarks for the same task. Based on this insight, we develop ConStat, a statistical method that reliably detects and quantifies contamination by comparing performance between a primary and reference benchmark relative to a set of reference models. We demonstrate the effectiveness of ConStat in an extensive evaluation of diverse model architectures, benchmarks, and contamination scenarios and find high levels of contamination in multiple popular models including Mistral, Llama, Yi, and the top-3 Open LLM Leaderboard models.

Motivation & Objective

  • To address the unreliability of public benchmarks due to data contamination that inflates model performance.
  • To overcome limitations of existing contamination detection methods that rely on training data inclusion and are easily evaded.
  • To develop a robust, quantifiable method for detecting contamination based on performance generalization across benchmarks.
  • To evaluate contamination levels across diverse model architectures and benchmark scenarios.
  • To demonstrate that high-performance models may exhibit non-generalizing behavior indicative of contamination.

Proposed method

  • Define contamination not by data inclusion but by artificially inflated, non-generalizing performance on original benchmarks.
  • Select reference models and a reference benchmark (rephrased, synthetic, or similar task) to establish performance baselines.
  • Fit a difficulty correction function $ H_{D_{\text{ref}}} $ to model the performance relationship between the reference and original benchmarks.
  • Predict expected performance on the original benchmark using the target model’s performance on the reference benchmark.
  • Compute the performance difference $ \delta $ between predicted and actual performance, with bootstrapping to estimate $ \delta $ and p-value.
  • Use the p-value to test the null hypothesis that the model is not contaminated, enabling statistical detection and quantification.
Figure 2 : Estimated $\hat{\delta}$ as a function of the true $\delta$ for the finetuned models. $2$ -sigma intervals are shown.
Figure 2 : Estimated $\hat{\delta}$ as a function of the true $\delta$ for the finetuned models. $2$ -sigma intervals are shown.

Experimental results

Research questions

  • RQ1Can contamination in large language models be reliably detected without assuming data inclusion in training sets?
  • RQ2To what extent does performance on a benchmark generalize to rephrased or synthetically generated variants of the same task?
  • RQ3How prevalent is contamination across popular open-source and proprietary LLMs?
  • RQ4Can a statistical method detect contamination that evades traditional detection techniques?
  • RQ5What is the magnitude of contamination in state-of-the-art models like Llama, Mistral, and Yi?

Key findings

  • ConStat detects high levels of contamination in Mistral-7b-v0.1, with a contamination magnitude $ \hat{\delta} = 35.1\% $ and p-value $ 0.01\% $, indicating strong statistical evidence of non-generalizing performance.
  • Llama-3-70b and Llama-2-Instruct-70b show significant contamination, with $ \hat{\delta} $ values exceeding 20% on multiple benchmarks.
  • Yi-34b exhibits $ \hat{\delta} = -20.29\% $ on ARC, indicating substantial performance inflation not generalizing to reference benchmarks.
  • StableLM-2-Instruct-12b and Falcon models show contamination across multiple benchmarks, with p-values exceeding 95% for benchmark-specific contamination.
  • Top three models on the Open LLM Leaderboard show strong contamination signals, with $ \hat{\delta}_{0.95} $ values indicating high uncertainty in generalization.
  • The method successfully detects contamination in models even when traditional methods fail, demonstrating robustness against evasion attempts.
((a)) A simple scenario where all tests should return a CDF close to the identity line.
((a)) A simple scenario where all tests should return a CDF close to the identity line.

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.