maxθEs,a∼πθold[πθold(a∣s)πθ(a∣s)Aπθold(s,a)]s.t.Es[DKL(πθold(⋅∣s)∥πθ(⋅∣s))]≤δ
\nDerivation:
1. Linearize the surrogate objective at
θold: maximize
gTΔθ with
g=∇θEs,a∼πθold[πθold(a∣s)πθ(a∣s)A] — the expectation is sampled under the old policy (the probability ratio is the importance weight);
2. The KL constraint vanishes to first order at
θold; expanding to second order gives
21ΔθTFΔθ≤δ with the
Fisher matrix F=Es,a[∇θlogπθ(a∣s)∇θlogπθ(a∣s)T] (negative expected Hessian — the Hessian approximation, no second-order derivatives needed);
3. Lagrangian solution gives the
natural gradient Δθ=αF−1g; solve
Fx=g by conjugate gradients (avoiding the
O(n2) explicit inverse) and backtrack the step
α by line search using the monotonic-improvement bound (KKL, with
C=(1−γ)24εγ).