Privileged information improves value estimation
With real TD(0) learning in the browser: a critic that also sees a privileged, simulation-only variable predicts returns more accurately, and produces lower-variance advantage estimates, than a critic limited to the actor's inputs.
What it demonstrates
With real TD(0) learning in the browser: a critic that also sees a privileged, simulation-only variable predicts returns more accurately, and produces lower-variance advantage estimates, than a critic limited to the actor's inputs.
How it works
Toy environment: each episode samples a commanded speed c and a hidden surface friction μ, both uniform on [0.2, 1]. For up to 30 steps the walker achieves min(c, 1.2μ) plus noise, earns 1 − 2|c − v| − max(0, c − 1.2μ), and falls (reward −2, episode ends) with probability 0.005 + 0.1·max(0, c − 1.2μ). The policy is fixed.
Two linear critics with quadratic polynomial features are trained by TD(0) with a normalised step size on exactly the same transitions. One sees (c, time remaining), the other also sees μ. Both are evaluated on 250 held-out episodes: value MSE against the realised discounted return (γ = 0.95), and the variance of the one-step TD error δ, which is the simplest advantage estimate. Dashed lines show the best achievable error for each feature set (least-squares fit on 3,000 episodes).
Adjustable parameters
- Learning rate α (0.005–0.3)
- Episodes per update (1–100)
Known limitations
- A toy problem with a fixed policy and linear critics, not Asimov's environment or networks.
- It shows the value-estimation benefit only. It says nothing about whether the actor itself improves; that is the separate partial-observability question.
- Unit-tested with fixed seeds (tests/ch09-actor-critic.test.ts): privileged value MSE < 0.8× the actor-input critic after 3,000 TD episodes, and < 0.5× for the least-squares fits.
Equations
Core update rule
for (const st of sampleEpisode(rng)) {
tdUpdate(actorCritic, st, gamma, alpha); // features of (c, tau)
tdUpdate(privCritic, st, gamma, alpha); // features of (c, tau, mu)
}
const a = evaluateCritic(actorCritic, test, gamma); // value MSE, Var(delta)
const p = evaluateCritic(privCritic, test, gamma);Explained in Chapter 9: Actor-Critic