CourseTransformers: From Attention to Trained, Served and Interpreted Models · Module 8: Pretraining · part 62 of 111
Part 62 · Module 8: Pretraining

Incident: A decontamination filter that skipped long documents

15 min read·13 Oct 2026
Module 8 · Incident file · About 35 minutes

What happened

GPT-3: DECONTAMINATION, IN ORDER before training 13-gram filter bug in it training 300B tokens 3.14e23 FLOPs after training overlap study bug found 28 May 2020 paper posted 5 sets cut 22 Jul 2020 version 4 same account retraining was not feasible: too costly
The filter (amber) ran before training (blue); its bug was found only by the overlap study after training (red), when retraining was no longer feasible.

In May 2020 Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah and 30 colleagues at OpenAI posted "Language Models are Few-Shot Learners", the GPT-3 paper (arxiv.org/abs/2005.14165, version 1 on 28 May 2020, version 4 on 22 July 2020). Before training, the team tried to remove from the training data any text that also appeared in the development and test sets of the benchmarks they would report.

It did not fully work. Section 2.2 says: "Unfortunately, a bug in the filtering caused us to ignore some overlaps, and due to the cost of training it was not feasible to retrain the model." Appendix C names the failure: "Due to a bug revealed by this analysis, filtering described above failed on long documents such as books." The model had been trained for 300 billion tokens, about 3.14 × 10^23 FLOPs (Table D.1).

WHAT THE BUG COST, BY THE PAPER'S ACCOUNT not reported 4 Wikipedia LM sets + Children's Book Test asterisk PIQA, Winograd 132 schemas in training Penn Tree Bank chief LM benchmark most benchmarks clean subset: negligible cited: Brown and others, 2020, section 4
The bug cost results, not compute: five benchmarks unreported (red), two marked with an asterisk (amber), while most scores barely moved on clean subsets (green).

The cost fell on the results. The 4 Wikipedia language modelling benchmarks measured in GPT-2, plus the Children's Book Test, turned out "to be almost entirely contained in our training data", so the team did "not report results on these datasets, even though we intended to when starting this work". Penn Tree Bank, unaffected because of its age, "became our chief language modeling benchmark". PIQA and Winograd results carry an asterisk: 132 Winograd schemas "were in fact present in our training set". For most benchmarks the authors found that performance on a clean subset changed "only negligibly".

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.