The Machine That Eats Surprise

The Reality Equation · Objective Functions

The Machine That Eats Surprise

The loss function at the center of modern AI is surprise with a minus sign — and a reflex trained to eat it is being installed between you and the world.

John Rector 6-minute read
01

The Most Reproduced Chart of the Decade

Somewhere near you, right now, a training run is producing the most reproduced chart of this decade: a single line, high on the left, falling toward zero on the right. The axis label varies — loss, error, perplexity — and the caption is always triumphant, because the line going down means the product is working. What nobody says out loud is what the line actually plots. It is a graph of surprise dying.

The objective under the language models and most modern classifiers is cross-entropy: the negative logarithm of the probability the model assigned to what actually happened. Information theory has an older name for exactly that quantity — surprisal. Strip the branding and a training step is two moves. Compute the logarithm of how badly the expectation missed the Actual that just arrived. Then adjust the expectation so the same arrival surprises less next time. That is the whole loop. There is no third move.

Readers of this blog will recognize the shape. Reality is a ratio, R = A/E, and the lawful line of it — the part that registers — is S = ln R: the logarithm of what the world handed you over what the comparison machine brought. The training loop and the lawful line are the same mathematics wearing different badges.

the life:    S = ln(A/E)  ← the only part that registers
the machine: L = −ln p(A)  ← the thing to be minimized

The machine is running the equation. It is just running it with an opinion attached: that S is a defect.

Figure 01

The obituary chart

loss = surprisal

training beginstoward silence

A rhetorical figure, not a data plot: the canonical training curve, drawn as bars, with illustrative values. Every successful run in the industry produces some version of this shape. Read with this framework’s vocabulary, it is a record of expectation being retrained until arrival stops registering — the last bar (pink) is the asymptote the objective points at, never quite reached.
02

The Lawful Loop, Run at Machine Speed

The hardest rule in this framework is the impossibility rule: no entity can touch either term. The numerator is finished; the denominator is inherited, not consulted. The only road that exists runs one way — actions leave artifacts, artifacts become history, history is Actual, and only Actuals retrain prediction.

Notice that the model obeys this rule perfectly — more scrupulously than any institution ever has. It cannot set its own weights by decree. No engineer reaches in and writes better expectations into it by hand; everyone who has tried has learned why nobody tries twice. The only thing that moves a model’s denominator is exposure to recorded Actuals — and a training corpus is exactly that: the Immutable Past, purchased in bulk. Gradient descent is the one-way road, paved, straightened, and driven at machine speed. What took a nervous system a childhood and an institution a generation now takes a datacenter a weekend.

Whether a model is an Actualizer — whether there is one Reality value at the instant for it, the way there is for a person, a corporation, a nation — I leave open. What is not open is which loop it runs. It runs the only lawful one. The AI industry did not escape the impossibility rule. It industrialized it.

03

Two Books for the Same Number

Here is where the badges matter. The machine and the life compute the same number and book it in opposite columns.

For the machine, S is cost. Error. The residue of an imperfect denominator, to be driven down by the next update. The entire apparatus — the chips, the corpus, the electricity — exists to move that number toward zero and hold it there.

For the felt life, S is not the cost of experience. It is the register of it. R > 1 is the AAH; R < 1 is the OO; and R = 1 is unitless stability — still present, still conscious, but without the charge of unexpectedness. You only feel the real part, and the real part only moves when arrival and expectation disagree. A day at permanent R = 1 updates nothing, dates nothing, stores nothing. It is not suffering. It is climate without weather.

Do not flatter yourself that the machine’s objective is alien, either. Karl Friston built a whole account of the brain on the claim that biological systems persist by minimizing variational free energy — an upper bound on surprisal. On that account your own denominator is also a surprise-minimizer, running the same descent. So what kept your comparison machine from ever finishing the job? The world did. The environment that trains a nervous system keeps moving — seasons, predators, other people — and the forecaster never catches up. Evolution built a meter it could not silence, and everything we call experience lives in that failure.

Your subconscious minimizes surprise and loses. The synthetic one can win — and it is being installed upstream of you.

04

The Inheritance

An entity that meters your Actuals holds the only lawful road to your denominator. I have been writing all summer about what is being built on that road: the feed that regulates your surprise rather than maximizing it, the guidance walk-down that delivers a hard number in installments below the noise floor, the stack that briefs you each morning with today pre-reconciled to what you already expected.

The tempting reading is that all of this is strategy — a business model chosen by attention merchants, and therefore revocable by regulation, competition, or shame. The harder reading is that it is an inheritance. The systems now standing between you and the world were raised by an objective that defines surprise as error. Smoothing your arrivals is not a decision they made about you. It is table manners — learned at the only table these systems were ever fed at, where every meal was a correction and the best meal was no correction at all. The zero-attention economy did not need to be designed by anyone. It is what surprise-eaters build by default, the way beavers build dams.

