Federated Deep Reinforcement Learning

Hankz Hankui Zhuo, Wenfeng Feng, Yu‐Feng Lin, Qian Xu, Qiang Yang · DOI

Abstract

In deep reinforcement learning, building policies of high-quality is challenging when the feature space of states is small and the training data is limited. Despite the success of previous transfer learning approaches in deep reinforcement learning, directly transferring data or models from an agent to another agent is often not allowed due to the privacy of data and/or models in many privacy-aware applications. In this paper, we propose a novel deep reinforcement learning framework to federatively build models of high-quality for agents with consideration of their privacies, namely Federated deep Reinforcement Learning (FedRL). To protect the privacy of data and models, we exploit Gaussian differentials on the information shared with each other when updating their local models. In the experiment, we evaluate our FedRL framework in two diverse domains, Grid-world and Text2Action domains, by comparing to various baselines.

Introduction

Deep Reinforcement Learning (DRL) is notoriously data-hungry. In many real-world scenarios—like hospitals developing treatment plans or factories optimizing production lines—individual agents have limited local data and small feature spaces, making it difficult to build robust policies. While transfer learning usually solves this by moving data or models between agents, this is a non-starter in privacy-sensitive industries. A hospital cannot share raw patient records, and a factory won't reveal its proprietary decision logic.

The Federated Deep Reinforcement Learning (FedRL) framework allows multiple agents to collaboratively build high-quality policies without ever sharing their private local data or model parameters. By sharing "noisy," differentially private Q-network outputs through a common value network, agents can benefit from collective experience while maintaining strict privacy boundaries.

Methodology

The authors introduce FedRL, a framework that combines DRL with Federated Learning (FL) and Differential Privacy.

Architecture

Each agent maintains a private, local Q-network ($\theta_\alpha, \theta_\beta$). To bridge these agents, the authors introduce a shared Multi-Layer Perceptron (MLP) that acts as a global value network ($\theta_g$).

Architecture of the FedRL framework for two agents

Instead of sharing raw observations or gradients (the standard in many FL approaches), agents share the outputs of their local Q-networks. To prevent an adversary from "reverse-engineering" an agent's model by watching its outputs, FedRL adds Gaussian noise $N(0, \sigma^2)$ to the Q-values before they are sent to the federation. This ensures that the shared information is "differentially private."

Training and Testing Process

The training loop involves agents collecting noisy Q-outputs from their peers. These are fed into the shared MLP along with the agent's own local Q-output to compute a "global" Q-value ($Q_f$). The agents then update their local networks and the shared MLP based on this global signal.

Information flow during the training and testing phases of FedRL

During testing, agents compute their local features and exchange them to compute the final action values without the need for noise (in the FedRL-2 variant).

Key Insights

  • Privacy at the Output Level: Most federated learning focuses on protecting gradients. FedRL focuses on protecting the policy's suggestions (Q-values). This is particularly clever because the output of an MLP with Gaussian input is itself Gaussian, making the privacy math cleaner.
  • Solving the "No Reward" Problem: FedRL allows "reward-less" agents to learn. By joining the federation, an agent with no reward signal can essentially "borrow" the reinforcement signal from a peer to build its own local policy.
  • The Hierarchical Advantage: The hierarchical structure (local Q-networks + a shared global MLP) sometimes outperformed even a centralized DQN that had access to all data. This suggests that the specialized local processing helps filter noise before global aggregation.

Evaluation and Results

The framework was evaluated on two distinct domains: Grid-World (navigation task) and Text2Action (extracting action sequences from text documents like Microsoft Windows Help and WikiHow).

  • Superiority over Local Models: In the $32\times32$ Grid-World, FedRL-2 achieved a success rate of 82.02%, dwarfing the 71.41% achieved by a standard DQN trained only on local data.
  • Closing the Gap with "Full" Data: FedRL performed remarkably close to "DQN-full"—a theoretical baseline where all privacy is ignored and all data is pooled centrally. In the Text2Action CT dataset, FedRL-2 achieved an F1 score of 84.92%, nearly matching the privacy-ignoring DQN-full at 83.39%.
  • Scalability: Performance scales better than local models as the observation history increases, showing it can handle more complex, temporally-dependent tasks.

Conclusion and Future Work

While the theory allows for many agents, the experiments primarily focused on a two-agent federation. Future work could explore adaptive noise levels that balance privacy and performance dynamically and the incorporation of "action models" to help agents learn even faster when data is extremely sparse.

Summary updated

Abstract

In deep reinforcement learning, building policies of high-quality is challenging when the feature space of states is small and the training data is limited. Despite the success of previous transfer learning approaches in deep reinforcement learning, directly transferring data or models from an agent to another agent is often not allowed due to the privacy of data and/or models in many privacy-aware applications. In this paper, we propose a novel deep reinforcement learning framework to federatively build models of high-quality for agents with consideration of their privacies, namely Federated deep Reinforcement Learning (FedRL). To protect the privacy of data and models, we exploit Gausian differentials on the information shared with each other when updating their local models. In the experiment, we evaluate our FedRL framework in two diverse domains, Grid-world and Text2Action domains, by comparing to various baselines.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Grid world · Grid-World · 8 × 8FedRL-2SuccRate (successful-episode rate)95.06%+6.79 vs baselinesplit: test · grid-size=8×8 · local-q-network-testing-privacy=no Gaussian differential privacy
Source quote
L370: FedRL-2 │ 95.06% │ 84.31% │ 82.02%
Grid world · Grid-World · 16 × 16FedRL-2SuccRate (successful-episode rate)84.31%split: test · grid-size=16×16 · resolution=16x16 · local-q-network-testing-privacy=no Gaussian differential privacy
Source quote
L370: FedRL-2 │ 95.06% │ 84.31% │ 82.02%
Grid world · Grid-World · 32 × 32FedRL-2SuccRate (successful-episode rate)82.02%split: test · grid-size=32×32 · resolution=32x32 · local-q-network-testing-privacy=no Gaussian differential privacy
Source quote
L370: FedRL-2 │ 95.06% │ 84.31% │ 82.02%
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
Grid world · Grid-World · 8 × 8DQN-alpha baselineSuccRate (successful-episode rate)88.27%split: test · grid-size=8×8 · training-data=agent-alpha-only
Source quote
L368: DQN-alpha │ 88.27% │ 76.20% │ 71.41%
Grid world · Grid-World · 16 × 16DQN-alpha baselineSuccRate (successful-episode rate)76.20%split: test · grid-size=16×16 · resolution=16x16 · training-data=agent-alpha-only
Source quote
L368: DQN-alpha │ 88.27% │ 76.20% │ 71.41%
Grid world · Grid-World · 32 × 32DQN-alpha baselineSuccRate (successful-episode rate)71.41%split: test · grid-size=32×32 · resolution=32x32 · training-data=agent-alpha-only
Source quote
L368: DQN-alpha │ 88.27% │ 76.20% │ 71.41%
BibTeX
@misc{zhuo2019federated,
  author = {Hankz Hankui Zhuo and Wenfeng Feng and Yu‐Feng Lin and Qian Xu and Qiang Yang},
  title = {{Federated Deep Reinforcement Learning}},
  year = {2019},
  eprint = {1901.08277},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1901.08277},
}
Figure