Shared Actors Need Not Share Critics

Effects of Value Mismatch in Parallel Reinforcement Learning

Zhenya Liu1*, Yang Meng1, Zhuokai Zhao1, Xuefeng Liu2† & Yuxin Chen1†*

1University of Chicago · 2University of Florida

Equal supervision. *Corresponding authors.

Correspondence: zhenya@uchicago.edu

TL;DR

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.

Method

Condition only the critic on a logged environment index, while keeping the actor, sampling protocol, and PPO pipeline shared.

Strongest result

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

From sampled policy updates to value mismatch

Policy gradient optimizes the expected return J(θ)=Eτπθ[G(τ)]J(\theta)=\mathbb E_{\tau\sim\pi_\theta}[G(\tau)] by updating a stochastic policy from sampled trajectories. A sampled update is proportional to (GtBt)θlogπθ(atst)(G_t-B_t)\nabla_\theta\log\pi_\theta(a_t\mid s_t). 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?

(a)

Shared baseline

qE=qH=12q_E=q_H=\tfrac12 in this illustration

VEπ(s)V_E^\pi(s)environment E target
Vˉπ(s)\bar V^\pi(s)one marginalized value
VHπ(s)V_H^\pi(s)environment H target
eEπ(s)=VEπ(s)Vˉπ(s)>0e_E^\pi(s)=V_E^\pi(s)-\bar V^\pi(s)>0
eHπ(s)=VHπ(s)Vˉπ(s)<0e_H^\pi(s)=V_H^\pi(s)-\bar V^\pi(s)<0

Bshared(s)=Vˉπ(s)=12 ⁣[VEπ(s)+VHπ(s)]B^{\mathrm{shared}}(s)=\bar V^\pi(s)=\tfrac12\!\left[V_E^\pi(s)+V_H^\pi(s)\right]

(b)

Conditional baseline

the same two environment values

Bcond(s,E)=VEπ(s)B^{\mathrm{cond}}(s,E)=V_E^\pi(s)environment E centered
Bcond(s,H)=VHπ(s)B^{\mathrm{cond}}(s,H)=V_H^\pi(s)environment H centered
VEπ(s)Bcond(s,E)=0V_E^\pi(s)-B^{\mathrm{cond}}(s,E)=0
VHπ(s)Bcond(s,H)=0V_H^\pi(s)-B^{\mathrm{cond}}(s,H)=0

Bcond(s,z)=Vzπ(s)B^{\mathrm{cond}}(s,z)=V_z^\pi(s)

Shared baseline

Bshared(π)=12VE(π)+12VH(π)B^{\mathrm{shared}}(\pi)=\tfrac12V_E(\pi)+\tfrac12V_H(\pi)

E[π(a)]=0.340\mathbb E[\pi(a^\star)]=0.340
Shared baseline policy simplex at update 0. Mean optimal-arm probability 0.340.

Conditional baseline

Bcond(π,z)=Vz(π)B^{\mathrm{cond}}(\pi,z)=V_z(\pi)

E[π(a)]=0.340\mathbb E[\pi(a^\star)]=0.340
Conditional baseline policy simplex at update 0. Mean optimal-arm probability 0.340.

Paper preset: η=2\eta=2, 100 updates, 4,000 paired trajectories, q(E)=q(H)=12q(E)=q(H)=\tfrac12, and π0=(0.34,0.33,0.33)\pi_0=(0.34,0.33,0.33). 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.

Value mismatch as a baseline shift. At the same critic input ss, a critic without the environment identity predicts the marginalized value Vˉπ(s)=zqzπ(s)Vzπ(s)\bar V^\pi(s)=\sum_z q_z^\pi(s)V_z^\pi(s). Its sampled advantage in environment zz is shifted by ezπ(s)=Vzπ(s)Vˉπ(s)e_z^\pi(s)=V_z^\pi(s)-\bar V^\pi(s). Conditioning on zz instead centers each environment at its own value target.

Theory

Same mean update. Different sampled paths.

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.

Value mismatch identity
Atshared=Atcond+eZtπtA^{\mathrm{shared}}_t=A^{\mathrm{cond}}_t+e_{Z_t}^{\pi_t}withezπ=VzπVˉπe_z^\pi=V_z^{\pi}-\bar V^{\pi}

Population projection. Without environment identity, the squared-error optimum is Vˉπ(s)=E[GS=s]=zqzπ(s)Vzπ(s)\bar V^\pi(s)=\mathbb E[G\mid S=s]=\sum_z q_z^\pi(s)V_z^\pi(s). The shared critic's value prediction can therefore be statistically correct while remaining systematically miscentered within each environment.

Proposition 1 · why convergence first

