Augmented Lagrangian Method for Last-Iterate Convergence for Constrained MDPs

Michael Lu, Max Qiushi Lin, Mo Chen, Sharan VaswaniNeurIPS 2026

TL;DR

When training reinforcement learning agents under safety or resource limits, standard algorithms only guarantee safety if you average all the policies generated during training—a memory-heavy trick nobody actually uses in the real world. Simply deploying the final policy usually causes wild oscillations and broken rules. This paper brings a classic optimization tool—the Augmented Lagrangian method—into reinforcement learning, delivering an algorithm whose very last policy is both provably safe and practical enough for complex continuous control.

What Problem Does This Paper Address?

Standard Reinforcement Learning (RL) is great at chasing a single high score, like winning a video game. Real-world engineering is trickier: a wireless router needs to maximize data speeds without blowing past its energy budget. We model these problems as Constrained Markov Decision Processes (CMDPs), where an agent maximizes a reward while keeping secondary constraint values above a safe threshold.

Usually, we solve CMDPs using primal-dual (PD) methods—a mathematical tug-of-war that alternates between updating the agent's policy (to get more reward) and updating penalty multipliers (to punish rule-breaking). Here is the catch: the theoretical math for PD methods generally only guarantees success for a mixture policy. To deploy a mixture policy, you have to save every intermediate policy from training and randomly sample one at runtime. Aside from eating up memory, this is terrifying for safety: your constraints are only satisfied on average, meaning a single unlucky draw could crash your robot.

In practice, engineers throw away the history and just deploy the final policy (the last iterate). Unfortunately, without theoretical backing, this final policy often gets stuck oscillating around the target, endlessly trading off reward and safety Violations. Recent attempts to prove "last-iterate convergence" have relied on clunky regularizers or restricted math that cannot scale to large problems. We need an algorithm that is both theoretically sound on its final step and practical at scale.

Figure 1: Comparing the proposed AL method (PQA-ALM) to the primal-dual approach (NPG-PD) [Ding et al., 2020] on a tabular environment. While the iterates of NPG-PD oscillate, PQA-ALM results in smooth convergence to zero optimality gap and constraint violation.

Methods

Instead of inventing exotic new regularizers, the authors reach into the classic constrained-optimization toolbox and pull out the inexact Augmented Lagrangian (AL) method.

While standard primal-dual methods penalize constraint violations linearly, the AL method adds a quadratic penalty (squaring the violation) right into the objective, alongside slack variables that prevent the penalty multipliers from overreacting when constraints are already safely met.

Applying this to RL is non-trivial because the objective is non-concave. The authors build a modular two-loop framework:

  1. The Outer Loop (AL): Updates the penalty multipliers based on constraint violations.
  2. The Inner Loop (Policy Optimization): Approximately solves the AL sub-problem for a fixed set of multipliers.
  3. Tabular Setting: For small, discrete state-action spaces, they use Projected Q-Ascent (PQA) to directly update action probabilities.
  4. Function Approximation: For large spaces (using log-linear policies or neural networks), an idealized policy update might fall outside what the model can represent. The authors use a surrogate optimization trick: they take an idealized step (using PQA, or standard RL workhorses like PPO) and project it back onto the parameterized policy space by minimizing the forward KL-divergence.

Datasets

