Actor-critic methods combine the policy-based and value-based worlds: an actor parameterizes the policy and is trained by policy gradient, while a critic learns a value function and supplies a low-variance estimate of the advantage in place of the noisy Monte-Carlo return used by REINFORCE. This is the workhorse structure underneath Proximal Policy Optimization (PPO) and the off-policy methods in Advanced Policy Optimization.

The Actor-Critic Decomposition

Recall the advantage form of the policy gradient: REINFORCE plugs in the sampled return for , which is unbiased but high-variance. Actor-critic instead learns the value function (the critic) and uses it to form the advantage:

  • Actor (): the policy, updated by the policy gradient with the critic’s advantage as the weight.
  • Critic (): a value estimate (or ), updated by temporal-difference (TD) learning toward a bootstrapped target.

The critic acts as a learned, state-dependent baseline (see baselines in Policy Gradient), which is exactly what drives the variance down.

The Critic as a Learned Baseline

Using as the baseline, the one-step advantage estimate is the TD error: when , so is a valid (unbiased-in-the-limit) advantage signal. The critic itself is trained by regression onto its bootstrap target:

TD vs. Monte-Carlo: The Bias-Variance Tradeoff

The advantage can be estimated with different horizons of bootstrapping, and this is the central design axis:

  • Monte-Carlo (): uses the full sampled return. Unbiased but high-variance (accumulates noise over the whole episode), and needs complete episodes.
  • One-step TD (): bootstraps immediately. Low-variance but biased whenever ; works online.
  • -step (): interpolates. Larger means more variance, less bias.

Generalized Advantage Estimation (GAE)

GAE (Schulman et al., 2016) does not pick a single ; it takes an exponentially weighted average of all -step advantage estimators, controlled by . Define the TD residual . Then Derivation. Let be the -step advantage. One can show it telescopes into TD residuals: . GAE is the geometric (-weighted) average of these: where the last step swaps the order of summation and sums the geometric series in . The two limits recover the endpoints of the tradeoff: Typical values are , . GAE is computed by a cheap backward recursion: .

A2C (Advantage Actor-Critic)

A2C is the synchronous advantage actor-critic. The actor maximizes , the critic regresses toward the return, and an entropy bonus keeps the policy from collapsing.

initialize actor theta, critic w
for each iteration:
    collect a batch of transitions using pi_theta (n parallel envs)
    compute returns / advantages (e.g. GAE) with critic V_w
    normalize advantages
    actor loss   = -mean( log pi_theta(a|s) * A_hat ) - c_ent * entropy
    critic loss  = mean( (V_w(s) - return)^2 )
    take a gradient step on (actor loss + c_v * critic loss)

Key benefits: the advantage function reduces variance versus REINFORCE, and bootstrapping the critic gives a usable signal without waiting for full episodes.

A3C (Asynchronous Advantage Actor-Critic)

A3C (Mnih et al., 2016) predates A2C and uses multiple asynchronous workers: each worker holds its own environment and a copy of the parameters, computes gradients on its own rollout, and pushes them to a shared global network asynchronously (Hogwild-style updates without locks).

  • Decorrelated data: many workers in different parts of the state space break the temporal correlation of samples, playing the role that experience replay plays in DQN, so no replay buffer is needed.
  • Speed and exploration: parallel actors explore simultaneously and reduce overfitting to any single environment instance.

Synchronous vs. Asynchronous

Why A2C replaced A3C in practice

A3C’s asynchronous updates apply stale gradients: a worker computes a gradient against an old parameter copy, so by the time it lands the global params have moved. A2C makes the same idea synchronous: a coordinator waits for all workers, averages their gradients, and applies one clean update. This removes the staleness/noise, is more GPU-friendly (one big batched forward pass), and empirically matches or beats A3C. The asynchrony in A3C was a benefit mainly on CPU clusters, not a fundamental algorithmic advantage.

IMPALA

IMPALA scales actor-critic to many distributed actors that only send trajectories (not gradients) to a central learner. Because actors lag behind the learner’s policy, the data is slightly off-policy, so IMPALA corrects it with V-trace, a truncated importance-sampling correction on the value targets. This decoupling of acting from learning is what makes it throughput-efficient at scale.

Critic bias feeds the actor

The critic is only an approximation, so its errors bias the advantage and therefore the policy gradient. Keep the critic well-fit (multiple value epochs, target normalization) and lean toward smaller only when variance, not bias, is the bottleneck.