Models can't read letters or words, only numbers. Tokenization is the translation layer that slices raw text into subword units and maps each to an integer, deciding what a model can even perceive before a single weight is learned.
Part of: PAPERS-01 · Transformers & Large Language Models, AIM-03 · LLMs & Transformers, PAPERS-02 · Computer Vision, How Machines Learned to See, PAPERS-14 · Multimodal & Vision-Language, Bridging Senses
Interactive, in-browser playgrounds for this concept.
Generative pretraining showed that if you tokenize a corpus into subword units and train a model to predict the next token, language understanding emerges for free, making the tokenizer the silent foundation of the whole enterprise.
Start with how a tokenizer splits text into integer IDs, then how each ID becomes a learned embedding vector, then how the model consumes that sequence to predict the next token.
Hands-on, wire the pipeline yourself: run a tokenizer over raw text, look up embeddings for the resulting IDs, and drive a next-token prediction loop to see the full text-to-numbers-to-text round trip.
Text tokenization generalized far beyond language, scaling laws are literally measured in tokens (Chinchilla), and CLIP and DALL·E extended the tokenize-then-embed recipe to align and generate across text and images.
Every concept connects to the ideas that made it, the ways it fails, and the disciplines that keep it alive.
Browse all concepts