A Policy Gradient Primal-Dual Algorithm for Constrained MDPs with Uniform PAC Guarantees

Toshinori Kitamura, Tadashi Kozuno, Masahiro Kato, Yuki Ichihara, Soichiro Nishimori, Akiyoshi Sannai, Sho Sonoda, Wataru Kumagai, Yutaka Matsuo

TL;DR

This paper introduces UOpt-RPGPD, the first online primal-dual reinforcement learning algorithm for Constrained Markov Decision Processes (CMDPs) with Uniform-PAC guarantees. By combining doubly-regularized Lagrangians, decaying learning rates, and an iterated-logarithm exploration bonus, it simultaneously guarantees convergence of the last-iterate policy to the true optimum, polynomial sample complexity for any target accuracy, and sublinear strong regret.

What Problem Does This Paper Address?

In safe reinforcement learning, agents must maximize rewards while satisfying real-world constraints (e.g., collision avoidance in autonomous driving). While Primal-Dual (PD) methods—which iteratively update policies and Lagrange multipliers—are widely adopted in practice due to their compatibility with deep policy gradients, their theoretical foundation in exploration settings has been lacking:

  1. Sublinear regret is not enough: Existing PD algorithms guarantee sublinear cumulative regret, but sublinear regret allows an algorithm to make infinitely many large mistakes over time, often relying on "error cancellation" (where violating a constraint in one episode offsets under-performing in another).
  2. Lack of last-iterate convergence: Existing PD methods often fail to converge to an optimal policy, instead producing policies that oscillate between high return and constraint violations.
  3. Fixed-horizon limitations: Standard $(\varepsilon, \delta)$-PAC and regret bounds require pre-specifying the total number of episodes $K$ in advance, causing exploration bonuses to fail if run indefinitely.

The authors set out to answer: Can we design an online primal-dual RL algorithm that simultaneously guarantees last-iterate policy convergence, sublinear regret, and polynomial sample complexity for any accuracy without pre-setting $K$?

Methods

The authors propose UOpt-RPGPD (Uniform-PAC Optimistic Regularized Policy Gradient Primal-Dual), which combines three core mechanisms:

  1. Doubly-Regularized Lagrange Objective: The algorithm introduces entropy regularization on the policy and quadratic $\ell_2$ regularization on the Lagrange multipliers: $$\mathcal{L}_\tau(\pi, \lambda) := V_1^\pi[P, r^0, \tau](x_1) + \sum_{n=1}^N \lambda_n \left(V_1^\pi[P, r^n](x_1) - b^n\right) + \frac{\tau}{2}\|\lambda\|_2^2$$ This ensures that the saddle point is strictly unique at each step, preventing policy-multiplier oscillations.

  2. Uniform-PAC Exploration Bonus: Standard exploration bonuses scale as $\sqrt{\ln(K)/n}$, which breaks down when $K \to \infty$. Drawing on Dann et al. (2017), UOpt-RPGPD employs an optimistic bonus scaling with $\sqrt{\frac{\ln \ln(n)}{n}}$, ensuring that exploration bonuses diminish appropriately over an infinite horizon.

  3. Coordinated Decay of Regularization and Learning Rates: To eliminate the bias introduced by regularization while maintaining convergence, the entropy/multiplier coefficient $\tau_k = (k+3)^{-\alpha_\tau}$ and policy step size $\eta_k = (k+3)^{-\alpha_\eta}$ are decayed polynomially under strict conditions ($0 < \alpha_\tau < 0.5 < \alpha_\eta < 1$ and $\alpha_\eta + \alpha_\tau < 1$).

Datasets

