Skip to main content
QUICK REVIEW

[Paper Review] A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicity

Shayne Longpre, Gregory Yauney|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science7 citations
TL;DR

This study pretrains 28 models to quantify how data age, quality/toxicity filtering, and domain composition affect LM performance, revealing no one-size-fits-all filtering and the value of heterogeneous data sources.

ABSTRACT

Pretraining is the preliminary and fundamental step in developing capable language models (LM). Despite this, pretraining data design is critically under-documented and often guided by empirically unsupported intuitions. To address this, we pretrain 28 1.5B parameter decoder-only models, training on data curated (1) at different times, (2) with varying toxicity and quality filters, and (3) with different domain compositions. First, we quantify the effect of pretraining data age. A temporal shift between evaluation data and pretraining data leads to performance degradation, which is not overcome by finetuning. Second, we explore the effect of quality and toxicity filters, showing a trade-off between performance on standard benchmarks and risk of toxic generations. Our findings indicate there does not exist a one-size-fits-all solution to filtering training data. We also find that the effects of different types of filtering are not predictable from text domain characteristics. Lastly, we empirically validate that the inclusion of heterogeneous data sources, like books and web, is broadly beneficial and warrants greater prioritization. These findings constitute the largest set of experiments to validate, quantify, and expose many undocumented intuitions about text pretraining, which we hope will help support more informed data-centric decisions in LM development.

Motivation & Objective

  • Measure how pretraining data age affects downstream performance and finetuning outcomes.
  • Assess how quality and toxicity filters alter model behavior and task performance.
  • Evaluate how domain composition (books, web, etc.) influences generalization and toxicity.
  • Provide practical recommendations for data curation in LM pretraining.
  • Validate findings with a large set of 28 models at 1.5B parameters to expose intuitions about text pretraining.

Proposed method

  • Pretrain 28 decoder-only 1.5B-parameter models (LM-XL) on datasets modified along time, toxicity/quality filters, or domain composition.
  • Use C4 and the Pile as starting datasets and apply multiple filters (quality thresholds, toxicity thresholds, inverse filters).
  • Deduplicate datasets and compare with baseline unfiltered datasets.
  • Evaluate downstream performance on QA, toxicity identification, and toxicity generation tasks across temporally varied and domain-diverse benchmarks.
  • Analyze observational data characteristics (PII, readability, length, etc.) to contextualize filter effects.

Experimental results

Research questions

  • RQ1What is the impact of pretraining data age on downstream model performance and finetuning effectiveness?
  • RQ2How do quality and toxicity filters trade off model performance and toxicity-related behavior?
  • RQ3How does domain composition within pretraining data influence generalization and toxicity generation?
  • RQ4Are filtering effects predictable from high-level text-domain characteristics?
  • RQ5Does inclusivity of heterogeneous data sources (books, web) consistently benefit downstream tasks?

Key findings

  • Temporal misalignment between pretraining and evaluation data degrades performance, especially for larger models.
  • Quality filtering improves downstream performance across tasks despite reducing data, while toxicity filtering can reduce generalization and QA performance.
  • Toxicity and quality do not align cleanly; high-toxicity content can have higher quality signals, and domain characteristics alone do not predict filtering outcomes.
  • Including heterogeneous data sources like books and web data generally improves performance, with books contributing higher toxicity.
  • Model performance is affected by data age and domain mix in a non-one-size-fits-all manner, underscoring the need for nuanced data curation strategies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.