Actor-Critic combines an Actor (policy network πθ(a∣s) generating actions) and a Critic (value network Vw(s) evaluating states): the Actor updates along the policy-gradient direction, and the Critic supplies a value baseline and advantage estimates to reduce variance. Core formulas:
📌Overview
∇θJ=Es,a[∇θlogπθ(a∣s)Aπ(s,a)],A(s,a)=Qπ(s,a)−Vπ(s)
\nDerivation:
1. Start from the policy gradient theorem and substitute Qπ(s,a)=r+γVπ(s′) into the advantage: ∇θJ=E[∇θlogπθ(a∣s)δTD(r+γVw(s′)−Vw(s))] — a one-step bootstrapped TD error serves as the advantage estimate;
2. The Critic fits the value by least squares: L(w)=E[(r+γVw(s′)−Vw(s))2] with ∇wL=−2E[δTD∇wVw(s)] (TD(0): biased but low variance due to bootstrapping);
3. Generalize to TD(λ)/GAE: At=∑l=0∞(γλ)lδt+l with δt=rt+γV(st+1)−V(st). λ=0 is pure TD advantage (low variance, high bias), λ=1 is MC advantage (high variance, low bias); GAE is the standard in PPO/RLHF;
4. The Actor updates: θ←θ+η∇θlogπθ(at∣st)A^t. The baseline is unbiased as in policy gradients: E[∇θlogπ⋅V(s)]=0 — it only removes variance.
💡Use Cases
the shared backbone of on- and off-policy algorithms — A2C/A3C, PPO, SAC, TD3, and GRPO (which replaces the Critic with group-relative rewards) are all Actor-Critic variants.
⚡Key Problems Solved
REINFORCE uses full returns with high variance and learns no value. The Critic's V(s) baseline cancels state-dependent variance without biasing the gradient and provides credit assignment (the advantage A(s,a) scores each action relative to its state); Actor and Critic alternately supervise each other — the most important deep-RL framework.
🎯5 High-Frequency Exam Points
1
Define the advantage A(s,a)=Q(s,a)−V(s) and justify using it over Q or the raw reward.
2
Whiteboard: derive the Actor's TD-error update from the policy gradient theorem and prove the V(s) baseline is unbiased.
3
How is the Critic loss derived? How do TD(λ)/GAE trade off bias and variance?
4
How does Actor-Critic improve on REINFORCE? Why lower variance and online training?
5
How do A2C/A3C, PPO, SAC, GRPO reuse the Actor-Critic backbone, and what do they change?