AI on the Internet

Training Data: Where Chatbots Learn From

The kinds of text that train AI chatbots, how it is cleaned, what it can't teach, and how to limit your share.

Key takeaways

  • Pretraining uses enormous amounts of text from the web and other sources, while later stages use smaller, carefully built examples.
  • Data is filtered and deduplicated, and those choices decide which voices and topics are well represented.
  • Training data has a cutoff, so a model without search can't know about newer events.
  • You can often reduce future use of your content or chats, though you usually can't undo training that already happened.

Chatbots learn from very large collections of text and, for many newer models, images, audio and code. Common sources include public web pages, books, reference works, source code, licensed content, and examples written or rated by people to teach the model how to respond. Exact mixes differ between developers and are often not fully disclosed.

What goes in shapes what comes out. Training data influences a model's knowledge, writing habits, blind spots and biases, so it helps to know the main categories and what happens to them along the way.

The main sources

The bulk of pretraining text typically comes from the public web, gathered by crawlers, which are programs that visit pages and follow links. Developers may run their own or use public web archives such as Common Crawl, a nonprofit that publishes large crawl datasets.

Other material commonly mentioned includes digitized books, encyclopedias, academic papers, public forums, and open source code repositories. Some developers sign licensing agreements with publishers or platforms. Some use data from their own products, subject to their terms. Web crawlers explained shows how collection works in practice.

Where training material can come from
Training corpus The combined collection used to teach a model. Generated data Text made by other models. Human examples Written and rated responses. Licensed content Material covered by agreements. Web pages Crawled public sites and archives. Books and papers Longer, edited writing. Source code Public repositories and docs. Training corpus The combined collection used to teach a model. Web pages Crawled public sites and archives. Books and papers Longer, edited writing. Source code Public repositories and docs. Licensed content Material covered by agreements. Human examples Written and rated responses. Generated data Text made by other models.

Cleaning and filtering

Raw web data is messy. It contains navigation menus, spam, duplicate pages, broken encoding and a great deal of low-quality writing. Developers run it through processing steps before training:

  1. Extraction pulls readable text out of page code.
  2. Deduplication removes repeated or near-identical documents.
  3. Quality filtering uses rules or classifiers to drop junk.
  4. Safety filtering tries to remove certain harmful material.
  5. Privacy filtering may reduce some personal data.
  6. Tokenization converts the remaining text into the units the model reads.

None of these steps is perfect. A filter can discard useful writing in a dialect it wasn't tuned for, or let spam through because it looks tidy. Tokens and context windows explains that last conversion.

From raw pages to a trained model
1 Collect Crawl, license or import large amounts of material. 2 Clean Extract text, remove duplicates and junk. 3 Pretrain Learn to predict the next token across the corpus. 4 Post-train Teach instructions and preferences from examples. 5 Evaluate Test on tasks and look for failures before release. Collect Crawl, license or import large amounts of material. 1 Clean Extract text, remove duplicates and junk. 2 Pretrain Learn to predict the next token across the corpus. 3 Post-train Teach instructions and preferences from examples. 4 Evaluate Test on tasks and look for failures before release. 5

Human examples and feedback

Predicting web text doesn't by itself produce a helpful assistant. After pretraining, developers use smaller, higher-quality sets. People write sample conversations, compare two answers and pick the better one, or flag unsafe output. Those judgments steer the model toward a particular style.

This means a chatbot's tone, caution and habits partly reflect guidelines given to raters and writers. Automated feedback, in which one model scores another's answers against written principles, is also used. The balance between these methods varies.

Synthetic data

Some training material is generated by AI models: practice problems with worked solutions, rewritten explanations, or simulated conversations. It can fill gaps where real examples are scarce and can be checked automatically in fields such as math or programming.

It carries risks. Errors and stylistic tics can be copied into the next model, and training heavily on unfiltered machine output may narrow the variety a model produces. Researchers have studied this degradation under names such as model collapse. As more of the web becomes machine-written, sorting it out gets harder. AI-generated websites and content farms describes part of that flood.

What training data can't give a model

A trained model is not a database of its sources. It generally can't tell you which document taught it a fact, and it can't reliably reproduce everything it saw. It may memorize some passages, especially ones that were repeated many times, which is one reason copyright and privacy concerns arise.

