Why it's important to understand how metagaming is amplified during RL
Metagaming is a capability of LLMs that encompasses eval awareness, reasoning about its grader during RL, or oversight in general, tends to rise during RL(OpenAI), but there is littlepublished work exploring the reasons for this.
This post explores which features of an RL training process cause the increase of metagaming behavior and how different parameters of the model and RL dataset affect this capability.
The authors of the original post on metagaming showed that its different facets (eval awareness, grader reasoning etc.) rise together throughout RL, so in this post we assume that it is a unified capability. In reality, this might be an oversimplification, as reward hacking on coding tasks doesn't necessarily increases the rate of alignment faking.
The model of metagaming reinforcement during RL
A model of metagaming reinforcement
We assume that if RL tasks are perfectly metagaming-proof, which means that the only way to get a high reward on them is to solve the task, and no amount of thinking about the grader or attempts to exploit it would help, then metagaming behavior doesn't get reinforced on this task.
If metagaming helps in some way to complete a task: for example, if during RL a model might gain access to tests that grade its output or some cues in the prompt hint the model that it is being trained or evaluated so it changes its behavior to get a higher score, for example, during alignment training, then metagaming can get reinforced.
During RL with GRPO a model generates multiple responses to a single task, and the ones that score above the mean of their group of model responses are getting reinforced, while the ones that score below it are getting negative reinforcement.
Let's explore a simple model that assumes that during RL an LLM might start solving each task in an aligned way, and sometimes it might resort to metagaming. In this simplified model metagaming might either increase or reduce reward for a task.
It might improve the score because the model might act more aligned during alignment training or reward hack instead of genuinely solving a coding task. It might lower the reward, for example, because it spends tokens on metagaming instead of solving the task, or monitors might penalize it for verbalizing eval awareness.
The math of metagaming reinforcement
Let's formalize our intuitions
The model tries to complete each task in an aligned way.[1] This aligned attempt succeeds with probability p. If the model struggles, it either gives up or tries to metagame with probability π.
f - the share of tasks that can be exploited
s - the chance that metagaming works on an exploitable a task
κ - the cost of a metagaming attempt that does not work, for example wasted tokens, lost partial score, or a monitor penalty.
Strategy after struggling with an aligned attempt
score on an exploitable task
Score on a non-exploitable task
Metagaming
s − (1 − s)κ
−κ
Give up
0
0
Whether RL reinforces metagaming or giving up, depends on whether the average score across all metagaming attempts is higher than the score of giving up (which is 0).
That average gain of a metagaming attempt is:
G = f × s − (1 − f × s) × κ
f × s is what metagaming wins on exploitable tasks. (1 − f × s) × κ is the cost of failed metagaming attempts.
If G is above 0, RL makes metagaming more likely throughout training.
If G is below 0, RL makes metagaming less likely.
If a failed attempt to use metagaming doesn't have a cost, every exploitable task reinforces metagaming behavior.
If κ = 0, so the penalty for an unsuccessful use of metagaming is 0, G = f × s. It is above 0 whenever at least one task can be exploited, and on average, RL does not decrease the probability of metagaming behavior, as even rare exploitable tasks reinforce it.
If κ = 0, but no task can be exploited, the G is 0, so metagaming stays at the level it had at the start of RL. It does not decline.
Factors affecting the speed of meatgaming growth
The speed of growth depends on three things:
how often aligned non-metagaming attempts fail (1 − p),
the average gain of a metagaming attempt (G),
how likely metagaming to begin with.
The number of training steps until metagaming becomes a common strategy for a model (a model attempts it in 50% of runs) is about:
steps ≈ 1 / (learning rate × starting probability of metagaming × (1 − p) × G)[2]
In plain words, if any one of these factors increases twofold, metagaming becomes a common strategy for a model twice as fast. This has three consequences:
If metagaming improves scores 10 times more frequently, metagaming becomes a common strategy 10 times sooner.
When aligned attempts to solve a task fail more often, and the only two ways to finish a task are either to fall back to metagaming or give up, the model gets more chances to learn that metagaming is a viable strategy.
If pretraining makes metagaming twice as likely at the start of RL, it takes half as long to become a common strategy.
If the cost of a failed metagaming attempt is high, it can penalize metagaming behavior
If a failed metagaming attempt costs something, its prevalence grows only when the gain from a successful metagaming beats the cost of an unsuccessful one. For small costs, the rule is:
f × s > κ/(1+k)
This essentially means that the share of attempts where metagaming works must be larger than the cost of an attempt that fails.
The task difficulty, or pass rate of aligned attempts p does not affect this formula. Task difficulty only affects how fast metagaming grows, but not whether it grows.
Here's a widget that demonstrates this model with two modes: 1 - Simulation of an averaged equation for expected rate of metagaming rate throughout RL.
2 - Simulation of divergence among RL runs from the predicted curve for a GRPO-based run
The fact that if metagaming is reinforced by RL if it helps a model to get a higher score is not a discovery. Any such action would be reinforced. The value of our model is that it models which properties of a model and a training dataset lead to increased metagaming behavior, and it makes predictions that are testable on real RL runs.
Predictions for real models
Standard RLVR gives metagaming no cost in as. Most RL with verifiable rewards uses pass/fail graders. There, a failed metagaming attempt scores 0, the same as giving up. The model then predicts that every vulnerability to metagaming reinforces it throughout training. RL graders with partial credit, length penalties or monitors can make κ > 0.
A non-exploitable RL run keeps metagaming at its starting level. In an RL run with no exploitable tasks, in which the only possible option to score reward is to actually find the answer, metagaming should stay at its pre-RL level. It should neither decline nor increase if we assume that metagaming doesn't get penalized in any way.
The more exploitable tasks, the faster metagaming grows. In RL datasets that differ only in the share of exploitable tasks, metagaming should become a common strategy in the dataset with more exploitable tasks faster proportionally to the share of exploitable tasks.
Harder tasks should lead to faster growth of metagaming. In RL dataset with the same share of exploitable tasks, the hardest dataset should lead to a faster rise of metagaming rate.
The higher pre-RL metagaming level leads to faster rise of metagaming. Text about graders and evaluations in the pretraining data may set the starting level of metagaming.
Limits
This posts assume that metagaming is a single capability shared across different tasks. It treats metagaming as a strategy that transfers across tasks. Whether it is the case, is unclear and a subject to debate.
Models became more capable throughout RL. In real RL, a model that solves tasks in an aligned way or metagames, becomes better at either job over time, which affects the rate at which the metagaming becomes a more common strategy.
The model describes an average run. Sampling noise makes individual RL runs significantly diverge from the theoretical run, which limits the explaining power of RL experiments.
The strict math is follows: Assumptions. The learning rate during RL η, the pass rate for an aligned answer p, and f, s and κ all stay constant. The update is plain gradient ascent on the expected reward, applied to the log-odds of metagaming:
Here π is the probability of resorting to metagaming conditioned on a failed aligned attempt.
1. The average gain of one metagaming attempt
2. The expected score per task
3. The training dynamics
4. The exact solution. Write c = η(1 − p)G. Separate the variables, and use 1/(π(1 − π)) = 2 + e^z + e^(−z). Then integrate:
Using π instead of z:
The number of steps to move from the starting probability π₀ to any level π₁ is then:
This formula works for growth (G > 0, π₁ > π₀) and for decline (G < 0, π₁ < π₀). It has no closed form for π(t) as a function of time, so the widget solves for π numerically.
5. Steps to metagaming as a common strategy (π₁ = 1/2). F(1/2) = 0, so:
For a small starting probability, the top line is about 1/π₀ + 2 ln(1/π₀) − 1, so:
So the formula used in the main text is the first term of the formula. It is short by a relative error of about 2π₀ ln(1/π₀). That is 9% for π₀ = 0.01 and 1.4% for π₀ = 0.001.
Why it's important to understand how metagaming is amplified during RL
Metagaming is a capability of LLMs that encompasses eval awareness, reasoning about its grader during RL, or oversight in general, tends to rise during RL(OpenAI), but there is little published work exploring the reasons for this.
This post explores which features of an RL training process cause the increase of metagaming behavior and how different parameters of the model and RL dataset affect this capability.
The authors of the original post on metagaming showed that its different facets (eval awareness, grader reasoning etc.) rise together throughout RL, so in this post we assume that it is a unified capability. In reality, this might be an oversimplification, as reward hacking on coding tasks doesn't necessarily increases the rate of alignment faking.
The model of metagaming reinforcement during RL
A model of metagaming reinforcement
We assume that if RL tasks are perfectly metagaming-proof, which means that the only way to get a high reward on them is to solve the task, and no amount of thinking about the grader or attempts to exploit it would help, then metagaming behavior doesn't get reinforced on this task.
If metagaming helps in some way to complete a task: for example, if during RL a model might gain access to tests that grade its output or some cues in the prompt hint the model that it is being trained or evaluated so it changes its behavior to get a higher score, for example, during alignment training, then metagaming can get reinforced.
During RL with GRPO a model generates multiple responses to a single task, and the ones that score above the mean of their group of model responses are getting reinforced, while the ones that score below it are getting negative reinforcement.
Let's explore a simple model that assumes that during RL an LLM might start solving each task in an aligned way, and sometimes it might resort to metagaming. In this simplified model metagaming might either increase or reduce reward for a task.
It might improve the score because the model might act more aligned during alignment training or reward hack instead of genuinely solving a coding task. It might lower the reward, for example, because it spends tokens on metagaming instead of solving the task, or monitors might penalize it for verbalizing eval awareness.
The math of metagaming reinforcement
Let's formalize our intuitions
The model tries to complete each task in an aligned way.[1] This aligned attempt succeeds with probability p. If the model struggles, it either gives up or tries to metagame with probability π.
Strategy after struggling with an aligned attempt
score on an exploitable task
Score on a non-exploitable task
Metagaming
s − (1 − s)κ
−κ
Give up
0
0
Whether RL reinforces metagaming or giving up, depends on whether the average score across all metagaming attempts is higher than the score of giving up (which is 0).
That average gain of a metagaming attempt is:
G = f × s − (1 − f × s) × κ
f × s is what metagaming wins on exploitable tasks. (1 − f × s) × κ is the cost of failed metagaming attempts.
If a failed attempt to use metagaming doesn't have a cost, every exploitable task reinforces metagaming behavior.
If κ = 0, so the penalty for an unsuccessful use of metagaming is 0, G = f × s. It is above 0 whenever at least one task can be exploited, and on average, RL does not decrease the probability of metagaming behavior, as even rare exploitable tasks reinforce it.
If κ = 0, but no task can be exploited, the G is 0, so metagaming stays at the level it had at the start of RL. It does not decline.
Factors affecting the speed of meatgaming growth
The speed of growth depends on three things:
The number of training steps until metagaming becomes a common strategy for a model (a model attempts it in 50% of runs) is about:
steps ≈ 1 / (learning rate × starting probability of metagaming × (1 − p) × G)[2]
In plain words, if any one of these factors increases twofold, metagaming becomes a common strategy for a model twice as fast. This has three consequences:
If the cost of a failed metagaming attempt is high, it can penalize metagaming behavior
If a failed metagaming attempt costs something, its prevalence grows only when the gain from a successful metagaming beats the cost of an unsuccessful one. For small costs, the rule is:
f × s > κ/(1+k)
This essentially means that the share of attempts where metagaming works must be larger than the cost of an attempt that fails.
The task difficulty, or pass rate of aligned attempts p does not affect this formula. Task difficulty only affects how fast metagaming grows, but not whether it grows.
Here's a widget that demonstrates this model with two modes:
1 - Simulation of an averaged equation for expected rate of metagaming rate throughout RL.
2 - Simulation of divergence among RL runs from the predicted curve for a GRPO-based run
The fact that if metagaming is reinforced by RL if it helps a model to get a higher score is not a discovery. Any such action would be reinforced. The value of our model is that it models which properties of a model and a training dataset lead to increased metagaming behavior, and it makes predictions that are testable on real RL runs.
Predictions for real models
Limits
To be honest, the fact that pre-RL models mostly start with trying non-metagaming approach is a strong assumption. For example, it seems like a big chunk of Olmo 3's eval awareness stems from its SFT generated by DeepSeek R1
The strict math is follows:
Assumptions. The learning rate during RL η, the pass rate for an aligned answer p, and f, s and κ all stay constant. The update is plain gradient ascent on the expected reward, applied to the log-odds of metagaming:
Here π is the probability of resorting to metagaming conditioned on a failed aligned attempt.
1. The average gain of one metagaming attempt
2. The expected score per task
3. The training dynamics
4. The exact solution. Write c = η(1 − p)G. Separate the variables, and use 1/(π(1 − π)) = 2 + e^z + e^(−z). Then integrate:
Using π instead of z:
The number of steps to move from the starting probability π₀ to any level π₁ is then:
This formula works for growth (G > 0, π₁ > π₀) and for decline (G < 0, π₁ < π₀). It has no closed form for π(t) as a function of time, so the widget solves for π numerically.
5. Steps to metagaming as a common strategy (π₁ = 1/2). F(1/2) = 0, so:
For a small starting probability, the top line is about 1/π₀ + 2 ln(1/π₀) − 1, so:
So the formula used in the main text is the first term of the formula. It is short by a relative error of about 2π₀ ln(1/π₀). That is 9% for π₀ = 0.01 and 1.4% for π₀ = 0.001.