NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A finite time analysis of distributed Q-learning

Han-Dong Lim, Donghwan Lee · DOI

Abstract

Distributed Reinforcement Learning (RL) allows multiple agents to collaboratively learn an optimal policy without a central controller. While the QD-learning algorithm is a foundational approach in this domain, its theoretical understanding has largely been limited to asymptotic convergence. This paper provides the first non-asymptotic (finite-time) analysis of tabular QD-learning under Markovian noise. By modeling the algorithm as a switched affine system, we establish a sample complexity bound that explicitly incorporates network topology and the spectral gap of the communication graph.

1. Introduction

In Multi-Agent Reinforcement Learning (MARL), a primary challenge is achieving "distributedness." In many real-world scenarios, agents must maximize a global average reward while only observing local rewards and communicating with immediate neighbors. Distributed Q-learning (QD-learning) is a natural extension of the classic Q-learning algorithm to this decentralized setting.

However, analyzing its performance is notoriously difficult due to the non-linear "max" operator in the Bellman equation. Existing literature has historically fallen into two categories: asymptotic analyses that prove convergence at infinity without providing sample complexity, or finite-time analyses that rely on restrictive assumptions like strong monotonicity. This work fills the gap by providing a finite-time analysis under standard assumptions equivalent to those used in single-agent Q-learning.

2. Methodology: A Switched System Approach

The core innovation of this work lies in treating the distributed Q-learning update as a switched affine system. In control theory, a switched system transitions between different linear behaviors. The authors view the non-linear "max" operator as a selection mechanism that flips between different linear subsystems, allowing them to apply tools from linear system theory to a non-linear RL problem.

2.1 Error Decomposition

To analyze the convergence, the authors decompose the total error into two distinct components:

  1. Consensus Error: This measures the disagreement between individual agents. As agents communicate, this error should diminish, indicating they are converging toward a shared understanding of the environment.
  2. Optimality Error: This measures how far the group's average Q-value is from the true optimal $Q^*$.

2.2 Comparison Systems

To make the mathematical analysis tractable, the authors construct "sandwich" systems—upper and lower comparison systems. By proving that the actual error of the QD-learning algorithm is always trapped between these two simpler systems, they derive convergence rates that would otherwise be inaccessible due to the complexity of the original update rule.

2.3 Concurrent Computation and Communication

Unlike "adapt-then-combine" architectures that require sequential steps, this model supports a "combine-and-adapt" approach. This allows agents to perform local updates (computing TD-errors) and exchange information with neighbors simultaneously, leading to more efficient parallel execution and simplified algorithmic implementation.

3. Theoretical Results

The paper establishes a new sample complexity bound for QD-learning under a Markovian observation model. To reach an error level of $\epsilon$, the number of samples required is approximately:

$$\tilde{O}\left( \max \left\{ \frac{t_{\text{mix}}}{\epsilon^2(1-\gamma)^6 d_{\min}^4}, \frac{\sqrt{|S||A|}}{\epsilon(1-\sigma_2(W))(1-\gamma)^4 d_{\min}^3} \right\} \right)$$

Key parameters in this bound include:

  • $t_{\text{mix}}$: The mixing time of the underlying Markov chain, representing the noise in observations.
  • $\gamma$: The discount factor.
  • $1-\sigma_2(W)$: The spectral gap of the communication matrix $W$, which quantifies the connectivity of the network. A larger gap (better connectivity) leads to faster convergence.
  • $d_{\min}$: The minimum state-action visitation probability.

This result explicitly shows how the network topology influences the learning rate, providing a clear link between graph theory and MARL performance.

4. Empirical Validation

The theoretical findings were validated using two primary experimental setups:

  • Synthetic MDPs: Testing on various network topologies (e.g., Ring and Star graphs) with $N=3$ to $N=7$ agents. These experiments confirmed that the spectral gap of the network significantly impacts the speed of consensus.
  • Markov Congestion Game: An 8-agent benchmark where agents must learn to distribute themselves across 4 rooms to avoid overcrowding. This experiment demonstrated the algorithm's ability to reach a cooperative global optimum using only local information.

Notably, the authors found that using a constant step-size led to much faster initial convergence compared to the traditional decaying step-sizes often used in older distributed RL literature.

5. Conclusion and Future Work

This paper provides a rigorous theoretical foundation for distributed Q-learning, moving beyond asymptotic results to provide concrete sample complexity bounds. However, several avenues for future research remain. The current analysis is limited to the tabular setting, and extending these proofs to function approximation (such as Deep Q-Networks) is a necessary next step for scaling to high-dimensional state spaces. Additionally, the authors aim to tighten the dependencies on the discount factor and visitation probabilities to match the best-known single-agent bounds.

Summary updated

BibTeX
@misc{lim2024finite,
  author = {Han-Dong Lim and Donghwan Lee},
  title = {{A finite time analysis of distributed Q-learning}},
  year = {2024},
  eprint = {2405.14078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.14078},
}
Figure