Two Time-Scale Stochastic Approximation with Controlled Markov Noise and Off-Policy Temporal-Difference Learning

Prasenjit Karmakar, Shalabh Bhatnagar

Introduction

Stochastic Approximation (SA) serves as the mathematical backbone for many Reinforcement Learning (RL) and signal processing algorithms. In these contexts, SA is used to find the roots of functions when only noisy, sample-based data is available. Modern RL often employs "two-timescale" updates, where a secondary variable is estimated rapidly to support the slower convergence of primary parameters. However, a significant theoretical gap has persisted: proving convergence when the noise is "controlled" Markovian—meaning the algorithm's own updates influence the state distribution it observes.

This paper addresses this gap by providing the first formal convergence analysis for two-timescale SA algorithms driven by controlled Markov noise. The authors further apply this framework to prove the convergence of the Temporal Difference with Correction (TDC) algorithm in the challenging off-policy learning setting.

Theoretical Framework: Two-Timescale SA

The core of the proposed framework lies in the separation of timescales using two distinct step-size sequences, $a(n)$ and $b(n)$. By ensuring that $a(n)$ decays significantly faster than $b(n)$, the algorithm creates a hierarchy of updates:

  1. The Fast Recursion: This component moves quickly, treating the "slow" variable as essentially constant.
  2. The Slow Recursion: This component moves gradually, perceiving the "fast" variable as having already reached its quasi-equilibrium state.

Unlike traditional approaches that rely on simple Ordinary Differential Equations (ODEs), the authors utilize Differential Inclusions (D.I.). This mathematical choice is crucial for handling scenarios where the underlying Markov process might possess multiple stationary distributions, providing a more robust convergence guarantee than standard ODE-based methods.

Handling Controlled Markov Noise

In real-world RL, data is rarely independent and identically distributed (i.i.d.). Instead, it is typically Markovian and "controlled," where the agent's current parameters dictate the transitions and rewards it experiences. The authors leverage Ergodic Occupation Measures to relate the discrete-time behavior of the algorithm to continuous-time limits. This allows them to prove that the "slower" timescale effectively averages the noise, even when that noise is non-additive and self-influencing.

Notably, this framework relaxes several common assumptions: it does not require the underlying Markov chain to be aperiodic, and it successfully handles cases where the stationary distribution of the noise is not unique.

Application: Off-Policy Learning and TDC

The theoretical framework is applied to the Temporal Difference with Correction (TDC) algorithm. TDC is specifically designed to mitigate the "deadly triad"—the combination of off-policy learning, function approximation, and bootstrapping—which frequently causes RL algorithms to diverge.

By incorporating importance weighting, the authors demonstrate that TDC converges under realistic, correlated data trajectories. This is a significant departure from previous proofs that often assumed data was sampled i.i.d. from a replay buffer. This result bridges the gap between theoretical optimization and the practical reality of online learning, where an agent learns from a single, continuous stream of experience.

Key Results and Convergence

The paper presents two landmark results:

  • General Convergence Theorem (Theorem 2.6): Under specific Lipschitz continuity and step-size conditions, the iterates of a two-timescale system converge almost surely to the invariant set of a defined differential inclusion.
  • TDC Convergence (Theorem 5.1): Specifically for RL, the authors provide a formal proof that TDC with importance weighting converges to the TD(0) solution with probability 1.

These results confirm that the "faster" recursion asymptotically tracks a Lipschitz map of the "slower" recursion, ensuring the two processes remain synchronized enough to reach a global optimum.

Limitations and Future Directions

While the paper provides a rigorous foundation, certain challenges remain for future research:

  • Iterate Boundedness: The proof assumes that iterates remain bounded (Assumption A7). In practice, ensuring an algorithm does not "blow up" before convergence is reached remains a separate implementation challenge.
  • State Space Constraints: The specific application to TDC currently assumes a finite state space. Extending these proofs to infinite state spaces with complex function approximation is a necessary next step.
  • Local Attractors: The current theory focuses on global attractors. Handling systems with multiple local attractors in a two-timescale setting is mathematically complex and remains an open area for investigation.

Conclusion

By establishing a convergence theory for two-timescale SA with controlled Markov noise, this work provides the mathematical justification for a wide class of RL algorithms. It moves beyond the limitations of i.i.d. assumptions, offering a more realistic perspective on how agents learn in dynamic, self-influencing environments.

Summary updated

BibTeX
@article{karmakar2018two,
  author = {Prasenjit Karmakar and Shalabh Bhatnagar},
  title = {{Two Time-Scale Stochastic Approximation with Controlled Markov Noise and Off-Policy Temporal-Difference Learning}},
  journal = {Math. Oper. Res.},
  year = {2018},
  doi = {10.1287/moor.2017.0855},
}
Figure