The latent heat of insight
Watch competing explanations trade places, discover the price of flexibility, and explore how memory changes the insights we can sustain.
Imagine watching a coin that keeps landing heads just a little too often. At first you shrug. Coins do that. After a while, the same small anomaly begins to look like a pattern. Eventually the explanation changes: perhaps this coin has a bias.
The next head now feels less surprising. Something has clicked, even though the coin has been doing the same thing all along.
That is the puzzle of insight: evidence arrives one trial at a time, yet explanations can seem to reorganize in a flash. Can we put a number on the relief of finally seeing the pattern? And could an observer with a short memory miss a pattern that an archive makes obvious?
We can build a small mathematical theater for these questions. Its actors are two competing models. Its currency is surprise. Its resemblance to melting ice is intriguing enough to explore carefully.
Two explanations at the same laboratory bench
Let each trial be a coin toss, independent of the others, with a constant but unknown heads probability
| Fair model | Flexible model | |
|---|---|---|
| Claim | ||
| Initial uncertainty about | None inside this model | Uniform |
| Prediction after | ||
| Main advantage | Concentrates its predictions immediately | Can learn a persistent bias |
There are two different uncertainties here. Inside
Suppose the ordered record contains
Here
That ratio,
Write
The prior on a model and the prior inside a model play different roles. Choosing
Why the right explanation can lose early
Start with equal model probabilities. One head gives both models likelihood
The flexible model spreads its initial bets across many coins, including nearly all-heads and nearly all-tails coins. Those extreme possibilities predict the mixed record poorly. Averaging over them costs probability.
This is an Occam penalty: unused flexibility lowers a model’s marginal likelihood. It arises from averaging predictions, without an extra rule that complexity is bad. A second head instead would give
Now imagine the actual generating rate is
Before revealing trials below, predict which observer will sustain a preference for the flexible model. Try the 60% coin with 50-trial memory, then change the memory to 200. Finally try the fair coin: how often does a temporary streak look like an insight?
Which explanation will the next packet favor?
Place an explanation on the desk before opening the next 50 trials. The archive and the smaller notebook read the same packet.
Packet 1 of 12 · 0 trials opened · generating heads rate 60%
Full archive
probability of flexible model
Last 50 trials
probability of flexible model
Choose which model you expect to lead after the first packet.
Change the coin, memory, or model prior
Changing an assumption restarts the desk, so a verdict always belongs to the displayed experiment.
Generating heads probability
Notebook capacity
Prior probability of flexible model
Full-archive costs: fair 0.00 nats, flexible 0.00 nats. Notebook costs: fair 0.00, flexible 0.00. These are negative log marginal likelihoods; priors apply separately. The flexible model uses Beta(1,1). A seeded constant-rate independent Bernoulli sequence makes replays comparable. Preference for an explanation is different from proof that it is true.
The teal and gold curves share every revealed trial. Their difference comes entirely from what they retain. Changing the model prior lets you compare a welcoming observer with a skeptical one without changing the coin.
The price of an explanation
Turn probabilities into additive costs by defining
Logs are natural logarithms, so the unit is a nat; dividing by
Our exact formulas give
where
is binary entropy, the average surprise when predictions match a coin’s actual rate.
The first term pays for the data. The logarithmic term pays for learning the bias. Because that second term grows slowly, a persistent predictive advantage can eventually outweigh it.
The fair coin’s excess cost at a fixed rate
The notation
Replacing the observed frequency by its typical value
For
Where the heat analogy becomes useful
An exact identity connects the cumulative cost with incoming surprise:
Here
Suppose a predictor uses heads probability
This gives a tidy side-by-side comparison:
| Before learning the bias | After learning it accurately |
|---|---|
| Predict | Predict |
| Expected surprise | Expected surprise approaches |
| Pay the full mismatch | Mismatch tends toward zero |
The asymptotic savings is exactly
For a 60% coin, the improvement is modest: about 0.02014 nats per trial. That small amount accumulates. An explanation can matter greatly over a long future even when the next prediction changes only a little.
A physical latent heat is energy transferred during a phase change. Our quantity has units of information per trial. Converting it into joules, brain activity, or a person’s reported relief would require a physical or psychological model. The identity itself tells us exactly what a prediction experiment should measure: the difference in expected log loss.
Does an explanation actually undergo a phase transition?
The two branches can cross. If we always choose whichever model has larger posterior probability, the chosen label changes abruptly at the crossing. That hard choice can look like a miniature change of phase.
The full Bayesian observer carries both models. Its marginal likelihood is their weighted sum,
This is a smooth, softened minimum of the prior-adjusted branches. Finite positive likelihoods give a smooth dependence on their relative scores. Trials arrive discretely, and a very diagnostic trial can cause a large update, but a branch crossing alone establishes no thermodynamic singularity or first-order transition.
That distinction makes the analogy more interesting. Apparent suddenness can arise at several levels: a steep posterior change, an action threshold, a conscious report, or a genuine collective instability. They need different explanations.
The model-averaged prediction illustrates the separation:
Even when the model probability swings strongly, the next-head prediction may move only between roughly 0.5 and 0.6. A large change in which story we tell can accompany a small change in what we predict next.
Put explanations to work with a shared budget
A preference between models becomes useful when it improves a decision. Spend a limited observation budget across three coins, then choose fair, flexible, or model-averaged predictions. Each coin has a sealed future block. Its outcomes are kept separate from the inspected training trials, so the final bill tests prediction beyond the evidence used to choose the recipe.
Spend six tokens on three hidden coins
Three coins share six observation tokens. Each token opens four training trials. Allocate them, choose a forecasting recipe for each coin, then open the sealed future.
Coin A
0 heads · 0 tails observed
Forecast: 50.0% heads
Coin B
0 heads · 0 tails observed
Forecast: 50.0% heads
Coin C
0 heads · 0 tails observed
Forecast: 50.0% heads
What the budget and the bill mean
The fair recipe predicts 50%. The flexible recipe uses a Beta(1,1) prior and the inspected counts. The mixture weights those recipes by model probabilities with equal model priors. Each recipe is frozen before its 16 held-out trials; the bill sums −log₂ of their assigned probabilities. Inspection tokens constrain access to training data and have no conversion into bits. All three coins have fixed generating rates; samples are repeatable seeded Bernoulli sequences. The held-out block is generated separately and stays fixed regardless of which training data you inspect. A model's posterior probability and a forecast's held-out score answer different questions.
Coin A: current probability of the flexible model 50.0%.
Coin B: current probability of the flexible model 50.0%.
Coin C: current probability of the flexible model 50.0%.
The token budget limits access to observations; it is separate from the predictive bill in bits. A model can have the higher posterior probability and still lose on a short held-out block. Replaying the same blocks helps compare allocations, while repeated tuning on those blocks would eventually make them part of the training process.
Memory sets a scale for subtlety
Give an observer a rolling notebook containing only the latest
Its typical accumulated advantage is of order
For an exponential discount rule, old trials instead carry weights
That substitution is a heuristic comparison between memory models. Fractional likelihood weights define another inference rule, and their total weight need not equal an effective sample size for every statistic.
Neither expression creates an absolute insight horizon. Even a short window can contain an unusually one-sided run and favor the flexible model. In fact, with an indefinitely running independent coin having
The practical idea survives beautifully. Archives can make subtle regularities visible across timescales that exceed an individual’s memory. Longitudinal studies and replay buffers extend the record over which a weak predictive advantage can accumulate. Copying the same testimony many times does not create that advantage: its lineage still points to the same underlying trial. Storage preserves evidence; duplication does not manufacture independence.
Supercooling, stubbornness, and the missing dynamics
What if the familiar explanation receives 90% prior probability? Then
That resembles a paradigm persisting through anomalies, but physical supercooling involves metastability: a system remains trapped because its dynamics encounter a barrier. Static Bayesian comparison contains no such barrier. Reorder the same retained independent trials and its final answer remains unchanged.
To model hysteresis, where the route into a state affects the route out, we could add switching costs, different thresholds for adopting and abandoning an explanation, social reinforcement, or limited search. These are fertile extensions. Each supplies a concrete mechanism that can be varied and tested.
An “aha calorimetry” experiment could ask people for probabilistic predictions before and after a reported insight, then score later independent outcomes. The observed change in log loss would test the predictive benefit. Comparing that benefit with subjective surprise or physiological measurements would investigate the psychological bridge rather than assume it.
Beyond a single adjustable coin
For a regular model with
Watanabe’s singular learning theory replaces
Here
We can imagine three competing explanations, each learning a different pattern and paying a different complexity cost. Their posterior weights might take turns leading. Whether a particular neural system actually passes through such stages is a question for a specified model and measurement.
Epistemic Physics adds a useful map of the two levels. Within the flexible coin model,
Each independent trial extends the evidence lineage by a tracelet. The Beta parameters include the prior, and
That extra layer is where the adventure begins. A slow-moving estimate inside one explanation can feed a much larger change in which explanation organizes the world. The coin gives us a place to explore that possibility with every assumption, trial, and cost visible.
Further reading
- Kass and Raftery, Bayes Factors: model evidence, prior odds, and comparison of competing explanations.
- Watanabe, A Widely Applicable Bayesian Information Criterion: Bayesian free energy and complexity in regular and singular models.
- A coin, a magnet, and a learning machine: the site’s earlier journey through entropy and binary thermodynamic analogies.