In RL, algorithms are tested on interactive environments rather than static datasets. No new benchmarks were introduced; instead, the authors evaluated their framework on:

  • Constrained Cliff World: A grid-world tabular environment used to test exact convergence and log-linear feature approximations (using tile-coding).
  • Safety-Gymnasium: A standard suite of large-scale, continuous-control robotics tasks with safety hazards (detailed in the paper's appendix).

Key Insights and Ideas

  • Non-stationary "Pseudo-Rewards": When you take the policy gradient of the Augmented Lagrangian, something neat pops out. The agent is effectively optimizing a standard RL problem, except the reward function dynamically shifts based on the agent's current policy! If constraints are comfortably met, the pseudo-reward is just the normal task reward. As constraints near violation, cost penalties smoothly blend in.
  • Plug-and-Play Estimation: Because this pseudo-reward breaks down cleanly into a linear combination of the original reward and constraint values, you don't need strange new RL machinery. You can estimate value functions using standard RL critics and plug in off-the-shelf policy optimizers like PPO.
  • Lifting Linear Programming Guarantees: Even though the algorithm updates policies directly via gradients, the authors prove global convergence by showing a mathematical equivalence to an inexact AL method operating on state-action occupancy measures—turning a thorny non-concave RL problem into a clean concave analysis under the hood.

Key Results

  • Theoretical Convergence: Assuming access to an inner solver, the outer AL loop needs only $\mathcal{O}(1/\varepsilon^2)$ iterations to reach an $\varepsilon$-optimal, constraint-satisfying final policy. Counting total policy gradient evaluations, both the tabular method (PQA-ALM) and the log-linear variant (PPQA-ALM) achieve global last-iterate convergence in $\mathcal{O}(1/\varepsilon^6)$ evaluations. Crucially, PPQA-ALM is the first method to achieve this for log-linear policies with multiple constraints without restrictive assumptions (like Fisher non-degeneracy, which actually fails to hold for log-linear policies!).
  • Empirical Stability: On Constrained Cliff World, standard primal-dual (NPG-PD) and optimistic (ReLOAD) baselines visibly oscillate in both optimality gap and constraint violation, whereas PQA-ALM dampens oscillations and converges smoothly to zero gap and zero violation.
Comparison against contemporary constrained RL baselines showing smooth convergence.
  • Scalability: With log-linear policies, PPQA-ALM reliably finds the optimal policy while theoretically comparable baselines (Lin-RPG-PD) stall. On continuous-control tasks in Safety-Gymnasium, neural instantiations of the framework perform comparably to heavily engineered industry baselines like PPO-Lag and CPO.

Limitations and Future Work

The authors highlight two main theoretical bottlenecks:

  1. Exploration Dependence: In the tabular setting, the convergence rate scales inversely with $\rho_{\min}$ (the minimum probability of starting in any given state), meaning rare states slow down theoretical guarantees.
  2. Approximation Bias: For log-linear policies, achieving an $\varepsilon$-optimal policy requires the policy class's inherent approximation error ($\epsilon_{\text{bias}}$) to be tiny—specifically, $\mathcal{O}(\varepsilon^{16})$.

Future work aims to loosen these strict theoretical dependencies and formally fold actor-critic value estimation and off-policy data reuse into the convergence proofs.

Summary updated

Abstract

We study policy optimization for infinite-horizon, discounted constrained Markov decision processes (CMDPs). While existing theoretical guarantees typically hold for the mixture policy, deploying such a policy is computationally and memory intensive. This leads to a practical mismatch where a single (last-iterate) policy must be deployed. Recent theoretical works have thus focused on proving last-iterate convergence, but are largely limited to the tabular setting or to algorithmic variants that are rarely used in practice. To address this, we use the classic inexact augmented Lagrangian ($\texttt{AL}$) method from constrained optimization, and propose a general framework with provable last-iterate convergence for CMDPs. We first focus on the tabular setting and propose to solve the $\texttt{AL}$ sub-problem with projected Q-ascent ($\texttt{PQA}$). Combining the theoretical guarantees of $\texttt{PQA}$ and the standard $\texttt{AL}$ analysis enables us to establish global last-iterate convergence. We generalize these results to handle log-linear policies, and demonstrate that an efficient, projected variant of $\texttt{PQA}$ can achieve last-iterate convergence with comparable guarantees as prior work. Finally, we demonstrate that our framework scales to complex non-linear policies, and evaluate it on continuous control tasks.
BibTeX
@inproceedings{lu2026augmented,
  author = {Michael Lu and Max Qiushi Lin and Mo Chen and Sharan Vaswani},
  title = {{Augmented Lagrangian Method for Last-Iterate Convergence for Constrained MDPs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=57dCx6dxTb},
}
Figure