The advantage
The policy gradient theorem weights each action by . Any baseline that depends only on the state can be subtracted, and the natural choice is the state value. The difference is the advantage of action in state : how much better it is than the average action under . With it, the gradient reads An action with positive advantage becomes more likely and one with negative advantage less likely. In a state where all actions are equally good, every advantage is zero and the policy does not move there. The two-state example on the PPO minimal page shows what goes wrong without this: with the trajectory reward as the weight, an action that has no effect on the reward still collapses onto one choice. The advantage is not observed, so it has to be estimated. The TD error of the true value function does this without a model: The identity follows from the definition of : given and , the expected value of is . With the critic in place of , the TD error is a biased estimate of the advantage, and the bias shrinks as the critic improves.One-step actor-critic
One-step actor-critic updates both parameter vectors after every transition, using the same TD error for both:Generalized advantage estimation
The one-step TD error and the Monte Carlo advantage are the two ends of a family. Summing discounted TD errors over several steps gives an -step estimate, and an exponentially weighted average over all gives generalized advantage estimation (GAE), introduced by Schulman et al. (2016): With the estimate is the one-step TD error : low variance, biased by the critic. With the sum telescopes to : unbiased, high variance. Values such as sit in between. This is the same interpolation as the -return of n-step TD, applied to advantages. In practice the sum runs to the end of a rollout of fixed length and is computed backward in one pass. PPO uses GAE for its advantages.Continuous actions
A softmax over action preferences covers discrete actions. For a continuous action, such as a turn rate, the policy can be a Gaussian whose mean and standard deviation are functions of the state: Its score for the mean is so an action above the mean with a positive advantage pulls the mean up, and one with a negative advantage pushes it down. The standard deviation sets how widely the policy explores, and it is learned too, usually through to keep it positive. Everything else in actor-critic stays the same. The DDPG and TD3 navigation sections take a different route for continuous actions: a deterministic actor and a critic for action values , trained off-policy with the replay buffer and target networks of DQN.From actor-critic to modern methods
Most deep RL policy-gradient methods are actor-critic methods with a neural network for each part, or one network with two heads. A2C and A3C (Mnih et al., 2016) collect short rollouts from several copies of the environment and update with -step advantages. PPO adds the clipped probability ratio, so that the same rollout can be reused for several gradient steps without moving the policy too far. GRPO drops the critic altogether and replaces its baseline with the mean reward of a group of samples, which suits language models whose reward arrives only at the end of a long sequence. Key references: (Sutton & Barto, 2018; Mnih et al., 2016); Schulman et al. (2016), High-dimensional continuous control using generalized advantage estimation.References
- Mnih, V., Badia, A., Mirza, M., Graves, A., Lillicrap, T., et al. (2016). Asynchronous Methods for Deep Reinforcement Learning. arXiv [cs.LG]. Link
- Sutton, R., Barto, A. (2018). Reinforcement Learning: An Introduction. Link
Found an error on this page? Report an issue.

