liveBook · Manning

Training dataset

As explained in How Large Language Models Work

Training data is the collection of examples used to build or optimize a machine-learning model.

A training dataset is the collection of examples used to build or optimize a machine-learning model. For language models, it is largely human-produced text gathered into a training corpus. The model adjusts itself toward outputs that resemble those examples. section 4.2 section 1.6

The dataset supplies the target pattern, but not necessarily the goal people care about. A language model is rewarded for producing text that resembles its training data, not for being truthful, original, or factually accurate. If the data contains errors, stereotypes, or bad code, matching those patterns can reinforce them. section 4.2

Training datasets shape a model through several practical properties:

  • Scale matters: modern language models may use hundreds of gigabytes of internet-scraped text, while larger data pools can improve many tasks. section 1.6 section 4.2
  • Coverage matters: the data can include websites, news articles, research papers, government reports, code, and mathematics rather than only books. section 9.3
  • Quality matters: incorrect or oddly represented information can make a model more likely to reproduce false common knowledge, social bias, or recurring bugs. section 4.2
  • Provenance matters: much training data comes from sources whose licenses do not clearly permit AI training, leaving important legal and ethical questions unresolved. section 9.3

Why resemblance is not truth

Suppose the training data repeatedly contains a false claim or buggy programming pattern. Producing similar text can reduce the model’s training loss, so the model may become better at reproducing the error even while becoming worse at truth or correctness. The same pattern applies to stereotypes and social biases found in the data. section 4.2

How How Large Language Models Work covers it

How deep it goes
Defines datasets and their effects at a high level, stopping short of the detail needed to build an LLM from scratch.
Examples
Uses internet text, false common knowledge, stereotypes, buggy code, books, news, research papers, and government reports as examples.
What you can do after
Evaluate/understand it by separating fluent pattern matching from truth, quality, provenance, and permission to reuse data.
How it connects
Connects training data with language models, loss functions, model scaling, bias, copyright, and data licensing.

Also explained in

Compare how 36 books explain training dataset →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of How Large Language Models Work. The section links point to the parts of the book it draws on.