Problem
The same behavior may be desirable across environments even when their value targets differ. A shared critic averages those targets and miscenters the sampled advantages used for learning.
Effects of Value Mismatch in Parallel Reinforcement Learning
TL;DR
The same behavior may be desirable across environments even when their value targets differ. A shared critic averages those targets and miscenters the sampled advantages used for learning.
Condition only the critic on a logged environment index, while keeping the actor, sampling protocol, and PPO pipeline shared.
On held-out Procgen levels, a multihead critic improves aggregate normalized return by 40.8% across 16 games (600 unseen levels per game). On BipedalWalker, it raises final mean return from 90.7 to 190.4 on 100 unseen terrains.
Motivation
Policy gradient optimizes the expected return by updating a stochastic policy from sampled trajectories. A sampled update is proportional to . An action-independent baseline cancels from the expected gradient, but it still determines the sign and size of each realized step; that step changes the policy that generates the next sample.
Parallel reinforcement learning commonly pools rollouts from many environments to train one actor. This is natural when the same behavior is desirable across environments, even if their dynamics and returns differ.
The critic solves a different prediction problem: the correct value can depend on an environment identity that is hidden from the actor but logged during rollout collection. At its population target, a shared critic averages these distinct values and thereby shifts the sampled advantages within each environment.
What do these shifts do to the finite sample optimization path when the expected policy-gradient update agrees at the same policy?
in this illustration
the same two environment values
Paper preset: , 100 updates, 4,000 paired trajectories, , and . Each cloud shows the sampled policy distribution; faint paths trace representative runs and the solid path traces the mean policy. Both panels reuse the same environment and action uniforms.
Theory
The shared critic's value prediction is not necessarily noisy or poorly trained. Under squared error it is the best population prediction available without environment identity. The issue is how its systematic offset is allocated across realized environment–action samples.
Population projection. Without environment identity, the squared-error optimum is . The shared critic's value prediction can therefore be statistically correct while remaining systematically miscentered within each environment.
For finite deterministic bandits with a common strict optimal arm, the No baseline, Shared baseline, and Conditional baseline processes converge almost surely to the same arm, and their time-averaged reward gaps are .
The result has two roles. First, it fixes a common destination so that the finite-horizon route becomes the object of interest. Second, its proof supplies near-optimal entry and infinite exploration for Propositions 2 and 3. It holds from every finite-logit initialization and for every fixed finite , so the later path effects are not artifacts of a special initialization or a small step size.
Consider a deterministic finite bandit with finite initial logits, a unique optimal arm, and any fixed learning rate. Under the Oracle value baseline, there is almost surely a finite time after which every realized update strictly increases . If at least one rival has positive reward, the No baseline process instead makes strict drawdowns infinitely often almost surely.
The animation is one reproducible 100-update prefix with , and seed 1591. The Oracle value baseline path rises at every displayed update; the No baseline path has 33 strict drawdowns. This illustrates the branch contrast rather than typical performance: the theorem, not the finite prefix, supplies the infinitely-often statement, and both processes still converge almost surely to .
Under the Conditional baseline, every sampled branch eventually raises . If optimal-arm rewards differ across environments, the Shared baseline process instead makes strict backward steps infinitely often while still converging.
The animation is one reproducible 100-update prefix with , and seed 2257. The environments have the same action gap and differ only by an additive reward level. The Conditional baseline path rises at every displayed update; the Shared baseline path has 61 strict drawdowns. Proposition 3, not this selected finite prefix, supplies the infinitely-often claim and the common asymptotic destination.
Variance lens
Variance is a valid aggregate certificate, not a sufficient explanation of the sampled path. At a fixed policy it summarizes update vectors that the baseline has already assigned to environment and action branches, but discards which branch is realized and how that update changes future sampling.
Branch identity, sign, and feedback are retained.
Useful locally, but branch identity and feedback are compressed away.
One exact branch from Appendix A
Two environments are equally likely, with and . From , sample branch . Both baselines are recomputed exactly at this policy.
Same sampled branch , . before the update and after it; this is not a multistep training curve.
: 0.5000.279
: 0.5000.547
The smaller covariance is a correct local statistic, but it does not rank this realized branch or the finite-time process. Once updates alter what is sampled next, variance observed later is also one consequence of the evolving branch allocation and feedback—not a complete explanation of why a trajectory is better.
Interactive illustration
The simulation implements the paper's two-environment, three-arm softmax update. The point cloud is the Monte Carlo policy distribution; the solid path is its mean. The curve below is revealed only through the current animation frame.
Experiments
CartPole provides a controlled, end-to-end identification of value mismatch. MuJoCo asks whether the predicted advantage structure persists with continuous states, function approximation, and hidden dynamics variation. BipedalWalker and Procgen then test the practical value and scalability of critic conditioning across procedurally generated environments.
Critic architectures
The actor is shared across environments and never receives z. Both critic designs retain a shared representation; they differ only in how the logged categorical index changes value prediction.
Feature modulation, one shared readout
Shared features, indexed linear readout
The index is training-only. At deployment the critic and z are discarded, leaving the same shared actor.

