Training
Training is the process of building a machine learning model by showing it examples and repeatedly adjusting its parameters until its outputs are as good as possible.
A machine learning model starts as a large set of numbers, its parameters, set more or less at random. Training is how those numbers become useful. Google's machine learning glossary describes it as finding the ideal parameters for a model: the system reads in examples and gradually adjusts the parameters, using each example anywhere from a few times to billions of times. When people talk about how a model learned, training is what they mean.
The basic loop is simple. The model makes a prediction, a loss function measures how wrong it was, and an optimisation method such as stochastic gradient descent nudges every parameter slightly in the direction that would have reduced the error. Repeated over enormous numbers of examples, these small corrections add up to a model that has captured the patterns in its data. The finished model is then used for inference, answering new inputs with its parameters fixed.
A modern language model is trained in stages. Pre-training on a vast text collection teaches general knowledge by predicting the next token. Post-training, including fine-tuning on examples and reinforcement learning from feedback, shapes it into a useful and safer assistant. Each stage changes the same parameters for a different purpose.
Training is expensive, and getting more so. Epoch AI estimated in June 2024 that the hardware and energy cost of the final training run for frontier models had grown about 2.4 times a year since 2016, and that if the trend continued the largest runs would cost more than a billion dollars by 2027. Across the whole development of a model, hardware accounted for 47 to 67 percent of costs, research staff for 29 to 49 percent and energy for 2 to 6 percent. That is why only a handful of organisations train the largest models, while most businesses adapt models someone else has trained.
Training is when a model learns: its parameters are adjusted, again and again, to reduce its errors on example data. Inference is when the finished model is used to answer new inputs, with its parameters fixed. Training is a large upfront cost; inference is a running cost paid every time the model is used. It ranges from seconds for a small model on a laptop to months for the largest language models, which run on many thousands of specialised chips. The time depends on the size of the model, the amount of data and the computing power available. Usually not in real time. A deployed model's parameters stay fixed while it answers. Some companies may use conversations to train future versions, depending on their policies and user settings, but that happens in a separate training process later, not during the conversation. Fine-tuning is a kind of training. Initial training, or pre-training, builds a model's general abilities from a very large dataset. Fine-tuning continues training an existing model on a smaller, focused dataset to adapt it to a particular task or style.Common questions
What is the difference between training and inference?
How long does it take to train an AI model?
Does a chatbot keep training while I use it?
What is the difference between training and fine-tuning?
Search for "how machine learning models are trained", "training vs inference" or "cost of training AI models" for explanations and estimates. Reliable sources include Google's Machine Learning Crash Course, technical reports released with models, and independent research groups such as Epoch AI that track training compute and costs. Treat single headline cost figures with care, because they often cover only the final run rather than all the experiments that came before it.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.