TRPO maximises a surrogate improvement subject to a KL bound. Linearise the objective as g⊤Δ and the constraint as 12Δ⊤FΔ≤δ, where g is the policy gradient and F is the Fisher information matrix. Derive the step Δ. For g=(1,1)⊤, F=diag(4,1) and δ=0.02, what is Δ, and how does its improvement g⊤Δ compare with a plain gradient step that uses the same KL?

Reinforcement learning, Trust-region methods
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can derive the natural-gradient step with a Lagrangian and see why a KL-based step size is better than a Euclidean one.

Key idea

Maximise g⊤Δ subject to 12Δ⊤FΔ=δ. The solution is Δ=2δg⊤F−1g  F−1g, a natural-gradient direction whose length is set so that the KL change is exactly δ.

Steps

  1. Say why KL, not Euclidean length: a small change of θ can change the policy hugely in some directions and barely in others. KL measures change in the policy itself. To second order, KL≈12Δ⊤FΔ.
  2. Write the Lagrangian L=g⊤Δ−λ(12Δ⊤FΔ−δ) and set the gradient to zero: g=λFΔ, so Δ=F−1g/λ.
  3. Impose the constraint: 12 g⊤F−1gλ2=δ, so λ=g⊤F−1g/(2δ). Substituting gives the formula in the key idea.
  4. Compute. F−1g=(0.25, 1) and g⊤F−1g=0.25+1=1.25. The scale is 0.04/1.25=0.032=0.1789. So Δ=(0.0447, 0.1789).
  5. Check the KL: 12(4×0.04472+0.17892)=12(0.008+0.032)=0.02. The improvement is g⊤Δ=0.0447+0.1789=0.2236.
  6. Plain gradient step Δ=c (1,1) with the same KL: 12c2(4+1)=0.02, so c=0.0894 and g⊤Δ=0.1789. The natural step gains 25% more improvement for the same KL.
  7. Mention practice. TRPO finds F−1g by conjugate gradient (never forming F), then does a backtracking line search to check that the true surrogate improves and the true KL is within δ. PPO replaces all this by clipping.

Common mistakes

How long your answer should be

A page; 7–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Reinforcement learning: Starting from ∇θJ(θ)=Eτ[∑t∇θlog⁡πθ(at∣st)∑krk+1], prove that rewards received before time t can be dropped from the factor multiplying ∇θlog⁡πθ(at∣st). What does this give you, and what is a subtle mistake with the discount factor?
Next in Reinforcement learning: Sketch why UCB1 has regret growing only like O(ln⁡T). For a suboptimal arm i with gap Δi=μ∗−μi, how do you show that it is pulled about 8ln⁡T/Δi2 times at most, and what does this give for Δi=0.5 and T=1000?