AI is trained through a development process, not in a single moment of learning. People decide what job the system should do, gather and prepare examples, choose a model, let it adjust itself on those examples, test it on examples it has never seen, refine it with feedback, release it and keep watching how it performs [1, 2, 3].
The learning step at the center of that chain is what developers call training: improving a system’s performance with machine learning techniques [2]. The previous guide explained how AI learns from examples, feedback, goals and errors; this one follows the whole process from idea to working product.
TL;DR
- Training is one stage in a longer cycle. Teams define the task, prepare data, train, test, deploy and monitor, then often repeat [2, 3].
- Some data is held back on purpose. A model is checked on examples it never trained on, so its score reflects new cases [4].
- Training data is the examples a model adjusts itself on. It is collected, cleaned, filtered and ideally documented [5, 6].
- Chatbot models are trained in two big phases. Broad pretraining comes first, then post-training shapes the model into an assistant [7, 8, 9].
- Training changes the model; using and prompting it do not. A finished model’s settings usually stay fixed while it answers [2].
The Training Process at a Glance
The OECD and NIST both describe an AI lifecycle that runs from design and data work through development, testing, deployment, and operation and monitoring [1, 2]. In plain terms:
- Define the task and how success will be judged.
- Collect and prepare data, setting some aside for testing.
- Choose a model, new or existing.
- Train it on the prepared examples.
- Test it on examples it has not seen.
- Evaluate more broadly for weaknesses and safety problems.
- Improve with feedback, then train again.
- Deploy and monitor it in real use.
It is a loop: systems are often retrained, retested and redeployed as new versions [2].
Before Training: Define the Job and Prepare the Examples
Google’s machine learning guidance starts by defining the use case and setting success criteria [3]. NIST likewise groups documenting a system’s purpose, assumptions and requirements with gathering and cleaning its data [1].
Imagine a city that wants software to sort pothole reports by urgency (an illustrative example, not a real project). The team first has to agree on what counts as urgent and how accurate the sorting must be.
The team then gathers past reports, removes duplicates and junk, has people label each by urgency and splits the examples into three piles [3]:
- Training set: the examples the model learns from.
- Validation set: practice checks used while the model is being built [4].
- Test set: a final exam kept aside until the end [4].
Google’s course advises testing a model on different examples from the ones used to train it [4]. A model that has already seen the answers can look better than it really is.
During Training: Pick a Starting Point and Adjust It
Training starts with choosing what to train. Data scientists often try several types of models and settings, keep the best performer and end up with a trained model [3].
Training itself is the adjustment loop from the previous guide: guess, measure the error, shift the internal settings, repeat.
Many projects no longer start from zero. A team can take an existing model and fine-tune it, retraining that base model on its own labeled examples so its settings adapt to the new task [10].
After Training: Test, Evaluate and Improve
In the workflow Google describes, the trained model is scored on the held-back test set, then confirmed to beat a baseline before it can be deployed [3]. There is a trap: if a team keeps tweaking the model against the same test set, the model can end up fitted to that particular test, which Google’s course likens to teaching to the test [4].
NIST calls for testing throughout the lifecycle and, ideally, for people other than the testers to verify the results [1]. Developers also use red-teaming, in which testers deliberately try to make a model misbehave. Microsoft’s AI Red Team spent two weeks probing its Phi-4 model while acting as both ordinary and adversarial users [9].
That is the improve-with-feedback step: weaknesses found in testing flow back into the data, the goal or further training. For how scores are designed and where they mislead, see how AI benchmarks and evals work.
Deploy and Monitor: Training Is Rarely Finished
Deployment, putting the system into real use, involves tasks such as piloting the system, checking that it works with existing software and ensuring regulatory compliance, according to NIST [1].
Once deployed, a model’s internal settings usually stay fixed [2]. Meta, for example, describes Llama 4 as a static model trained on an offline dataset [11]. Improvements typically arrive as a new version that has been retrained, retested and redeployed, though some deployers keep training a model during operation [2].
Conditions also shift after launch. Google warns that models can decay as the data they encounter changes, and recommends tracking live performance so teams can be alerted or roll back [3]. Microsoft’s machine learning platform includes alerts for this kind of data drift [12], and NIST notes that AI systems may need more frequent maintenance for the same reason [13].
What Is Training Data?
Training data is the collection of examples a model adjusts itself on. For the pothole sorter, it would be the labeled past reports. For the large models behind chatbots, it is vastly broader.
Developers usually describe training data in broad categories. Anthropic says a recent Claude model was trained on a proprietary mix of public internet information, public and private datasets, user data that people permitted for training and synthetic data generated by other models [7]. Meta says Llama 4 Scout was pretrained on about 40 trillion tokens, small units of text and other data, from publicly available, licensed and Meta product sources [11].
Raw data is then cleaned and filtered. Google says it filtered Gemma 3’s training data to remove certain personal and sensitive information [6]. OpenAI says it filtered gpt-oss pretraining data for harmful content, especially hazardous biosecurity knowledge [8]. Google also removed known evaluation questions from Gemma 3’s training mix [14], though Microsoft’s Phi-4 team noted that such cleaning cannot catch every overlap, including reworded questions [9].
Data can also be a poor fit: NIST warns that it may not represent the setting where a system is used, or may become outdated [13]. Researchers have proposed datasheets that record why a dataset was collected, what it contains and how it should be used [5], and model cards that report how a trained model performs across conditions and groups [15].
What a model can draw on beyond its training data is covered in where AI gets its knowledge.
How Chatbot Models Are Trained: Two Big Phases
The models behind chatbots follow the same arc at enormous scale, usually in two phases. Pretraining comes first: the model trains on a huge, broad dataset to pick up general language ability. Anthropic describes pretraining a recent Claude model on large, diverse datasets for this purpose [7]. The computing involved is substantial; OpenAI reported that training gpt-oss-120b took 2.1 million H100-hours, a measure of time on specialized AI chips [8].
Post-training then turns that general model into a useful assistant. Providers describe different recipes:
- Microsoft used rounds of supervised fine-tuning and preference training, aiming to make Phi-4 an assistant people can safely interact with [9].
- Google turned pretrained Gemma 3 models into instruction-following versions by learning from a larger teacher model plus reinforcement learning [14].
- OpenAI post-trained gpt-oss with reinforcement learning to teach step-by-step reasoning and tool use [8].
- Anthropic used reinforcement learning from human feedback and from AI feedback for Claude Opus 4.5 [7].
- Meta’s Llama 4 fine-tuning data combined human-written examples from vendors with synthetic data [11].
These are each company’s own descriptions, not independent audits.
Training vs. Inference vs. Prompting
Inference is the step in which a system produces an output from its inputs, typically after deployment [2]. Prompting is one way you supply those inputs; the OECD lists a user prompt or a search query as examples [2].
| Training | Inference | Prompting | |
|---|---|---|---|
| What happens | Settings are adjusted using examples | The finished model produces an output | Someone gives the model instructions or information |
| Does the model change? | Yes [2] | Usually not [2] | No; only the input changes [2] |
Google’s documentation recommends starting with prompting and moving to fine-tuning only if needed to boost performance or fix recurring errors [10]. What a prompt can and cannot control is the subject of what a prompt is.
How Much Can You Know About a Model’s Training?
Confidence: Research Finding
Less than you might expect. An independent 2025 index of major developers found companies were most opaque about their training data and training compute [16]. It also found that no company adequately disclosed how much its training data overlapped with the tests used to evaluate its models [16]. The index scores what companies publish, not how well their models were trained.
Practical Takeaways
- Ask what task a tool was trained for and whether it matches yours.
- Look for evidence it was tested on new cases like yours, not only on familiar examples.
- Check the model card for its training data and knowledge cutoff before trusting it on recent facts.
- Treat a prompt as steering for one answer, not as training.
- Expect products to change as models are retrained, and recheck important results after updates.
Sources
- Appendix A: Descriptions of AI Actor Tasks (excerpt from NIST AI Risk Management Framework 1.0). National Institute of Standards and Technology (NIST), 2023-01, accessed 2026-11-09.
- Explanatory Memorandum on the Updated OECD Definition of an AI System (OECD Artificial Intelligence Papers, No. 8). OECD, 2024-03, accessed 2026-11-09.
- MLOps: Continuous delivery and automation pipelines in machine learning. Google Cloud Architecture Center, 2024-08-28, accessed 2026-11-09.
- Datasets: Dividing the original dataset (Machine Learning Crash Course). Google for Developers, 2025-12-03, accessed 2026-11-09.
- Datasheets for Datasets. arXiv (Communications of the ACM, 2021), 2021-12-01, accessed 2026-11-09.
- Gemma 3 model card. Google AI for Developers, 2025-08-14, accessed 2026-11-09.
- Anthropic’s Transparency Hub: Model Report. Anthropic, 2026-10-02, accessed 2026-11-09.
- gpt-oss-120b & gpt-oss-20b Model Card. OpenAI (arXiv), 2025-08-05, accessed 2026-11-09.
- Phi-4 Technical Report. Microsoft Research (arXiv), 2024-12-12, accessed 2026-11-09.
- Introduction to tuning. Google Cloud Documentation, 2026-11-09, accessed 2026-11-09.
- Llama 4 Model Card. Meta (GitHub: meta-llama/llama-models), 2025-04-05, accessed 2026-11-09.
- Machine learning operations (MLOps): Model management, deployment, and monitoring with Azure Machine Learning. Microsoft Learn, 2025-10-06, accessed 2026-11-09.
- Appendix B: How AI Risks Differ from Traditional Software Risks (excerpt from NIST AI Risk Management Framework 1.0). National Institute of Standards and Technology (NIST), 2023-01, accessed 2026-11-09.
- Gemma 3 Technical Report. Google DeepMind (arXiv), 2025-03, accessed 2026-11-09.
- Model Cards for Model Reporting. arXiv (FAT* 2019), 2019-01, accessed 2026-11-09.
- The 2025 Foundation Model Transparency Index. arXiv (Stanford CRFM and collaborators), 2025-12-11, accessed 2026-11-09.
