How AI guesses the next word
Five slides, one cloud of points. Scroll through how a language model turns words into numbers, numbers into a guess, and a wrong guess into a better one.
Chat assistants feel like they think. Underneath, they do one small thing over and over. Scroll slowly.
What you just scrolled through
Embeddings. The list of numbers for each word is called an embedding. Nobody writes these by hand. They start random and drift into place during training, until distance in that space roughly tracks difference in meaning.
Weights are the knowledge. A model’s “size” is its count of weights. Everything it seems to know, grammar, facts, style, lives in those numbers and nowhere else.
Backpropagation. Sending the error backward through the layers is called backpropagation. It works out, for every single weight, which way to turn it to shrink the error. Training is this step, repeated over a huge pile of text.
One word at a time. Models actually work with tokens, which are often pieces of words. A long answer is hundreds of these guesses in a row, each one fed back in as input for the next.