AsyncQVI: Asynchronous-Parallel Q-Value Iteration for Reinforcement Learning with Near-Optimal Sample Complexity

Yibo Zeng, Fei Feng, Wotao Yin

Abstract

AsyncQVI is the first asynchronous-parallel reinforcement learning algorithm for discounted Markov Decision Processes (MDPs) that provides a near-optimal theoretical sample complexity. By allowing multiple agents to update a shared value vector without waiting for one another, it achieves linear parallel speedup and maintains a minimal memory footprint of $O(|S|)$, making it highly suitable for large-scale applications. This paper bridges the gap between the empirical success of asynchronous RL and its theoretical foundations.

Introduction

In Reinforcement Learning (RL), solving Discounted Infinite-Horizon Markov Decision Processes (DMDPs) is a fundamental task. While asynchronous parallel algorithms have seen massive empirical success in deep RL, their theoretical properties—specifically their sample complexity—have remained poorly understood. Existing high-performance algorithms often face a trade-off: synchronous methods are easier to analyze but suffer from "straggler" effects, while variance-reduced methods achieve better sample complexity but require significant memory ($O(|S||A|)$) and periodic synchronization, which hinders parallel efficiency. AsyncQVI addresses these challenges by providing an algorithm that is theoretically grounded, sample-efficient, and truly asynchronous.

Methodology

AsyncQVI (Asynchronous-Parallel Q-Value Iteration) operates under a generative model where agents query state-action pairs $(i, a)$ and receive transitions and rewards. Key technical components include:

  • Asynchronous Coordinate Updates: Agents update specific states and actions independently using potentially "stale" information from shared memory.
  • Minimal Memory Footprint: Unlike standard Q-learning which stores a table of size $|S| \times |A|$, AsyncQVI only stores two vectors of size $|S|$ (the value vector $v$ and the policy $\pi$). This is achieved by calculating the maximum Q-value on the fly and using a mutex lock to update the shared global state.
  • Modified Bellman Update: To facilitate convergence in an asynchronous setting, the algorithm subtracts a small constant $(1-\gamma)\epsilon/4$ from the empirical Bellman update.
Theoretical comparison of AsyncQVI against variance-reduced methods, highlighting memory efficiency and sample complexity.

Theoretical Analysis

The paper proves that the Bellman operator is robust enough to handle the information delays inherent in asynchronous systems. AsyncQVI achieves a sample complexity of $\tilde{O}\left(\frac{|S||A|}{(1-\gamma)^5\epsilon^2} \log(\frac{1}{\delta})\right)$. While there is a factor of $(1-\gamma)^2$ gap from the theoretical lower bound, this is the first asynchronous result to come within that range. Furthermore, the authors demonstrate that standard Asynchronous Q-learning with a constant stepsize (AQLC) is a special case of AsyncQVI, providing a new theoretical lens for existing empirical methods.

Empirical Evaluation

The algorithm was evaluated using the Sailing Problem, a $100 \times 100$ grid (80,000 states) with added "drift noise" to increase stochasticity.

Linear Speedup and Performance

One of the most significant findings is the demonstration of ideal linear speedup. Doubling the number of threads roughly halves the wall-clock time, proving that the overhead of asynchronous communication is negligible compared to the gains in throughput. In numerical tests with 20 threads, AsyncQVI achieved at least a 10x speedup over state-of-the-art variance-reduced methods (VRVI and VRQVI). While those methods are more "sample efficient" on paper, their synchronization requirements make them much slower in real-world time.

Performance of AsyncQVI on the Sailing Problem with varying thread counts, demonstrating linear speedup in wall-clock time.

Conclusion

AsyncQVI provides a powerful framework for parallel RL, combining theoretical guarantees with practical efficiency. It maintains a minimal memory footprint and scales linearly with the number of processors. Future work will focus on closing the sample complexity gap and integrating function approximation for high-dimensional state spaces.

Summary updated

BibTeX
@misc{zeng2018asyncqvi,
  author = {Yibo Zeng and Fei Feng and Wotao Yin},
  title = {{AsyncQVI: Asynchronous-Parallel Q-Value Iteration for Reinforcement Learning with Near-Optimal Sample Complexity}},
  year = {2018},
  eprint = {1812.00885},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.00885},
}
Figure