Picture this: you correct an AI chatbot on a bug in your codebase. It replies, "Got it, I'll remember that!" Five minutes later you open a new chat, and it makes the exact same mistake.
So — is "learning" even a meaningful word for what AI does?
The honest answer: yes in a narrow, mathematical sense — and no in the human sense.
The mental model
Human learning is building and updating a live mental model of the world. Touch a hot stove once, and you instantly understand cause and effect. You don't need 10,000 burns, and you carry that lesson into every kitchen for the rest of your life.
AI "learning" is tuning billions of numerical dials during a one-time factory setup, then locking them behind glass.
Once training ends, the dials stop moving. When you chat with an AI, it isn't learning from you — it is running frozen math on whatever text you hand it.
Inside an LLM: nodes, neurons, and weights
Words like "neural network" and "neuron" make AI sound biological. Under the hood, it is much more mechanical:
- A node (artificial neuron) is not a living brain cell. It is a tiny math formula: take numbers coming in, multiply each one by a weight (a dial that says how much that connection matters), add them up, and pass out a new number.
- Layers are stacks of these nodes wired together. Early layers pick up simple patterns (spelling, syntax); deeper layers combine them into abstract ones (tone, code structure, logic).
- An LLM (Large Language Model) is a massive neural network built on the Transformer architecture, which adds attention — a mechanism that lets the network weigh which earlier words in your prompt matter most for predicting the next word.
Compare that to a human brain: biological neurons are living electrochemical cells that grow new connections and rewire themselves continuously as you live. An artificial node is a floating-point number inside a GPU matrix multiplication.
How AI actually "learns" (and then uses it)
In machine learning, "learning" means adjusting weights to reduce prediction error on data. For an LLM, that happens in two training phases — both finished before you ever open the chat window.
1. Pre-training: turning the dials
During pre-training, the model reads trillions of words and plays one game over and over: predict the next token.
- Forward pass: Text flows left-to-right through the layers and the model outputs a guess.
- Loss: We compare the guess against the real next word and score how wrong it was.
- Backpropagation & gradient descent: The error flows backward through the network so every weight gets nudged a tiny step in the direction that would have made the guess less wrong.
Here is that entire loop mocked in 10 lines of JavaScript for a single node learning y = 2x:
// 1. TRAINING — the dial (weight) starts wrong and gets nudged
let weight = 0.2;
for (let step = 0; step < 20; step++) {
const guess = 3 * weight; // input x = 3, target = 6
const error = 6 - guess; // how wrong was the guess?
weight += error * 0.05; // nudge the dial toward less error
}
// weight is now ~1.99 ← "learned"
// 2. INFERENCE — the dial is frozen; we only read it
const predict = (x) => x * weight;
predict(5); // ~9.95 ← uses the learned weight, never changes it
Real LLMs run the exact same idea — just with hundreds of billions of weights instead of one.
2. Post-training: shaping behavior
A raw pre-trained model only completes text. To turn it into a useful assistant, labs run a second round of weight updates:
- Supervised Fine-Tuning (SFT): Training on curated examples of helpful answers.
- Reinforcement Learning (RLHF / RLVR): Rewarding answers that humans prefer or that pass automated checks (like unit tests or math verifiers), nudging the weights toward those patterns.
3. Inference: using what was learned
When the model ships and you chat with it (inference), zero weights change.
Training vs Inference: when dials move vs when they are used
1. Raw Text & Examples — Trillions of tokens or your chat prompt
2. Model Weights — Billions of numbers stored in the network
├─ Training (learning) → Guess Next Token → Measure Loss → Nudge Weights
└─ Inference (using) → Frozen Weights → Pick Likely Next Token → Reply
Training changes the weights. Inference only reads them — your chat never turns a single dial.
Why don't models keep updating their weights live as you talk to them? Because of catastrophic forgetting (editing weights on new data tends to overwrite older skills), plus massive compute cost and the risk of users poisoning the model for everyone else.
So when an AI seems to "learn" your coding style mid-conversation, it isn't changing its brain. It is simply re-reading your earlier messages inside its context window — a temporary scratchpad that disappears the moment you start a new chat.
Learning vs understanding: where the word misleads us
Using the same word for humans and machines hides four big differences:
- Sample efficiency: A person learns what a stove or a dog is from one or two examples. A neural network needs massive datasets to carve that boundary into its weights.
- Continual vs frozen: Humans learn continuously from every experience without erasing older skills. AI splits training (learning) from inference (using).
- Grounded reality vs statistical geometry: Humans learn through physical cause-and-effect and lived feedback. LLMs learn relationships between symbols — they can explain gravity clearly without ever having dropped a cup.
- Learning vs understanding: In AI, "learning" means finding weights that minimize error. Human understanding means knowing what words point to in the real world, not just which words tend to appear together.
Say it in an interview
"In AI, 'learning' is a mathematical optimization process, not human understanding. During training, a neural network adjusts billions of numerical weights through forward passes, loss calculation, and backpropagation to reduce prediction error. Once deployed, those weights are frozen — anything an LLM seems to 'learn' during a chat is just temporary in-context adaptation inside its prompt window, not permanent memory."
Cheat sheet
| Dimension | Human learning | AI "learning" |
|---|---|---|
| Building blocks | Living electrochemical neurons | Math nodes & weights in GPU matrices |
| How it improves | Cause-and-effect, feedback, reflection | Loss function + backpropagation + gradient descent |
| After deployment | Keeps learning continuously | Weights are frozen (read-only) |
| Sample efficiency | Often one experience ("one-shot") | Massive datasets and GPU compute |
| "Remembering" in chat | Long-term memory | Temporary scratchpad (context window) |
Going deeper
Advanced and optional. Everything above is enough to explain this in an interview. This part is for the curious: full numbers, edge cases and what's still unproven.
Three things people confuse with "AI learning"
When someone says "the AI learned X", they usually mean one of three very different mechanisms:
- Weight updates (Training / Fine-tuning): The model's parameters genuinely change. Expensive, offline, permanent.
- In-context learning (Few-shot prompting): You put examples in the prompt and the model follows the pattern. No weights change — the attention mechanism simply uses your examples as live input signals.
- External memory (RAG / memory files): The app saves a note to a database or file and silently pastes it into your next prompt. The app remembered; the model did not.
Why did the word "learning" stick?
Arthur Samuel popularized "machine learning" in 1959 while building a checkers program. His definition was strictly behavioral: giving computers the ability to improve at a task from data without being explicitly programmed with every rule.
By that engineering definition, "learning" is accurate — performance measurably improves with data. It only misleads us when we forget it's a metaphor and assume human comprehension, intention, or lifelong memory.
Originally published on Bitlyst.


Top comments (0)