An actor-critic method learns two things at once: an actor, which is the policy that chooses actions, and a critic, which estimates a value function and tells the actor how good its recent actions were. The critic replaces noisy Monte Carlo returns with a learned estimate, which lowers the variance of policy gradient updates.
One-step actor-critic
After each transition , the critic computes the TD error and both networks update:
Here is the critic with parameters , is the actor, is the discount factor and are step sizes. The TD error is a one-sample estimate of the advantage: positive if things went better than the critic expected.
Worked example
The critic currently says and . The agent takes action , receives , and . Then . With a tabular critic and , moves to . The actor raises the log-probability of in by a step proportional to 1.7. Had the reward been , would be and would become slightly less likely.
Variants
- A2C and A3C: synchronous and asynchronous versions that use n-step returns and many parallel environments, with an entropy bonus.
- GAE-based: the critic feeds an exponentially weighted advantage estimate; this is the standard setup inside PPO.
- Off-policy actor-critic: methods such as soft actor-critic learn a Q-function critic from a replay buffer, which makes them far more sample efficient for continuous control.
The bias-variance trade-off
A critic is never exact, so the actor's gradient becomes biased in exchange for much lower variance. If the critic is poor, the actor optimises the wrong signal; if the actor changes quickly, the critic chases a moving target. Separate learning rates, with the critic usually learning faster, help keep the two in step.
Why it matters
Most practical deep RL, from robotics to the PPO setups used to fine-tune language models with a value head, is some form of actor-critic. Knowing that the critic is a learned, fallible estimate explains many training failures: a value head that lags behind the policy gives misleading advantages, and the policy follows them.
Related terms
- Policy gradient
- TD error
- Advantage function
- Generalized advantage estimation (GAE)
- PPO (Proximal Policy Optimization)
- Value function
Sources
- Vijay R. Konda, John N. Tsitsiklis. Actor-Critic Algorithms, 1999. proceedings.neurips.cc
- Volodymyr Mnih, Adrià Puigdomènech Badia, Mehdi Mirza, Alex Graves, Timothy P. Lillicrap, Tim Harley, David Silver, Koray Kavukcuoglu. Asynchronous Methods for Deep Reinforcement Learning, 2016. arxiv.org
- Richard S. Sutton, Andrew G. Barto. Reinforcement Learning: An Introduction (2nd edition), 2018. incompleteideas.net