AI learns from examples by practicing on them. A model is shown a very large set of examples—its training data—makes a prediction about each one, checks how far off it was and adjusts its internal numbers so the next prediction is slightly better. Repeated across enormous numbers of examples, those small adjustments add up to a model that has captured useful patterns in the data [1, 2].
Training data can include text, images, code, audio, human-written examples and feedback. What remains after training is not normally a searchable library of everything the model saw. It is a very large collection of learned numerical relationships. That distinction explains why AI can summarize a familiar subject yet stumble on a rare fact, and why it cannot reliably name where its knowledge came from.
How Does AI Turn an Input Into an Answer? gave the whole process at a glance. This guide zooms in on its first ingredient: the examples a model learns from.
TL;DR
- Training data provides the examples an AI model learns from. Modern language models may use filtered web pages, books, code, licensed material, synthetic data and human feedback [3, 4, 5].
- Learning means adjusting parameters. The model predicts, measures its error and nudges its internal numbers, over and over [1].
- Training usually leaves patterns, not a copy of every document. The model learns statistical relationships, although it can sometimes reproduce memorized text [1, 6, 7].
- The examples shape the model. What is common, rare, missing or biased in the data affects what the model does well and badly [8, 9].
What Is Training Data?
Training data is the collection of examples used to adjust a model’s parameters—its internal weights and biases [1]. The examples depend on the task.
- An email filter may train on messages labeled spam or not spam.
- An image model may train on pictures paired with labels or descriptions.
- A language model may train by predicting missing or next tokens across enormous text collections.
- An assistant may receive additional training from examples of helpful answers and human ratings.
Notice that some of these examples come with a human-supplied answer (spam or not spam) and some do not (raw text, where the next word itself serves as the answer). The next guide, How Does AI Learn With and Without Human-Labeled Answers?, explains why that difference matters.
A token is a piece of data the model processes. In a language model, it might represent a complete term, a text fragment or punctuation. See How Does AI Break Your Prompt Into Pieces? Tokens Explained for a closer look.
How Does a Model Learn From an Example?
The word “learn” can be misleading. A model does not read an example and understand it the way a person would. Training is a repeated, mechanical adjustment.
Take a language model and a training sentence such as “The capital of France is Paris.” Training hides the last word and asks the model to predict it. A language model works by estimating how likely each possible next token is, given the text before it [2]. Early in training, its guess is poor. The training process compares the guess with the real word, measures the error and changes the model’s parameters slightly so that “Paris” becomes more likely in that context [1].
One example on its own changes almost nothing. The effect comes from repeating the same small adjustment across an enormous number of examples. Patterns that appear consistently—grammar, common facts, the structure of an explanation or a block of code—leave a stronger mark on the parameters than patterns that appear once.
Three points follow from this simple loop:
- The examples set the ceiling. A model can only pick up patterns that its data contains.
- Frequency matters. Widely repeated information is easier to learn than a fact mentioned once.
- The result is a set of numbers. Training changes parameters; it does not file the examples away for later lookup.
This is a simplified picture. How Does AI Recognize Patterns and Make Predictions? Neural Networks Explained shows the network that makes the predictions, and How Does AI Learn From Mistakes? Loss, Backpropagation, and Gradient Descent Explained explains how the error is measured and used to update the parameters. Once training is complete, using the model to process new input is called inference [1].
Where Does AI Training Data Come From?
The exact mix varies, and companies often disclose broad categories rather than a complete list. Common sources include:
Public Web Content
Public web pages have supplied a large share of the data behind many language models. Common Crawl, a nonprofit web archive, says its collection includes hundreds of billions of pages [10].
OpenAI’s 2020 GPT-3 paper offers a documented example [3]. The researchers started with about 45 terabytes of compressed Common Crawl text and reduced it to roughly 570 gigabytes after filtering. Filtered web text still represented 60% of the training mix [3]. Newer models use much larger collections; Meta reported that Llama 3 was pretrained on more than 15 trillion tokens from publicly available sources [4].
Books, Reference Material and Code
Training mixes may also include books, encyclopedic material, academic writing, software code and specialist datasets. GPT-3’s published mix included book collections and English Wikipedia alongside web data [3].
Licensed, Private and Synthetic Data
Developers may license material or use non-public datasets. They may also use synthetic data—examples generated by other AI models. Anthropic, for example, describes its training data in categories that include publicly available information, non-public sources, synthetic data and some user data permitted for training [5]. These categories do not reveal every source or its proportion.
Human Demonstrations and Feedback
Raw text teaches a language model to predict text. It does not automatically teach it to follow instructions safely or behave like a helpful assistant.
Post-training uses smaller, more targeted datasets. In OpenAI’s InstructGPT research, contractors wrote examples of desired responses and ranked model outputs; that information was then used to fine-tune the model [11]. Read How Does a Raw AI Model Become a Useful Assistant? Pretraining, Post-Training, and Fine-Tuning for how those stages differ.
How Is Training Data Cleaned?
Raw data is full of duplicates, spam, navigation text, broken pages, low-quality writing and harmful material. Before training, developers filter and reorganize it.
Common steps include:
- removing exact and near-duplicate documents;
- filtering spam, adult content and machine-generated clutter;
- scoring pages for quality or relevance;
- balancing languages, subjects or data types;
- removing information that violates a project’s rules;
- separating training examples from evaluation data.
The choices matter. GPT-3’s team filtered web pages by similarity to higher-quality text and removed near duplicates [3]. Meta reported using quality classifiers, semantic deduplication and safety filters for Llama 3 [4].
There is no perfectly neutral dataset. Decisions about what to collect, remove and emphasize shape what the model learns.
What Does the Model Keep From Its Examples?
Training turns patterns in the data into parameters. A language model learns relationships such as:
- which words and ideas often appear together;
- how sentences, explanations and code are structured;
- how concepts relate across many examples;
- which continuation is likely in a given context.
Think of the result less like a library and more like a compressed pattern system. The model can often reconstruct an explanation from learned relationships, but it does not normally open a stored page and quote the answer.
This is why a model usually cannot tell you exactly where it learned a fact. It may generate a plausible source based on patterns, but that is not evidence that the source appeared in its training data.
Frequency matters here too. Research has found that a model’s factual accuracy is related to how often the relevant information appeared in its pretraining documents [8]. Widely repeated facts are generally easier to learn than rare names, dates or local details.
What Doesn’t the Model Know?
Events After Its Knowledge Cutoff
Training ends at a particular point. The finished model does not automatically know what happened later. A search or retrieval tool can supply current information during a request, but that does not update the model’s parameters [12, 13].
Rare or Poorly Represented Information
A model is less dependable on facts that appeared rarely, ambiguously or not at all in its data [14, 8]. That is why recent, local or highly specific claims need verification.
Whether Its Answer Is True
A language model predicts a likely response. It does not automatically check that response against a reliable source. Fluent wording can therefore hide a factual error.
The Complete Contents of Its Training Set
The model cannot reliably inventory its own training material. If it claims “I was trained on this website,” treat that statement cautiously unless the developer has separately confirmed it.
A Later Nuance: Can a Model Memorize Its Examples?
Sometimes.
“The model learns patterns, not pages” is a useful general rule, but it is not absolute. Researchers have extracted verbatim passages from language models, including code, contact details and other unique sequences [6]. Later work found that memorization tends to increase with model size, repetition in the dataset and the amount of matching context in the prompt [7].
This does not mean every output is copied or that the model contains a readable archive. It means some training examples can become encoded strongly enough to be reproduced under the right conditions.
Repetition is the main driver, which connects memorization back to data cleaning. One study found substantial repetition in popular web datasets; models trained on deduplicated data produced memorized text ten times less often [15]. It is also one reason people should not assume that public information, once placed online, can never reappear in a model’s output.
The legal meaning remains disputed. Researchers agree that memorization can occur, but courts and scholars continue to debate what it means for privacy and copyright [16, 17].
Does a Chatbot Learn From Your Conversation?
Normally, not in real time. When you send a message, the trained model uses it as input during inference; its parameters do not change simply because you are chatting [1]. Saved “memory” features and the use of permitted conversations to train a future model are separate product features with their own settings. What Does AI Remember Between Messages—and What Does It Forget? AI Memory, Context, and Retrieval explains how those work.
Why the Data Mix Matters
A model reflects the material and decisions used to build it. If some languages, communities or situations are poorly represented, performance may be weaker for them. If the data contains stereotypes or historical bias, the model may reproduce or amplify those patterns [9].
More data alone does not solve the problem. Quality, coverage, documentation and testing all matter. A model can perform well on average while failing badly for a particular group or real-world setting.
Practical Takeaways
- Verify recent, rare and precise facts. Those are the areas where unaided model recall is least dependable.
- Use cited search or retrieval for current information. Then open the cited source and check that it supports the answer.
- Do not ask the model to identify its own training sources. It usually cannot do so reliably.
- Assume memorization is possible. Avoid placing confidential information into a system unless its terms and safeguards are appropriate.
- Ask vendors about data quality and testing. The source mix helps explain a model’s likely strengths and blind spots.
The Bottom Line
AI learns from examples by predicting, measuring its error and adjusting its parameters across a huge training set. The examples—where they came from, how they were cleaned and what they leave out—shape what the model can do. Training compresses patterns from those examples into numbers; it does not normally create a searchable copy of every page.
The boundary is not perfect. Models can memorize some passages, miss rare facts, inherit gaps in their data and know nothing about later events unless tools provide fresh information.
The next step in this chapter asks where the “right answer” in each example comes from: sometimes a person labels it, and sometimes it is hidden in the data itself. For the critical-thinking side of the same topic—how to judge what an AI answer is likely based on—BuildAIQ’s AI Literacy + Critical Thinking chapter goes further.
Sources
- Machine Learning Glossary. Google for Developers, 2026-04-10, accessed 2026-10-24.
- Introduction to Large Language Models. Google for Developers, 2026-01-09, accessed 2026-10-24.
- Language Models are Few-Shot Learners. arXiv (OpenAI authors), 2020-05, accessed 2026-10-24.
- Introducing Meta Llama 3: The most capable openly available LLM to date. Meta AI, 2024-04-18, accessed 2026-10-24.
- Anthropic Transparency Hub. Anthropic, accessed 2026-10-24.
- Extracting Training Data from Large Language Models. arXiv, 2020-12, accessed 2026-10-24.
- Quantifying Memorization Across Neural Language Models. arXiv, 2022-02, accessed 2026-10-24.
- Large Language Models Struggle to Learn Long-Tail Knowledge. arXiv, 2022-11, accessed 2026-10-24.
- Datasheets for Datasets. arXiv, 2018-03, accessed 2026-10-24.
- Common Crawl – Open Repository of Web Crawl Data. Common Crawl Foundation, accessed 2026-10-24.
- Training language models to follow instructions with human feedback. arXiv (OpenAI authors), 2022-03, accessed 2026-10-24.
- How up-to-date is Claude's training data?. Anthropic (Claude Help Center), accessed 2026-10-24.
- Web search tool. Anthropic (Claude Platform Docs), accessed 2026-10-24.
- Why Language Models Hallucinate. arXiv (OpenAI and Georgia Tech authors), 2025-09-04, accessed 2026-10-24.
- Deduplicating Training Data Makes Language Models Better. arXiv, 2021-07, accessed 2026-10-24.
- The Files are in the Computer: On Copyright, Memorization, and Generative AI. arXiv, 2024-04-19, accessed 2026-10-24.
- Copyright and Artificial Intelligence. U.S. Copyright Office, accessed 2026-10-24.
