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

Leo Muxing Wang, Pengkun Yang, Lili Su

TL;DR

While federated reinforcement learning promises to accelerate training by pooling data across multiple agents, environmental heterogeneity introduces a fundamental bottleneck. This paper proves that local updates ($E > 1$) in heterogeneous environments cause significant performance degradation and a distinct "two-phase" error convergence behavior, but shows this can be mitigated using a novel two-phase stepsize strategy.

What Problem Does This Paper Address?

Federated Reinforcement Learning (FRL) allows multiple agents (e.g., autonomous vehicles or robots) to collaboratively learn a sequential decision-making policy without sharing their raw, local data trajectories. In an ideal, homogeneous world where every agent faces the exact same environment, increasing the number of agents ($K$) yields a beautiful linear speedup in learning, and increasing local update steps ($E$) reduces communication overhead without hurting accuracy.

However, real-world deployments span diverse geographic areas where environments are inherently heterogeneous. For example, autonomous trucks operating in different cities encounter varying traffic patterns, road conditions, and local regulations.

Figure 1: An illustration of a federated learning sys- tem.

Prior work struggled to cleanly map out how this environmental heterogeneity impacts the convergence of classic model-free algorithms like Q-learning. As shown in the authors' literature synthesis, previous attempts failed to establish tight sample complexities, prove lower bounds, or provide error bounds that actually decay to zero over time.

Comparison of this work against existing literature in Federated Reinforcement Learning.

Methods

The authors analyze Synchronous Federated Q-Learning (FQL) under environmental heterogeneity. In this setup, $K$ agents independently run local Q-learning updates using their own transition probabilities. Every $E$ iterations, the agents send their local Q-estimates to a central parameter server, which averages them and synchronizes the agents.

To understand the fundamental limits of this setup, the authors:

  1. Characterized the $\ell_\infty$ error evolution mathematically, splitting the error into components driven by initial error, sampling noise, and environmental heterogeneity.
  2. Proved a fundamental lower bound on the convergence rate using a simplified Markov reward process (a Q-learning setup with a single action) over a two-state system to demonstrate that the slowdown caused by local updates is an inescapable mathematical reality, not an artifact of loose analysis.
  3. Evaluated a two-phase stepsize strategy empirically to counteract the negative effects of heterogeneity.

Datasets

The theoretical insights were validated using a simulated $5 \times 5$ maze environment (25 states, 4 actions).

  • Setup: 20 agents were deployed in independent environments.
  • Heterogeneity Injection: The transition probabilities were modified using a "WindyCliff" style setup, incorporating a drifting probability of 0.1 into non-intentional actions. Crucially, the authors varied both the probability values and the supports (the locations of non-zero entries) across agents, resulting in a high transition heterogeneity scalar ($\kappa = 1.2$).

Key Insights and Ideas

  • The Curse of Local Updates ($E > 1$): In sharp contrast to homogeneous settings where large $E$ values merely save communication bandwidth, heterogeneity turns local updates into a performance killer. When the product of agents and local updates exceeds a certain threshold, the error fundamentally cannot decay faster than $\Theta(E/T)$. Eventually, doing multiple local updates consumes more total samples than communicating at every single step ($E=1$).
  • The Two-Phase Phenomenon: When using standard constant stepsizes in heterogeneous environments, the error trajectory undergoes a sharp phase transition. In Phase 1, the error drops rapidly as the initial error decays exponentially. In Phase 2, the collective perturbation from environmental heterogeneity takes over, causing the error to bounce back up and stabilize at a high residual floor.
  • Stepsize Splitting: Because the error is driven by different forces in Phase 1 vs. Phase 2, a single stepsize is sub-optimal. Using a large stepsize early on clears out the initial error quickly, while switching to a much smaller or rapidly decaying stepsize in Phase 2 keeps the heterogeneity perturbation in check.

Key Results

  • Eventual Zero Error: Unlike prior bounds that left a permanent residual error as time $T \to \infty$, the authors' upper bound successfully decays to zero, provided the stepsize $\lambda$ is properly tuned to decrease over time.
  • Sample Complexity Thresholds:
  • When heterogeneity is low ($K(E-1)$ is below a threshold), FQL achieves a linear speedup with a sample complexity of $\tilde{\mathcal{O}}\left(\frac{|S||A|}{K(1-\gamma)^5\epsilon^2}\right)$.
  • When above the threshold, the sample complexity becomes $\tilde{\mathcal{O}}\left(\frac{\kappa|S||A|E}{(1-\gamma)^3\epsilon}\right)$, explicitly showing the penalty incurred by $E$.
  • Empirical Validation: In maze experiments, using a two-phase training strategy (e.g., starting with a constant stepsize of 0.05 and switching to $\lambda = 1/\sqrt{T}$) achieved the lowest final error (2.75) compared to using a single stepsize throughout, which converged much more slowly.

Limitations and Future Work

While this work provides a rigorous foundation for heterogeneous FRL, a few open challenges remain:

  • Asynchronous FQL: The current analysis assumes synchronous updates, but real-world edge devices often communicate asynchronously.
  • Predicting the Phase Transition ($t_0$): The two-phase stepsize strategy relies on knowing when the error will bounce back up. Automatically estimating this transition point $t_0$ online remains an open problem.
  • Time-Varying Stepsize Lower Bounds: The fundamental lower bound ($\Theta(E/T)$) was proven for time-invariant stepsizes; extending this proof to cover arbitrary time-varying stepsize schedules introduces significant mathematical complexity that has yet to be resolved.

Summary updated

BibTeX
@article{wang2025convergence,
  author = {Leo 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