Why is subtracting a baseline OK in policy gradient?
hardAnswer
- Because for any function b(s) independent of a.
- This adds no bias but shrinks variance by centering the reward signal.
- Choice of baseline: constant, moving average of returns, or state-dependent V(s) (best — cancels state-level variance).
- Advantage function A(s, a) = Q(s, a) - V(s) is the popular choice → gives us actor-critic architectures.
Check yourself — multiple choice
- Adds bias
- E[b(s) ∇log π] = 0 for b independent of a → no bias, less variance; V(s) is best baseline (cancels state variance) → advantage = actor-critic
- Random
- Not real
Baseline b(s) has E = 0 in policy gradient → unbiased but lower variance.
#policy-methods#theory
Practise Reinforcement Learning
214 interview questions in this topic.
Related questions
- The log-derivative trick — why is it central to policy gradients?
- What is natural gradient in policy gradient methods?
- Reparameterization trick in stochastic policies.
- Off-policy policy gradient — how does importance sampling enter?
- Policy gradient as mirror descent — the connection.
- Options framework — formalization.