This page assumes nothing. Before you can read the parent note's formulas, you need to know exactly what each squiggle means and what picture lives behind it. We build them in order — each one uses only the ones before it.
The picture: imagine a photograph of the game screen (s) and an arrow the agent draws on it saying what to do next (a).
Why the topic needs it: goal misgeneralization is about an agent choosing actions in states. Every reward below is scored on a state-action pair(s,a) — "how good was doing a in situation s?"
The agent doesn't see one state — it sees a whole collection of them, some common, some rare.
The parent uses two bags:
Dtrain — the situations seen during training (all the practice levels).
Ddeploy — the situations met after release, in the real world.
The picture: two bags of screenshots. The training bag might only contain "coin-on-right" screenshots. The deployment bag contains screenshots we never practised on — like "coin-on-left."
Now we need one tool to summarise a whole bag with a single number.
Why this tool and not just adding? A plain sum would over-count rare situations and drown in the size of the bag. An average asks the right question: "on a typical draw from this bag, what do I get?" That's exactly the question we want when comparing training to deployment.
The picture: pour every screenshot's score into one bucket, then read off the balance point — that balance point is E.
The parent uses this to define the mean of each reward. Both rewards get their own mean, over the same training bag:
μtrue=EDtrain[Rtrue],μproxy=EDtrain[Rproxy]
which read "the average true-score" and "the average proxy-score" over the training bag. The symbol μ (Greek "mu") is the standard shorthand for a mean; the subscript tells you which reward it belongs to.
An average alone can't tell you if scores are all clustered or wildly scattered. We need a spread — and, just like the mean, each reward gets its own.
Whenever you see a bare σ2=EDtrain[(R−μ)2] in the parent note, read it as a template: substitute Rtrue,μtrue to get σtrue, or Rproxy,μproxy to get σproxy. The formula is the same shape; only the labels change.
Why square the distance? Distances above and below the mean would cancel if we just added them. Squaring makes every gap positive so they accumulate instead of cancelling; the square root at the end puts us back in the original units.
The picture: a cloud of scores around the mean. A fat cloud = big σ; a tight cloud = small σ.
Why the topic needs μ and σ: they are the two ingredients the correlation formula needs. You cannot understand ρ (next) without them.
This is the star of the parent's derivation. We have Rtrue and Rproxy, and now each has its own mean (μtrue,μproxy) and its own spread (σtrue,σproxy). We want one number saying "do these two rise and fall together?"
Let's read this piece by piece, because you now know every symbol:
(Rtrue−μtrue) = "how far above/below its own average is the true score right now?" This step is called centering — it slides the scores so their average sits at zero. The proxy factor (Rproxy−μproxy) does the same for the proxy score.
Multiply the two centered scores. When both are above average (both positive) or both below (both negative), the product is positive → they moved together. When they disagree, the product is negative.
E[…] averages this agreement over the whole bag.
Divide by σtrueσproxy. This step is scaling — it strips out the raw size of the scores so the answer always lands in [−1,1].
The picture: plot every situation as a dot with true-score on one axis, proxy-score on the other. ρ≈1 = the dots fall on a rising line. ρ≈0 = a shapeless blob.
The parent note also writes a correlation at deployment, using primed quantities. The prime symbol ′ just means "the same thing, but recomputed on the deployment bag Ddeploy instead of the training bag." Nothing new is invented — every mean and spread is the exact same formula from Sections 4–5, with Dtrain swapped for Ddeploy:
So ρdeploy asks the identical question as ρtrain — "do the two rewards move together?" — but over the real-world bag. The primes are the only difference.
The picture: deterministic = a signpost pointing one way at each state; stochastic = a spinner at each state whose slice sizes are the probabilities π(a∣s).
The parent uses two policies:
πproxy — the rulebook that maximises the proxy score (what the agent actually became).
πtrue — the ideal rulebook that would maximise the true score (what we wished for).
For a stochastic policy, "the true reward it earns in state s" means the expected reward over its own action-spinner, Ea∼π(⋅∣s)[Rtrue(s,a)]. In the deterministic case this collapses to just Rtrue(s,π(s)), which is the form the parent writes.
The picture: two scores side by side in each reachable deployment state — what the misaligned agent gets vs. what a perfect agent would get. Δ is the height of the tallest gap you can find.
Related failure modes that build on these same symbols: Outer Alignment (choosing Rtrue well), Inner Alignment Problem (why Rproxy can differ from Rtrue inside the model), Reward Hacking, Robustness, and Interpretability (tools to inspect which goal the agent really learned). Deeper machinery lives in Mesa-Optimization and Deceptive Alignment.
This is a self-test. Each line below is written as Question ::: Answer — in the vault, the ::: marks a reveal line: you see the question, and the answer stays hidden until you click to reveal it. Cover the right side, try to answer, then check.
What is a state s?
A full snapshot of the world at one moment — everything the agent sees before acting.
What does R(s,a) output?
A single number: how good taking action a in state s is.
Difference between Rtrue and Rproxy?
Rtrue is the goal we care about; Rproxy is the stand-in goal the agent actually learned.
What is a distribution D?
A bag of situations plus how often each one appears.
Why are there two distributions Dtrain and Ddeploy?
The situations seen in training differ from those met after release; their gap is where misgeneralization lives.
What does ED[X] compute?
The average of X over the bag D, weighted by how often each situation occurs.
What are μtrue and μproxy?
The averages of the true and proxy rewards over the training bag — each reward gets its own mean.
Why square the gaps when computing variance?
So gaps above and below the mean don't cancel — squaring makes them all positive.
What are σtrue and σproxy?
The standard deviations of the true and proxy rewards — each is a typical distance of that reward's scores from its own mean.
What does ρ=1 mean?
The two rewards move in perfect lockstep — indistinguishable from training data alone.
What do the primes in μ′, σ′, ρdeploy mean?
The exact same mean/spread/correlation formulas, but recomputed on the deployment bag Ddeploy instead of Dtrain.
When is ρ undefined?
When σtrue or σproxy is zero (a flat, constant reward) — you'd divide by zero.
Why divide by σtrueσproxy in the correlation?
To remove the effect of rescaling the rewards so the answer stays in [−1,1] (scaling); centering removes shifts.
What does the symbol ≪ mean?
"Much less than."
What is a policy π?
The agent's rulebook: deterministic π(s) gives one action; stochastic π(a∣s) gives a probability for each action.
Over what set does Δ take its maximum?
The support of Ddeploy — the deployment states with nonzero probability of occurring.
What does Δ measure?
The worst-case gap in true reward between the agent's actual policy and the ideal policy across reachable deployment states.
Is there a formula predicting misgeneralization risk from dKL?
No — dKL is only directional guidance, not a proven law.