The paper does not use static offline datasets. Instead, the authors evaluate their method on a randomly generated tabular CMDP benchmark adapted from Dann et al. (2017) and Moskovitz et al. (2023):

  • State space size: $|X| = 30$
  • Action space size: $|A| = 3$
  • Horizon: $H = 10$
  • Constraints: $N = 1$
  • Dynamics: Transition probabilities are sampled from a symmetric Dirichlet distribution $\text{Dirichlet}(0.1, \dots, 0.1)$. Objective rewards $r^0$ and constraint costs $r^1 = 1 - r^0$ are constructed to be strictly conflicting.

Key Insights and Ideas

  • Overcoming the "Mixed Policy" Trap: Standard CMDP primal-dual methods only prove convergence for the average or mixture of past policies. By enforcing strong convexity-concavity through time-varying regularization, UOpt-RPGPD forces the actual executed policy (the last iterate) to contract toward the optimum.
  • No Free Error Cancellations: The paper analyzes strong regret ($R_{\text{opt+}}^K$ and $R_{\text{vio+}}^K$), which clips negative regrets at zero. This proves the agent genuinely learns feasible policies rather than canceling out past violations with future conservative play.
  • Tuning the Convergence Tradeoff: The exponents $\alpha_\eta$ and $\alpha_\tau$ present a structural tradeoff: making $\alpha_\eta \approx 1$ speeds up learning rate decay but clashes with the contraction requirements of the regularizer. Setting $\alpha_\eta = 11/14$ and $\alpha_\tau = 1/7$ optimally balances this tension.

Key Results

  • First Uniform-PAC Guarantee: Under Slater's condition, UOpt-RPGPD achieves a Uniform-PAC sample complexity of: $$\tilde{\mathcal{O}}\left(b_{\text{gap}}^{-7}(1+N)^{7/2} X^{7/2} A^2 H^{25} \varepsilon^{-7}\right)$$ guaranteeing that the number of episodes where the optimality gap or constraint violation exceeds $\varepsilon$ is finite for all $\varepsilon > 0$.

  • Sublinear Regret and Last-Iterate Convergence: As a corollary, the algorithm simultaneously achieves:

  • High-probability last-iterate convergence: $\lim_{k\to\infty} \Delta_{\text{opt}}^k = 0$ and $\lim_{k\to\infty} \Delta_{\text{vio}}^k = 0$.
  • Strong sublinear regret of order $\tilde{\mathcal{O}}\left(b_{\text{gap}}^{-1}(1+N)^{1/2} X^{1/2} A^{2/7} H^4 K^{6/7}\right)$.
  • Empirical Stability: In simulated CMDP experiments, baseline methods (such as OptPrimalDual-CMDP and unregularized variants) exhibited persistent oscillations and recurring safety violations. In contrast, UOpt-RPGPD monotonically converged to zero optimality gap and zero constraint violation.

Limitations and Future Work

  • Exploration Safety (No Zero-Violation): While the algorithm guarantees asymptotic feasibility, constraints may still be violated during early exploration episodes. Extending this to zero-violation guarantees remains open.
  • Sub-optimal Regret Exponent: The resulting regret bound is $\tilde{\mathcal{O}}(K^{6/7})$, which is slower than the $\tilde{\mathcal{O}}(\sqrt{K})$ achieved by linear programming (LP) methods. It remains an open question whether this gap is intrinsic to primal-dual Uniform-PAC or an artifact of the proof.
  • Tabular Setting: The theoretical analysis is currently restricted to finite state-action spaces. Future extensions include linear function approximation and deep RL architectures.

Summary updated

BibTeX
@inproceedings{kitamura2024policy,
  author = {Toshinori Kitamura and Tadashi Kozuno and Masahiro Kato and YUKI ICHIHARA and Soichiro Nishimori and Akiyoshi Sannai and Sho Sonoda and Wataru Kumagai and Yutaka Matsuo},
  title = {{A Policy Gradient Primal-Dual Algorithm for Constrained MDPs with Uniform PAC Guarantees}},
  booktitle = {RLSW @ RLC},
  year = {2024},
  url = {https://openreview.net/forum?id=EWXKo2fj4h},
}

Loading related content...

Figure