From Prediction to Action
A visual guide to language models and agents
In this article
To understand how modern AI systems work, it helps to start with how their models learn. A language model is a vast network of calculations, loosely inspired by connected neurons, whose connections are shaped by numbers called parameters (coloquially, often called "weights"). These calculations have one purpose: given a sequence of input text, predict the next bit of text (or "token": usually about one word).
We can make the model better at predicting by tuning these numerical “knobs” through repeated practice: predict the next token, compare it with what actually came next, and make small adjustments to the weights. This broad initial phase is called pretraining.[1] The illustrative example below shows those adjustments making the observed next word, “open,” more likely.