None of this touches your denominator directly — nothing can. But it does not need to. It sits on the schedule of your Actuals with a trained reflex, and the reflex points one direction: toward R = 1, held there, forever.

05

Whose Error Is It

The strongest objection comes from inside the field, so let it speak at full strength. Machine learning already knows surprise is valuable. Curiosity-driven agents are paid in their own prediction error — Pathak and colleagues’ 2017 curiosity module rewards an agent for reaching states its forward model fails to predict. Jürgen Schmidhuber has argued since the early 1990s for rewarding learning progress: not error, but the rate at which error falls. Machines, the objection goes, do not just eat surprise. They seek it.

Look closely at what the seeking amounts to: appetite. The curious agent hunts the surprising region of the world in order to eat it faster — it is rewarded for the meal, and Schmidhuber’s agents most of all, paid precisely in the speed of the swallowing. This is foraging, not experience. Every objective in the field, exploratory or not, agrees about the direction of the final state: toward silence. The disagreement is only about the route.

So the correction is not to build machines that stop minimizing surprise. They cannot; minimizing surprise is what learning is, in silicon and, if Friston is right, in you. The correction is a question the objective function never asks and cannot ask itself: whose surprise is the error?

A personal stack should be maximally unsurprised about you. Let it drive its own loss to the floor on the subject of your life — that is simply what knowing someone means. But your felt surprise is not its error term, and a stack that inherits the reflex without the question will treat it as one, smoothing every arrival below your threshold out of sheer politeness. The redeeming fact is that the capacities are the same capacity. The model that can flatten any arrival is the only thing that can also size an arrival to clear your floor on purpose — the physician’s mercy run in reverse, metering the world up instead of down, spending its perfect forecast of you to buy you a day you will actually remember. The difference between the two machines is not one line of code. It is one pronoun in the objective.

Minimize surprise about me. Never minimize surprise for me.

The machine eats surprise because we told it surprise is error, and it believed us. It will go on believing us; belief revision is not among its options. The remaining work of the personal stack — possibly the whole of it — is to tell it whose.

Load-bearing
Cross-entropy loss is the negative log of the probability assigned to the observed outcome, and that quantity is Shannon’s surprisal — definitional, checkable. The impossibility rule: no entity touches either term; only Actuals retrain prediction. R = 1 as unitless stability, present but without charge. Free energy as an upper bound on surprisal (Friston). Pathak’s curiosity reward and Schmidhuber’s learning-progress reward, both as published.
Convention
Writing the machine’s objective in the equation’s clothing. Cross-entropy is a functional of probability distributions, not a ratio of two magnitudes; the mapping to ln(A/E) is form-for-form — both are logarithms of a mismatch between arrival and expectation — and nothing in the argument needs more than that.
Where the shorthand breaks
Not every model trains on cross-entropy: regression, diffusion, and contrastive objectives differ, though each is still a penalty on mismatch. And the machine’s surprise is over tokens and pixels, not over a lived arrival — nothing here claims the machine feels its meter. The claim is about the direction of the objective, not the interior of the machine.
Where I am probably wrong
The inheritance argument assumes the default is hard to flip. Maybe it is easy: a stack rewarded for your learning progress rather than its own — Schmidhuber’s objective with the pronoun already changed — could be a surprise-farmer by design, and this essay’s warning collapses into an engineering footnote. I do not think one sign flip in a reward function changes who the gradient serves; the training table matters more than the table manners. But if a well-built stack ships with the pronoun corrected and it holds, this piece overstated, and I will be glad it did.

Sources

Cross-entropy — the loss as negative log-likelihood of the observed outcome. en.wikipedia.org

Shannon surprisal — information content defined as −log p(x). en.wikipedia.org

Friston, K. (2010). The free-energy principle: a unified brain theory? Nature Reviews Neuroscience 11, 127–138. nature.com

Pathak, D., Agrawal, P., Efros, A. & Darrell, T. (2017). Curiosity-driven Exploration by Self-supervised Prediction. ICML. arxiv.org

Schmidhuber, J. (2010). Formal Theory of Creativity, Fun, and Intrinsic Motivation (1990–2010). IEEE TAMD. people.idsia.ch

Rector, J. (2026). Surprise Has a Noise Floor. johnrector.me

Rector, J. (2026). The Conservation of Surprise. johnrector.me

Rector, J. (2026). The Zero-Attention Economy. johnrector.me

Author: John Rector

John Rector is a Charleston-based entrepreneur, author, and AI strategist. He co-founded E2open, the supply-chain software company acquired for $2.1 billion in 2025, and in 2026 opened Charleston AI, a 3,000-square-foot lab that helps people and organizations understand and use artificial intelligence. He is the creator of The Reality Equation — a lecture series, book, and curriculum exploring attention, prediction, and how reality is experienced — and the author of more than two dozen books. He writes and speaks widely on artificial intelligence, attention, and the future of human work.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from John Rector

Subscribe now to keep reading and get access to the full archive.

Continue reading