A common destination and a rate for time averages

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 O(logT/T)O(\log T/T).

Pr ⁣(limtπtB(a)=1)=1\Pr\!\left(\lim_{t\to\infty}\pi_t^B(a^\star)=1\right)=1

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 η>0\eta>0, so the later path effects are not artifacts of a special initialization or a small step size.

Proposition 2 · single-environment control

Oracle value baseline ratchet versus No baseline drawdowns

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 π(a)\pi(a^\star). If at least one rival has positive reward, the No baseline process instead makes strict drawdowns infinitely often almost surely.

Oracle value baseline: Pr ⁣(TV< tTV: πt+1V(a)>πtV(a))=1\Pr\!\left(\exists T_V<\infty\ \forall t\ge T_V:\ \pi_{t+1}^V(a^\star)>\pi_t^V(a^\star)\right)=1No baseline: Pr ⁣(πt+10(a)<πt0(a) infinitely often)=1\Pr\!\left(\pi_{t+1}^0(a^\star)<\pi_t^0(a^\star)\ \text{infinitely often}\right)=1

The animation is one reproducible 100-update prefix with r=(1,0.8), π0=(0.5,0.5), η=1r=(1,0.8),\ \pi_0=(0.5,0.5),\ \eta=1, 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 aa^\star.

Proposition 3

Conditional baseline ratchet versus persistent Shared baseline drawdowns

Under the Conditional baseline, every sampled branch eventually raises π(a)\pi(a^\star). If optimal-arm rewards differ across environments, the Shared baseline process instead makes strict backward steps infinitely often while still converging.

Conditional baseline: Pr ⁣(Tc< tTc: πt+1c(a)>πtc(a))=1\Pr\!\left(\exists T_c<\infty\ \forall t\ge T_c:\ \pi_{t+1}^c(a^\star)>\pi_t^c(a^\star)\right)=1Shared baseline: Pr ⁣(πt+1s(a)<πts(a) infinitely often)=1\Pr\!\left(\pi_{t+1}^s(a^\star)<\pi_t^s(a^\star)\ \text{infinitely often}\right)=1

The animation is one reproducible 100-update prefix with qE=qH=12, rE=(1,0.8), rH=(0.2,0), π0=(0.5,0.5), η=1q_E=q_H=\tfrac12,\ r_E=(1,0.8),\ r_H=(0.2,0),\ \pi_0=(0.5,0.5),\ \eta=1, 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.

Before a sign reversal. Near the optimal softmax corner, raising the value bar can already reduce expected one-step probability progress: the frequent optimal-arm update is attenuated, while further suppression of rare rival samples is increasingly saturated.

Variance lens

What variance can—and cannot—explain

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.

Environment and action branch updates

Realized process

one sampled branchnext policyfuture samplingsampled path

Branch identity, sign, and feedback are retained.

Variance certificate

all possible branchesaggregatetrace covarianceone-step bound

Useful locally, but branch identity and feedback are compressed away.

One exact branch from Appendix A

Lower local variance, yet the sampled update moves away from aa^\star

Two environments are equally likely, with rE=(1,0.8,0)r_E=(1,0.8,0) and rH=(0.5,0.4,0)r_H=(0.5,0.4,0). From π0=(0.5,0.4,0.1)\pi_0=(0.5,0.4,0.1), sample branch (E,a2)(E,a_2). Both baselines are recomputed exactly at this policy.

πλ(a)\pi_\lambda(a^\star)
within-update interpolation λ\lambda

Same sampled branch (E,a2)(E,a_2), η=10\eta=10. λ=0\lambda=0 before the update and λ=1\lambda=1 after it; this is not a multistep training curve.

Exact minimum variance
BEmvB_E^{\mathrm{mv}}
0.704
initial trCov(g^)\operatorname{tr}\operatorname{Cov}(\widehat g)
0.0423
rE(a2)BEmvr_E(a_2)-B_E^{\mathrm{mv}}
+0.096

π(a)\pi(a^\star): 0.5000.279

Ordinary conditional value
BEcond=VEπB_E^{\mathrm{cond}}=V_E^\pi
0.820
initial trCov(g^)\operatorname{tr}\operatorname{Cov}(\widehat g)
0.0472
rE(a2)BEcondr_E(a_2)-B_E^{\mathrm{cond}}
−0.020

π(a)\pi(a^\star): 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

Sampled policy paths under three baselines

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.

Simulating paired trajectories…

Experiments

Mechanism checks and benchmark results

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

Where the environment index enters

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.

observation sactor network
shared across environments
policy π(a|s)z is not an actor input
(a)

FiLM critic

Feature modulation, one shared readout