The shared critic keeps the hard level's mean raw GAE advantage negative while its return remains lower and more variable than the informative multihead critic.
The informative multihead critic initially incurs a larger hard-head loss and a deeper negative advantage shift while its level-specific readout fits the hard target.
As the hard head catches up, its advantage returns toward zero first and the multihead policy reaches the highest return.
A constant-index multihead closely follows the shared critic. A learned scalar bias helps only partially, so a state-independent offset is insufficient in this setting.
| Game | Shared critic | FiLM critic | Multihead critic | Multihead + PopArt |
|---|---|---|---|---|
| Bigfish | 1.87 ± 0.17 | 2.88 ± 0.57 | 2.99 ± 0.61 | 3.56 ± 1.27 |
| Bossfight | 4.44 ± 2.56 | 7.44 ± 0.51 | 8.97 ± 0.29 | 8.11 ± 0.82 |
| Caveflyer | 1.08 ± 0.16 | 1.90 ± 0.23 | 2.65 ± 0.43 | 1.87 ± 0.31 |
| Chaser | 0.95 ± 0.26 | 0.94 ± 0.19 | 1.32 ± 0.35 | 0.75 ± 0.17 |
| Climber | 1.40 ± 0.19 | 1.74 ± 0.27 | 2.75 ± 0.22 | 2.13 ± 0.27 |
| Coinrun | 5.76 ± 0.29 | 6.35 ± 0.28 | 6.80 ± 0.37 | 6.46 ± 0.29 |
| Dodgeball | 0.98 ± 0.05 | 0.91 ± 0.14 | 1.10 ± 0.20 | 1.32 ± 0.18 |
| Fruitbot | 7.39 ± 1.58 | 8.95 ± 0.70 | 8.14 ± 1.24 | 8.31 ± 1.01 |
| Heist | 0.24 ± 0.06 | 0.28 ± 0.05 | 0.20 ± 0.03 | 0.24 ± 0.06 |
| Jumper | 2.23 ± 0.13 | 2.36 ± 0.15 | 2.32 ± 0.12 | 2.35 ± 0.62 |
| Leaper | 2.81 ± 0.36 | 3.02 ± 0.24 | 3.25 ± 0.46 | 3.09 ± 0.28 |
| Maze | 1.23 ± 0.13 | 1.33 ± 0.13 | 1.49 ± 0.18 | 1.49 ± 0.15 |
| Miner | 0.53 ± 0.12 | 0.58 ± 0.08 | 0.80 ± 0.14 | 0.77 ± 0.13 |
| Ninja | 3.39 ± 0.21 | 3.98 ± 0.15 | 4.39 ± 0.29 | 4.10 ± 0.41 |
| Plunder | 2.37 ± 0.33 | 2.38 ± 0.18 | 2.28 ± 0.18 | 2.42 ± 0.29 |
| Starpilot | 7.96 ± 1.06 | 10.22 ± 1.11 | 13.10 ± 1.46 | 14.98 ± 2.35 |
| Normalized held-out returns (%) | 100.0 ± 19.8 | 121.2 ± 27.9 | 140.8 ± 47.1 | 133.3 ± 41.7 |
Separate critics learn more slowly, while supplying the environment index to the actor fails in this setting. These diagnostics isolate where conditioning enters; they are not part of the main intervention.
Scope
The formal results concern finite deterministic bandits with oracle baselines, a fixed environment mixture, and a common strict optimal arm. The deep-RL experiments test whether the mechanism-motivated intervention transfers beyond that abstraction.
The implementation uses finite, recurring environments with stable logged identities. The actor remains shared and does not receive the index in the proposed intervention.