Skip to content

Training data

Also called: training dataset, training set

Published:

How is training data different from other data splits?

Google's machine learning crash course recommends splitting a dataset three ways: a training set the model learns from, a validation set for initial testing while training is under way, and a test set for evaluating the finished model [1]. A typical split is about 70 percent training, 15 percent validation and 15 percent test [1].

The course shows why the split matters. A spam classifier reaches 99 percent precision on both its training and test sets. The suspiciously high score comes from duplicates of training emails in the test set, so the model was effectively tested on data it had already seen [1]. The fix is to remove duplicates from the validation and test sets before evaluating [1].

Why does the quality of training data matter?

NIST's AI Risk Management Framework (AI RMF 1.0) warns that the data used to build an AI system may not represent the context it will be used in, and that harmful bias and other data quality problems can undermine trust in the system [2]. Training data can also go stale or drift away from its original context [2]. Keeping a record of where training data came from supports transparency and accountability, and the data may be subject to copyright [2].

What privacy risks come with training data?

NIST's Generative AI Profile notes that training these models takes large volumes of data, which sometimes include personal data [3]. Under adversarial attacks, large language models have revealed sensitive information that was in their training data. This is known as data memorization, and it can be a risk even for data that appears in only a few training samples [3].

Frequently asked questions

Why keep training data and test data separate?

If the model has seen the test data during training, the measured accuracy is misleading. A separate test set shows how it handles new data.

Can training data contain personal data?

Yes. NIST notes that generative model training data sometimes includes personal data, and that models can leak it.

Sources

  1. Datasets: Dividing the original dataset — Google for Developers
  2. Artificial Intelligence Risk Management Framework (AI RMF 1.0) — NIST
  3. Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile (NIST AI 600-1) — NIST