observation sshared critic features h(s)
logged index zlookup czshared γ/β generators
h~z=h(s)(1+γz)+βz\widetilde h_z=h(s)\odot(1+\gamma_z)+\beta_zone shared value headVFiLM(s,z)
(b)

Multihead critic

Shared features, indexed linear readout

observation sshared critic features h(s)
logged index zhead 1head zhead L
Vmh(s,z)=wzh(s)+bzV_{\mathrm{mh}}(s,z)=w_z^\top h(s)+b_z

The index is training-only. At deployment the critic and z are discarded, leaving the same shared actor.

CartPole: controlled mechanism identification

CartPole dynamics and learned value comparison
The same state and action lead to different futures under two gravity values; environment-conditioned value predictions separate by gravity, while the shared critic's value prediction lies between them. Mean ± 1 s.d. over 20 seeds.
Two by five CartPole study comparing return, value loss, and advantages for shared, informative multihead, constant-index multihead, and per-level-bias critics under identical and heterogeneous gravity levels
Controlled identification of the CartPole mechanism, mean ± 1 standard error over 20 seeds. The top row uses two labeled levels with identical dynamics (g = 10); the bottom row uses g ∈ {10, 50}. Columns show mean return, value loss for levels 0 and 1, and the corresponding mean raw GAE advantages. With identical dynamics, all variants behave similarly. Under heterogeneous gravity, the multihead critic first pays a larger fitting cost on the hard level, then recenters its advantage and approaches a return of 200. Constant-index routing closely tracks the shared critic, whereas one learned scalar bias per level provides only a partial correction.
01 · Symptom

One value target leaves the hard level off center.

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.

02 · Transient fitting cost

Conditional values must first be learned.

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.

03 · Re-centering

The benefit appears after the fitting transient subsides.

As the hard head catches up, its advantage returns toward zero first and the multihead policy reaches the highest return.

04 · Attribution

Useful level information, not extra parameters.

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.

From mechanism to continuous control

BipedalWalker terrain and return curvesMuJoCo returns and raw advantage heatmaps
Left: BipedalWalker test return on 100 unseen terrains and the 5× parameter control, mean ± 1 s.d. over 10 seeds. Right: MuJoCo with ten body-mass levels; training returns and raw GAE advantage means, averaged over 30 seeds.

Application scale: Procgen

Procgen learning curves for eight games
Evaluation return on the 200 pinned training levels for eight Procgen games over 25M environment steps. Curves show mean ± 1 s.d. over 10 seeds.
Held-out Procgen return on unseen levels. Final checkpoints are evaluated for one episode on each of 600 held-out levels per game; entries are mean ± 1 s.d. over 10 training seeds. Bold marks the best unrounded mean in each row.
GameShared criticFiLM criticMultihead criticMultihead + PopArt
Bigfish1.87 ± 0.172.88 ± 0.572.99 ± 0.613.56 ± 1.27
Bossfight4.44 ± 2.567.44 ± 0.518.97 ± 0.298.11 ± 0.82
Caveflyer1.08 ± 0.161.90 ± 0.232.65 ± 0.431.87 ± 0.31
Chaser0.95 ± 0.260.94 ± 0.191.32 ± 0.350.75 ± 0.17
Climber1.40 ± 0.191.74 ± 0.272.75 ± 0.222.13 ± 0.27
Coinrun5.76 ± 0.296.35 ± 0.286.80 ± 0.376.46 ± 0.29
Dodgeball0.98 ± 0.050.91 ± 0.141.10 ± 0.201.32 ± 0.18
Fruitbot7.39 ± 1.588.95 ± 0.708.14 ± 1.248.31 ± 1.01
Heist0.24 ± 0.060.28 ± 0.050.20 ± 0.030.24 ± 0.06
Jumper2.23 ± 0.132.36 ± 0.152.32 ± 0.122.35 ± 0.62
Leaper2.81 ± 0.363.02 ± 0.243.25 ± 0.463.09 ± 0.28
Maze1.23 ± 0.131.33 ± 0.131.49 ± 0.181.49 ± 0.15
Miner0.53 ± 0.120.58 ± 0.080.80 ± 0.140.77 ± 0.13
Ninja3.39 ± 0.213.98 ± 0.154.39 ± 0.294.10 ± 0.41
Plunder2.37 ± 0.332.38 ± 0.182.28 ± 0.182.42 ± 0.29
Starpilot7.96 ± 1.0610.22 ± 1.1113.10 ± 1.4614.98 ± 2.35
Normalized held-out returns (%)100.0 ± 19.8121.2 ± 27.9140.8 ± 47.1133.3 ± 41.7
Additional conditioning-location ablations
BipedalWalker training return ablations
Training return.
BipedalWalker unseen test return ablations
Unseen test return.

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

A mechanism and a minimal intervention

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.