Before LLMs, you need to understand the bedrock idea of machine learning, because LLMs are built on it.
Traditional Programming vs. Machine Learning
In traditional programming, a human writes rules:
"If the customer has spent more than $1,000 this year, mark them as a VIP."
The computer follows the rule.
This works fine when you can write down clear rules.
But what about something like:
"Decide whether this email is spam."
You could try writing rules ("if it contains 'Viagra', mark it spam"), but spammers will adapt — the rules get complicated fast, and you'll always miss cases.
Machine learning flips the relationship.
Instead of writing rules, you provide examples, and the computer figures out the rules itself.
"Here are 10,000 emails I labeled 'spam' and 10,000 I labeled 'not spam.' Learn the difference."
The computer studies the examples, identifies patterns (certain words, sender patterns, formatting), and produces a model — basically a complicated formula — that can take a new email and output a probability that it's spam.
The Three Ingredients of Machine Learning
Almost every ML system has three parts:
- Data: Examples of the thing you want to predict or generate. The more, the better, usually.
- A model: A mathematical structure with adjustable knobs (called parameters). At first, the knobs are set randomly.
- A training process: An algorithm that automatically adjusts the knobs to make the model's outputs match the desired outputs in the data.
You can think of training like tuning a radio: at first, all you get is static, and the training process turns the dial until the signal comes through clearly.
An Analogy: Learning to Recognize Dogs
Imagine teaching a child to recognize dogs.
You don't list rules ("a dog has fur, four legs, a wet nose...").
You point at dogs and say "dog."
Eventually the child sees enough dogs in different shapes, sizes, and contexts that they form an internal sense of "dog-ness."
That's how a machine learning model works.
It doesn't memorize the training examples — it extracts the underlying patterns and applies them to new cases it has never seen.
Why Scale Matters
A key insight that drove the AI revolution: bigger models, more data, and more computing power tend to produce qualitatively better results.
Not just slightly better — sometimes shockingly better.
A model 100 times larger doesn't just get 100 times more accurate; it can develop new abilities entirely (like writing poetry, when it was only trained to predict words).
This phenomenon is called emergence, and it's one of the reasons modern AI surprised even its creators.