AI Basics

Where the Text and Images Used to Train AI Models Come From

A plain map of the main sources of AI training data, how it is cleaned, and the open questions about consent and copyright.

Key takeaways

  • The public web is a major source, supplemented by books, code, licensed collections, hired contributors and user data where permitted.
  • Raw material is heavily filtered and deduplicated, but errors, bias and personal information can still get through.
  • Image models commonly learn from pictures paired with nearby descriptions, so the quality of captions matters a great deal.
  • Questions of consent, copyright and payment are contested, with rules differing by country and still developing.

Large AI models are trained on material gathered from several places: public web pages, books and articles, computer code, reference works, pictures paired with captions, data licensed from companies, examples written by hired people, content from users where terms allow it, and increasingly material generated by other software.

The exact mix differs from model to model, and many developers do not publish full lists. You can still understand the main sources, how raw material becomes training data and why it has become one of the most disputed parts of AI.

The main sources

Common sources of training material
Training data Gathered, filtered and combined. Users Where terms and settings allow. Hired writers Examples made to order. Licensed sets Content obtained by agreement. Public web Crawled pages and forums. Books and papers Long, edited writing. Code Public software projects. Training data Gathered, filtered and combined. Public web Crawled pages and forums. Books and papers Long, edited writing. Code Public software projects. Licensed sets Content obtained by agreement. Hired writers Examples made to order. Users Where terms and settings allow.

The public web. Automated programs called crawlers visit pages and copy their contents. Developers run their own crawlers or start from existing collections. Common Crawl, a nonprofit that publishes large archives of web pages, has been widely used as a starting point for language model training.

Books and scholarly writing. Long, carefully edited text helps a model handle extended argument. Sources can include public domain works, licensed material and openly accessible papers. How some book collections were obtained has been challenged in court.

Computer code. Public repositories provide code along with comments and discussions, which helps models write and explain programs.

Reference works and community sites. Openly licensed encyclopedias, question-and-answer sites and discussion forums offer factual and conversational text. Licenses carry conditions, and sites' terms differ.

Licensed material. Some developers have agreements with publishers, image libraries or platforms to use their content.

People hired to create data. Workers write sample conversations, solve problems step by step, label images and rate answers. See what data labelers actually do.

Users. Some services use conversations, corrections or uploads to improve models, subject to their terms and your settings.

Synthetic data. Models and simulators can generate extra examples, which synthetic data covers.

Where pictures and sound come from

Image models need to connect pictures with words. A common source is the web itself, where images often sit beside captions, file names or alternative text. Large public datasets have been assembled as lists of image links paired with such text. Stock photo libraries, licensed archives and public domain collections are other sources.

Web captions are uneven. Some describe the picture well, some say "IMG_0042" and some are advertising. Developers often filter out weak pairs or use another model to write fuller descriptions.

Speech and audio models learn from recordings, frequently with transcripts: audiobooks, public broadcasts, volunteer recordings and licensed or specially commissioned sessions. Coverage of languages and accents is very uneven, which affects who the resulting systems understand well.

From raw pile to training set

Collected material is not fed in as it arrives. Typical processing includes several steps.

  1. Extraction, which strips menus, ads and page code to leave the main content.
  2. Deduplication, which removes repeated copies so that one text does not count thousands of times.
  3. Quality filtering, which drops spam, gibberish and very low-value pages.
  4. Safety filtering, which aims to remove illegal and harmful material.
  5. Privacy filtering, which tries to reduce personal details such as certain identifiers.
  6. Mixing, which decides how much weight each kind of source receives.

None of these is perfect. A filter can miss harmful content, and it can also remove legitimate writing, for example by treating a dialect or a frank health discussion as undesirable. Each choice shapes what the model sees. Material in languages with a small online presence may be thin no matter how carefully it is processed.

Different stages use different material

It helps to separate the broad first round of training from later shaping. The first round consumes by far the most data, mostly general text and, for multimodal systems, large numbers of images, audio and video. Its job is breadth.

