Deduplicating Training Data Makes Language Models Better

By Katherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang, Douglas Eck, Chris Callison-Burch, Nicholas Carlini. 2021

926 citations recorded by the source corpus.

We find that existing language modeling datasets contain many near-duplicate examples and long repetitive substrings.As a result, over 1% of the unprompted output of language models trained on these datasets is copied verbatim from the training data.We develop two tools that allow us to deduplicate training datasets—for example removing from C4 a single 61 word English sentence that is repeated over 60,000 times.Deduplication allows us to train models that emit memorized text ten times less frequently and require fewer training steps to achieve the same or better accuracy.We can also reduce train-test overlap, which affects over 4% of the validation set of standard datasets, thus allowing for more accurate evaluation.Code for deduplication is released at https://github.com/google-research/deduplicate-text-datasets.

Subfields: Artificial Intelligence, Management Science and Operations Research, Natural Language Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Luke S. Zettlemoyer
  2. Mohit Bansal
  3. Percy Liang
  4. Jianfeng Gao
  5. Graham Neubig
  6. Quoc V. Le
  7. Yejin Choi
  8. Noah A. Smith

In Management Science and Operations Research

  1. Wojciech Kusa
  2. Abhradeep Thakurta
  3. Yu-Xiang Wang
  4. Daphne Ippolito
  5. Florian Tramèr
  6. Matthew Jagielski
  7. Nicholas Carlini
  8. Wen-tau Yih

In Natural Language Processing

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Graham Neubig
  4. Yejin Choi
  5. Jianfeng Gao
  6. Noah A. Smith
  7. Percy Liang
  8. Caiming Xiong

Citations in the corpus