Natural Policy Gradient and Actor Critic Methods for Constrained Multi-Task Reinforcement Learning

Sihan Zeng, Thinh T. Doan, Justin RombergarXiv 2024 · DOI

Introduction

Multi-Task Reinforcement Learning (MTRL) aims to develop agents capable of performing across a variety of environments. Traditionally, the objective in MTRL is to maximize the average reward across all tasks. However, this approach often leads to significant task imbalance. In scenarios where tasks have conflicting goals or disparate reward magnitudes, an agent may prioritize high-reward tasks while neglecting others, leading to poor performance on specific sub-tasks.

This paper addresses this limitation by introducing a robust framework for Constrained Multi-Task Reinforcement Learning. By modeling the problem as a Constrained Markov Decision Process (CMDP), the authors ensure that an agent meets specific performance floors for every individual task, rather than just performing well on average. The work provides the first provably convergent, sample-based actor-critic algorithms for this setting, spanning centralized, decentralized, and function-approximation environments.

Problem Formulation: Beyond Average Rewards

The core innovation lies in the shift from unconstrained maximization to a constrained optimization problem. Instead of simply maximizing the aggregate reward, the authors propose maximizing the average reward subject to minimum performance constraints for each task. This formulation ensures a "fair" policy that satisfies baseline requirements for every environment the agent encounters.

The authors explore this problem across three distinct scenarios:

  1. Centralized Setting: A single server possesses global visibility of all tasks.
  2. Decentralized Setting: A network of agents, where each agent observes only its local task, must cooperate through local communication to converge on a globally optimal policy.
  3. Linear Function Approximation: A setting designed for massive state spaces where tabular methods are infeasible, requiring the use of linear models to represent value functions.

Algorithmic Framework: Primal-Dual Methods

To solve the constrained optimization problem, the authors propose a suite of Primal-Dual algorithms. These methods simultaneously update the policy (the primal variable) to improve rewards and the Lagrange multipliers (the dual variables) to penalize any violations of the task-specific constraints.

MT-PDNPG and MT-PDNAC

The Multi-Task Primal-Dual Natural Policy Gradient (MT-PDNPG) is a centralized algorithm utilizing exact gradients. By employing the "Natural" gradient, the algorithm achieves greater stability and efficiency in policy optimization compared to standard gradient descent.

For practical applications where environment transitions are unknown, the authors introduce MT-PDNAC (Natural Actor-Critic). This sample-based version uses a "Critic" to estimate the value of the current policy from online trajectories, making it a "completely online" solution that does not require environment resets or large replay buffers.

Decentralized Consensus and Linear Approximation

In decentralized environments, agents utilize a consensus-based approach. They perform local updates and then engage in an averaging step with their neighbors. The speed of this convergence is mathematically tied to the "spectral gap" of the communication graph—the better the connectivity, the faster the network reaches a global optimum.

When dealing with linear function approximation, the authors address the "moving target" problem inherent in on-policy learning. As the policy improves, the data distribution shifts, which can destabilize the critic. To counter this, they implement a nested-loop structure, running multiple critic updates for every single policy update to ensure mathematical stability.

Theoretical Insights and Key Results

A significant portion of this work is dedicated to providing rigorous convergence guarantees. Despite the non-convex nature of policy optimization, the authors leverage the specific structure of MDPs to demonstrate that strong duality holds. This ensures that the primal-dual approach converges to a global optimum rather than a local one.

Convergence and Complexity

  • Exact Gradient Method: Converges at a rate of $O(K^{-1/2})$.
  • Sample-Based Actor-Critic: Converges at a rate of $O(K^{-1/6})$.
  • Sample Complexity: To reach a precision $\delta$, the sample-based algorithm requires $\tilde{O}(\delta^{-6})$ samples.

Notably, these rates match the best-known results for single-agent, unconstrained reinforcement learning. This suggests that the addition of multiple tasks and performance constraints does not increase the fundamental complexity class of the learning problem.

Experimental Validation

The authors validated their theoretical findings using a $10 \times 10$ GridWorld maze experiment involving three tasks with varying reward structures and costs. The results demonstrated that the constrained formulation successfully prevented the agent from ignoring low-reward tasks. In the unconstrained version, the agent would often sacrifice performance on difficult tasks to maximize gains elsewhere; under the constrained framework, the agent learned a balanced policy that satisfied all task baselines.

Conclusion and Future Work

This paper provides a foundational theoretical framework for ensuring fairness and reliability in multi-task reinforcement learning. By introducing provably convergent actor-critic methods for constrained environments, the authors bridge the gap between theoretical stability and practical, sample-based learning.

Future research directions include extending the theory to tasks with different state spaces or dynamics (shared "physics"), and moving beyond linear function approximation to provide similar convergence bounds for deep neural networks.

Summary updated

BibTeX
@misc{zeng2024natural,
  author = {Sihan Zeng and Thinh T. Doan and Justin Romberg},
  title = {{Natural Policy Gradient and Actor Critic Methods for Constrained Multi-Task Reinforcement Learning}},
  year = {2024},
  eprint = {2405.02456},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.02456},
}
Figure