Abstract
This paper considers stochastic-constrained stochastic optimization where the stochastic constraint is to satisfy that the expectation of a random function is below a certain threshold. In particular, we study the setting where data samples are drawn from a Markov chain and thus are not independent and identically distributed. We generalize the drift-plus-penalty framework, a primal-dual stochastic gradient method developed for the i.i.d. case, to the Markov chain sampling setting. We propose two variants of drift-plus-penalty; one is for the case when the mixing time of the underlying Markov chain is known while the other is for the case of unknown mixing time. In fact, our algorithms apply to a more general setting of constrained online convex optimization where the sequence of constraint functions follows a Markov chain. Both algorithms are adaptive in that the first works without knowledge of the time horizon while the second uses AdaGrad-style algorithm parameters, which is of independent interest. We demonstrate the effectiveness of our proposed methods through numerical experiments on classification with fairness constraints.
Introduction
Most stochastic optimization algorithms rely on a fundamental assumption: data samples are independent and identically distributed (i.i.d.). However, in many real-world scenarios—such as robotics, sensor networks, or financial time-series—data arrives in a sequence where the next sample depends on the current one. These are better modeled as Markov chains.
This paper addresses the Stochastic-Constrained Stochastic Optimization (SCSO) problem: $$\min_{x \in \mathcal{X}} \mathbb{E}_{\xi \sim \mu}[f(x, \xi)] \quad \text{s.t.} \quad \mathbb{E}_{\xi \sim \mu}[g(x, \xi)] \leq 0$$ where $\mu$ is the stationary distribution of a Markov chain. The challenge is that the algorithm only observes a biased, dependent trajectory of samples. Standard methods often fail here because the "noise" in the gradients is correlated over time, leading to poor convergence or significant constraint violations.
Proposed Framework: EDPP and MDPP
The authors generalize the Drift-Plus-Penalty (DPP) framework, which uses a "virtual queue" to track constraint violations. If the queue grows, the algorithm prioritizes feasibility over the objective. Two primary variants are introduced:
- Ergodic Drift-Plus-Penalty (EDPP): Used when the mixing time ($\tau_{mix}$) of the Markov chain—the time it takes to settle into its stationary distribution—is known. It adjusts step sizes and penalty parameters based on $\tau_{mix}$ to counteract the bias of dependent samples.
- MLMC Adaptive Drift-Plus-Penalty (MDPP): Used when the mixing time is unknown. This variant combines Multi-level Monte Carlo (MLMC) sampling to produce nearly unbiased gradient estimates with AdaGrad-style adaptive step sizes, making it robust to different data scales and oblivious to the total time horizon.
Theoretical Performance and Results
The paper provides rigorous theoretical bounds for both algorithms, demonstrating that they achieve sublinear regret and constraint violation even in the presence of Markovian dependencies.
As summarized in the table above, EDPP achieves a convergence rate of $\tilde{O}(\sqrt{\tau_{mix}/T})$ for both optimality and feasibility gaps under Slater’s condition. MDPP is particularly notable for being oblivious to the mixing time while maintaining adaptive performance. In numerical experiments involving linear classification with fairness constraints, these Markovian-aware algorithms significantly outperformed standard primal-dual methods, which often failed to reach feasibility.
Key Insights and Limitations
A critical insight of this work is the quantification of how mixing time acts as a bottleneck for convergence; slower chains require more samples to reach the same accuracy. The use of MLMC is a "hidden gem" that allows the algorithm to simulate independence by carefully weighting sequences of dependent samples.
However, limitations remain. The MLMC estimator can exhibit high variance in practice, requiring truncation for stability. Furthermore, while the theory is robust for convex problems, extending these methods to non-convex deep learning settings remains an open challenge for future research.
Summary updated