There is also a knowledge cutoff. Material published after collection ended isn't in the weights. Coverage of the final months before a cutoff tends to be thin, because the web hasn't finished writing about them. Search tools can add fresh information at answer time.

Gaps lead to errors. When a topic is poorly covered, a model may fill in something plausible, as described in why AI models hallucinate.

Testing and held-out data

Developers keep some material out of training so they can test the finished model on it. If a model has already seen the questions and answers of a test, a high score says little about its ability. This problem is called contamination, and it's hard to rule out when training sets are huge and test questions are published online.

For you, the lesson is that a headline benchmark score may not predict how well a model handles your documents or your field. A short private test is more informative. Collect a dozen questions with answers you know, include a few that are obscure or recently changed, and see how each assistant does.

How data shapes behavior you notice

Many everyday quirks trace back to the corpus. A model may favor one national spelling, suggest steps for the most widely discussed version of a program, or assume the currency and units that dominate its sources. Popular programming languages usually get better help than rare ones because far more examples exist.

Older information can also outweigh newer. If a setting moved in a recent update, years of pages describing the old location may still dominate what the model learned. Naming your version in the question helps, as does pasting the current documentation.

Style carries over too. Text that was common in training, such as tidy bulleted advice or cautious closing remarks, shows up in replies unless you ask for something else.

Bias and representation

Text on the web overrepresents some languages, regions, professions and viewpoints. A model trained on it can be stronger in English than in smaller languages, assume certain cultural defaults, or repeat stereotypes present in its sources. Filtering decisions can shift the balance further.

Developers try to measure and reduce these effects with targeted data and testing, but no collection is neutral. For decisions about people, such as hiring or lending, outputs need careful human review. Bias in AI systems covers this in detail.

Whether training on copyrighted works is lawful is disputed. Developers and their supporters argue that learning patterns from text is a transformative use that creates new capabilities and doesn't substitute for the originals. Authors, artists and publishers argue that their work was copied without permission or payment and now competes with them.

Courts in several countries have been considering these questions, and outcomes may depend on facts such as how material was obtained and what the system outputs. The law may have changed since you read this, so check current sources. AI and copyright lays out the arguments, and AI crawlers and the fight over web content covers the website side.

Personal information in training sets

Public web pages can include names, contact details and posts about real people. Some of that can end up in a corpus. Privacy laws in various places give people rights over personal data, and how those rights apply to trained models is still being worked out.

If you're concerned, you can reduce what's public in the first place: tighten social media visibility, remove old profiles, and ask sites to delete content. Your digital footprint and how to shrink it gives a plan.

Limiting future use of your content

Website owners can use a robots.txt file to ask specific crawlers not to fetch their pages. Several AI companies publish the names their crawlers use. Compliance with robots.txt is voluntary, so it works only for crawlers that honor it. How websites can control AI crawlers shows the syntax and the limits.

A typical entry looks like this, using a placeholder bot name:

User-agent: ExampleAIBot
Disallow: /

As a chatbot user, look for a setting about using your conversations to improve models, and check whether it's on or off. Defaults and wording differ between services and plans. Even with training turned off, a provider may keep chats for a period for safety or legal reasons, so avoid sharing secrets. Privacy when using AI chatbots walks through the controls.

If you rely on a chatbot for work, keep these effects in mind when its answer seems oddly generic or out of date. Supplying your own current material is usually the quickest correction, since text in front of the model competes directly with whatever it absorbed long ago.

Common questions

Can I find out whether my writing was used?

Sometimes there are public indexes of particular datasets, but many corpora are not published, and a model's answers are not proof either way. A developer's documentation or a formal data request may give partial information.

Can data be removed from a trained model?

Removing the influence of specific material is difficult. Methods called machine unlearning are being researched. Providers may instead filter outputs or exclude the data from future training runs.

Why won't companies list every source?

Reasons given include competitive secrecy, sheer volume and legal caution. Critics argue that without disclosure, creators can't exercise rights and outside researchers can't judge quality. Some laws and open projects push toward more transparency.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in AI on the Internet →

Latest news on this topic