Data Contamination: From Memorization to Exploitation

Inbal Magar, Roy Schwartz
3/15/2022
cs.CLcs.LG

Official code: schwartz-lab-NLP/data_contamination (6 stars, Python, Apache-2.0, last commit 2022-06-27).

Abstract

Pretrained language models are typically trained on massive web-based datasets, which are often "contaminated" with downstream test sets. It is not clear to what extent models exploit the contaminated data for downstream tasks.

Show full abstract

We present a principled method to study this question. We pretrain BERT models on joint corpora of Wikipedia and labeled downstream datasets, and fine-tune them on the relevant task. Comparing performance between samples seen and unseen during pretraining enables us to define and quantify levels of memorization and exploitation. Experiments with two models and three downstream tasks show that exploitation exists in some cases, but in others the models memorize the contaminated data, but do not exploit it. We show that these two measures are affected by different factors such as the number of duplications of the contaminated data and the model size. Our results highlight the importance of analyzing massive web-scale datasets to verify that progress in NLP is obtained by better language understanding and not better data exploitation.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
60Python, ShellMar 12, 20224 years agoApache-2.0

Similar Papers

Cite this paper

@article{magar2022data,
  title  = {Data Contamination: From Memorization to Exploitation},
  author = {Inbal Magar and Roy Schwartz},
  year   = {2022},
  eprint = {2203.08242},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08242}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.08242.svg)](https://codeofpaper.com/paper/2203.08242)

Discussion