Q-Learning for Stochastic Control under General Information Structures and Non-Markovian Environments

Ali̇ Devran Kara, Serdar Yüksel · DOI

Abstract

As a primary contribution, we present a convergence theorem for stochastic iterations, and in particular, Q-learning iterates, under a general, possibly non-Markovian, stochastic environment. Our conditions for convergence involve an ergodicity and a positivity criterion. We provide a precise characterization on the limit of the iterates and conditions on the environment and initializations for convergence. As our second contribution, we discuss the implications and applications of this theorem to a variety of stochastic control problems with non-Markovian environments involving (i) quantized approximations of fully observed Markov Decision Processes (MDPs) with continuous spaces (where quantization break down the Markovian structure), (ii) quantized approximations of belief-MDP reduced partially observable MDPS (POMDPs) with weak Feller continuity and a mild version of filter stability (which requires the knowledge of the model by the controller), (iii) finite window approximations of POMDPs under a uniform controlled filter stability (which does not require the knowledge of the model), and (iv) for multi-agent models where convergence of learning dynamics to a new class of equilibria, subjective Q-learning equilibria, will be studied. In addition to the convergence theorem, some implications of the theorem above are new to the literature and others are interpreted as applications of the convergence theorem. Some open problems are noted.

Introduction

Most Reinforcement Learning (RL) theory is built on the backbone of Markov Decision Processes (MDPs). The "Markov property" assumes that the current state provides sufficient information to predict the future, rendering the history of the process irrelevant. However, real-world environments—ranging from healthcare to finance—are rarely perfectly Markovian. In practice, agents often encounter partial observability, where they only see a noisy version of the state; quantization, where discretizing continuous spaces destroys the Markov property; or multi-agent dynamics, where the learning of others makes the environment non-stationary.

This paper addresses a fundamental theoretical gap: If we run a standard Q-learning algorithm on a system that is not an MDP, does it still converge? And if it does, what is the nature of the limit? We provide a rigorous general convergence theorem for Q-learning in non-Markovian environments, proving that these algorithms settle into a stable "perceived" model under specific ergodicity conditions.

Theoretical Framework: Theorem 2.1

The core contribution of this work is a general convergence result for stochastic iterations (Theorem 2.1). Traditional proofs in RL often rely on complex martingale theory and require separate, arduous proofs to demonstrate that learning iterates stay bounded. Our approach simplifies this by using a more direct method based on ergodicity and positivity.

Key Technical Components

  1. Asymptotic Ergodicity: Rather than requiring the environment to be a simple Markov chain, we require that the joint process of states, actions, and costs settles into a statistical equilibrium over time. This allows the learner to experience a consistent "average" environment.
  2. Positivity Criterion: We must ensure that every state-action pair is visited infinitely often. This prevents the learner from missing critical information and ensures the Q-factors are updated comprehensively.
  3. Simultaneous Boundedness: A significant mathematical advantage of our proof structure is that it establishes convergence and boundedness simultaneously. This "boundedness for free" simplifies the analysis of non-Markovian settings significantly.

The "Perceived" MDP and Subjective Equilibria

A profound insight of this research is that when Q-learning is applied to a non-Markovian environment, it converges to the optimal solution of a perceived MDP. This perceived model represents the average behavior of the complex environment as seen through the learner's limited information structure.

In multi-agent systems, this leads to the concept of Subjective Q-learning Equilibria. Agents do not necessarily need to understand the true underlying complexity of their peers' strategies. Instead, they reach an equilibrium where they are satisfied with their policy based on their own local, simplified view of the world. This bridges the gap between theoretical MDPs and the messy, history-dependent reality of practical RL.

Applications and Information Structures

We apply our convergence theorem to four distinct scenarios:

  • Quantized MDPs: For continuous MDPs that are discretized into "bins," we provide a concrete formula for the performance gap. The error in the value function is shown to be proportional to the size of the discretization bins.
  • Quantized Belief-MDPs: This applies to partially observable systems where the controller knows the underlying model and can calculate "beliefs." We show convergence under weak Feller continuity and filter stability.
  • Finite Window POMDPs: For systems where the model is unknown, we analyze "finite window" approaches. These are more universal as they rely on a fixed history of observations rather than a prior model.
  • Filter Stability: We demonstrate that the near-optimality of the learned policy depends on how quickly the system "forgets" its initial state. If the system has a long memory, the perceived MDP becomes a poorer approximation of reality.

Empirical Validation: Machine Replacement Model

To validate the theory, we utilized a simulated Machine Replacement model. In this scenario, a machine's breakdown is influenced by noise with its own memory (a Markovian noise process), making the overall state transition non-Markovian.

The simulation demonstrated that the Q-learning algorithm successfully converges to the values predicted by the theoretical "average" MDP model. Specifically, we compared different levels of memory in the learner:

  • Policy $\gamma_1$: Using only the current state, the agent achieved a value of approximately 1.66.
  • Policy $\gamma_2$: Using a window of two states, the agent improved the value to approximately 1.59.

This confirms that while the algorithm converges in both cases, increasing the learner's "memory" allows it to better approximate the underlying non-Markovian process.

Discussion and Future Work

While this work establishes a rigorous foundation for convergence, several open problems remain. First, while we prove that learning converges if a limit exists, proving the existence of these limits (especially subjective equilibria in complex games) remains a mathematical challenge. Second, the current framework is limited to discrete-time systems. Extending these proofs to continuous-time stochastic control, such as diffusion processes, is a promising avenue for future research. Finally, while finite-window approaches are universal, determining the optimal window size for a given level of non-Markovianity remains an area for further exploration.

Summary updated

BibTeX
@article{kara2023q,
  author = {Ali̇ Devran Kara and Serdar Yüksel},
  title = {{Q-Learning for Stochastic Control under General Information Structures and Non-Markovian Environments}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=1Yp6xpTV55},
}
Figure