liveBook · Manning

Training dataset

As explained in Introduction to Generative AI, Second Edition

Training data, or a training dataset or training set, is the collection of examples used to train a machine-learning model and fit its parameters.

A large language model can learn from online conversations, encyclopedias, and books—but those sources also contain mistakes and harmful patterns. A training dataset is the collection of examples used to train a model and fit its parameters. For a language model, the examples are often vast collections of text that help it learn when to generate words and phrases. section 1.12 section 1.11

Scale alone does not guarantee quality. Wikipedia offers human-written and edited text in many languages, while public-domain books provide generally high-quality, often formal examples. Reddit conversations illustrate dialogue, but can also contain misinformation, slurs, and other objectionable speech. A model trained on such content may reproduce it. section 1.12

Training data can also encode biases. A model may learn historical inequalities and stereotypes from its examples, or represent some communities better than others. Data can become outdated: a model trained on pre-2020 information may have limited awareness of later changes in social discourse. section 3.2

Privacy is another concern. Generative models can sometimes repeat sensitive information encountered during training, including personal details or private messages. Even information seen only once has been retrieved in training-data extraction attacks under the right conditions. section 10.18 section 10.9

A confidential contract in a prompt

An attorney who asks a dialogue agent to revise a client contract may expose confidential information. Depending on the service, the prompt could be reviewed, used for training, or leaked; sharing it without client consent may also violate attorney-client privilege. section 3.10

Developers can reduce privacy risks by avoiding sources known to contain substantial personally identifiable information and by using methods such as anonymization or masking. These methods have limits: sensitive information is difficult to find perfectly, and masking can alter the language patterns a model learns. Clear data-use policies and consent also matter, including when content is publicly available. section 10.18 section 10.9

How Introduction to Generative AI, Second Edition covers it

How deep it goes
Explains source selection, bias, leakage, and privacy mitigations at a high level without implementation details.
Examples
Illustrates training sources with Wikipedia, public-domain books, and Reddit, and privacy risks with a confidential contract entered into a dialogue agent.
What you can do after
Supports evaluating training-data sources and uses for quality, bias, and privacy risks.
How it connects
Connects training data to bias, representation, privacy, data leakage, and consent.

Also explained in

Compare how 38 books explain training dataset →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Introduction to Generative AI, Second Edition. The section links point to the parts of the book it draws on.