Skip to main content
QUICK REVIEW

[论文解读] Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Models

Yihong Dong, Xue Jiang|arXiv (Cornell University)|Feb 24, 2024
Explainable Artificial Intelligence (XAI)Computer Science被引用 3
一句话总结

本文提出CDD(通过输出分布进行污染检测)和TED(通过输出分布实现可信评估),仅使用模型采样输出来检测和缓解大型语言模型中的数据污染。CDD通过检测输出分布的峰度来识别污染,在检测指标上相比基线方法实现了21.8%至30.2%的相对提升,而TED在24种设置下将污染引起的性能提升最高减少66.9%。

ABSTRACT

Recent statements about the impressive capabilities of large language models (LLMs) are usually supported by evaluating on open-access benchmarks. Considering the vast size and wide-ranging sources of LLMs' training data, it could explicitly or implicitly include test data, leading to LLMs being more susceptible to data contamination. However, due to the opacity of training data, the black-box access of models, and the rapid growth of synthetic training data, detecting and mitigating data contamination for LLMs faces significant challenges. In this paper, we propose CDD, which stands for Contamination Detection via output Distribution for LLMs. CDD necessitates only the sampled texts to detect data contamination, by identifying the peakedness of LLM's output distribution. To mitigate the impact of data contamination in evaluation, we also present TED: Trustworthy Evaluation via output Distribution, based on the correction of LLM's output distribution. To facilitate this study, we introduce two benchmarks, i.e., DetCon and ComiEval, for data contamination detection and contamination mitigation evaluation tasks. Extensive experimental results show that CDD achieves the average relative improvements of 21.8\%-30.2\% over other contamination detection approaches in terms of Accuracy, F1 Score, and AUC metrics, and can effectively detect implicit contamination. TED substantially mitigates performance improvements up to 66.9\% attributed to data contamination across various contamination setups. In real-world applications, we reveal that ChatGPT exhibits a high potential to suffer from data contamination on HumanEval benchmark.

研究动机与目标

  • 为解决大语言模型中的数据污染问题,该问题会损害基准评估的可靠性。
  • 在无法访问训练数据或模型参数的情况下检测污染,专注于如ChatGPT等黑盒大语言模型。
  • 开发一种方法,不仅能在原始测试数据中识别污染,还能在语义变体和改写形式中识别污染。
  • 通过校正污染引起的性能高估,实现可信评估。
  • 提供新的基准测试集DetCon和ComiEval,用于污染检测与缓解的评估。

提出的方法

  • CDD通过分析大语言模型在多次采样运行中输出分布的峰度来检测数据污染。
  • 其假设是由于记忆效应,训练数据会导致更明显的输出分布峰度,可通过生成文本的统计分析检测到。
  • TED通过校正大语言模型的输出分布来减轻污染影响,从而提升评估的可靠性。
  • 该方法仅依赖采样得到的文本输出,因此适用于如GPT-4和ChatGPT等黑盒模型。
  • 构建了两个新基准测试集DetCon和ComiEval,用于评估污染检测与缓解性能。
  • 该方法使用参数高效的微调(LoRA)在受控环境中模拟污染。

实验结果

研究问题

  • RQ1是否可以仅使用采样模型输出,在不访问训练数据或模型参数的情况下检测大语言模型中的数据污染?
  • RQ2输出分布分析在检测来自原始测试数据及变体形式(如翻译或改写版本)污染方面的有效性如何?
  • RQ3通过输出分布校正,能在多大程度上缓解污染引起的性能增益?
  • RQ4与现有污染检测技术相比,该方法在准确率、F1分数和AUC指标上的表现如何?
  • RQ5数据污染对广泛使用的基准测试(如HumanEval)在现实世界中的影响是什么?

主要发现

  • CDD在多个污染检测任务中,于准确率、F1分数和AUC指标上,平均相对基线方法提升21.8%至30.2%。
  • CDD不仅能有效检测原始测试数据中的污染,还能检测语义变体中的污染,如翻译或改写版本。
  • TED在24种不同评估设置和21种污染程度下,将污染引起的性能增益最高减少66.9%。
  • 该方法揭示了ChatGPT在HumanEval基准测试中对数据污染表现出高度敏感性,表明其具有现实世界影响。
  • 所提出的基准测试DetCon和ComiEval为污染检测与缓解提供了可靠且可复现的评估框架。
  • 即使在训练数据不透明、且合成数据泛滥导致泄漏数据出现多种变体形式的情况下,该方法依然有效。

阅读本论文

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

在 Nubint 中阅读本论文

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