Actor-critic combines a policy (actor) with a value function (critic) for stable, low-variance policy gradient learning.
Two networks:
- Actor — the policy. Updated via Policy Gradient Theorem
- Critic or — evaluates the actor's actions. Updated via Miscoral Difference Learning
Update loop:
- Actor takes action , observes
- Critic computes TD error:
- Update critic:
- Update actor:
The TD error serves as an estimate of the Advantage Function .
Why actor-critic is better than pure policy gradient:
- REINFORCE needs full episodes and has high variance
- The critic provides a low-variance baseline (bootstrapping via TD)
- Can update at every step (online), not just at episode end
Variants:
- A2C (Advantage Actor-Critic): synchronous, uses Advantage Function instead of raw TD error
- A3C: asynchronous parallel actors for faster training
- Proximal Policy Optimization (PPO) : clips the policy ratio to prevent destructive updates — the default for RLHF
See also: REINFORCE , Advantage Function , Proximal Policy Optimization (PPO)