[Paper Review] Is the Policy Gradient a Gradient?
This paper proves that most policy gradient methods, including state-of-the-art algorithms like PPO, SAC, and TD3, do not follow the gradient of any objective function due to an incorrect treatment of the discount factor. The authors show these methods optimize a direction that is not a true gradient, leading to non-convergent or pessimal fixed points, and expose widespread theoretical misstatements in the literature despite high citation counts.
The policy gradient theorem describes the gradient of the expected discounted return with respect to an agent's policy parameters. However, most policy gradient methods drop the discount factor from the state distribution and therefore do not optimize the discounted objective. What do they optimize instead? This has been an open question for several years, and this lack of theoretical clarity has lead to an abundance of misstatements in the literature. We answer this question by proving that the update direction approximated by most methods is not the gradient of any function. Further, we argue that algorithms that follow this direction are not guaranteed to converge to a "reasonable" fixed point by constructing a counterexample wherein the fixed point is globally pessimal with respect to both the discounted and undiscounted objectives. We motivate this work by surveying the literature and showing that there remains a widespread misunderstanding regarding discounted policy gradient methods, with errors present even in highly-cited papers published at top conferences.
Motivation & Objective
- To resolve a long-standing open question about whether modern policy gradient methods optimize a valid objective function.
- To expose widespread theoretical errors in the literature, including in highly cited papers from top conferences.
- To demonstrate that the update direction used in most policy gradient algorithms is not the gradient of any function.
- To show that fixed points of these algorithms can be globally pessimal for both discounted and undiscounted objectives.
- To clarify the theoretical foundations of policy gradient methods and correct misconceptions in the RL community.
Proposed method
- Proves mathematically that the update direction in most policy gradient methods is not the gradient of any objective function due to incorrect handling of the discount factor.
- Analyzes the policy gradient theorem and identifies the error in dropping one instance of the discount factor in the state distribution.
- Constructs a counterexample where the fixed point of the update direction is globally pessimal for both discounted and undiscounted returns.
- Reviews 8 top-tier RL algorithms (e.g., PPO, SAC, TD3, A2C/A3C) from the stable-baselines library and confirms they use the incorrect gradient formulation.
- Uses theoretical analysis and empirical review to show that only one of the eight cited papers acknowledged the deviation from the true policy gradient.
- Argues that the misleading claims in the literature stem from ambiguity in phrasing, such as claiming unbiased estimators without clarifying the reference objective.
Experimental results
Research questions
- RQ1Is the update direction used in modern policy gradient methods the gradient of any objective function?
- RQ2What objective, if any, do state-of-the-art policy gradient algorithms like PPO and SAC actually optimize?
- RQ3Can the fixed point of these algorithms be globally pessimal with respect to both discounted and undiscounted returns?
- RQ4Why do widely cited RL papers continue to make erroneous claims about the unbiased nature of their gradient estimators?
- RQ5How does the incorrect treatment of the discount factor in the state distribution affect the convergence and optimality of policy gradient methods?
Key findings
- Most policy gradient methods, including PPO, SAC, TD3, and A2C/A3C, do not follow the gradient of any objective function due to an incorrect formulation of the state distribution.
- The update direction used in these algorithms is not the gradient of any function, invalidating claims of convergence to optimal policies.
- A counterexample is constructed where the fixed point of the algorithm is globally pessimal for both the discounted and undiscounted return objectives.
- Out of eight highly cited RL papers reviewed, only one acknowledged the deviation from the true policy gradient, while others made misleading or incorrect claims about unbiased estimation.
- The confusion stems from ambiguous phrasing in the literature, such as claiming 'unbiased' estimators without specifying the reference objective, leading to widespread misunderstanding.
- The analysis reveals a fundamental theoretical flaw in the design of many state-of-the-art deep RL algorithms, undermining their theoretical justification.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.