On the Convergence Rates of Federated Q-Learning across Heterogeneous Environments

Muxing Wang, Pengkun Yang, Lili Su · OpenReview

Abstract

Large-scale multi-agent systems are often deployed across wide geographic areas, where agents interact with heterogeneous environments. There is an emerging interest in understanding the role of heterogeneity in the performance of the federated versions of classic reinforcement learning algorithms. In this paper, we study synchronous federated Q-learning, which aims to learn an optimal Q-function by having $K$ agents average their local Q-estimates per $E$ iterations. We observe an interesting phenomenon on the convergence speeds in terms of $K$ and $E$. Similar to the homogeneous environment settings, there is a linear speed-up concerning $K$ in reducing the errors that arise from sampling randomness. Yet, in sharp contrast to the homogeneous settings, $E>1$ leads to significant performance degradation. Specifically, we provide a fine-grained characterization of the error evolution in the presence of environmental heterogeneity, which decay to zero as the number of iterations $T$ increases. The slow convergence of having $E>1$ turns out to be fundamental rather than an artifact of our analysis. We prove that, for a wide range of stepsizes, the $\ell_{\infty}$ norm of the error cannot decay faster than $\Theta (E/T)$. In addition, our experiments demonstrate that the convergence exhibits an interesting two-phase phenomenon. For any given stepsize, there is a sharp phase-transition of the convergence: the error decays rapidly in the beginning yet later bounces up and stabilizes. Provided that the phase-transition time can be estimated, choosing different stepsizes for the two phases leads to faster overall convergence.

Introduction

Reinforcement learning (RL) is notoriously data-hungry. To address this, Federated Reinforcement Learning (FRL) has emerged as a paradigm where multiple agents—such as a fleet of autonomous vehicles or a network of smart sensors—collect data independently and periodically synchronize their findings with a central server.

Federated learning across heterogeneous agents in a smart city environment.

However, most existing theoretical frameworks assume "homogeneity," where every agent operates in an identical environment. In real-world deployments, this is rarely the case. As illustrated in Figure 1, different agents (cars, trucks, sensors) may face vastly different transition probabilities and reward structures. This "environmental heterogeneity" ($κ$) creates misaligned learning signals, raising a critical question: how do these differences, combined with the frequency of synchronization ($E$), affect the speed and accuracy of the global model?

Methodology: Synchronous Federated Q-Learning

This study analyzes Synchronous Federated Q-Learning (FQL), the RL counterpart to the FedAvg algorithm. In this setup, $K$ agents perform $E$ local Q-learning updates on their respective local data before averaging their Q-functions at a central server.

The analysis provides a rigorous mathematical characterization of error evolution. Unlike previous works that focused primarily on upper bounds, this research establishes a fundamental lower bound. This "no-go theorem" demonstrates that performance degradation in heterogeneous settings is not a byproduct of analytical loose ends but a fundamental limitation of the FQL algorithm itself.

Key Results and Theoretical Contributions

The research identifies several critical insights regarding the trade-offs between communication efficiency and model accuracy:

  • The "Goldilocks" Threshold: There exists a specific threshold for local computation. If $K(E-1)$ remains below this threshold, the system achieves a "linear speedup," where adding more agents makes training $K$ times faster. However, crossing this threshold causes environmental differences to dominate, leading to a deterioration in the convergence rate as local updates ($E$) increase.
  • Theoretical Lower Bound: The authors prove the error cannot decay faster than $\Theta_R(E/((1-\gamma)T))$. This confirms that the synchronization period $E$ acts as a multiplier for the final error, creating a "convergence floor."
  • Sample Complexity: In high-heterogeneity regimes, the sample complexity is $\tilde{O}(\frac{|S||A|\kappa E}{(1-\gamma)^3 \epsilon})$, explicitly showing how heterogeneity ($κ$) and local updates ($E$) inflate data requirements.
Comparison of this work with existing literature on federated reinforcement learning.

As shown in Figure 2, this work distinguishes itself from prior literature by simultaneously addressing heterogeneity, optimality, and lower bounds within a finite-time analysis framework for both prediction and planning tasks.

The "Bounce-Back" Phenomenon

Experimental results in heterogeneous maze environments and WindyCliff variants reveal a "two-phase" behavior in error trajectories. Instead of a smooth downward curve, the error plummets initially (Phase 1) but then "bounces" back up and stabilizes at a higher residual error (Phase 2).

This bounce is conjectured to be caused by "collective perturbation," where agents struggle to agree on a single Q-function that satisfies disparate environments. To mitigate this, the authors propose a Two-Phase Strategy: using different learning rates (stepsizes) for the initial fast learning phase and the subsequent stabilization phase. By estimating the phase-transition time ($t_0$), this heuristic achieves faster overall convergence than standard single-stepsize approaches.

Conclusion and Future Work

While this work establishes foundational bounds for FQL in heterogeneous environments, several avenues for future research remain. The current analysis assumes synchronous updates, whereas many real-world systems are asynchronous. Furthermore, extending these tabular Q-learning bounds to Deep Q-Networks (DQN) with function approximation remains a significant challenge. Finally, developing methods to automatically estimate the "bounce point" ($t_0$) for stepsize tuning would further enhance the practical utility of federated reinforcement learning.

Summary updated

BibTeX
@article{wang2025convergence,
  author = {Muxing Wang and Pengkun Yang and Lili Su},
  title = {{On the Convergence Rates of Federated Q-Learning across Heterogeneous Environments}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=EkLAG3gt3g},
}
Figure