Skip to main content
QUICK REVIEW

[论文解读] ConStat: Performance-Based Contamination Detection in Large Language Models

Jasper Dekoninck, Mark Niklas Müller|arXiv (Cornell University)|May 25, 2024
Topic ModelingComputer Science被引用 3
一句话总结

ConStat 通过在原始基准和参考基准之间进行统计比较,引入了一种基于性能的数据污染定义,以检测和量化大型语言模型中的污染。它通过测量非泛化性能提升,识别出 Mistral、Llama、Yi 以及 Open LLM Leaderboard 中顶级模型中的显著污染。

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.

研究动机与目标

  • 解决由于数据污染导致公共基准不可靠、模型性能被人为高估的问题。
  • 克服现有污染检测方法的局限性,这些方法依赖于训练数据包含情况,容易被规避。
  • 开发一种基于性能泛化能力的稳健且可量化的污染检测方法。
  • 在多种模型架构和基准场景下评估污染水平。
  • 证明高性能模型可能表现出非泛化行为,这表明存在污染。

提出的方法

  • 将污染定义为并非由数据包含引起,而是由在原始基准上人为提升的、非泛化性能所导致。
  • 选择参考模型和参考基准(重述的、合成的或类似任务的基准),以建立性能基线。
  • 拟合一个难度校正函数 $ H_{D_{\text{ref}}} $,以建模参考基准与原始基准之间性能的关系。
  • 利用目标模型在参考基准上的性能,预测其在原始基准上的预期性能。
  • 计算预测性能与实际性能之间的差异 $ \delta $,并通过自助法估计 $ \delta $ 和 p 值。
  • 使用 p 值检验原假设(即模型未被污染),从而实现污染的统计检测与量化。
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.

实验结果

研究问题

  • RQ1是否可以在不假设训练集中包含数据的前提下,可靠地检测大型语言模型中的污染?
  • RQ2在基准上的性能在多大程度上能泛化到相同任务的重述或合成生成变体上?
  • RQ3污染在主流开源和专有 LLM 中有多普遍?
  • RQ4统计方法能否检测到传统检测技术难以发现的污染?
  • RQ5在 Llama、Mistral 和 Yi 等最先进模型中,污染的程度有多大?

主要发现

  • ConStat 在 Mistral-7b-v0.1 中检测到高水平污染,污染程度 $ \hat{\delta} = 35.1\% $,p 值为 $ 0.01\% $,表明存在强有力的统计证据,证明其性能非泛化。
  • Llama-3-70b 和 Llama-2-Instruct-70b 在多个基准上表现出显著污染,$ \hat{\delta} $ 值超过 20%。
  • Yi-34b 在 ARC 基准上表现出 $ \hat{\delta} = -20.29\% $,表明其性能被显著高估,且无法泛化到参考基准。
  • StableLM-2-Instruct-12b 和 Falcon 模型在多个基准上表现出污染,其基准特定污染的 p 值超过 95%。
  • Open LLM Leaderboard 排名前三的模型表现出强烈的污染信号,$ \hat{\delta}_{0.95} $ 值表明其泛化能力存在高度不确定性。
  • 该方法即使在传统方法失效的情况下,仍能成功检测到污染,证明其对规避尝试具有鲁棒性。
((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.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。