Federated Reinforcement Learning with Constraint Heterogeneity

Hao Jin, Liangyu Zhang, Zhihua ZhangarXiv 2024 · DOI

Abstract

Federated Reinforcement Learning (FedRL) typically assumes that agents share a common objective or face homogeneous constraints. However, real-world applications often involve agents with diverse, locally-observed safety or operational requirements. This paper introduces a framework for FedRL under constraint heterogeneity, where a global policy must satisfy the union of all local constraints. We propose a federated primal-dual approach, instantiated as FedNPG for theoretical analysis and FedPPO for deep RL tasks. Our results demonstrate that FedPPO achieves performance comparable to an omniscient centralized agent while ensuring all heterogeneous constraints are met, with a proven convergence rate of $\tilde{O}(1/\sqrt{T})$.

Introduction

In Constrained Reinforcement Learning (CRL), agents aim to maximize cumulative rewards while keeping specific costs (e.g., safety violations or energy usage) below predefined thresholds. While FedRL has traditionally focused on reward (objective) heterogeneity, this work addresses the novel challenge of constraint heterogeneity. In this setting, Agent A may be aware of constraint $X$, while Agent B only observes constraint $Y$. The goal is to learn a single global policy that respects both $X$ and $Y$ without requiring agents to share their private constraint signals or local data.

This scenario is particularly relevant for privacy-sensitive applications, such as fine-tuning Large Language Models (LLMs) across different jurisdictions with varying regulatory constraints, or coordinating robotic fleets where individual units operate in different physical environments with unique safety hazards. No single agent sees the "full picture," yet the final global model must satisfy the collective requirements.

Methodology: Federated Primal-Dual Optimization

The authors tackle the problem by formulating it as a constrained optimization task solved via a federated primal-dual approach. The global objective is decomposed into $N$ local Lagrange functions:

  1. Local Primal-Dual Updates: Each agent $i$ maintains local policy parameters $\theta_i$ and a local Lagrange multiplier $\lambda_i$. The multiplier acts as a dynamic penalty for violating the agent's specific local constraint.
  2. Decoupled Multipliers: A critical insight of this work is that while policy parameters are synchronized globally to reach a consensus, the Lagrange multipliers remain local. This allows each agent to independently track the "price" of its specific constraint without leaking signal information to others.
  3. Periodic Aggregation: Agents periodically communicate their local policy parameters to a central server, which aggregates them (e.g., via averaging) to form a new global policy.

Two primary algorithms are introduced:

  • FedNPG: Utilizes Natural Policy Gradient for tabular environments, providing a strong theoretical foundation for convergence.
  • FedPPO: Adapts the framework for high-dimensional continuous control using Proximal Policy Optimization and deep neural networks.

Experimental Evaluation

The framework was evaluated across several benchmarks modified for heterogeneity, including tabular MDPs (WindyCliff) and continuous control tasks from OpenAI Gym (CartPole, Acrobot, Inverted-Pendulum). In these environments, different agents were assigned non-overlapping constraints, such as specific prohibited regions or action sequences.

Figure 2: Performance comparison of FedPPO against local and omniscient baselines across various environments. The plots show reward maximization (left column) and cost satisfaction (middle and right columns) relative to thresholds (red lines).

Key Results

  • Global Constraint Satisfaction: As shown in Figure 2, local agents ($PPO_0$, $PPO_1$) typically fail to satisfy constraints they do not personally observe. In contrast, FedPPO successfully converges to a policy that respects all global constraints, keeping costs below the red threshold lines.
  • Performance Parity: FedPPO achieves reward levels nearly identical to an "omniscient" baseline ($PPO_o$) that has access to all constraints simultaneously. This indicates that the federated communication overhead does not significantly compromise policy optimality.
  • Theoretical Convergence: The authors prove that FedNPG achieves a convergence rate of $\tilde{O}(1/\sqrt{T})$. The error bound scales with the number of agents $N$, reflecting the inherent complexity of satisfying multiple distinct constraints compared to a centralized setting.

Conclusion and Future Work

This research provides a robust foundation for collaborative RL in environments with fragmented safety requirements. While the current framework demonstrates strong empirical and theoretical results, future work could address the $O(N)$ scaling of the error bound to improve efficiency as the number of unique constraints grows. Additionally, investigating the system's resilience to adversarial or conflicting constraints remains an important avenue for securing federated systems in real-world applications.

Summary updated

BibTeX
@misc{jin2024federated,
  author = {Hao Jin and Liangyu Zhang and Zhihua Zhang},
  title = {{Federated Reinforcement Learning with Constraint Heterogeneity}},
  year = {2024},
  eprint = {2405.03236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.03236},
}
Figure