[Paper Review] Optimization Issues in KL-Constrained Approximate Policy Iteration
This paper investigates the optimization trade-offs between KL-divergence regularization and constraint in approximate policy iteration, demonstrating that constrained methods like TRPO can fail to converge and incur linear regret even in simple bandit problems, while regularized updates ensure sublinear regret and better optimization landscapes, especially with softmax policies.
Many reinforcement learning algorithms can be seen as versions of approximate policy iteration (API). While standard API often performs poorly, it has been shown that learning can be stabilized by regularizing each policy update by the KL-divergence to the previous policy. Popular practical algorithms such as TRPO, MPO, and VMPO replace regularization by a constraint on KL-divergence of consecutive policies, arguing that this is easier to implement and tune. In this work, we study this implementation choice in more detail. We compare the use of KL divergence as a constraint vs. as a regularizer, and point out several optimization issues with the widely-used constrained approach. We show that the constrained algorithm is not guaranteed to converge even on simple problem instances where the constrained problem can be solved exactly, and in fact incurs linear expected regret. With approximate implementation using softmax policies, we show that regularization can improve the optimization landscape of the original objective. We demonstrate these issues empirically on several bandit and RL environments.
Motivation & Objective
- To investigate the optimization stability and convergence properties of KL-constrained policy iteration versus KL-regularized policy iteration.
- To identify fundamental flaws in the constrained approach that lead to non-convergence and linear expected regret, even in simple bandit environments.
- To compare the optimization landscape of regularized versus constrained formulations, particularly under softmax policy parameterization.
- To empirically validate theoretical findings on standard RL environments, including CartPole and Ball in Cup.
- To challenge the common assumption that KL-constrained updates are a stable, practical implementation of theoretically justified KL-regularized updates.
Proposed method
- Analytically compare the behavior of KL-regularized and KL-constrained policy updates in a multi-armed bandit setting with noisy advantage estimates.
- Formulate the policy improvement step as a constrained optimization problem (e.g., TRPO-style) and a regularized optimization problem (e.g., mirror descent-style), deriving their respective update rules.
- Use softmax parameterized policies to analyze the optimization landscape, showing that regularization leads to smoother, better-behaved objectives.
- Implement and compare several algorithms—TRPO, CPO, VMPO, MDPO, Surrogate—on CartPole and Ball in Cup environments using consistent neural network architectures.
- Apply importance-weighted policy gradient estimation for CPO and MDPO, and use full-batch policy evaluation for VMPO and Surrogate to ensure fair comparison.
- Use Adam optimizer with fixed learning rate and weight initialization across phases, and tune the KL hyperparameter across {0.1, 1, 5, 10, 15, 20, 25} to select the best-performing value per algorithm.
Experimental results
Research questions
- RQ1Does the KL-constrained policy update guarantee convergence in simple bandit problems with noisy advantage estimates?
- RQ2What is the expected regret behavior of TRPO-like constrained algorithms in the presence of noisy advantage estimation?
- RQ3How does KL regularization affect the optimization landscape compared to KL constraints, especially under softmax policy parameterization?
- RQ4Can empirical performance differences between constrained and regularized algorithms be attributed to optimization stability or convergence properties?
- RQ5Why do some constrained algorithms like Surrogate fail to converge to optimal policies despite using similar components?
Key findings
- The constrained policy update (e.g., TRPO) is not guaranteed to converge even in a simple multi-armed bandit problem where all algorithms can be implemented exactly.
- TRPO incurs linear expected regret due to repeated movement in the wrong direction when noisy advantage estimates select suboptimal actions.
- In contrast, the KL-regularized update averages out noise over iterations, resulting in sublinear regret on the same bandit problem.
- With softmax parameterized policies, the regularized objective leads to a more favorable optimization landscape compared to the constrained formulation.
- Empirically, CPO exhibits more oscillation and slower convergence than regularized algorithms like VMPO and MDPO, especially near the optimal policy.
- The Surrogate objective, which adds a squared-error loss to the cross-entropy, can lead to convergence to suboptimal policies, likely due to reduced policy greediness.
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.