Later rounds use much smaller and more carefully made collections: example conversations, worked solutions, comparisons between answers and sets designed to teach safe handling of sensitive requests. A single carefully written example here can influence behavior far more than a random web page.

Some material is deliberately kept away from training. Test questions are held back so that performance can be measured honestly. Because test sets often get posted online, they can slip into later web crawls, which inflates scores. That problem is examined in benchmark contamination.

A business that adapts a model adds a further layer from its own records. In that case the business, not only the original developer, has to answer for where the examples came from and whether it was allowed to use them.

A hypothetical page's journey

Suppose you wrote a public blog post about repairing an old accordion. A crawler visits and stores the page. Processing strips the sidebar and comments form, keeping your paragraphs. A duplicate check notices that another site copied the post and keeps one version. A quality filter judges it readable. The text then becomes a tiny part of a very large mixture.

In the finished model there is no file labeled with your blog. Your post has contributed, along with countless others, to adjustments in the model's numbers. The model might later give accordion advice that reflects what you and others wrote, without naming anyone. That diffuse contribution is exactly what makes questions of credit and payment so awkward.

Why the mix matters

A model's strengths and blind spots follow its data. Plenty of recent English software discussion gives good coding help in popular languages. Sparse material about a local craft or a minority language gives shaky results.

Old, mistaken or biased writing is also learned. Frequency can act like authority, so a widespread misconception may surface more readily than a careful correction. This connects to how bias gets into AI systems.

Repetition can lead to memorization. Passages that appear many times may be reproduced nearly word for word. That raises both privacy and copyright concerns.

The web now also contains much machine-written text. Researchers have studied what can go wrong if models keep learning from the output of earlier models without enough fresh human material, a risk often called model collapse.

The disputes over permission

Whether developers may train on material without asking is argued in courts, legislatures and public debate.

Question Case made by many developers and supporters Case made by many creators and critics
Is training a permitted use? Models learn general patterns, a new purpose unlike republishing Works are copied at scale to build products that may compete with them
Is permission practical? Individual licenses for vast web data would be unworkable Difficulty of asking does not remove the owner's right
Who benefits? Broadly useful tools serve research and the public Value flows to AI firms while contributors go unpaid

Legal answers depend on the country, the facts of each case and the kind of use, and decisions so far do not settle everything. The arguments are laid out in training and fair use.

Privacy raises separate questions. Information being publicly visible does not mean its subject expected it to train a model. Data protection laws in some places give people rights over personal data, with details that vary. See whether public posts are fair to use.

What you can find out and do

Transparency varies a lot. Some developers release detailed documentation or even the datasets, and others describe sources only in general terms. Look for a model's published documentation, the provider's privacy policy and any stated process for objections.

If you publish online, you can state your wishes in a site's robots.txt file, which asks named crawlers to stay away. Compliance is voluntary on the crawler's side, and it generally affects future visits, not copies already taken. AI crawlers and robots.txt explains the limits.

If you use AI services, check whether your content may be used for training and how to opt out. If you create images or writing, read the terms of the platforms where you post, since they may grant the platform certain rights.

Questions to ask about a model's data

  • Which broad sources were used, and over what period?
  • What was filtered out, and how was that checked?
  • Which languages, regions and groups are well or poorly covered?
  • Was any content licensed, and can owners object?
  • How is personal information handled, including deletion requests?

A developer that documents these points makes it easier to judge where the model can be trusted.

Common questions

Is everything on the internet in these models?

No. Crawls cover only part of the web, much material sits behind logins or paywalls, and filtering removes a great deal. You also cannot assume a specific page was left out.

Can I check whether my work was used?

Sometimes a public dataset can be searched, and some documentation names sources. Often there is no reliable way to confirm it. A model's ability to discuss your work is weak evidence, since it may have learned from reviews or summaries.

Do models store copies of what they read?

A model mainly holds numbers, not an indexed archive. Yet some material can be reproduced from those numbers, particularly when it was repeated often. Both halves of that statement matter.

Written for 4ArtificialIntelligence with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 43 articles in AI Basics →

Latest news on this topic