Your brain is not a window.
A hypothesis.
Your senses deliver billions of impulses per second. A passive brain could never keep up — too much, too fast. The trick: the brain does not wait for the input. It predicts what is about to arrive, and updates only when it was wrong.
Ha ezt a bekezdést gond nélkül elolvassa, Önnek nem ez a kiadás kell: az eredeti a tanul.io/prediktiv címen várja, és az agya már meg is jósolta, mi lesz benne. Ha viszont egy szót sem ért belőle, ne aggódjon: az agya ezt is megjósolta.
P.S. If the paragraph above surprised you, excellent: surprise is how you learn. That is, in fact, the entire article. The rest is detail.
The brain knows in advance
By the time light reaches the retina, the cortical regions have already stated what they expect. Perception is not discovery but expectation, which the world later confirms — or doesn't.
The input is not what matters
The error is: the difference between what you expected and what you got. What travels up the cortex's ascending pathways is mostly not the input itself but this surprise signal.
Reality is a controlled hallucination
You do not see the world directly; you see your own model of it, continuously corrected by the world. Anil Seth calls this "controlled hallucination" — with equal stress on both words.
standing negotiation between the two. — The core of predictive coding
The idea reaches back to Helmholtz (1860) ("unconscious inference"); its modern mathematical form was worked out by Rao & Ballard (1999) and Karl Friston. Today it is one of the most-cited frameworks in cognitive neuroscience — and it tells a radically different story about how we learn.
The site you are reading is called tanul.io. Tanul is Hungarian for "learns" — third person singular, present tense. Hungarian omits the pronoun, so the name quietly declines to say who is doing the learning: the reader, the brain, or — increasingly — the models. The Guide considers this ambiguity load-bearing and this article the site's founding document.
Two directions.
One noise.
For a long time we pictured the brain as a conveyor belt: raw data at the bottom, finished result at the top. According to predictive coding it is roughly the other way round. Each level tells the one below it what to expect — and only the mistakes, the prediction errors, travel upward.
The three key moves
1. Predict. Each layer sends a prediction from its own generative model downward — a "this is what I expect" message.
2. Error. The layer below compares the prediction with the actual activity. The difference — and only the difference — travels up.
3. Update. The higher level revises its model so that the future holds fewer surprises. This is what learning is.
Bayesian psychology
Each layer essentially runs a small Bayesian computation: it combines the prior belief with the incoming evidence (likelihood), and produces the updated belief (posterior). Which one to trust more — the conviction or the sense organ — is weighted by precision.
What is new here?
The learning theories of the 20th century started from rather different assumptions. Tap the cards — each shows the old claim, and what predictive coding says instead.
BehaviourismPAVLOV · SKINNER · 1900–1960
+The brain is passive: it merely reacts to the environment. Talking about internal representations is superstition.
CognitivismINFORMATION PROCESSING · 1960–
+The process is one-directional and runs bottom-up. Higher regions join in later.
Hebbian learningHEBB · 1949
+Learning is blind co-occurrence detection: whatever is active at the same time gets linked.
Standard neural networksBACKPROP · LABELLED DATA
+The network needs external truth: someone has to say what the right answer is.
Reinforcement learningRL · MAXIMISE THE REWARD
+The goal of learning is reward. Reward is external, scalar, and universally evaluable.
The four leaps, briefly
(1) Passive → active brain. (2) One-way → two-way processing. (3) Correlation → prediction error as the schoolmaster. (4) External reward → internal surprise-minimisation.
Your whole life plays against surprise.
If the brain is a prediction machine, a number of mysterious phenomena suddenly make sense. A few examples:
Optical illusions
The hollow-mask illusion, the Müller-Lyer lines, Adelson's checker shadow: the prior overrides the input. You know the shadowed square is the same grey as the bright one — you still see it differently. That is how strong a prior is.
Dreams and hallucination
In sleep, sensory input drops dramatically, but the generative model keeps working. Nothing contradicts the downward predictions — the result is an internal, coherent world. A dream.
Learning & curiosity
You can only learn from error. If everything is perfectly predictable, there is nothing to update from — hence the feeling of boredom. Curiosity is the inverse: hunting for fresh surprises the model can grow on.
Attention
Attention is not a spotlight that illuminates something; it is precision weighting: the system decides which error signal deserves belief — the loud neighbour or your own expectation. The machinery behind the cocktail-party effect is the same.
Active inference
There are two ways to reduce the error: (a) update the model to fit the new evidence, or (b) change the world so it fits the model. The second one is called action. When you move, you are fulfilling a prediction.
Anxiety, depression, psychosis
Clinical theories suggest many mental disorders are precision gone wrong: the error signal too strong (anxiety), the prior too rigid (compulsion), or the balance between the two broken (psychosis).
If the brain is a prediction machine, then learning is not information-gathering.
It is error correction. And curiosity?
The hunting of new opportunities to be wrong.