ACPO: A Policy Optimization Algorithm for Average MDPs with Constraints
Akhil Agnihotri, Rahul Jain, Haipeng Luo
TL;DR
This work addresses policy optimization for average-constrained MDPs (ACMDPs), where long-run safety constraints are encoded by $J_{C_i}(\pi) \le l_i$ and the objective is the long-run average reward $J(\pi)$; standard discounted criteria can mislead constraint satisfaction. The authors derive new average-specific policy-improvement bounds and develop ACPO, a trust-region policy optimization algorithm that incorporates constraint satisfaction via a KL-divergence constraint and average-bias terms via $\widebar{V}^{\pi}$ and $\widebar{A}^{\pi}$. They implement a practical, sampling-based version using Lagrangian duality and a recovery mechanism, and demonstrate superior performance over state-of-the-art baselines on OpenAI Gym/Mujoco tasks. The approach provides a scalable, theory-grounded framework for safe, long-horizon RL applicable to robotics, RLHF for LLMs, and other safety-critical domains.
Abstract
Reinforcement Learning (RL) for constrained MDPs (CMDPs) is an increasingly important problem for various applications. Often, the average criterion is more suitable than the discounted criterion. Yet, RL for average-CMDPs (ACMDPs) remains a challenging problem. Algorithms designed for discounted constrained RL problems often do not perform well for the average CMDP setting. In this paper, we introduce a new policy optimization with function approximation algorithm for constrained MDPs with the average criterion. The Average-Constrained Policy Optimization (ACPO) algorithm is inspired by trust region-based policy optimization algorithms. We develop basic sensitivity theory for average CMDPs, and then use the corresponding bounds in the design of the algorithm. We provide theoretical guarantees on its performance, and through extensive experimental work in various challenging OpenAI Gym environments, show its superior empirical performance when compared to other state-of-the-art algorithms adapted for the ACMDPs.
