Prove the performance difference lemma: for two policies and with , , where . What does it imply for policy improvement and for TRPO?
Reinforcement learning, Policy gradients
Level L5 Expert. Length Long. Nature Mat Mathematical.
What's being asked
Whether you can prove the lemma with a telescoping argument and explain why it underlies policy improvement and trust-region methods.
Key idea
Along a trajectory generated by , the advantage of , in expectation, has discounted sum that telescopes to . Taking expectations gives .
Steps
- Recall and . So for any transition, .
- Take a trajectory from and consider .
- Telescope. , since is bounded.
- Hence . Both policies must start from the same initial-state distribution, so that the term is the same for and .
- Rewrite the left side with the discounted state distribution. , since includes the normalising factor .
- Policy improvement. If for every state, then . The greedy policy with respect to satisfies this, which proves the policy improvement theorem.
- TRPO. The expectation is over states from , which we cannot sample before we have . TRPO replaces by in the surrogate, and bounds the resulting error by a function of , which is why the step is constrained.
Common mistakes
- Using in the exact identity. The exact statement uses the state distribution of the new policy .
- Forgetting the factor , which comes from normalising the discounted sum into a distribution.
- Dropping the condition that is bounded. Without it, the limit term need not vanish.
How long your answer should be
A page; 8–10 minutes.
Last checked on 4 December 2026.
Read this
Previous in Reinforcement learning: Show that the policy maximising is with . For , , find and the optimal objective value for , and for . What happens as and , and how does this lead to direct preference optimisation (DPO)?
Next in Reinforcement learning: For on-policy linear TD(0) with features , show that the expected update is and that the fixed point is , where and . For the Markov reward process with , , and a single feature , what is , and how does it compare with the best least-squares fit of the true values under the stationary distribution?