A gradient estimator approximates the policy gradient from a finite batch of reinforcement-learning samples. Policy-gradient methods use this estimate with stochastic gradient ascent to favor actions producing higher returns. section 12.1.2
The estimator connects observed outcomes to policy updates:
- Computes an empirical average over a finite sample batch rather than requiring an exact expectation. section 12.1.2
- Weights the policy contribution with an advantage estimate, comparing an action’s expected return with the state’s estimated value. section 12.1.2
- Feeds the estimate into stochastic gradient ascent, increasing the likelihood of actions with positive advantage and decreasing it for negative advantage. section 12.1.2
Positive and negative advantage
When an observed return exceeds the state’s expected value, the advantage is positive and the gradient raises that action’s future probability. A negative advantage lowers it. section 12.1.2
