Approximated Behavioral Metric-based State Projection for Federated Reinforcement Learning

Zhenghong Guo, Bo An, Zhongqi LuarXiv 2025 · DOI · arXiv

Abstract

Federated reinforcement learning (FRL) methods usually share the encrypted local state or policy information and help each client to learn from others while preserving everyone's privacy. In this work, we propose that sharing the approximated behavior metric-based state projection function is a promising way to enhance the performance of FRL and concurrently provides an effective protection of sensitive information. We introduce FedRAG, a FRL framework to learn a computationally practical projection function of states for each client and aggregating the parameters of projection functions at a central server. The FedRAG approach shares no sensitive task-specific information, yet provides information gain for each client. We conduct extensive experiments on the DeepMind Control Suite to demonstrate insightful results.

Introduction

Federated Reinforcement Learning (FRL) is a paradigm that allows multiple agents (clients) to collaboratively learn a task without centralizing their raw, sensitive data. Despite its potential, FRL faces two critical hurdles: environmental heterogeneity and the privacy-utility trade-off. In real-world scenarios, clients often operate in "Non-IID" (not identically and independently distributed) environments—for instance, robots with slightly different physical dimensions or varying surface friction. Standard FRL methods that share a single global policy often fail to generalize across these diverse conditions. Furthermore, sharing local policies or state trajectories can inadvertently leak sensitive information through inference attacks.

The FedRAG Framework

To address these challenges, we propose FedRAG (Federated Reinforcement Learning with Reducing Approximation Gap). Unlike traditional methods that federate the policy itself, FedRAG focuses on the state projection function ($\phi_\omega$).

State Projection and Behavioral Metrics

Each client utilizes a neural network to map high-dimensional observations (such as pixels) into a lower-dimensional embedding. The innovation lies in the "Reducing Approximation Gap" (RAG) distance used to train this projection. Instead of grouping states based on visual similarity, the RAG distance defines states as similar if they lead to comparable expected rewards and future state distributions. This ensures the embedding captures the underlying task logic rather than superficial environmental features.

The FedRAG framework architecture showing global and local state projection aggregation.

Federated Aggregation and Regularization

Periodically, clients transmit the parameters ($\omega$) of their projection networks to a central server. The server aggregates these parameters to form a global "lens," which is then redistributed to all clients. To balance global knowledge with local adaptation, we employ an $L_2$ regularization term that encourages local models to remain aligned with the global projection while allowing for necessary fine-tuning to specific local dynamics.

Experimental Evaluation

We evaluated FedRAG using the DeepMind Control Suite (DMC), a benchmark for continuous control. To simulate heterogeneity, we varied physical parameters (e.g., pole lengths in CartPole, torso lengths in Cheetah) and introduced visual noise using natural video backgrounds from the Kinetics dataset.

Key Results and Discussion

Our experiments demonstrate that FedRAG significantly enhances generalization and robustness compared to standard baselines like Federated Averaging (FedAvg) and Soft Actor-Critic (SAC) trained locally.

Performance comparison of FedRAG against baselines in unseen environments.

As shown in the results, FedRAG achieved an average episode reward of approximately 713 in unseen environments, a substantial improvement over FedAvg (~596) and the Local baseline (~416).

Insights

  1. Robustness to Visual Noise: By focusing on behavioral metrics, FedRAG effectively filters out distracting backgrounds, maintaining stable performance where other methods degrade.
  2. Zero-Shot Adaptation: The global projection function acts as a pre-filtered view of the world, allowing agents to adapt to completely new environment configurations with minimal additional training.
  3. Privacy Preservation: Sharing transformation parameters ($\omega$) rather than state-action pairs makes it significantly harder for adversaries to reconstruct private client data.

Conclusion and Future Work

FedRAG demonstrates that sharing the "how" of state representation is often more valuable than sharing the "what" of specific policies in heterogeneous FRL. While the current framework assumes a common action space and relies on Gaussian assumptions for reward distributions, it paves the way for more robust and private collaborative learning. Future work will explore extending FedRAG to agents with heterogeneous action spaces and more complex reward structures.

Summary updated

Abstract

Federated reinforcement learning (FRL) methods usually share the encrypted local state or policy information and help each client to learn from others while preserving everyone's privacy. In this work, we propose that sharing the approximated behavior metric-based state projection function is a promising way to enhance the performance of FRL and concurrently provides an effective protection of sensitive information. We introduce FedRAG, a FRL framework to learn a computationally practical projection function of states for each client and aggregating the parameters of projection functions at a central server. The FedRAG approach shares no sensitive task-specific information, yet provides information gain for each client. We conduct extensive experiments on the DeepMind Control Suite to demonstrate insightful results.
BibTeX
@misc{guo2025approximated,
  author = {Zhenghong Guo and Bo An and Zhongqi Lu},
  title = {{Approximated Behavioral Metric-based State Projection for Federated Reinforcement Learning}},
  year = {2025},
  eprint = {2505.09959},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.09959},
  howpublished = {arXiv},
}
Figure