TRPO maximises a surrogate improvement subject to a KL bound. Linearise the objective as and the constraint as , where is the policy gradient and is the Fisher information matrix. Derive the step . For , and , what is , and how does its improvement 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 subject to . The solution is , a natural-gradient direction whose length is set so that the KL change is exactly .
Steps
- 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, .
- Write the Lagrangian and set the gradient to zero: , so .
- Impose the constraint: , so . Substituting gives the formula in the key idea.
- Compute. and . The scale is . So .
- Check the KL: . The improvement is .
- Plain gradient step with the same KL: , so and . The natural step gains more improvement for the same KL.
- Mention practice. TRPO finds by conjugate gradient (never forming ), 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
- Using (Euclidean) as the constraint. That gives the ordinary gradient direction.
- Forgetting the factor in the quadratic approximation of the KL.
- Claiming the step guarantees improvement. The linearisation is only an approximation, which is why TRPO checks with a line search.
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 , prove that rewards received before time can be dropped from the factor multiplying . 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 . For a suboptimal arm with gap , how do you show that it is pulled about times at most, and what does this give for and ?