What is model training?

Model training is the process of repeatedly updating a machine learning model's parameters to reduce its error on training data, measured by a loss function.

It differs from inference in what happens to the weights: inference only produces predictions with fixed weights, while training changes them. Training is a broad concept; pre-training, fine-tuning and preference training are its stages.

Topic
Machine learning, models and training
Also known as
Training, model fitting

How model training works

  1. Training data is fed to the model in batches; the forward pass produces predictions.
  2. A loss function puts a number on the gap between prediction and target.
  3. Backpropagation finds each parameter's contribution to the error (its gradient); an optimiser based on gradient descent updates the weights.
  4. The loop runs until validation performance reaches its target or early stopping kicks in; hyperparameters such as learning rate are set beforehand.

In more detail

Post-training stages: SFT, DPO and reinforcement learning

In large language models, post-training extends beyond supervised fine-tuning (SFT) to alignment and reasoning stages such as RLHF, direct preference optimisation (DPO) and verifiable-reward reinforcement learning (e.g., GRPO). These stages shape tone, safety refusals, tool use and multi-step reasoning rather than adding raw factual knowledge.

Overfitting, regularisation and training stability

Effective training requires tracking both training loss and validation loss to spot overfitting (memorising training noise) and underfitting. Techniques such as weight decay, dropout, learning-rate warmup with cosine decay, gradient clipping and data deduplication stabilise convergence and prevent training collapse.

Commonly confused terms

TermHow it differs
Hyperparameter tuningHyperparameter tuning searches across training configurations (learning rate, batch size, weight decay) outside the gradient loop, whereas model training optimises the model's internal weights inside the gradient loop.

Why model training matters for on-premises AI

Training needs far more compute and memory than inference; optimiser states and gradients take several times the space of the weights, plus activation memory that grows with batch size and sequence length. Organisations therefore mostly fine-tune a ready model rather than train from scratch and size hardware for that. Keeping training data on in-house infrastructure preserves data sovereignty. A record of the data, settings and code version used for each run is needed for reproducibility and internal audit.

ON-PREMISES EXAMPLE

A telecoms operator trains a ready language model in-house on its own labelled call data to classify request types and records every training run.

Common questions

How does model training differ from fine-tuning?

Training is the general concept. Fine-tuning adapts a pretrained model to a task with comparatively little data and needs far less compute than training from scratch.

Do organisations need to train a language model from scratch?

Usually not. Training from scratch needs vast data and compute; organisations generally adapt an open-weights model through fine-tuning or RAG.

Sources

Related page on this site: Related FAQ · In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.