Two Timescale Stochastic Approximation with Controlled Markov noise

Prasenjit Karmakar, Shalabh Bhatnagar

Abstract

This paper establishes a rigorous theoretical framework for the convergence of two-timescale stochastic approximation (SA) algorithms driven by controlled Markov noise. Unlike traditional SA proofs that assume independent or Martingale difference noise, this work addresses scenarios where the noise distribution is coupled with the algorithm's iterates—a common occurrence in reinforcement learning (RL). The authors apply this framework to provide the first formal convergence proof for the Temporal Difference with Correction (TDC) algorithm in off-policy settings using non-i.i.d. data trajectories.

1. Introduction

Stochastic Approximation (SA) serves as the mathematical foundation for a wide array of machine learning optimization techniques. In complex systems, particularly in Reinforcement Learning, researchers often employ "two-timescale" SA. These algorithms involve two coupled recursions: a "fast" process (e.g., a critic evaluating a policy) and a "slow" process (e.g., an actor improving that policy).

While the convergence of these algorithms is well-understood under simplified noise assumptions, real-world RL data is generated by agents traversing environments, resulting in Markovian noise. Crucially, this noise is "controlled," meaning the agent's current parameters directly influence the distribution of the noise encountered in the next step. This paper, authored by Prasenjit Karmakar and Shalabh Bhatnagar, bridges the gap between theoretical SA and the practical realities of RL by analyzing these controlled feedback loops.

2. Theoretical Methodology

To handle the complexities of controlled Markov noise and potential non-uniqueness in stationary distributions, the authors move beyond standard Ordinary Differential Equations (ODEs) and utilize Differential Inclusions (DI).

2.1 Differential Inclusions and Marchaud Maps

By modeling the limiting behavior of the algorithm as a DI, the authors can accommodate set-valued maps. They demonstrate that these recursions can be characterized as "Marchaud maps," which are sufficiently well-behaved to guarantee the existence of solutions to the limiting differential inclusions. This approach allows for the relaxation of strict requirements like aperiodicity; the framework remains robust even if the underlying Markov chain is periodic or possesses multiple stationary distributions.

2.2 Two-Timescale Separation

The analysis employs a singular perturbation approach to decouple the recursions. The "fast" recursion is analyzed as if the "slow" iterate is a fixed parameter. Conversely, the "slow" recursion is analyzed under the assumption that the fast process has already reached its quasi-stationary equilibrium. This separation is critical for proving that the two processes eventually synchronize toward a stable attractor.

3. Application: Off-Policy TD Learning

A primary contribution of this work is the application of the general theory to the Temporal Difference with Correction (TDC) algorithm. In RL, off-policy learning—where an agent learns about a target policy while following a different behavior policy—is notoriously unstable when combined with linear function approximation (part of the "deadly triad").

By applying their two-timescale framework and incorporating importance sampling ratios, the authors prove that TDC converges with probability one to the desired TD(0) solution. This provides a "gold standard" proof for TDC's stability when trained on realistic, single-trajectory, non-i.i.d. data.

4. Key Results

  • Theorem 2.6 (Slower Timescale Convergence): The authors prove that under a set of verifiable conditions (A1-A7), the slower iterates of the SA algorithm converge to an internally chain transitive set of the associated differential inclusion.
  • Theorem 5.1 (Convergence of TDC): The paper successfully casts the TDC algorithm into the proposed framework, confirming its reliability for off-policy reinforcement learning.
  • Relaxation of Assumptions: The work provides a pathway to move away from strict uniform Lipschitz requirements, instead utilizing more realistic moment assumptions to prove stability.

5. Discussion and Limitations

While the paper provides a significant advancement in SA theory, certain challenges remain. The proofs largely rely on the assumption that the state space of the Markov noise is compact. While the authors demonstrate potential relaxations using transient Markov chains on integers, a universal extension to non-compact spaces for all two-timescale problems is still complex.

Furthermore, the results are most definitive when the limiting DI has a global attractor. Defining and proving convergence toward "local" attractors in a coupled two-timescale system remains a difficult open problem due to the intricate feedback between the fast and slow iterates.

6. Conclusion

Karmakar and Bhatnagar provide a vital theoretical anchor for modern RL. By formalizing the treatment of controlled Markov noise through differential inclusions, they provide the mathematical tools necessary to guarantee the stability of sophisticated multi-scale algorithms. Their validation of the TDC algorithm, in particular, offers a rigorous solution to one of the most persistent challenges in off-policy learning.

Summary updated

BibTeX
@article{karmakar2018two,
  author = {Prasenjit Karmakar and Shalabh Bhatnagar},
  title = {{Two Timescale Stochastic Approximation with Controlled Markov noise}},
  journal = {Math. Oper. Res.},
  year = {2018},
  doi = {10.1287/moor.2017.0855},
}
Figure