cauri jaye
← All writing

AI Basics — Part 1: How models learn and why it matters

24 November 2025

Originally published on Substack, 24 November 2025.

AI models learn in stages. They go through training, where they absorb patterns from data, and inference, where they use those patterns to answer your prompt. This structure applies across model families—text, images, audio, and beyond.

I start with large language models, which focus on text.

During the first stage, training, an LLM reads huge amounts of writing and learns patterns in how words appear together. Technically, it learns from tokens (common fragments of words), but for clarity, imagine each point in its internal map as a word. Picture a cloud of words floating in 3D space. Each word sits at a specific distance and direction from every other word. Words that share context drift closer.

Directions between them carry meaning: “Paris → France” aligns with “Tokyo → Japan,” while “engine → acceleration” differs from “engine → failure.”

We do not program these relationships.

We don’t give the model rules. We don’t define concepts for it. The structure emerges from the data. As the model trains, meanings settle into place based on usage patterns. This also means the training data shapes the model’s sense of the world. Feed it a different language, and the shape of the cloud shifts.

As training progresses, groups form naturally: motorsport here, architecture there, marine biology somewhere else. The model discovers these clusters on its own.

The second stage, inference, begins once you provide a prompt.
Your prompt acts like a set of coordinates inside that 3D cloud. Those coordinates focus the model on a particular region. From there, it predicts the next word (technically the next token) based on what sits nearby in that space. It repeats that prediction step, one token at a time, until a full response emerges.

Training shapes the cloud. Inference navigates through it.