Q-Learning for Continuous State and Action MDPs under Average Cost Criteria

Ali̇ Devran Kara, Serdar Yüksel · DOI

Abstract

For infinite-horizon average-cost criterion problems, there exist relatively few rigorous approximation and reinforcement learning results. In this paper, for Markov Decision Processes (MDPs) with standard Borel spaces, (i) we first provide a discretization based approximation method for MDPs with continuous spaces under average cost criteria, and provide error bounds for approximations when the dynamics are only weakly continuous (for asymptotic convergence of errors as the grid sizes vanish) or Wasserstein continuous (with a rate in approximation as the grid sizes vanish) under certain ergodicity assumptions. In particular, we relax the total variation condition given in prior work to weak continuity or Wasserstein continuity. (ii) we provide synchronous and asynchronous (quantized) Q-learning algorithms for continuous spaces via quantization (where the quantized state is taken to be the actual state in corresponding Q-learning algorithms presented in the paper), and establish their convergence. (iii) we finally show that the convergence is to the optimal Q values of a finite approximate model constructed via quantization, which implies near optimality of the arrived solution. Our Q-learning convergence results and their convergence to near optimality are new for continuous spaces, and the proof method is new even for finite spaces, to our knowledge.

Introduction

Reinforcement learning (RL) theory has historically focused on discounted cost problems, where a discount factor ensures mathematical convergence by weighting immediate rewards more heavily than future ones. However, many real-world applications—such as telecommunications, manufacturing, and inventory management—are more naturally modeled by the average cost criterion. This criterion evaluates long-term steady-state performance without discounting, presenting significant challenges in continuous state and action spaces.

This paper establishes a rigorous mathematical foundation for Q-learning in continuous Markov Decision Processes (MDPs) under the average cost criterion. By employing quantization (discretization) techniques, the authors demonstrate that Q-learning can achieve near-optimal solutions while relaxing the restrictive continuity assumptions found in previous literature.

Overcoming the Continuity Barrier

A major hurdle in continuous MDP theory is the requirement for "Total Variation" (TV) continuity in system dynamics. TV continuity is a strict condition that many physical systems do not satisfy. This research bridges the gap by proving convergence under much more realistic conditions:

  • Weak Continuity: Used for establishing asymptotic convergence as discretization grids become finer.
  • Wasserstein Continuity: Used to provide explicit rates of approximation error.

By moving away from TV continuity, the proposed framework becomes applicable to a wider range of stochastic systems where transitions might be continuous in a distributional sense but not in the strict TV sense.

Quantized Q-Learning Algorithms

The authors propose a quantization-based approximation where continuous state and action spaces are divided into finite "bins." Within this framework, two Q-learning variants are developed:

  1. Synchronous Quantized Q-Learning: Updates all state-action pairs simultaneously, typically used in simulated environments where the model can be queried at any point.
  2. Asynchronous Quantized Q-Learning: A practical, data-driven version that learns from a single trajectory of sequential observations, making it suitable for online learning scenarios.

The Span Semi-Norm Approach

In average cost problems, value functions can grow unbounded because there is no discount factor. To address this, the authors utilize the span semi-norm. This mathematical tool focuses on the relative differences between state values rather than their absolute magnitudes, which is sufficient for determining optimal decision-making policies.

Theoretical Innovation: Quantization as a POMDP

A key insight of the paper is the treatment of the quantized process as a Partially Observable Markov Decision Process (POMDP). When a continuous state is mapped to a discrete bin, information is inherently lost, creating a "hidden state" problem. The authors develop a novel proof method to navigate this complexity, showing that the Q-values learned via quantization converge to the optimal Q-values of a finite approximate model. This proof technique is noted as being novel even for standard finite-state MDPs.

Experimental Validation

The theory was tested using a custom continuous control simulation with a state space $X = [0, 1]$ and action space $U = [-1, 1]$. The dynamics involved a stochastic system with a 10% chance of a random reset to ensure ergodicity (the ability of the system to visit all states).

Key findings from the simulation include:

  • Near-Optimality: The performance loss of the learned policy is bounded by $O(L_X)$, where $L_X$ is the maximum diameter of the quantization bins.
  • Vanishing Error: As the number of bins increases (finer discretization), the "regret" or performance gap between the learned and optimal policy decreases linearly.
  • Stability: The average cost converged to a consistent value regardless of the starting state, confirming the stability of the algorithm under the ergodicity assumptions.

Conclusion and Future Work

This research provides a robust theoretical framework for applying Q-learning to continuous-space problems under the average cost criterion. While the current approach faces the "curse of dimensionality"—where the number of required bins grows exponentially with the number of dimensions—it sets the stage for future developments. Potential areas for expansion include the use of adaptive or online exploration strategies and the application of function approximation to mitigate the scaling issues of simple quantization.

Summary updated

BibTeX
@misc{kara2023q,
  author = {Ali̇ Devran Kara and Serdar Yüksel},
  title = {{Q-Learning for Continuous State and Action MDPs under Average Cost Criteria}},
  year = {2023},
  eprint = {2308.07591},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.07591},
}
Figure