AI ATLASAn interactive field guide
CONCEPT 61 / Large language models / Interactive study

Next-token prediction.

Watch the conveyor belt of text generation: score candidate next words, pick a winner, append it to the prompt, and repeat.

Prompt ribbon → Candidate scoreboard → Appended token loop

Begin with the loaded example. Change one control and watch the diagram and numbers update together.

61 / LIVE LABORATORYLoaded example
All calculations shown here run in the browser from the visible controls and bundled examples.

Inside the calculation

Why it matters

LLMs write one token at a time—every new word becomes part of the input for the next step.

All calculations shown here run in the browser from the visible controls and bundled examples.