6.4.4 · D1AI Safety & Alignment

Foundations — Goal misgeneralization

2,730 words12 min readBack to topic

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.


1. The agent, states, and actions

Before any math, meet the three actors.

The picture: imagine a photograph of the game screen () and an arrow the agent draws on it saying what to do next ().

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 — "how good was doing in situation ?"

Figure — Goal misgeneralization

2. Reward: the score the agent chases

The picture: after the agent's arrow, a scoreboard flashes a number. That number is .

The parent note uses two reward functions, and keeping them apart is the whole game:

Symbol Plain words Picture
the score we wish we could give — the goal we actually care about "did it collect the coin?"
the score the agent actually learned to chase "did it move rightward?"

Why "proxy"? A proxy is a stand-in. "Move right" stands in for "get coin" — and works, until it doesn't.


3. Distributions: the bag of situations

The agent doesn't see one state — it sees a whole collection of them, some common, some rare.

The parent uses two bags:

  • — the situations seen during training (all the practice levels).
  • — 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."

Figure — Goal misgeneralization

4. Expectation : the average over the bag

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 .

The parent uses this to define the mean of each reward. Both rewards get their own mean, over the same training bag: 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.


5. Spread: variance and standard deviation

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 in the parent note, read it as a template: substitute to get , or to get . 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.

Figure — Goal misgeneralization

6. Correlation : do two scores move together?

This is the star of the parent's derivation. We have and , and now each has its own mean () and its own spread (). 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:

  1. = "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 does the same for the proxy score.
  2. 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.
  3. averages this agreement over the whole bag.
  4. Divide by . This step is scaling — it strips out the raw size of the scores so the answer always lands in .

The picture: plot every situation as a dot with true-score on one axis, proxy-score on the other. = the dots fall on a rising line. = a shapeless blob.

Figure — Goal misgeneralization

The deployment correlation — spelled out

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 instead of the training bag." Nothing new is invented — every mean and spread is the exact same formula from Sections 4–5, with swapped for :

So asks the identical question as — "do the two rewards move together?" — but over the real-world bag. The primes are the only difference.

The symbol means "much less than."


7. Policy and the misalignment gap

The picture: deterministic = a signpost pointing one way at each state; stochastic = a spinner at each state whose slice sizes are the probabilities .

The parent uses two policies:

  • — the rulebook that maximises the proxy score (what the agent actually became).
  • — the ideal rulebook that would maximise the true score (what we wished for).

For a stochastic policy, "the true reward it earns in state " means the expected reward over its own action-spinner, . In the deterministic case this collapses to just , 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.


8. One more symbol:

The parent mentions as an informal size-of-shift gauge.


How the foundations feed the topic

state s and action a

reward R of s a

R true vs R proxy

distribution D train and D deploy

expectation E averages the bag

mean mu and spread sigma per reward

correlation rho

rho near 1 in train, small in deploy

policy pi proxy and pi true

misalignment gap Delta

Goal misgeneralization

Distribution Shift

Related failure modes that build on these same symbols: Outer Alignment (choosing well), Inner Alignment Problem (why can differ from 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.


Equipment checklist

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 ?
A full snapshot of the world at one moment — everything the agent sees before acting.
What does output?
A single number: how good taking action in state is.
Difference between and ?
is the goal we care about; is the stand-in goal the agent actually learned.
What is a distribution ?
A bag of situations plus how often each one appears.
Why are there two distributions and ?
The situations seen in training differ from those met after release; their gap is where misgeneralization lives.
What does compute?
The average of over the bag , weighted by how often each situation occurs.
What are and ?
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 and ?
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 mean?
The two rewards move in perfect lockstep — indistinguishable from training data alone.
What do the primes in , , mean?
The exact same mean/spread/correlation formulas, but recomputed on the deployment bag instead of .
When is undefined?
When or is zero (a flat, constant reward) — you'd divide by zero.
Why divide by in the correlation?
To remove the effect of rescaling the rewards so the answer stays in (scaling); centering removes shifts.
What does the symbol mean?
"Much less than."
What is a policy ?
The agent's rulebook: deterministic gives one action; stochastic gives a probability for each action.
Over what set does take its maximum?
The support of — 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 ?
No — is only directional guidance, not a proven law.