On the Convergence Theory of Meta Reinforcement Learning with Personalized Policies

Haozhi Wang, Qing Wang, Yunfeng Shao, Dong Li, Jianye Hao, Yinchuan Li · DOI

Abstract

Meta-Reinforcement Learning (Meta-RL) aims to enable agents to adapt rapidly to new environments by leveraging prior experience. However, traditional methods often struggle with heterogeneous task distributions where conflicting goals lead to "gradient conflict." This paper introduces pMeta-RL, a framework that addresses this by allowing tasks to maintain personalized policies regularized against a shared meta-policy. We provide a theoretical guarantee of linear convergence in tabular settings and demonstrate that pMeta-RL significantly outperforms existing baselines on complex, diverse benchmarks.

Introduction

The core objective of Meta-RL is to extract common knowledge across a distribution of tasks to accelerate learning in unseen environments. Mainstream approaches like Model-Agnostic Meta-Learning (MAML) typically assume task homogeneity. In practice, however, tasks are often distinct or even contradictory—such as a robot needing to move forward in one scenario and backward in another.

When a single neural network attempts to learn a universal meta-policy for such heterogeneous goals, it suffers from gradient conflict: updates beneficial for one task may be detrimental to another. This often results in a sub-optimal "one-size-fits-all" policy that fails to master any specific task effectively.

The pMeta-RL Framework

To overcome the limitations of a single shared policy, we propose Personalized Meta-RL (pMeta-RL). This framework maintains a dual-layered structure:

  1. Personalized Policies: Each task maintains its own specific policy parameters to maximize local returns.
  2. Meta-Policy: A central policy aggregates global knowledge across the entire task distribution.

The interaction between these layers is governed by a personalization constraint (typically an $\ell_2$-norm). This constraint acts as a regularizer, allowing task-specific policies the flexibility to deviate from the meta-policy to handle local nuances while ensuring they remain anchored to shared global knowledge.

We employ an alternating minimization algorithm to solve this objective. In each cycle, the agent updates personalized policies based on local environment transitions, then updates an auxiliary policy to bridge the gap, and finally aggregates these updates into the global meta-policy. This decoupling of task-specific learning from global aggregation is central to preventing the tug-of-war of conflicting gradients.

Experimental Setup

We evaluated pMeta-RL across several benchmarks designed to test its robustness to task diversity:

  • OpenAI Gym: Modified versions of CartPole and MountainCar with varying physical parameters (e.g., gravity).
  • MuJoCo Suite: Complex continuous control tasks including Ant-Fwd-Back, Half-Cheetah-Dir, and Half-Cheetah-Vel.
The Cheetah-vel environment requires the agent to adapt to varying target velocities, representing a heterogeneous task distribution.

In the Half-Cheetah-Vel task, for instance, the agent must learn to run at different target speeds (e.g., 1m/s vs 3m/s), requiring distinct gait patterns that can conflict if forced into a single rigid meta-policy.

Key Results and Insights

Our empirical results demonstrate that pMeta-RL consistently outperforms state-of-the-art Meta-RL baselines such as PEARL, ProMP, and MAML. In the Ant-Fwd-Back environment, pMeta-RL achieved average returns approximately 12% higher than PEARL.

Qualitative analysis of agent trajectories reveals the impact of personalization. While standard meta-policies often struggle to reach specific goals in heterogeneous settings, pMeta-RL's personalized policies navigate to them with high precision.

Comparison of trajectories between PEARL and pMeta-RL. Standard methods (top) often fail to reach diverse goals, while pMeta-RL (bottom) successfully adapts to multiple distinct targets.

Theoretical Grounding

Beyond empirical success, this work provides a rigorous convergence analysis. We prove that pMeta-RL converges at a linear rate in tabular settings. This mathematical foundation explains why the framework is more stable and effective than traditional gradient-aggregation methods in diverse environments.

The Role of Regularization

The regularization parameter $\lambda$ is critical. A high $\lambda$ forces tasks to adhere strictly to the meta-policy, risking gradient conflict, while a low $\lambda$ leads to independent learning, sacrificing the benefits of shared knowledge. Finding the optimal balance is key to maximizing the framework's performance.

Conclusion

pMeta-RL offers a robust solution to the gradient conflict problem in Meta-RL by decoupling task-specific adaptation from global knowledge aggregation. By providing both theoretical guarantees and superior empirical performance on heterogeneous benchmarks, this work establishes personalized policies as a powerful tool for building versatile and adaptive reinforcement learning agents.

Summary updated

BibTeX
@misc{wang2022convergence,
  author = {Haozhi Wang and Qing Wang and Yunfeng Shao and Dong Li and Jianye Hao and Yinchuan Li},
  title = {{On the Convergence Theory of Meta Reinforcement Learning with Personalized Policies}},
  year = {2022},
  eprint = {2209.10072},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.10072},
}
Figure