Conservative and Greedy Approaches to Classification-Based Policy Iteration

Mohammad Ghavamzadeh, Alessandro Lazaric

Abstract

Policy Iteration (PI) is a fundamental framework in Reinforcement Learning (RL) for discovering optimal behaviors. In large-scale environments where exact computation is impossible, Classification-Based Policy Iteration (CBPI) reduces the policy improvement step to a supervised learning problem. This paper provides a rigorous theoretical comparison between two primary CBPI paradigms: the aggressive Direct Policy Iteration (DPI) and the cautious Conservative Policy Iteration (CPI). By analyzing their iteration complexity and error propagation, we demonstrate that while CPI offers a guarantee of monotonic improvement, this safety comes at a significant cost in efficiency, requiring exponentially more iterations and samples than its greedy counterpart.

Introduction

In the classic Reinforcement Learning setting, an agent seeks to maximize its long-term reward within a Markov Decision Process (MDP). Policy Iteration is a standard approach to this problem, alternating between evaluating a current policy and improving it by selecting greedy actions. However, in high-dimensional or continuous state spaces, we cannot compute the greedy action for every state.

Classification-Based Policy Iteration (CBPI) addresses this by treating policy improvement as a classification task. Given a set of states, a classifier is trained to predict the action that maximizes the value function. Within this framework, two distinct philosophies have emerged:

  1. Direct Policy Iteration (DPI): A "greedy" approach that immediately replaces the current policy with the classifier's output.
  2. Conservative Policy Iteration (CPI): A "slow and steady" approach that updates the policy incrementally by blending the new classifier output with the existing policy using a small step size.

Methodology

The authors establish a unified theoretical framework to compare DPI and CPI, focusing on how classification errors propagate over time and the number of iterations required to reach a target accuracy ($\epsilon$).

Direct Policy Iteration (DPI)

DPI is characterized by its speed. In each iteration, it generates a new policy $\pi_{k+1}$ by training a classifier on the greedy actions of the current value function $V^{\pi_k}$. While computationally efficient, DPI is prone to oscillations because small errors in the classifier can lead to significant shifts in the policy's behavior, potentially preventing convergence to the global optimum.

Conservative Policy Iteration (CPI)

CPI was designed to solve the oscillation problem. Instead of a full update, it creates a mixture policy: $\pi_{k+1} = (1 - \alpha)\pi_k + \alpha \pi'$, where $\pi'$ is the new suggested policy and $\alpha$ is a small step size. This ensures that the policy's performance never decreases—a property known as monotonic improvement. However, this requires a specific sampling distribution ($d_\rho^{\pi_k}$) to ensure the agent evaluates states it is likely to visit under the current policy.

Theoretical Insights

The Speed Gap

The most significant finding of this research is the disparity in iteration complexity. To achieve a policy within $\epsilon$ of the optimal performance, DPI requires $O(\log 1/\epsilon)$ iterations. In contrast, CPI requires $O(1/\epsilon^2)$ iterations. This represents an exponential gap in convergence speed, suggesting that CPI's cautious nature acts as a significant drag on performance.

The Cost of Monotonicity

While the guarantee of monotonic improvement is theoretically appealing, the authors show it is not "free." To maintain this guarantee, CPI must take very small steps, which necessitates a massive increase in the number of samples required to make progress. Furthermore, the analysis reveals that CPI does not necessarily converge to a better final policy than DPI. Both algorithms are ultimately limited by the "richness" of the policy space—the inherent ability of the classifier to represent the optimal policy.

Error Propagation and the Discount Factor

The study highlights a critical sensitivity to the discount factor $\gamma$ (which determines how much the agent values future rewards). As $\gamma$ approaches 1, the approximation errors in CPI can actually become worse than those in DPI by a factor of $(1-\gamma)$. This suggests that in long-horizon tasks, the conservative approach may be both slower and less accurate.

Discussion and Practical Implications

This theoretical comparison challenges the assumption that conservative updates are always preferable in RL. While CPI provides a robust stopping condition—knowing exactly when no further improvement can be guaranteed—its practical implementation is hindered by several factors:

  • Sample Complexity: The polynomial iteration requirements make CPI difficult to scale to complex environments.
  • Stochasticity: CPI results in a mixture of many policies, creating a stochastic final policy. This is often undesirable in fields like robotics, where deterministic and consistent behavior is required.
  • Sampling Constraints: The requirement for specific discounted future-state distributions makes CPI harder to implement than the more flexible DPI.

Conclusion

The rigorous analysis presented in this paper suggests that the "greedy" nature of Direct Policy Iteration is often more efficient for practical reinforcement learning than the "conservative" approach. While CPI offers safety through monotonicity, the exponential cost in iteration and sample complexity often outweighs its benefits. Future research may look to bridge this gap, perhaps by developing hybrid methods that offer the stability of CPI with the logarithmic efficiency of DPI.

Summary updated

BibTeX
@inproceedings{ghavamzadeh2012conservative,
  author = {Mohammad Ghavamzadeh and Alessandro Lazaric},
  title = {{Conservative and Greedy Approaches to Classification-Based Policy Iteration}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2012},
  doi = {10.1609/aaai.v26i1.8304},
}
Figure