Finite-Time Complexity of Online Primal-Dual Natural Actor-Critic Algorithm for Constrained Markov Decision Processes

Sihan Zeng, Thinh T. Doan, Justin Romberg

TL;DR

This paper provides the first finite-time global convergence analysis for an online primal-dual natural actor-critic algorithm designed for Constrained Markov Decision Processes (CMDPs). The authors prove that the algorithm converges to the global optimum at a rate of $\mathcal{O}(K^{-1/6})$, offering a theoretical bridge between safety-constrained reinforcement learning and practical, single-trajectory data collection.

What Problem Does This Paper Address?

Reinforcement Learning (RL) is traditionally about maximizing rewards. However, in real-world domains like robotics or power systems, "maximizing reward" isn't enough—the agent must also satisfy safety constraints (e.g., "don't crash" or "stay within voltage limits"). These are modeled as Constrained Markov Decision Processes (CMDPs).

While many algorithms exist for CMDPs, most theoretical guarantees are either asymptotic (meaning they converge eventually, but we don't know how fast) or "batch-style" (meaning they require resetting the environment many times to get independent samples). In reality, agents often learn online from a single, continuous trajectory. This is much harder to analyze because the data distribution changes as the policy evolves, and the updates for the actor (policy), the critic (value estimator), and the dual variable (the "safety penalty") are all tightly coupled and non-stationary.

Methods

The authors study an Online Primal-Dual Natural Actor-Critic algorithm. Key components include:

  • Primal-Dual Framework: It uses a Lagrangian function to transform constraints into penalties. The "dual variable" acts as a dynamic weight that increases the penalty when constraints are violated.
  • Natural Actor-Critic: The "actor" updates the policy using natural gradients (which are more stable for policy optimization), while the "critic" estimates the Q-functions for both rewards and constraints.
  • Multi-Time-Scale Updates: This is the "secret sauce." To ensure stability, the three components update at different speeds (step sizes): the critic updates fastest, followed by the actor, and finally the dual variable.
  • $\epsilon$-Exploration: The algorithm uses a behavior policy that forces exploration, ensuring the agent visits enough of the state space to learn the safety boundaries.

The core novelty lies in the finite-time analysis. The authors had to decouple the intertwined errors of the actor, critic, and dual variables while accounting for the "mixing time" of the underlying Markov chain.

Datasets

The paper does not use large-scale public datasets, as is common in theoretical RL papers. Instead, it validates the algorithm using a custom GridWorld environment:

  • The Task: An agent must navigate from a start to a goal.
  • The Constraints: The environment contains "unsafe" bridges. The agent must learn utility functions that penalize crossing these bridges.
  • Evaluation: The authors compare their online algorithm against a "batch" version to demonstrate sample efficiency.

Key Insights and Ideas

  • Zero Duality Gap: Even though CMDP objectives are generally non-concave and the constraint sets are non-convex, the authors leverage the fact that the duality gap for CMDPs is zero. This allows local gradient-based methods to reach a global optimum.
  • The Cost of "Online": The convergence rate of $\mathcal{O}(K^{-1/6})$ is slower than the $\mathcal{O}(K^{-1/2})$ typically seen in batch settings. This "slowdown" is the theoretical price paid for learning from a single, non-stationary trajectory without environment resets.
  • Stability through Separation: By forcing the critic to learn faster than the actor, the actor always sees a "relatively" accurate estimate of the value function, which prevents the system from spiraling into instability.

Key Results

  • Convergence Rate: The paper proves that both the optimality gap (how far the reward is from the maximum) and the constraint violation converge to zero at a rate of $\mathcal{O}(1/K^{1/6})$, where $K$ is the number of iterations.
  • Sample Complexity: To reach a precision of $\delta$, the algorithm requires $\mathcal{O}(1/\delta^6)$ samples.
  • Simulation Success: In the GridWorld experiments, the online algorithm successfully learned the optimal safe path. While the "batch" version converged in fewer iterations, the online version was significantly more sample-efficient, as it didn't require thousands of environment resets.

Limitations and Future Work

  • Tabular Assumption: The current analysis is restricted to the "tabular" setting, where the number of states and actions is finite and small.
  • Convergence Speed: The $1/K^{1/6}$ rate is theoretically sound but practically slow. The authors suggest that future work could investigate if this rate can be improved (e.g., to $1/K^{1/2}$).
  • Function Approximation: A major next step is extending this finite-time analysis to settings using linear function approximation or neural networks (Deep RL), which are necessary for high-dimensional real-world problems.

Summary updated

BibTeX
@inproceedings{zeng2022finite,
  author = {Sihan Zeng and Thinh T. Doan and Justin Romberg},
  title = {{Finite-Time Complexity of Online Primal-Dual Natural Actor-Critic Algorithm for Constrained Markov Decision Processes}},
  booktitle = {CDC},
  year = {2022},
  doi = {10.1109/cdc51059.2022.9992837},
}
Figure