Sample-Efficient Constrained Reinforcement Learning with General Parameterization

Washim Uddin Mondal, Vaneet Aggarwal

Abstract

Constrained Reinforcement Learning (CRL) is vital for real-world applications requiring safety or budget adherence. However, a significant gap has existed between the theoretical lower bound of sample complexity and the performance of algorithms using general policy parameterization. This paper introduces PD-ANPG (Primal-Dual Accelerated Natural Policy Gradient), which bridges this gap. By incorporating momentum-based acceleration into a primal-dual framework, PD-ANPG achieves a sample complexity of $\tilde{O}(\epsilon^{-2})$, matching the theoretical lower bound and significantly improving upon the previous state-of-the-art of $\tilde{O}(\epsilon^{-4})$.

Introduction: The Challenge of General Parameterization

In standard Reinforcement Learning (RL), an agent's goal is to maximize a cumulative reward. However, in safety-critical domains like robotics or autonomous driving, agents must also satisfy strict constraints. These scenarios are modeled as Constrained Markov Decision Processes (CMDPs).

While efficient algorithms exist for "tabular" cases or simple "softmax" policies, they do not scale to the massive state spaces of the real world. For these, researchers use general policy parameterization (e.g., neural networks). Until now, a massive gap persisted: theory suggested an optimal policy should be reachable in $O(\epsilon^{-2})$ samples, yet the best existing algorithms for general policies required $O(\epsilon^{-4})$ or more. This work closes that gap.

The PD-ANPG Algorithm: Primal-Dual with Acceleration

The authors propose the Primal-Dual Accelerated Natural Policy Gradient (PD-ANPG) algorithm. Its architecture relies on two main pillars:

  1. Primal-Dual Framework: The CMDP is treated as a minimax problem. The "Primal" side updates the policy to maximize rewards, while the "Dual" side updates a Lagrange multiplier to penalize constraint violations.
  2. Accelerated Inner Loop: The core innovation is the use of Accelerated Stochastic Gradient Descent (ASGD) in the inner loop. While most methods use standard SGD to estimate the Natural Policy Gradient (NPG), PD-ANPG uses momentum-based acceleration to significantly reduce the bias and variance of gradient estimates.

To estimate Q-values and advantage functions without knowing the environment's underlying transition dynamics, the algorithm employs a specialized "Unbiased Sampling" procedure.

Theoretical Breakthroughs

The jump from $\epsilon^{-4}$ to $\epsilon^{-2}$ was made possible by several key insights:

  • Nested Expectation Analysis: The authors discovered that by structuring their convergence analysis to account for a "nested expectation" of gradient error, they could treat the bias of their accelerated estimator as a deterministic error, making it much easier to control.
  • Momentum in the Inner Loop: While momentum is common in deep learning, its application to the inner loop of NPG for CMDPs is the specific mechanism that enabled the optimal convergence rate.
  • Optimal Learning Rate Balancing: The paper identifies a mathematical "sweet spot" for balancing the dual learning rate (which affects constraint satisfaction) and the primal learning rate (which affects objective convergence).

Results and Comparison

PD-ANPG achieves an $\epsilon$-optimal policy with a sample complexity of $\tilde{O}((1-\gamma)^{-7}\epsilon^{-2})$. This matches the theoretical lower bound $\Omega(\epsilon^{-2})$ in terms of the accuracy parameter $\epsilon$, representing a polynomial improvement over previous general-parameterization methods.

Comparison of sample complexity for various CRL algorithms under different parameterizations.

As shown in the table above, PD-ANPG is the first algorithm to reach the $\epsilon^{-2}$ complexity threshold for general parameterization, effectively closing the theoretical gap for this class of problems.

Limitations and Future Directions

Despite achieving optimality regarding $\epsilon$, the algorithm still faces a high dependence on the discount factor $\gamma$ (specifically $(1-\gamma)^{-7}$). In environments requiring long-term planning where $\gamma$ is close to 1, the sample requirement remains high. Additionally, the analysis assumes the Slater Condition—the existence of a policy that strictly satisfies all constraints. Future work may explore relaxing this assumption or extending the accelerated primal-dual approach to non-linear CMDPs and average-reward settings.

Summary updated

BibTeX
@inproceedings{mondal2024sample,
  author = {Washim Uddin Mondal and Vaneet Aggarwal},
  title = {{Sample-Efficient Constrained Reinforcement Learning with General Parameterization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=1po4j1Tv7O},
}
Figure