Local Stochastic Approximation: A Unified View of Federated Learning and Distributed Multi-Task Reinforcement Learning Algorithms

Thinh T. DoanarXiv 2020

Abstract

In distributed machine learning, the "local update" strategy—where agents perform multiple local computations before synchronizing with a central server—is a cornerstone for reducing communication overhead. While well-studied in Federated Learning (FL) under independent and identically distributed (i.i.d.) data assumptions, its application to Reinforcement Learning (RL) is complicated by the inherent temporal dependencies of Markovian data. This paper introduces a unified framework for Local Stochastic Approximation (SA) that encompasses both FL and Multi-Task RL (MTRL). We provide the first finite-time convergence analysis for these algorithms under Markovian noise and heterogeneous data, demonstrating that the "cost" of data dependency is merely a logarithmic factor compared to the i.i.d. setting.

1. Introduction

The rise of edge computing and large-scale distributed systems has necessitated algorithms that are both computationally efficient and communication-aware. Federated Learning (FL) has popularized the use of local updates (e.g., Local SGD) to minimize the frequency of model synchronization. However, as we extend these distributed paradigms to Reinforcement Learning (RL), a significant theoretical gap emerges. Standard FL analysis typically assumes i.i.d. data samples, whereas RL agents collect data along trajectories where the state at time $t+1$ is intrinsically linked to the state at time $t$.

This paper addresses this gap by providing a rigorous theoretical foundation for Local Stochastic Approximation (SA). By viewing distributed learning as a root-finding problem for mathematical operators, the author provides a unified analysis that applies to both optimization-based FL and value-estimation-based MTRL.

2. The Local Stochastic Approximation Framework

The paper analyzes a generalized distributed algorithm consisting of three primary phases:

  1. Broadcast: A central coordinator synchronizes the global model parameter $\bar{\theta}^k$ across $N$ agents.
  2. Local Updates: Each agent $i$ performs $H$ steps of stochastic approximation using its local data. Unlike standard SGD, the updates here are driven by local operators $g_i(\theta, \xi)$, where $\xi$ represents Markovian noise.
  3. Aggregation: The coordinator collects the local parameters and computes their average to form the next global model $\bar{\theta}^{k+1}$.

This framework is versatile. When the operators $g_i$ are gradients of local loss functions, it recovers Local SGD. When the operators correspond to Bellman equations, it recovers distributed RL algorithms like Temporal Difference (TD) learning or Q-learning.

3. Theoretical Insights: The "Markov Tax"

A central challenge in analyzing RL algorithms is the "Markovian noise." Because samples are not independent, the algorithm must wait for the underlying Markov chain to "mix" before the updates accurately reflect the true objective.

The paper’s most significant insight is the quantification of the "Markov Tax." The analysis proves that the convergence rate under Markovian data is within a logarithmic factor of the rate achievable with i.i.d. data. Specifically, the dependency on the mixing time $\tau$ only enters the bound as a multiplier, and the overall convergence rate remains efficient. This suggests that the inherent dependency in RL trajectories does not fundamentally degrade the performance of distributed local updates.

4. Finite-Time Convergence Results

The author provides explicit, finite-time upper bounds on the mean square error (MSE) of the global model. Two primary scenarios are considered:

4.1 Constant Step Size

When agents use a fixed learning rate $\alpha$, the algorithm converges exponentially fast to a neighborhood of the optimal solution. The residual error (the "error floor") is shown to be proportional to $\alpha \log(1/\alpha)$. This result is crucial for practitioners who prefer constant step sizes for their simplicity and fast initial convergence.

4.2 Diminishing Step Size

For algorithms requiring exact convergence, a diminishing step size $\alpha_k \sim 1/k$ is used. The paper proves a sublinear convergence rate of approximately $O(\frac{\log k}{k})$. This result is significant as it provides a precise guarantee of how many iterations are required to reach a desired level of accuracy, accounting for both the number of agents $N$ and the number of local steps $H$.

5. Applications in FL and MTRL

The unified theory is applied to several prominent algorithms:

  • Federated Learning: It provides new guarantees for Local SGD with strongly convex objectives under non-i.i.d. and dependent data.
  • Multi-Task RL: It validates Distributed TD($\lambda$) and Distributed Q-learning with linear function approximation. In these settings, agents may have different transition dynamics or reward functions (heterogeneity), yet the global model still converges to a meaningful average of the local tasks.

6. Conclusion and Future Directions

This work bridges the gap between optimization and reinforcement learning in distributed settings. By establishing that local updates are robust to Markovian data, it provides a theoretical green light for using communication-efficient methods in complex RL tasks.

However, several avenues for future research remain. The current analysis assumes strong monotonicity, which corresponds to strong convexity in optimization. This excludes the non-convex landscapes typical of deep neural networks. Additionally, the model assumes a star topology with a central server; extending these results to fully decentralized networks would further enhance the applicability of the theory. Finally, the assumption of a finite state space for the Markovian analysis could be relaxed to accommodate continuous environments.

Summary updated

BibTeX
@misc{doan2020local,
  author = {Thinh T. Doan},
  title = {{Local Stochastic Approximation: A Unified View of Federated Learning and Distributed Multi-Task Reinforcement Learning Algorithms}},
  year = {2020},
  eprint = {2006.13460},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.13460},
}
Figure