Abstract
This research provides a rigorous finite-time convergence analysis of Stochastic Gradient Descent (SGD) in settings where gradient samples are drawn from a Markov process rather than an independent and identically distributed (i.i.d.) source. By removing common but restrictive assumptions—such as bounded iterates or bounded gradients—the authors demonstrate that Markovian SGD achieves convergence rates nearly identical to standard i.i.d. SGD. Across strongly convex, PL-conditioned, and nonconvex objectives, the performance penalty for Markovian dependency is shown to be merely a logarithmic factor related to the mixing time of the underlying Markov chain.
Introduction
Stochastic Gradient Descent (SGD) is the foundational optimization algorithm for modern machine learning. Traditional theoretical guarantees for SGD rely on the assumption that gradient samples are i.i.d. and unbiased. However, in many contemporary applications, such as Reinforcement Learning (RL) and decentralized optimization, data is collected sequentially by agents moving through an environment. In these scenarios, samples are drawn from a Markov process, making them inherently correlated across time steps and biased.
While "Markovian randomness" has been studied previously, existing proofs often depend on unrealistic constraints. Specifically, they frequently assume that the algorithm's search space is strictly bounded (a compact feasible set) or that gradients never exceed a fixed maximum value. In RL, where state spaces and value functions can be arbitrarily large, these assumptions often fail to hold. This paper bridges the gap between theory and practice by proving finite-time convergence rates for Markovian SGD without relying on bounded iterates or gradients.
Methodology
The paper focuses on a purely mathematical analysis of the standard SGD update rule using a diminishing step size. The primary challenge in Markovian SGD is that the gradient at any given step is biased because it depends on the previous state of the Markov chain.
To address this without assuming bounded gradients, the authors introduce a novel bounding technique. They establish a critical lemma (Lemma 1) that tracks the distance between the current iterate and a "delayed" iterate from $\tau$ steps ago, where $\tau$ represents the mixing time of the Markov chain. By controlling how much iterates can grow within this mixing window, the authors manage the bias using only the assumption that the gradient is uniformly Lipschitz continuous. This framework is applied to three classes of objective functions:
- Strongly Convex Functions: Standard convex optimization targets.
- PL-Conditioned Functions: Functions satisfying the Polyak-Lojasiewicz condition, which often characterizes the loss landscapes of overparameterized neural networks.
- Smooth Nonconvex Functions: The most general class of optimization problems in deep learning.
Key Insights
- Efficiency of Markovian Sampling: The study reveals that the dependency and bias introduced by Markov sampling can be effectively "averaged out" over time. The penalty for this correlation is surprisingly minimal—a logarithmic factor tied to the geometric mixing time of the Markov chain.
- Removing the Boundedness Crutch: By analyzing iterate trajectories over the mixing time window, the authors prove that global boundedness assumptions are unnecessary. This makes the theoretical results significantly more applicable to real-world RL environments where states and gradients are not strictly capped.
- Broad Convergence Guarantees: The results are not limited to simple convex cases but extend to nonconvex landscapes, providing a theoretical basis for why SGD remains effective in complex, non-i.i.d. environments.
Convergence Results
The authors derive finite-time bounds that closely mirror the optimal rates known for i.i.d. SGD:
- Strongly Convex & PL-Conditioned: The algorithm converges at a rate of $\mathcal{O}(\frac{\log k}{k})$. This matches the standard $\mathcal{O}(1/k)$ i.i.d. rate, with the addition of a $\log k$ penalty for the Markov mixing time.
- Smooth Nonconvex: Using a randomized stopping rule, the algorithm reaches a stationary point at a rate of $\mathcal{O}(\frac{\log^2 T}{\sqrt{T}})$, which is remarkably close to the $\mathcal{O}(1/\sqrt{T})$ rate of i.i.d. nonconvex SGD.
Conclusion and Future Work
This work provides a more realistic theoretical foundation for optimization in Reinforcement Learning. By proving that the Markovian penalty is negligible even without boundedness assumptions, the authors validate the use of SGD-based methods in complex, sequential data environments.
While the analysis assumes a finite state space and geometric mixing time, future research could extend these bounds to continuous or infinite state spaces. The immediate next step involves applying these relaxed finite-time bounds to specific RL algorithms, such as Q-learning or Temporal Difference (TD) learning, to provide tighter and more realistic guarantees for agent training.
Summary updated