                           Improved Lower Bounds for First-order
                Stochastic Non-convex Optimization under Markov Sampling


                                                 Zhenyu Sun 1 Ermin Wei 1 2


                          Abstract                                   or sequential dependencies, naturally modeled by Markov
                                                                     chains. For instance, in reinforcement learning, an agent
       Unlike its vanilla counterpart with i.i.d. samples,           typically collects data by interacting with an environment
       stochastic optimization with Markovian sampling               governed by a Markov decision process (MDP) (Sutton,
       allows the sampling scheme following a Markov                 2018), leading to correlated samples. In online recommen-
       chain. This problem encompasses various appli-                dation systems, user feedback often arrives sequentially in
       cations that range from asynchronous distributed              a Markovian fashion, where each user’s response depends
       optimization to reinforcement learning. In this               on their previous engagements (Afsar et al., 2022). In time-
       work, we lower bound the sample complexity of                 series analysis, measurements such as sensor data or stock
       finding ϵ-approximate critical solutions for any              prices reflect underlying Markovian transitions (Hamilton,
       first-order methods when sampling is Markovian.               2020; Esling & Agon, 2012). In the context of Bayesian
       We show that for samples drawn from station-                  inference, Markov chain Monte Carlo (MCMC) methods
       ary Markov processes with countable state space,              generate correlated samples to approximate posterior distri-
       any algorithm that accesses smooth, non-convex                butions (Brooks, 1998; Nemeth & Fearnhead, 2021), which
       functions through queries to a stochastic gradient            in turn are used for high-dimensional parameter estimation.
       oracle, requires at least Ω(ϵ−4 ) samples. More-              Moreover, in the language models, transformers generate
       over, for finite Markov chains, we show a Ω(ϵ−2 )             next-token predictions via a Markov chain (Makkuva et al.,
       lower bound and propose a new algorithm, called               2024). The above-mentioned practical applications high-
       MaC-SAGE, that is proved to (nearly) match our                light the importance of generalizing analysis from the i.i.d.
       lower bound.                                                  sampling to Markov sampling. Over the last few years, a
                                                                     growing body of literature has begun addressing questions
                                                                     involving Markov sampling given specific contexts, such as
1. Introduction                                                      reinforcement learning (Bhandari et al., 2018; Zhang et al.,
                                                                     2021), distributed optimization (Sun et al., 2023; Even et al.,
Stochastic optimization methods have become integral to
                                                                     2024), and federated learning (Sun et al., 2024). This trig-
a wide array of machine learning and statistical modeling
                                                                     gers the need for a unified theory advance that captures the
tasks, with applications ranging from large-scale data analy-
                                                                     intrinsic difficulty of dealing with Markovian dynamics.
sis to reinforcement learning and control. Due to the pros-
perity in deep learning and large models, first-order opti-          Compared to the well-studied i.i.d. setting, analyses of first-
mization methods, meaning only gradient information is               order optimization methods under Markov sampling are
leveraged for algorithm design, stand out due to their ad-           faced with novel and substantial challenges posed by corre-
vantages of implementability and computational efficiency            lated data. In the i.i.d. scenario, each data point is drawn
(Achiam et al., 2023; Zhao et al., 2023). In many real-              independently from the same distribution and hence ren-
world scenarios, however, data do not arrive independently           ders unbiased estimate of stochastic gradient, which allows
and identically distributed (i.i.d.). Instead, they are gener-       straightforward variance bounds and concentration inequal-
ated by underlying dynamical processes exhibiting temporal           ities to be applied (Nemirovski et al., 2009; Lan, 2012; Li
   1
                                                                     & Liu, 2022). In contrast, when samples follow a Markov
     Department of Electrical and Computer Engineering, North-       chain, neighboring data observations are correlated, which
western University, Evanston, IL, USA 2 Department of Indus-
trial Engineering and Management Science, Northwestern Uni-          complicates both the bias and variance characterizations of
versity, Evanston, IL, USA. Correspondence to: Zhenyu Sun            stochastic gradient estimates. In fact, due to the Markovian
<zhenyusun2026@u.northwestern.edu>.                                  property, the gradient estimate is biased, prohibit direct gen-
                                                                     eralization of analyses from the i.i.d. case (Bhandari et al.,
Proceedings of the 42 nd International Conference on Machine         2018; Even, 2023; Roy et al., 2022; Sun et al., 2023; Kim
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025
by the author(s).                                                    et al., 2022).

                                                                 1
                        Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

Moreover, existing literature investigating stochastic opti-         non-convex objectives (Arjevani et al., 2023), respectively,
mization under Markov sampling mainly focuses on de-                 and SGD is shown to have matched upper bounds for both
riving various convergence and sample complexity up-                 cases (Foster et al., 2019; Ghadimi & Lan, 2013). For the
per bounds for different algorithms. For example, re-                Markovian sampling scheme, denoting τ as the mixing or
cently (Even, 2023) provides the sample complexity upper             hitting time of the Markov chain, (Beznosikov et al., 2024)
bound for vanilla SGD under the Markov sampling scheme.              shows a bound with Ω(τ log(ϵ−1 )) for strongly convex func-
(Dorfman & Levy, 2022) proposes sophisticated variant of             tions and (Duchi et al., 2012) provides a bound of Ω(τ ϵ−2 )
SGD to guarantee robustness in hyperparameter selection.             for the convex case which is proven to match the upper
(Beznosikov et al., 2024) further establishes the convergence        bound of SGD (Duchi et al., 2012). Recently, (Even, 2023)
analysis for accelerating first-order methods and general-           establishes a loose lower bound Ω(τ ϵ−1 ) for non-convex
izes them to variational inequalities. However, the lower            functions, while the best-known upper bound for this case
bound results are still lacking, especially when the objective       is O(τ ϵ−4 ). Table 1 compares various lower bounds given
function is non-convex, even they are fruitful for (strongly)        different function and sampling assumptions.
convex case and for the i.i.d. case. Therefore, in this paper
we aim to bridge such research gap by establishing the lower         2. Problem Formulation
bounds on sample complexities of first-order methods that
solve stochastic non-convex optimization problems when               Consider the general stochastic optimization problem,
data samples are Markovian. Our main contributions are
summarized as follows:                                                                min F (x) := Es∼Π [f (x; s)]              (1)
                                                                                       x

                                                                     where s ∈ S for S being the support, and Π denotes some
   • We provide the algorithm-independent sample com-                unknown underlying distribution. In this paper we focus
     plexity lower bound for any first-order methods of              on the Markovian case, i.e., we assume that the samples
     stochastic non-convex optimization problems, given              {st }∞
                                                                          t=0 form a sequence generated by some underlying
     data samples are generated by a countable-state sta-            Markov chain with its stationary distribution being Π. More-
     tionary Markov chain. Our lower bound shows a com-              over we focus on countable-state Markov chains, meaning
     plexity with the order of ϵ−4 , which matches the upper         the state spaces are countable but may not be finite. Note
     bound of algorithm MAG provided in (Dorfman &                   that the Markovian setting reduces to the i.i.d. setting by
     Levy, 2022; Beznosikov et al., 2024).                           decoupling the dependence across time.
   • We further restrict on the case of finite-state Markov          Since exactly solving (1) is NP-hard (Hillar & Lim, 2013),
     chains and show an ϵ−2 lower bound on the sample                by restricting to first-order methods, we search for an ϵ-
     complexity. The bound is not contradictory to the               approximate critical solution, which is widely adopted
     bound for the countable-state case, as we are search            by literature (Carmon et al., 2020; Arjevani et al., 2023;
     under different function and oracle classes.                    Beznosikov et al., 2024) of F (x) defined in (1). In particu-
   • We then propose a new algorithm, which is called MaC-           lar, given differentiable function F : Rd → R, our goal is
     SAGE, when the Markov chain is finite-state. The con-           to find some x such that
     vergence analysis is provided for MaC-SAGE, which                                       ∥∇F (x)∥ ≤ ϵ
     indicates nearly the same order of ϵ−2 , hence demon-
     strating the (near) min-max optimality of the proposed          for any ϵ > 0.
     algorithm.
                                                                     2.1. An Example: Temporal-difference Learning
Sample complexity of stochastic optimization. The sam-               To illustrate the importance of our problem, we show that the
ple complexity analysis of first-order stochastic optimization       temporal-difference (TD) learning algorithm can be viewed
has thrived since last two decades. Lower bound results are          a special case that iteratively searching for an ϵ-approximate
undoubtedly crucial, as these bounds provide a fundamental           critical solution of problem (1). Particularly, for the TD
limit on how efficiently any first-order algorithm can learn.        learning, we aim to (approximately) learn the value function
Typically when full batch of samples are used for algorithm          defined by
design, the lower bound of Ω(ϵ−2 ) is established for smooth                                 "∞                            #
non-convex functions (Carmon et al., 2020) and algorithm                         ∗
                                                                                              X
                                                                                                    t
Gradient Descent matches this lower bound (Ghadimi &                           V (s) := E          γ r(st , st+1 ) | s0 = s
                                                                                             t=0
Lan, 2013). When samples are assumed to be i.i.d., Ω(ϵ−2 )
and Ω(ϵ−4 ) (which improves to Ω(ϵ−3 ) if the objective is           where r(st , st+1 ) is the reward function and st+1 ∼ P (· |
assumed mean-square smooth (Arjevani et al., 2023)) lower            st ) is drawn from some unknown stationary Markov chain
bounds are provided for convex (Agarwal et al., 2009) and            P.

                                                                 2
                            Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling


Table 1. Sample complexity lower bounds for stochastic optimization with smooth objectives. ”full” means the objective function is
directly used, corresponding to deterministic case; for convex case, the sample complexity measure metric is F (x) − F ∗ ≤ ϵ; for
non-convex case, the complexity measure metric is ∥∇F (x)∥ ≤ ϵ; τ represents the hitting/mixing time.
          Reference                             Convexity                         Sampling                      Lower bound
          (Nesterov, 2013)                      strongly convex                   full   1
                                                                                                                Ω(log(ϵ−1 ))
          (Nesterov, 2013)                      convex                            full                          Ω(ϵ−0.5 )
          (Carmon et al., 2020)                 non-convex                        full                          Ω(ϵ−2 )
          (Agarwal et al., 2009)                convex                            i.i.d.                        Ω(ϵ−2 )
          (Arjevani et al., 2023)               non-convex                        i.i.d.                        Ω(ϵ−4 )
          (Beznosikov et al., 2024)             strongly convex                   Markovian                     Ω(τ log ϵ−1 )
          (Duchi et al., 2012)                  convex                            Markovian                     Ω(τ ϵ−2 )
          (Even, 2023)                          non-convex                        Markovian                     Ω(τ ϵ−1 )
          This work                             non-convex                        Markovian                     Ω(τ ϵ−4 )


Assuming that the value function can be parameterized by a                  2.2. Function class
linear function, i.e., there exists some θ∗ such that V ∗ (s) =
                                                                            Particularly, we consider all smooth functions in the follow-
ϕ(s)T θ∗ , ∀s ∈ S for the known feature mapping ϕ(·), then
                                                                            ing set:
the TD-learning algorithm maintains an estimate θ of θ∗ by
the following update:
                                                                            F(∆, L) := F : Rd → R | F (0) − inf F (x) ≤ ∆,
                                                                                          
                                                                                                                            x
 θt+1 = θt − ηt (ϕ(st ) θt − r(st , s′t ) − γϕ(s′t )T θt )ϕ(st )
                            T
                                                                                             ∥∇F (x) − ∇F (y)∥ ≤ L∥x − y∥, ∀x, y ∈ Rd
      := θt − ηt g(θt ; st , s′t )                           (2)                                                                    (4)

where s′t is the sample drawn from s′t ∼ P (· | st ),                       where ∆ ≥ 0 and L > 0 are fixed parameters. The con-
g(θt ; st , s′t ) = (ϕ(st )T θt − r(st , s′t ) − γϕ(s′t )T θt )ϕ(st )       dition F (0) − inf x F (x) ≤ ∆ on F (0) can be generalized
and ηt is the stepsize. Defining the augmented state                        to any initial value F (x0 ). However, for zero-respecting
s̄ = (s, s′ ) ∈ S × S for which s′ ∼ P (· | s) and letting                  algorithms (to be defined in Section 2.3), we have x0 = 0.
                                                                            In particular, we consider the case where the objective F is
                  Z 1                                                       smooth and has bounded initial gap to the optimum.
    f (θ; s̄) =         g(θ0 + u(θ − θ0 ); s, s′ )T (θ − θ0 )du
                   0
                                                                            2.3. Algorithm class
with g(θ; s, s′ ) defined in (2), we have ∇f (θ; s̄) =
                                                                            Our algorithm class is based on the flow of (Arjevani et al.,
g(θ; s, s′ ), implying that (2) is equivalent to
                                                                            2023). We consider the following first-order algorithms
                                                                            such that:
                   θt+1 = θt − ηt ∇f (θt ; s̄t )                  (3)

where {s̄}∞                                                                    • the algorithm access an unknown F ∈ F(∆, L) by a
           t=0 forms another Markov chain with augmented
state space S̄ = S × S. Shown by (Tsitsiklis & Van Roy,                          stochastic first-order oracle O;
1996; Bhandari et al., 2018) (2) asymptotically converges to
                                                                               • the oracle O returns a sequence of samples z :=
the solution to the following equation in expectation:
                                                                                 {si }B
                                                                                      i=1 (B can be time-dependent) generated by a
                                                                                 Markov chain and a mapping
               ∥Es∼Π,s′ ∼P (·|s) [g(θ; s, s′ )]∥ = 0
                                                                                               OF (x, {si }B                    B
                                                                                                           i=1 ) := {g(x; si ))}i=1
where Π is the stationary distribution corresponding to the
Markov chain P . It then equivalently yields by (3) that the                     where g(x; s) := ∇f (x; s) is the stochastic gradient.
TD-learning algorithm outputs an ϵ-approximation critical
solution of some F for which                                                   • at iteration t, the algorithm queries a batch of M points

          Es̄=(s,s′ )∼Π×P (·|s) [∇f (θ; s̄)] =: ∇F (θ).                                           xt := (xt,1 , xt,2 , . . . , xt,M );

                                                                        3
                             Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

   • for each batch query xt , O responses with                               2.4. Countable-state Markov Chain

       OF (xt , zt ) := (OF (xt,1 , zt,1 ), . . . , OF (xt,M , zt,M )),       In this section, we are interested in any sampling schemes
                                                                              characterized by countable-state Markov chains, meaning
       where zt,i is the sequence of sample drawn for xt,i and                that the state space S is discrete while |S| = ∞ is allowed.
            SM
       zt := i=1 zt,i .                                                       Particularly, when the state space is finite, i.e., |S| < ∞, the
                                                                              case reduces to that of finite-state Markov chains, which is
Then algorithm A consists of a sequence of measurable map-                    separately analyzed in Section 4.
pings {At }∞                                            ∞
            t=0 to generate a sequence of iterates {xt }t=0                   The class of countable-state Markov chains is parameterized
satisfying the following conditions:                                          by the hitting time defined as follows.
                                                                              Definition 2.1 (Hitting time). For any state w ∈ S, define
   • the t + 1-th iterate is the output of At when taking all
     previous oracle responses as input, i.e.,                                                 τw := inf{t ≥ 1 | st = w}
                                                                              as the Markov chain firstly reaches state w. The hitting time
                                                           
       A[O ]                 A[O ]               A[O ]
     xt+1 F = At OF (x0 F , z0 ), . . . , OF (xt F , zt ) ;
                                                                              τhit is defined by

   • Algorithm A is zero-respecting, i.e., for any O and                                    τhit :=    max E[τw | s0 = v].
                                                                                                      v,w∈S×S
     samples z0 , z1 , . . . with any M , it satisfies for any
     t ≥ −1 and any m ∈ [M ]                                                  Intuitively, the hitting time measures the maximal number
                 A[OF ]
                                  [                                           of steps for which any pair of states take to transit between
       support(xt+1,m     )⊆             support(gk,m′ ), (5)                 each other.
                                 k≤t,m′ ∈[M ]
                                                                              Then we consider the class of countable-state Markov chains
                                                          A[O ]
       where gk,m′ is the stochastic gradient for xk,m′F and                  for which the stationary distribution Π exists and the hitting
       support(x) := {i ∈ [d] : [x]i ̸= 0} for [x]i being the                 time τhit is upper bounded by parameter τ ≥ 1. We denote
       i-th coordinate of x.                                                  the chain by P . Specifically,
                                                                                                n                                   o
                                                                                    Ms (τ ) := P | τhit ≤ τ, lim µP t = Π, ∀µ             (6)
We denote Azr (M ) the class of all zero-respecting algo-                                                        t→∞
rithms. It is worth noting that for any A ∈ Azr (M ),                         where τhit is defined in Definition 2.1 and µP t represents
  A[O ]
x0,1 F = 0 by definition.                                                     the distribution of the chain after t-step transitions starting
We note that the above-mentioned algorithm class is general,                  from the initial distribution µ.
which captures many existing first-order algorithms. For
example, the vanilla MC-SGD (Even, 2023)                                      2.5. Oracle Class

                       xt+1 = xt − ηt g(xt ; st )                             Recalling that the oracle O returns a sequence of stochastic
                                                                              gradient evaluated at each query, we place the following
corresponds to M = 1, B = 1, ∀t ≥ 0. For Randomized                           assumption.
ExtraGradient (Beznosikov et al., 2024), which maintains                      Assumption 2.2. For any x ∈ Rd , denoting Π as the sta-
the update by                                                                 tionary distribution of the Markov chain, Es∼Π ∥g(x; s) −
                                                                              ∇F (x)∥2 ≤ σ 2 for some 0 < σ < ∞, and
            xt+1/2 = proxηt (xt − ηt g(xt ; sTt +1 ))                         Es∼Π [g(x; s)] = ∇F (x).
               xt+1 = proxηt (xt+1/2 − ηt ut )
                                                                              Basically, Assumption 2.2 requires 1) asymptotically unbi-
where by generating Jt ∼ Geom(1/2)                                            ased gradient estimate when the Markov chain reaches its
                                                                              stationary distribution Π, i.e., Est ∼Π [g(x; st )] = ∇F (x);
                                 J
                   2Jt (uJt t − ut t−1 ) if 2Jt ≤ K
                
            0
     ut = ut +                                                                and 2) bounded variance after convergence of the chain to its
                              0           otherwise                           stationary distribution, i.e., Es∼Π ∥g(x; s)−∇F (x)∥2 ≤ σ 2 .
                                                                              This assumption becomes aligned with the bounded vari-
with
                                                                              ance assumption of stochastic first-order methods under i.i.d.
                2
                X
                   j
                                                                              sampling by further forcing independence across samples
  ujt := 2−j           g(xt ; sTt +i+1 ), Tt+1 = Tt + 1 + 2Jt .               (Ghadimi & Lan, 2013; Allen-Zhu & Hazan, 2016).
                 i=1
                                                                              Then, the oracle class, denoted by Os (σ 2 , τ ), is that the
one can clearly see that it fits in the case of M = 2 and                     stochastic gradient g is sampled from a chain contained in
B = 2Jt .                                                                     Ms (τ ) by (6) and such that Assumption 2.2 is satisfied.

                                                                          4
                          Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling
                                                                                              
                                                                                     τ σ 2 L∆
2.6. Sample Complexity Measure                                        to Ω τ L∆
                                                                             ϵ 2 +      ϵ 4       if σ 2 ≿ L∆, it matches the best-
Our result of lower bound is established in terms of the                  upper bound
                                                                      known                  for stationary Markov chains, which is
                                                                                 τ σ 2 L∆
sample complexity for finding S an ϵ-approximate critical             O τ L∆
                                                                          ϵ2   +    ϵ4        (Beznosikov et al., 2024).
solution of F . Let St (A) = s≤t zt be the collection of all
samples utilized til time t by algorithm A.
                                                                      4. Min-max Optimality for Finite Stationary
Concretely, the sample complexity measure is defined by                  Markov Chains
     Nsϵ (M, ∆, L, σ 2 , τ )                                          In this section, we restrict on the case of finite-state station-
      :=      sup          sup         inf                            ary Markov chains, where we further assume that the state
           O∈Os (σ 2 ,τ ) F ∈F (∆,L) A∈Azr (M )                       space of stationary Markov chains is finite, i.e., |S| < ∞.
                                                                      Then, we can further show a Ω(τ ϵ−2 ) sample complex-
            n                                  o
                                   A[O ]
         inf |ST (A)| ≥ 1 | E∥∇F (xT,1 F )∥ ≤ ϵ .          (7)
                                                                      ity lower bound, which is followed by a new proposed al-
                                                                      gorithm (MaC-SAGE) with Õ(max{τ, τmix }ϵ−2 ) sample
When Nsϵ (M, ∆, L, σ 2 , τ ) is lower bounded by NT , i.e.,           complexity (τmix is the mixing time defined in Defintion
Nsϵ (M, ∆, L, σ 2 , τ ) ≥ NT with NT denoting all collected           B.1), indicating the nearly min-max optimality of our pro-
samples up to time T , it indicates that there exists some            posed algorithm.
stationary Markov sampling process P with bounded hit-
ting time and an oracle O ∈ Os (σ 2 , τ ) such that for               We firstly define the class of finite-state Markov chains:
any A ∈ Azr (M ) there exists F ∈ F(∆, L) for which
         A[O ]
                                                                             Ms,f i (τ ) := {P | P ∈ Ms (τ ), |S| < ∞} .           (8)
E∥∇F (xT,1 F )∥ > ϵ, where the expectation is taken over
randomness in A and O. In other words, at least NT num-               Our subsequent analysis is established on the oracle class de-
ber of samples must be required to (possibly) achieve an              noted by Os,f i (σ 2 , τ ), which requires the sampled stochas-
ϵ-approximate critical solution for any first-order algorithm.        tic gradients are drawn from a stationary Markov chain
                                                                      P ∈ Ms,f i (τ ) and also satisfy bounded noise assumption
3. Improved Lower Bound                                               given as follows:
                                                                      Assumption 4.1. For any x ∈ Rd and any t ≥ 0,
In this section, we show our main result on the lower
                                                                      ∥g(x; st ) − ∇F (x)∥2 ≤ σ 2 for σ > 0 and if st ∼ Π, ∀t,
bound of sample complexity for stochastic non-convex opti-
                                                                      Est ∼Π [g(x; st )] = ∇F (x).
mization under Markov sampling. The result is algorithm-
independent, implying that all first-order methods that are           Moreover, given the finiteness of the state space, we con-
zero-respecting take at least such samples to reach an ϵ-             sider objective functions are in the following class
approximate critical point of the non-convex objective func-
                                                                      F ′ (∆, L) := F : Rd → R | F (0) − inf F (x) ≤ ∆,
                                                                                    
tion.                                                                                                                x

When the sampling process is characterized by a countable-            ∥∇f (x; s) − ∇f (y; s)∥ ≤ L∥x − y∥, ∀x, y ∈ Rd , ∀s ∈ S
state stationary Markov chains, we show the following sam-                                                                 (9)
ple complexity lower bound.                                           and note that F ′ ⊂ F by further place smoothness point-
Theorem 3.1. Considering the samples are generated by                 wisely on every f (·; s), which is commonly used in liter-
stationary Markov chains in Ms (τ ), there exist numerical            ature (Even, 2023). Accordingly, the sample complexity
constants c1 , c2 > 0 such that for any M, L, ∆, σ, τ > 0,            measure is given by
                                                                             ϵ                2
                                                                            Ns,f i (M, ∆, L, σ , τ )
                             2
                                     τ σ2
                                                            
                             τσ
Nsϵ (M, ∆, L, σ 2 , τ ) = Ω
                                               2
                                  +       min  c1 σ , c2 L∆   .
                              ϵ2      ϵ4                                     :=        sup            sup          inf
                                                                                  O∈Os,f i (σ 2 ,τ ) F ∈F ′ (∆,L) A∈Azr (M )
Remark 3.2. Note that the extreme case τ = 1 corresponds                          n
                                                                                                     A[O ]
                                                                                                                 o
to the i.i.d. sampling case. To see this, recalling the defini-                inf |ST (A)| | E∥∇F (xT,1 F )∥ ≤ ϵ ,               (10)
tion of hitting time τ = 1 indicates exactly one step is taken        based on which we provide the following lower bound of
transiting from one state to any other, which then implies the        sample complexity for finite-state stationary Markov chains:
samples are drawn exactly from the stationary distribution
Π and there is no time dependence across samples drawn                Theorem 4.2. Considering the samples are generated by
at different time steps, hence reducing to i.i.d. case. Thus,         finite-state Markov chains in Ms,f i (τ ), there exist numeri-
when σ 2 ⪰ L∆                                                         cal constants c3 , c4 > 0 such that for any M, L, ∆, σ, τ >
                 our lower    bound result is aligned with          0,
                  L∆   σ 2 L∆
the bound Ω ϵ2 + ϵ4              provided in (Arjevani et al.,                                        τ                       
                                                                           ϵ               2
                                                                                                                2
2023). Moreover, noting that both lower bounds reduce                    Ns,f i (M, ∆, L, σ , τ ) = Ω     min    c 3 σ , c4 L∆   .
                                                                                                       ϵ2
                                                                  5
                            Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

Note that the results shown in Theorems 3.1 and 4.2 are not           Algorithm 1 Markov-Chain Stochastic Average Gradient
contradictory, in the sense that Os,f ⊂ Os by Ms,f i (τ ) ⊂           with Estimation (MaC-SAGE)
Ms (τ ), F ′ ⊂ F and Assumption 4.1 implying Assumption                1: Input: Initialize x0 , y−1 = 0n , hi−1 = 0d , ∀i ∈ [n],
2.2. Therefore, lower bounding Nsϵ allows us to search for a              G−1 = 0d , stepsizes {γt }.
”hard” example in a broader space, compared to doing so for            2: for t = 0, 1, . . . , T − 1 do
   ϵ
Ns,f . In other words, the ”hard” example in Os that realizes          3:   Sample state st = i from the underlying Markov
Ω(τ ϵ−4 ) of Theorem 3.1 is more special than the one to re-                chain, i.e., f (·; st ) = fi (·).
alize Ω(τ ϵ−2 ) of Theorem 4.2 and is probably unrealizable            4:   Update yt = (yt1 , . . . , ytn ) as
when restricting on the class Os,f i . Technically speaking,
                                                                                           t          1
finding such an example for Os needs more sophisticated                           ytj =        j
                                                                                              yt−1 +     1j=i , ∀j ∈ [n].       (11)
construction than for Os,f i .                                                            t+1        t+1
A natural question following is then to ask that
                                                                       5:     Calculate
     Is the lower bound in Theorem 4.2 tight enough?                                               i
                                                                                      Gt = Gt−1 − yt−1 hit−1 + yti ∇fi (xt ).
If we expect a positive answer to this question, an algo-
rithm should be designed such that it has an orderly-same
                                                                       6:     Update ht = (h1t , . . . , hnt ) as
sample complexity upper bound, i.e., we need to show that
   ϵ              2              −2
Ns,f i (M, ∆, L, σ , τ ) = O(τ ϵ    ). In fact, we propose a                    hjt = hjt−1 + 1j=i (∇fi (xt ) − hit−1 ), ∀j ∈ [n].
new algorithm, called MaC-SAGE (summarized in Algo-
rithm 1), which achieves a nearly-same order of τ ϵ−2 .
As now the state space S of the Markov chain is finite, to             7:   Update xt+1 = xt − γt Gt .
state our algorithm we simply set |S| = n and denote st ∈ S            8: end for
as the state visited at time t. Further, we use st = i to indi-
cate the i-th state is visited at time t, hence correspondingly
∇f (xt , st ) := ∇fi (xt ). In Algorithm 1 only one sample            F is a (weighted) finite sum. Therefore, one may expect that
is drawn from the underlying Markov chain at each time                if the estimator yt of Π is asymptotically unbiased, meaning
iteration, which returns the corresponding stochastic gra-            limt→∞ yt = Π and if the rate of yt converging to Π is no
dient evaluated at the current query xt . Simultaneously a            slower than the rate of SAG (which is O(T −0.5 )), the sam-
vector yt is maintained to track the number of occurrences            ple complexity would be O(ϵ−2 ) (up to some logrithmic
of each state, serving as a role to reweigh the contribu-             factors). This intuitive result is summarized in the following
tion of the gradient given by each state. Then ht is de-              lemma (which is restated by Corollary B.4 in Appendix B).
signed to dynamically track the latest gradient information           Lemma 4.3. Suppose yt = (yt1 , . . . , ytn ) with y−1 = 0n
provided by every state, which is then combined together              is updated as (11) in Algorithm 1. Then, we have for any
with yt to incorporate corrected gradient into Gt . Defining          t≥1                              τ
ai (t) := sup{l | l ≤ t, sl = i}, it is straightforward to
                                                                                                                
                                                                                                          mix
                                                                                     E∥yt − Π∥2 = O               .
observe that Algorithm 1 can be rewritten as follows:                                                      t
                                                                      where τmix is the mixing time of the chain defined in Defini-
                      xt+1 = xt − γt Gt
                                                                      tion B.1.
where
                                                                      Formally, the convergence result of MaC-SAGE is presented
                       1
                              t                                       in the following. The proof is shown in Appendix B.
                                     1sl =i , ∀i ∈ [n],
                              X
              yti =
                      t+1                                             Theorem 4.4. Let F ∈ F ′ (∆, L) defined in (9) with
                               l=0
                      n                                               ∆, L > 0. Suppose Assumption 4.1 is satisfied. Then,
                                                                      for any finite-state stationary Markov chain contained in
                      X
             Gt =           yti ∇fi (xai (t) ).
                      i=1
                                                                      Ms,f i (τ ) defined in (8) with τ > 0, the trajectory {xt }Tt=0
                                                                      generated by MaC-SAGE (Algorithm 1) satisfies
which is similar to the classical variance-reduced algorithm                                                    2
SAG except for the weight yti . As a matter of fact, Algorithm
                                                                                                     
                                                                                            2      τ L∆         τ̃ σ
                                                                            E min ∥∇F (xt )∥ = O          + Õ       ,
1 is inspired by SAG (Schmidt et al., 2017) by further intro-                  t<T                   T            T
ducing yt as an estimator of the stationary distribution Π.
Intuitively, when Π is known, SAG would effectively reduce            where τ̃ = max{τ, τmix } where τmix denotes the mixing
the variance and thus speedup the convergence rate as now             time of the chain defined by Definition B.1.

                                                                  6
                           Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

It is straightforward to observe from Theorem 4.4 that                  that all its coordinates are nonzero, which then combines
the sample complexity of MaC-SAGE to achieve an ϵ-                      with Lemma 5.1 to guarantee the sample complexity lower
approximate critical solution is Õ(τ̃ ϵ−2 ), implying its (near)       bound Ω(τ ϵ−2 ) as shown by Theorem 4.2 by further setting
optimality as it (nearly) matches the lower bound provided              d = Ω(ϵ−2 ) (since we have to guarantee O(∆ϵ2 d) = ∆).
by Theorem 4.2.
                                                                        To get the lower bound for countable-state Markov chains,
                                                                        we modify conditions (12) and (13) such that they hold prob-
5. Proof Idea of the Lower Bounds                                       abilistically. This can be done by splitting v ∗ and w∗ into
                                                                        two substates, respectively, where each substate is sampled
In this section we present the proof idea of how we obtain
                                                                        with some probability q > 0. Specifically, for instance if
the sample complexity lower bounds for both finite-state and
                                                                        state v ∗ is sampled there is with probability q that condition
countable-state stationary Markov chains. We first clarify
                                                                        (12) becomes true, similarly for the case w∗ is sampled.
the proof sketch by focusing on the case where B = 1,
                                                                        Figure 2 depicts a concrete construction of the chain. Thus,
i.e., only one sample is drawn from the underlying Markov
                                                                        similar to the construction for the finite-state Markov chains
chain by the algorithm. Then, we generalize it to the case of
                                                                        we show the following result.
B ≥ 1 which can also be time-dependent. Full proofs are
presented in Appendix A.                                                Lemma 5.2. For any q ∈ (0, 1) and any zero-
                                                                        respecting algorithm A ∈ Azr , there exist a countable-
The core technique inspired by (Arjevani et al., 2023) is               state stationary Markov chain contained in Ms (τ )
to construct a ”hard” function F with f (·; s) supported on             and some F ∗ ∈ F ′ (O(∆dϵ2 ), L) with g ∗ (x; s) sat-
each state of a Markov chain lying in the required class                isfying ∇F ∗ (x) = Es∼Π [g ∗ (x; s)] and E∥g ∗ (x; st ) −
such that the gradient norm, ∥∇F (x)∥, is small only if each            ∇F ∗ (x)∥2 ≤ O(σ 2 ϵ2 /q), ∀t ≥ 0 such that for any 0 <
coordinate of x has a large enough absolute value. We                   δ < 1, with probability at least 1 − δ
use the progress function to mathematically evaluate the
largest coordinate whose absolute value is larger than some                                                        τ (d − log δ −1 )
                                                                          max max prog0 (xA[O F]
                                                                                          s,m ) < d, ∀t ≤                            .
nonnegative scalar α, i.e.,                                              m∈[M ] s≤t                                      4q

          progα (x) := max{k ≥ 1 | |[x]k | > α}                         In fact the constructive function F ∗ in Lemma 5.2 coin-
                                                                        cides with the one in Lemma 5.1, which then implies that
where [x]k represents the k-th coordinate of x. We set
                                                                        at least Ω(τ d/q) iterations are needed to guarantee an ϵ-
progα (x) = 0 if |[x]k | ≤ α, ∀k ∈ [d]. Then the task of find-
                                                                        approximate critical solution output by any algorithm and
ing an ϵ-approximate critical solution is equivalently trans-
                                                                        hence Ω(τ d/q) samples (due to B = 1). Finally setting
formed to finding a solution x whose coordinate progress is
                                                                        d = Ω(ϵ−2 ) and q = O(ϵ2 ) concludes the lower bound
high. Formally it is stated by the following lemma.
                                                                        Ω(τ ϵ−4 ) shown by Theorem 3.1.
Lemma 5.1. There exists some F ∗ ∈ F ′ (O(∆ϵ2 d), L) ⊂
F(O(∆ϵ2 d), L) such that ∥∇F ∗ (x)∥ > ϵ, ∀ϵ > 0 if                      Note that the above proof derivations are established on the
prog0 (x) < d.                                                          precondition when B = 1 by which we are able to directly
                                                                        obtain the sample complexity bounds through the iteration
Indicated by Lemma 5.1 ensuring ∥∇F ∗ (x)∥ ≤ ϵ requires                 complexity analysis, since the iteration complexity is the
all coordinates of x to be nonzero. Then for the case of finite-        same as the sample complexity. To generalize our results to
state Markov chains, we construct a chain with its hitting              B ≥ 1, we present the following result.
time upper bounded by τ and lower bounded by Ω(τ ) and                  Lemma 5.3. There exist a Markov chain in (6) (or
design g ∗ (x; s) such that Assumption 4.1 is satisfied and             (8)) and some functions F ∗ , g ∗ satisfying correspond-
                                                                        ing conditions in Lemma 5.2 (or Lemma 5.1) such that
            i.    prog0 (g ∗ (x; s)) ≤ prog0 (x) + 1                    for any zero-respecting algorithm Azr with B ≥ 1,
                 only if prog0 (x) is even and s = v ∗      (12)        there is a zero-respecting algorithm A∗zr with B =
           ii.    prog0 (g ∗ (x; s)) ≤ prog0 (x) + 1                    1 for which the following holds: for any t ≥
                                                                                                         A∗ [O ]
                 only if prog0 (x) is odd and s = w∗        (13)        0 if maxm∈[M ] maxs≤t prog0 (xs,m F ) ≤ k, then
                                                                                                  A[O ]
                                                                        maxm∈[M ] maxs≤t prog0 (xs,m F ) ≤ k, ∀0 ≤ k ≤ d.
and otherwise prog0 (g ∗ (x; s)) ≤ prog0 (x), ∀s ∈ / {v ∗ , w∗ }.
where at least Ω(τ ) number of state transitions are taken for          The above lemma indicates that we can always find an al-
transiting from state v ∗ to state w∗ and vice versa. See Fig-          gorithm that only draws one sample per iteration to achieve
ure 1 for a visualization. With conditions (12),(13) holding            no worse progress in its update than other algorithms that
we obtain that at least Ω(τ d) iterations (if only one sample           access multiple samples per iteration. In other words, com-
is used every iteration, i.e., B = 1) are required for any al-          bining with Lemmas 5.1 and 5.2 yields that accessing multi-
gorithm (which is zero-respecting) to output a solution such            ple samples every iteration has no benefit on improving the

                                                                    7
                        Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

sample complexity for the algorithm, which hence implies               stochastic optimization. Mathematical Programming, 199
the lower bounds that holds for B = 1 also holds for B ≥ 1.            (1):165–214, 2023.
                                                                     Beznosikov, A., Samsonov, S., Sheshukova, M., Gasnikov,
6. Conclusion                                                          A., Naumov, A., and Moulines, E. First order methods
In this paper, we study the sample complexity of general               with markovian noise: from acceleration to variational
first-order stochastic non-convex optimization problems.               inequalities. Advances in Neural Information Processing
Unlike the conventional i.i.d. sampling, we focus on the case          Systems, 36, 2024.
where data samples and stochastic gradient estimates are             Bhandari, J., Russo, D., and Singal, R. A finite time anal-
generated by an unknown Markov chain, which introduces                 ysis of temporal difference learning with linear function
additional data correlation and hence non-trivial analysis             approximation. In Conference on learning theory, pp.
difficulties. Due to the lack of sample complexity lower              1691–1692. PMLR, 2018.
bound results and the gap to the best-known upper bound,
we provide an improved complexity lower bound with the               Brooks, S. Markov chain monte carlo method and its appli-
order of ϵ−4 for Markov chains with countable states, which            cation. Journal of the royal statistical society: series D
then matches the best-known upper bound. Moreover, we                  (the Statistician), 47(1):69–100, 1998.
establish an ϵ−2 lower bound for finite-state Markov chains.
                                                                     Carmon, Y., Duchi, J. C., Hinder, O., and Sidford, A. Lower
Finally, we propose algorithm MaC-SAGE such that its
                                                                       bounds for finding stationary points i. Mathematical
sample complexity upper bound nearly matches our lower
                                                                       Programming, 184(1):71–120, 2020.
bound, implying its near min-max optimality and the tight-
ness of the lower bound.                                             Dorfman, R. and Levy, K. Y. Adapting to mixing time in
                                                                       stochastic optimization with markovian data. In Interna-
Acknowledgements                                                       tional Conference on Machine Learning, pp. 5429–5446.
                                                                       PMLR, 2022.
This work is supported by NSF awards CNS-2030251,
ECCS-2216970, and CMMI-2024774.                                      Duchi, J. C., Agarwal, A., Johansson, M., and Jordan, M. I.
                                                                       Ergodic mirror descent. SIAM Journal on Optimization,
                                                                       22(4):1549–1578, 2012.
Impact Statement
                                                                     Esling, P. and Agon, C. Time-series data mining. ACM
This paper presents work whose goal is to advance theoreti-
                                                                       Computing Surveys (CSUR), 45(1):1–34, 2012.
cally understanding stochastic optimization. There are many
potential societal consequences of our work, none which we           Even, M. Stochastic gradient descent under markovian sam-
feel must be specifically highlighted here.                            pling schemes. In International Conference on Machine
                                                                       Learning, pp. 9412–9439. PMLR, 2023.
References                                                           Even, M., Koloskova, A., and Massoulié, L. Asynchronous
Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I.,             sgd on graphs: a unified framework for asynchronous
  Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S.,            decentralized and federated optimization. In International
  Anadkat, S., et al. Gpt-4 technical report. arXiv preprint           Conference on Artificial Intelligence and Statistics, pp.
  arXiv:2303.08774, 2023.                                              64–72. PMLR, 2024.

Afsar, M. M., Crump, T., and Far, B. Reinforcement learn-            Foster, D. J., Sekhari, A., Shamir, O., Srebro, N., Sridha-
  ing based recommender systems: A survey. ACM Com-                    ran, K., and Woodworth, B. The complexity of making
  puting Surveys, 55(7):1–38, 2022.                                    the gradient small in stochastic convex optimization. In
                                                                       Conference on Learning Theory, pp. 1319–1345. PMLR,
Agarwal, A., Wainwright, M. J., Bartlett, P., and Raviku-              2019.
  mar, P. Information-theoretic lower bounds on the oracle
  complexity of convex optimization. Advances in Neural              Ghadimi, S. and Lan, G. Stochastic first-and zeroth-order
 Information Processing Systems, 22, 2009.                             methods for nonconvex stochastic programming. SIAM
                                                                       journal on optimization, 23(4):2341–2368, 2013.
Allen-Zhu, Z. and Hazan, E. Variance reduction for faster
  non-convex optimization. In International conference on            Hamilton, J. D. Time series analysis. Princeton university
  machine learning, pp. 699–707. PMLR, 2016.                           press, 2020.
Arjevani, Y., Carmon, Y., Duchi, J. C., Foster, D. J., Srebro,       Hillar, C. J. and Lim, L.-H. Most tensor problems are np-
  N., and Woodworth, B. Lower bounds for non-convex                    hard. Journal of the ACM (JACM), 60(6):1–39, 2013.

                                                                 8
                       Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

Kim, K., Oh, J., Gardner, J., Dieng, A. B., and Kim, H.             Zhang, S., Zhang, Z., and Maguluri, S. T. Finite sample
  Markov chain score ascent: A unifying framework of                  analysis of average-reward td learning and q-learning.
  variational inference with markovian gradients. Advances            Advances in Neural Information Processing Systems, 34:
  in Neural Information Processing Systems, 35:34802–                 1230–1242, 2021.
  34816, 2022.
                                                                    Zhao, W. X., Zhou, K., Li, J., Tang, T., Wang, X., Hou, Y.,
Lan, G. An optimal method for stochastic composite opti-              Min, Y., Zhang, B., Zhang, J., Dong, Z., et al. A survey of
  mization. Mathematical Programming, 133(1):365–397,                 large language models. arXiv preprint arXiv:2303.18223,
  2012.                                                               2023.
Levin, D. A. and Peres, Y. Markov chains and mixing times,
  volume 107. American Mathematical Soc., 2017.
Li, S. and Liu, Y. High probability guarantees for noncon-
  vex stochastic gradient descent with heavy tails. In In-
  ternational Conference on Machine Learning, pp. 12931–
  12963. PMLR, 2022.
Makkuva, A. V., Bondaschi, M., Girish, A., Nagle, A., Jaggi,
 M., Kim, H., and Gastpar, M. Attention with markov:
 A framework for principled analysis of transformers via
 markov chains. arXiv preprint arXiv:2402.04161, 2024.
Nemeth, C. and Fearnhead, P. Stochastic gradient markov
  chain monte carlo. Journal of the American Statistical
 Association, 116(533):433–450, 2021.
Nemirovski, A., Juditsky, A., Lan, G., and Shapiro, A. Ro-
  bust stochastic approximation approach to stochastic pro-
  gramming. SIAM Journal on optimization, 19(4):1574–
 1609, 2009.
Nesterov, Y. Introductory lectures on convex optimization:
 A basic course, volume 87. Springer Science & Business
  Media, 2013.
Roy, A., Balasubramanian, K., and Ghadimi, S. Constrained
  stochastic nonconvex optimization with state-dependent
  markov data. Advances in neural information processing
  systems, 35:23256–23270, 2022.
Schmidt, M., Le Roux, N., and Bach, F. Minimizing finite
  sums with the stochastic average gradient. Mathematical
  Programming, 162:83–112, 2017.
Sun, T., Li, D., and Wang, B. On the decentralized stochastic
  gradient descent with markov chain sampling. IEEE
  Transactions on Signal Processing, 2023.
Sun, Z., Zhang, Z., Xu, Z., Joshi, G., Sharma, P., and Wei,
  E. Debiasing federated learning with correlated client
  participation. arXiv preprint arXiv:2410.01209, 2024.
Sutton, R. S. Reinforcement learning: An introduction. A
  Bradford Book, 2018.
Tsitsiklis, J. and Van Roy, B. Analysis of temporal-
  diffference learning with function approximation. Ad-
  vances in neural information processing systems, 9, 1996.

                                                                9
                        Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

A. Proofs of Lower bounds
A.1. Construction of Markov chains
We construct Markov chains which are finite-state contained in Ms,f i (τ ) and countable-state contained in Ms (τ ). We take
the countable-state Markov chain case as an example. The construction for finite-state Markov chains are similar. Without
loss of generality we assume that τ is even.
First, we pick a countable-state Markov chain P ′ with state space S ′ (different from S) such that its hitting time is λτ for
some λ ∈ (0, 1/2), which can be always done since Ms ( 12 τ ) ̸= ∅. Then we choose two states s∗ , w∗ that realizes the
hitting time, i.e.,
                                                                                                                        1
                     (s∗ , w∗ ) ∈ arg     max          E[τw | s0 = v], s.t.               max        E[τw | s0 = v] =     τ.
                                        (v,w)∈S×S                                   (v,w)∈S ′ ×S ′                      2
Next we append a number of additional states S \ S ′ into the chain P ′ to form a new chain P ∗ such that the state space of
P ∗ is S. Moreover the way we append additional states satisfies that 1) there is a state v ∗ ∈ S \ S ′ for which at least 14 τ
steps are needed to transit between v ∗ and s∗ ; 2) any state in S \ S ′ must transit to state s∗ before transiting to other states
in S ′ . One specific construction of the appended chain is directed cyclic chain with self-loops, where a straightforward
calculation gives its hitting time is τ /2. Thus we guarantee that the new constructed chain P ∗ has hitting time to be τ . The
following figure (Figure 1) illustrates a concrete example of the construction satisfying the above-mentioned requirements.




                                 𝒮\𝒮′              1
                                                       𝜏 steps                                             𝒮′
                                                   2

                                                       ……
                                                                                             …
                                 𝑣∗                                          𝑠∗              …            𝑤∗
                                                                                             …
                                                       ……
                                                   1
                                                       𝜏 steps
                                                   2




                               Figure 1. Construction of Markov chain P ∗ with bounded hitting time


A.2. Construction of the function F
Now we construct a ”hard” function that is difficult for any first-order algorithm to search for the critical point. Specifically
we consider the following two functions
                                                       ⌊d/2⌋−1
                                                          X
                     h1 (x) = −ψ(1)ϕ([x]1 ) +                    (ψ(−[x]2i )ϕ(−[x]2i+1 ) − ψ([x]2i )ϕ([x]2i+1 ))               (14)
                                                          i=1

                                           ⌊d/2⌋
                                            X
                                h2 (x) =           (ψ(−[x]2i−1 )ϕ(−[x]2i ) − ψ([x]2i−1 )ϕ([x]2i ))                             (15)
                                            i=1
where
                                                                                     1
                                                       (
                                                                         0   , u≤ 2
                                          ψ(u) =
                                                                 
                                                                       1
                                                            exp 1 − (2u−1)2   , u > 12
and                                                                          Z u
                                                                     √               t2
                                                         ϕ(u) =          e         e− 2 dt
                                                                              −∞

                                                                         10
                           Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

 with u ∈ R.
 We denote πs as the corresponding probability of state s of the stationary distribution Π. Then, given the Markov chain
 constructed above, we know that at least 12 τ steps are required to take transiting from v ∗ to w∗ and vice versa. Then, we
 construct function F and f (·; s) such that

                                                         h1 (x), if s = v ∗
                                                        

                                             f (x; s) =     h2 (x), if s = w∗                                           (16)
                                                              0,      otherwise
                                                        

 and F (x) = πv∗ h1 (x) + πw∗ h2 (x). For any x and i ≥ 0 define x≤i := ([x]1 , . . . , [x]i , 0, . . . , 0) as the truncated version
 by only keeping the first i coordinates. We also set x≤0 = x. Then we have the following properties of F .
 Lemma A.1. Let F (x) = πv∗ h1 (x) + πw∗ h2 (x) for h1 , h2 defined by (14),(15). Then we have the following:

(1). F (0) − inf x F (x) ≤ ∆0 d for some constant ∆0 > 0.
                                            √
(2). ∥∇hi (x)∥∞ ≤ 23 and ∥∇hi (x)∥ ≤ 23 d, i = 1, 2.

(3). F (x) is l1 -smooth for some constant l1 > 0.

(4). If prog1 (x) < d, ∥∇F (x)∥ ≥ 1.

(5). [∇hi (x)]≤prog 1 (x) = [∇hi (x≤prog 1 (x) )]≤prog 1 (x) , i = 1, 2.
                      2                     2            2


(6). If prog0 (x) is odd, prog0 (∇h1 (x)) ≤ prog 12 (x), prog0 (∇h2 (x)) ≤ prog 12 (x) + 1.                       If prog0 (x) is even,
 prog0 (∇h1 (x)) ≤ prog 21 (x) + 1, prog0 (∇h2 (x)) ≤ prog 21 (x).

(7). If prog 12 (x) is odd, ∇h1 (x) = ∇h1 (x≤prog 1 (x) ), ∇h2 (x) = ∇h2 (x≤1+prog 1 (x) ). If prog 12 (x) is even, ∇h1 (x) =
                                                         2                                         2
 ∇h1 (x≤1+prog 1 (x) ), ∇h2 (x) = ∇h2 (x≤prog 1 (x) ).
                  2                                 2


                                                                                                       √
 Proof. For Part (1), observing that F (0) < 0 and noting that 0 ≤ ψ(u) ≤ e, 0 ≤ ϕ(u) ≤                    2πe,

                                                             d
                                                             X                             √
                              F (x) ≥ −ψ(1)ϕ([x]1 ) −              ψ([x]i−1 )ϕ([x]i ) ≥ −de 2πe = −d∆0
                                                             i=2

               √
 with ∆0 = e 2πe, which completes its proof.
                                        √                      √
 For Part (2), noting that 0 ≤ ψ ′ (u) ≤ 54e−1 and 0 ≤ ϕ′ (u) ≤ e, combining with the fact that for each i = 1, 2

             ∂hi
                 (x) ≥ ψ(−[x]j−1 )ϕ′ (−[x]j ) − ψ([x]j−1 )ϕ′ ([x]j ) − ψ ′ (−[x]j )ϕ(−[x]j+1 ) − ψ ′ ([x]j )ϕ([x]j+1 )
             ∂xj

 yields
                                       ∂hi        √       √ √
                                           (x) ≤ e e + 54e−1 2πe ≤ 23
                                       ∂xj
                                            √
 implying ∥∇hi (x)∥ ≤ 23 and ∥∇hi (x)∥ ≤ 23 d, ∀i = 1, 2.
 Parts (3) and (4) follow directly from (Carmon et al., 2020). Parts (5)-(7) follow from the observation that

                                                                                                1
                              ∇h1 (x) = ∇h1 ([x]1 , . . . , [x]2i+1 , 0, . . . , 0), if |x2j | ≤  , ∀j ≥ i + 1
                                                                                                2
                                                                                                1
                              ∇h2 (x) = ∇h2 ([x]1 , . . . , [x]2i , 0, . . . , 0), if |x2j−1 | ≤ , ∀j ≥ i + 1.
                                                                                                2



                                                                       11
                       Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

A.3. Lower bound for finite-state Markov chains
According to Part (6) of Lemma A.1, the above constructive F and f as (16) satisfy the conditions (12) and (13). Consider
the following F ∗
                                                   Lλ2  x                  2l1
                                        F ∗ (x) :=       F       , where λ =     ϵ.                                   (17)
                                                     l1      λ                L
Accordingly, we have
                                                           Lλ      x             x 
                              g ∗ (x; s) := ∇f ∗ (x; s) =      ∇f     ; s = 2ϵ∇f      ;s .
                                                            l1      λ               λ
We note that
                                                               L      x
                                                 ∇2 F ∗ (x) = ∇2 F
                                                               l1        λ
                    ∗
which implies that F is L-smooth by Part (3) of Lemma A.1, and similarly we conclude f ∗ (·; s) is L-smooth for any s ∈ S.
Moreover, by Part (1) of Lemma A.1 we obtain that
                                                         4l1 ϵ2                       4l1 ∆0 ϵ2
                              F ∗ (0) − inf F ∗ (x) =           (F (0) − inf F (x)) ≤           d
                                          x                L              x               L
and further we note for any s ∈ S and any x

                           ∥∇f (x; s) − ∇F (x)∥2 ≤ 2(∥h1 (x)∥2 + ∥∇h2 (x)∥2 ) ≤ 2 · (23)2 d

where we use Part (2) of Lemma A.1, implying that

                                              ∥g ∗ (x; s) − ∇F ∗ (x)∥2 ≤ 8 · 232 ϵ2 d.

Therefore by setting
                                                                               σ2
                                                                                  
                                                               L∆
                                          d = min                       ,                                              (18)
                                                             4l1 ∆0 ϵ2     8 · 232 ϵ2
we guarantee that

                                       F ∗ (0) − inf F ∗ (x) ≤ ∆
                                                    x
                                              ∗
                                       ∥∇F (x) − ∇F ∗ (y)∥ ≤ L∥x − y∥, ∀x, y
                                       ∥∇f ∗ (x; s) − ∇f ∗ (y; s)∥ ≤ L∥x − y∥, ∀x, y
                                       ∥g ∗ (x; s) − ∇F ∗ (x)∥2 ≤ σ 2

which hence indicates that F ∗ ∈ F ′ (∆, L) and Assumption 4.1 is satisfied.
Further combining with (16) and Part (6) of Lemma A.1 yields that conditions (12) and (13) hold for F ∗ and f ∗ , where we
use that prog 1 (x) ≤ prog0 (x), ∀x. Therefore, for B = 1,
             2


                                                                A[O    ∗]            1
                                         max max prog0 (xl,m F ) < d, ∀t ≤             τd                              (19)
                                        m∈M l≤t                                      2
For any algorithm A with B ≥ 1, we observe that by the construction of F ∗ and f ∗ and the Markov chain P ∗ , for any
                                                                                  A[O ∗ ]           Ã[O ∗ ]
t ≥ 0 and m ∈ [M ], there exists an algorithm Ã with B = 1 for which prog0 (xt,m F ) ≤ prog0 (xt,m F ), since multiple
samples do not contribute to additional progress of x (This also proves the finite-state case of Lemma 5.3). Therefore, (19)
also holds for B ≥ 1, which implies that for any m ∈ [M ]

                                       A[O ∗ ]      Lλ        x       Lλ                 1
                              ∥∇F ∗ (xt,m F )∥ =         ∇F          ≥       ≥ 2ϵ, ∀t ≤ τ d
                                                    l1          λ        l1                2
where we use Part (4) of Lemma A.1 and note that prog1 (x) ≤ prog0 (x). Thus we conclude
                                                                                   σ2
                                                                                     
                            ϵ                2       1      τ           L∆
                           Ns,f i (M, ∆, L, σ , τ ) ≥ τ d ≥ 2 min             ,
                                                     2     ϵ          2l1 ∆0     4 · 232
completing the proof of Theorem 4.2.

                                                                  12
                           Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

 A.4. Lower bound for countable-state Markov chains
 Note that Assumption 2.2 for the countable-state case is more general than Assumption 4.1 for the finite-case, which
 provides us with more flexibility on the construction of the ”hard” example. In particular, we slightly modify the construction
 of the Markov chain P ∗ in Section A.1 by further splitting states v ∗ and w∗ into two substates, i.e., v ∗ = {v1∗ , v2∗ } and
 w∗ = {w1∗ , w2∗ } such that conditioning on v ∗ (or w∗ ) is visited, the probability that v1∗ or (w1∗ ) is sampled is q ∈ (0, 1). We
 denote the modified construction as P̃ ∗ Figure 2 visualizes our construction.




                                     𝒮\𝒮′               1
                                                            𝜏 steps                                  𝒮′
                                                        2

                                                            ……
                                                                                       …
                                              ∗                                                      𝑤1∗ 𝑤 ∗ 𝑤2∗
                                      𝑣1∗ 𝑣       𝑣2∗                      𝑠∗          …
                                                                                       …
                                                            ……
                                                        1
                                                            𝜏 steps
                                                        2




                                      Figure 2. Construction of Markov chain P̃ ∗ with splitting states


 We define πv∗ = πv1∗ + πv2∗ and πw∗ = πw1∗ + πw2∗ as the marginal probabilities of virtual states v ∗ and w∗ . Then, we
 construct our F and f for countable-states Markov chains as following: for each i-th coordinate of f

                                                                                             1s=v1∗
                                                                                                    
                      if s ∈ {v1∗ , v2∗ }, [g(x; s)]i = [∇h1 (x)]i · 1 + 1{i > prog 1 (x)}          −1   ,
                                                                                    2          q
                                                                                              1s=w1∗
                                                                                                      
                      if s ∈ {w1∗ , w2∗ }, [g(x; s)]i = [∇h2 (x)]i · 1 + 1{i > prog 1 (x)}           −1    ,
                                                                                      2          q
                      otherwise, f (x; s) = 0,                                                                                           (20)

 where P(s = v1∗ | s ∈ {v1∗ , v2∗ }) = P(s = w1∗ | s ∈ {w1∗ , w2∗ }) = q ∈ (0, 1) and let F (x) = πv∗ h1 (x) + πw∗ h2 (x). Then
 we have the following lemma.
 Lemma A.2. Considering stochastic gradient g(x; s) constructed as (20), the following statements hold:

(1). For s ∈ {v1∗ , v2∗ , w1∗ , w2∗ }, with probability at least 1 − q, prog0 (g(x; s)) ≤ prog 12 (x) and g(x; s) = g(x≤prog 1 (x) ; s)
                                                                                                                                     2
 for all x.

           / {v1∗ , v2∗ , w1∗ , w2∗ }, with probability 1, prog0 (g(x; st )) ≤ prog 12 (x) and g(x; st ) = g(x≤prog 1 (x) ; st ) for all x.
(2). For s ∈
                                                                                                                      2


(3). For any s, with probability 1, prog0 (g(x; s)) ≤ 1 + prog 12 (x) and g(x; s) = g(x≤1+prog 1 (x) ; s) for all x.
                                                                                                           2


(4). Es∼π [g(x; s)] = ∇F (x).


 Proof. We firstly show Part (3). Note that by (20) and Part (7) of Lemma A.1, for any x, s, [g(x; st )]i = 0, ∀i > 1+prog 1 (x)
                                                                                                                           2
 in the sense that [∇h1 (x)]i = [∇h2 (x)]i = 0, ∀i > 1+prog 1 (x), which implies prog0 (g(x; s)) ≤ 1+prog 1 (x). Moreover,
                                                                2                                                2
 by Part (7) of Lemma A.1, defining x′ := x≤1+prog 1 (x) gives ∇h1 (x) = ∇h1 (x′ ) and ∇h2 (x) = ∇h2 (x′ ). Thus, we
                                                                      2
 obtain g(x; s) = g(x′ ; s) for any x, s, implying Part (3).

                                                                          13
                         Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

For Part (1), we note that when i ≥ 1+prog 1 (x) and s ∈ {v2∗ , w2∗ }, g(x; s) = [∇hj (x)]≤prog 1 (x) for j = 1, 2, which implies
                                               2                                                    2
prog0 (g(x; s)) ≤ prog 1 (x), ∀s ∈ {v2∗ , w2∗ }. Further, according to (5) of Lemma A.1, we have g(x; s) = g(x≤prog 1 (x) ; s)
                         2                                                                                                     2
for s ∈ {v2∗ , w2∗ } and all x. Since P (z = 0) = 1 − q, hence Part (1) is proved.
                                                                / {v1∗ , v2∗ , w1∗ , w2∗ }. Finally, Part (4) holds since E[1s /q | s ∈
Part (2) holds trivially in the sense that g(x; st ) = 0 when s ∈
{v1 , v2 }] = E[1s /q | s ∈ {w1 , w2 }] = 1.
  ∗ ∗                           ∗   ∗



Also, we show in the following lemma that g has bounded variance.
Lemma A.3. For F (x) = πv∗ h1 (x) + πw∗ h2 (x) and g defined as (20), then for any Markov chain with stationary
distribution Π, given any x ∈ Rd , t ≥ 0 and any initial distribution of the chain,
                                                                                    1−q
                                            E∥g(x; st ) − ∇F (x)∥2 ≤ a1 d + a2
                                                                                     q
for some constant a1 , a2 > 0.

Proof. By Part (4) of Lemma A.2, we know Es∼π [g(x; s)] = ∇F (x).
Denote i∗ = 1 + prog 1 (x). For any s ∈ {v1∗ , v2∗ , w1∗ , w2∗ }, we have
                        2


g(x; s) − ∇F (x) = (0, . . . , 0, [∇h1 (x)]i∗ (1s=v1∗ /q − 1), 0, . . . , 0) + (1 − π̃v∗ )∇h1 (x) − π̃w∗ ∇h2 (x), if s ∈ {v1∗ , v2∗ }
g(x; s) − ∇F (x) = (0, . . . , 0, [∇h2 (x)]i∗ (1s=w1∗ /q − 1), 0, . . . , 0) + (1 − π̃w∗ )∇h2 (x) − π̃v∗ ∇h1 (x), if s ∈ {w1∗ , w2∗ }.

When i∗ − 1 is odd, from Part (6) of Lemma A.1 we know that [∇h1 (x)]i∗ = 0. Therefore,

                       ∥g(x; s) − ∇F (x)∥2 ≤ 2∥∇h1 (x)∥2 + 2∥∇h2 (x)∥2 ≤ 4 · 232 d, s ∈ {v1∗ , v2∗ }

                  ∥g(x; s) − ∇F (x)∥2 ≤ 3|[∇h2 (x)]i∗ |2 (1s=w1∗ /q − 1)2 + 3∥∇h1 (x)∥2 + 3∥∇h2 (x)∥2
                                           ≤ 3 · 232 (1s=w1∗ /q − 1)2 + 6 · 232 d, s ∈ {w1∗ , w2∗ }

and

                                                                              / {v1∗ , v2∗ , w1∗ , w2∗ }
                        ∥g(x; st ) − ∇F (x)∥2 = ∥∇F (x)∥2 ≤ 4 · 232 d, when s ∈

where we use (2) of Lemma A.1. Combining the above three inequalities, it yields that when i∗ − 1 is odd, for any Markov
chain, any x, t ≥ 0 and any initial distribution of the chain,
                                                                                    1−q
                                            E∥g(x; st ) − ∇F (x)∥2 ≤ a1 d + a2
                                                                                     q
where a1 = 6 · 232 , a2 = 3 · 232 and we use that E[(1s /q − 1)2 | s ∈ {w1∗ , w2∗ }] = (1 − q)/q. The case when i∗ − 1 is
even can be derived similarly.

Then, we are ready to show Lemma 5.2. Again we first focus on the case of B = 1 and then generalize it to B ≥ 1.
Proof of Lemma 5.2. We construct F ∗ the same as (17) with λ = 2l1 ϵ/L and
                                                            Lλ  x 
                                               g ∗ (x; s) =    g    ,s
                                                            l1   λ
with g(x; s) defined as (20). Then by Lemma A.3, we have
                                                                            4a2 (1 − q) 2
                                E∥g ∗ (x; st ) − ∇F ∗ (x)∥2 ≤ 4a1 dϵ2 +                ϵ , ∀t ≥ 0.
                                                                                 q

Then, define                                n                                           o
                                     Bt := 1 ∃ x : prog0 (g ∗ (x; st )) = 1 + prog 1 (x) .
                                                                                         2



                                                                  14
                        Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

Note that under the construction of the Markov chain P̃ ∗ and F ∗ and g ∗ , for any zero-respecting algorithm A
                                                            1
                                   Bt+k = 0, ∀k = 1, . . . , τ, conditioning on Bt = 1.
                                                            2
That is to say within every 12 τ iterations Bt can be 1 at most once. And Part (1) of Lemma A.2 indicates that the probability
                                                                              A[O] ∗
of Bt being 1 is no greater than q. Let k(t) := maxm∈[M ] maxl≤t prog0 (xl,m F ). Then, the above implies that
                                                                          X
                                                          k(t) ≤                  Bl
                                                                          l≤t

which then gives
                                                                  
                                                           X
                                          P(k(t) ≥ d) ≤ P   Bl ≥ d
                                                                        l≤t
                                                                                                       
                                                                                   X
                                                         = P exp                       Bl  ≥ ed 
                                                                                   l≤t
                                                                              P
                                                                   −d             l≤t Bl
                                                         ≤e             E[e                ]
                                                                              P⌈2t/τ ⌉
                                                                   −d                      zi
                                                         ≤e             E[e       i=1           ]
                                                                   −d                           ⌈2t/τ ⌉
                                                         =e             (1 − q + eq)
                                                                   ⌈4t/τ ⌉q−d
                                                         ≤e

where zi s are i.i.d. Bernoulli random variable with succeeding probability at most q and in the fourth inequality we use
the fact that the number of Bl that can possibly be 1 is at most ⌈2t/τ ⌉ and they are independent if not forcing to be zero.
Therefore, we conclude that for any δ ∈ (0, 1) and q ∈ (0, 1) with probability at least 1 − δ,

                                                                         τ (d − log(1/δ))
                                              k(t) < d, ∀t ≤
                                                                                4q
which completes the proof of Lemma 5.2. Similarly we can use the same technique in the last section to show the
countable-state case of Lemma 5.3.
Now to show Theorem 3.1, setting                                          2 
                                                                 L∆           σ
                                             d = min                    2
                                                                           ,                                             (21)
                                                               4l1 ∆0 ϵ      8a1 ϵ2
and
                                                          1      σ2
                                                            =1+                                                          (22)
                                                          q     8a2 ϵ2
yields that F ∗ ∈ F(∆, L) and Assumption 2.2 is satisfied. By Part (4) of Lemma A.1 and Lemma 5.2, choosing δ = 1/2
renders that for any m ∈ [M ] with probability at least 1/2,

                                                    A[O       ∗]                                τ (d − 1)
                                           ∥∇F ∗ (xt,m F )∥ ≥ 2ϵ, ∀t ≤
                                                                                                    4q
which implies that
                                                        A[O    ∗]                               τ (d − 1)
                                          E∥∇F ∗ (xt,m F )∥ ≥ ϵ, ∀t ≤                                     .
                                                                                                    4q
Therefore, we conclude that
                                                        τ (d − 1)  τ σ2 τ σ2
                            Nsϵ (M, ∆, L, σ 2 , τ ) ≥             ⪰ 2 + 2 min c1 σ 2 , c2 L∆
                                                                             
                                                            4q      ϵ    ϵ
by the selections of d, q as (21),(22) for some constants c1 , c2 > 0.

                                                                        15
                        Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

B. Convergence Analysis of MaC-SAGE
In the following, we denote πi the stationary probability according to state i.
Definition B.1. Define tmix (ϵ) := inf{l ≥ 1 | dT V (µP l , Π) ≤ ϵ}. Then τmix = tmix (1/4) is the mixing time of the
chain.
Lemma B.2. We have the following claims:

   • dT V (µP t+1 , Π) ≤ dT V (µP t , Π).

   • For k ≥ 2, tmix (2−k ) ≤ (k − 1)τmix .

   • Moreover,
                                                  T
                                                  X
                                                         dT V (µP k , Π) ≤ c0 τmix , ∀T ≥ 0
                                                  k=0

     for some c0 > 0.


Proof. The first two claims are directly from (Levin & Peres, 2017).
To see the third claim, we note that

                        T
                        X                         ∞
                                                  X
                              dT V (µP k , Π) ≤         dT V (µP k , Π)
                        k=0                       k=0
                                                                                              −(k+1)
                                                  τX
                                                   mix                             ∞ tmix (2
                                                                                   X       X           )
                                                                        l
                                             ≤           dT V (µP , Π) +                                   dT V (µP l , π)
                                                  l=0                              k=0 l=tmix (2−k )+1
                                                                              ∞
                                                                              X
                                             ≤ dT V (µ, Π)τmix +                    (tmix (2−(k+1) ) − tmix (2−k ))2−k
                                                                              k=2
                                                                              X∞
                                             ≤ dT V (µ, Π)τmix +                    k2−k τmix
                                                                              k=2
                                             ≤ dT V (µ, Π)τmix + 2τmix

which completes the proof with c0 = dT V (µ, π) + 2.

Theorem B.3. Let S be the state space of the Markov chain with |S| = N . Consider any real-valued mapping v : S → RN d
and µ is any initial distribution. Without particularly claiming, v(·) is a row vector. Define V = [v(1)T , . . . , v(N )T ]T ∈
RN ×N d . Then
                              T −1                               T −1
                                                   !
                         1 X                                1 X T t
                   Eµ          v(st ) − ΠT V            =         µ (P − 1ΠT )V
                         T t=0                              T t=0
                              T −1                  2
                         1 X
                 T EΠ          v(st ) − ΠT V            ≤ max ∥v(i)∥2∞ ∥I − 1ΠT ∥∞ + 2c0 max ∥v(i)∥2∞ τmix
                         T t=0                               i                                                i

                              T −1                  2                       T −1                  2
                         1 X                                            1 X
                 T Eµ          v(st ) − ΠT V            ≤ T EΠ                v(st ) − ΠT V           + 3c0 max ∥g(i)∥2∞ τmix
                         T t=0                                          T t=0                                     i



where Eµ (·) means the initial state s0 follows µ; g(i) = v(i) − ΠT V .

                                                                            16
                          Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

Proof. We firstly show the first equality. Note that
                                                T −1                                   T −1
                                                                           !
                                              1 X                                  1 X T k
                                        Eµ          v(st ) − ΠT f              =      (µ P V − ΠT V )
                                              T t=0                                T
                                                                                       k=0
                                                                                       T −1
                                                                                   1   X
                                                                               =              µT (P k − 1ΠT )V
                                                                                   T
                                                                                       k=0

where we observe that µT 1 = 1.
Then we turn to show the second inequality. By definition, we have

                               T −1                    2
                          1 X
                 T EΠ           v(st ) − ΠT V              = EΠ ∥v(s0 ) − ΠT V ∥2
                          T t=0
                                                                     T −1
                                                               2 X
                                                             +     (T − k)EΠ [(v(s0 ) − ΠT V )(v(sk ) − ΠT V )T ].                        (23)
                                                               T
                                                                     k=1


Moreover,
                                                                       X                 X                        X
                 EΠ [(v(s0 ) − π T V )(v(sk ) − π T V )T ] =                   πi v(i)        [P k ]i,j v(j)T −         πi πj v(i)v(j)T
                                                                        i                j                        i,j
                                                                       X                 X
                                                                 =             πi v(i)          k        T
                                                                                              [P − 1Π ]i,j v(j)T
                                                                        i                j
                                                                       X                       X
                                                                 ≤             πi ∥v(i)∥∞           |[P k − 1ΠT ]i,j |∥v(j)∥∞
                                                                        i                       j

                                                                 ≤ max ∥v(i)∥2∞ ∥P k − 1ΠT ∥∞
                                                                    i

Applying Lemma B.2 to (23) yields

                                 T −1
                                                       !2
                               1 X
                   T EΠ              v(st ) − ΠT V          ≤ max ∥v(i)∥2∞ ∥I − 1ΠT ∥∞ + 2c0 max ∥v(i)∥2∞ τmix
                               T t=0                             i                                                i


which completes the proof of the second inequality.
To obtain the third inequality, defining g(i) = v(i) − ΠT V we aim to bound

                          T −1          2              T −1            2
                        1 X                         1 X
             T Eµ           g(sk )           − EΠ       g(sk )
                        T                           T
                          k=0                          k=0
                        T −1                                                T −1 T −1
                    1   X                                              2 X X
               ≤               Eµ ∥g(sk )∥2 − EΠ ∥g(sk )∥2 +                 Eµ (g(sk )g(sl )T ) − Eπ (g(sk )g(sl )T ) .
                    T                                                  T
                        k=0                                                 k=0 l=k+1

Note

                                                                 X                                     X
            Eµ (g(sk )g(sl )T ) − Eπ (g(sk )g(sl )T ) =                µi g(j)((P k )i,j − πj )              ((P l−k )j,r − πr )g(r)T
                                                                 i,j                                    r

                                                                 X                                          X
                                                             =         µi g(j)((P k − 1ΠT ))i,j              ((P l−k − 1ΠT ))j,r g(r)T
                                                                 i,j                                         r

                                                             ≤ max ∥g(i)∥2∞ ∥P l − 1ΠT ∥∞ .
                                                                i


                                                                            17
                        Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling

Thus,
                                       T −1              2               T −1          2
                                  1 X                                1 X
                       T Eµ           g(sk )                 − EΠ        g(sk )
                                  T                                  T
                                       k=0                               k=0
                                  T −1                                                                                      T −1
                            1     X
                                              T      k         T                     2                                      X
                          ≤              ∥µ (P − 1Π                )∥∞ max ∥g(i)∥2∞ + c0 max ∥g(i)∥2∞                              τmix
                            T                                           i            T    i
                                  k=0                                                                                       k=0
                                  T −1
                              1 X T k
                          ≤      ∥µ (P − 1ΠT )∥∞ max ∥g(i)∥2∞ + 2c0 max ∥g(i)∥2∞ τmix
                              T                   i                  i
                                  k=0
                          ≤ c0 max ∥g(i)∥2∞ τmix (2 + T −1 ).
                                   i

Combining all the above completes the proof.
Corollary B.4.
                                          n                                                   2
                                                                                                             σ 2 τmix
                                          X                                                                            
                                    E             (yti − πi )(∇fi (xt ) − ∇F (xt ))               =O
                                          i=1
                                                                                                                  t
                                                                          n                   2
                                                                                                             σ 2 τmix
                                                                          X                                            
                                                                     E          (yti − πi )       =O
                                                                          i=1
                                                                                                                  t

Proof. For any t, setting v(i) = [0, . . . , ∇fi (xt )T − ∇F (xt )T , . . . , 0] and noting ∥v(i)∥2∞ ≤ ∥∇fi (xt ) − ∇F (xt )∥2 ≤ σ 2
completes the first result. Similarly setting v(i) = [0, . . . , 0, 1, 0, . . . , 0] completes the second.
Theorem B.5. Considering MaC-SAGE (Algorithm 1) and supposing all conditions in Theorem 4.4 hold, then
                                                           2                 
                                         2        τ L∆          σ max{τ, τmix }
                         E min ∥∇F (xt )∥ = O            + Õ                       .
                            t<T                     T                    T

Proof. Using the smoothness of F ,
                                                                                      L
                     F (xt+1 ) − F (xt ) ≤ ⟨∇F (xt ), xt+1 − xt ⟩ +                     ∥xt+1 − xt ∥2
                                                                                      2
                                                                      Lγt2
                                                  = −γt ⟨∇F (xt ), Gt ⟩ +  ∥Gt ∥2
                                                                       2
                                                   γt                   γt           γt
                                                  = ∥∇F (xt ) − Gt ∥2 − ∥∇F (xt )∥2 − (1 − Lγt )∥Gt ∥2
                                                   2                    2            2
                                                   γt                   γt           γt
                                                  ≤ ∥∇F (xt ) − Gt ∥2 − ∥∇F (xt )∥2 − ∥Gt ∥2
                                                   2                    2            4
for γt ≤ 1/(2L).
Note that by ai (t) = sup{l ≥ 1 | l ≤ t, sl = i}
                                         n                                2         n                                               2
                                         X                                          X
                              2
           ∥∇F (xt ) − Gt ∥ ≤ 2                   (yti − πi )∇fi (xt )        +2           yti (∇fi (xai (t) ) − ∇fi (xt ))
                                         i=1                                        i=1
                                         n                                                    2         n                                        2
                                         X                                                              X
                                  =2              (yti − πi )(∇fi (xt ) − ∇F (xt ))               +2          yti (∇fi (xai (t) ) − ∇fi (xt ))
                                         i=1                                                            i=1
                                         n                                                    2        n
                                         X                                                             X
                                  ≤2              (yti − πi )(∇fi (xt ) − ∇F (xt ))               +2         yti ∥∇fi (xai (t) ) − ∇fi (xt )∥2
                                         i=1                                                           i=1
                                         n                                                    2        n
                                         X                                                             X
                                  ≤2              (yti − πi )(∇fi (xt ) − ∇F (xt ))               +2         yti L2 ∥xai (t) − xt ∥2
                                         i=1                                                           i=1


                                                                               18
                         Lower Bounds of Stochastic Non-convex Optimization under Markov Sampling
                                                                                 Pn         i          i
where the third inequality follows the convexity of l2 -norm by                        i=1 yt = 1 and yt ≥ 0 by definition; the last one follows
L-smoothness of each fi . Further we have
                                                                          t−1
                                                                          X
                                               ∥xt − xai (t) ∥2 ≤                (t − ai (t))γl2 ∥Gl ∥2 .
                                                                     l=ai (t)
                  Pn        i                              2
Denoting et :=        i=1 (yt − πi )(∇fi (xt ) − ∇F (xt )) , we obtain
                                                                                  n
                                                                                  X t−1
                                                                                    X
                           γt ∥∇F (xt ) − Gt ∥2 ≤ 2γt et + 2L2 γt                                    yti (t − ai (t))γl2 ∥Gl ∥2
                                                                                    i=1 l=ai (t)
                                                                           n
                                                                           X            t−1
                                                                                        X
                                                           ≤ 2γt et + L          yti              γl2 ∥Gl ∥2
                                                                           i=1         l=ai (t)
                  1
when γt ≤ 2L maxi {t−a i (t)}
                              . Further note that
                                        T
                                        X −1     t−1
                                                 X                        T
                                                                          X −1
                                                           γl2 ∥Gl ∥2 =          γt2 ∥Gt ∥2 (bi (t) − t − 1)
                                         t=0 l=ai (t)                     t=0

where bi (t) = inf{l | l > t, sl = i}. Thus, by letting ∆T = F (x0 ) − F (xT ) we have
               T −1                    T −1         T −1                n T −1
               X   γt                  X            X    γt          LXX i 2
                      ∥∇F (xt )∥ ≤ ∆ +      γt et −         ∥Gt ∥2 +           yt γt ∥Gt ∥2 (bi (t) − t − 1).
               t=0
                   2                   t=0          t=0
                                                         4           2 i=1 t=0

Moreover, since
                      " n T −1                                             #        n T −1
                       XX                                                           X X
                  E              yti γt2 ∥Gt ∥2 (bi (t) − t − 1) | Ft           =                  yti γt2 ∥Gt ∥2 E[bi (t) − t − 1 | Ft ]
                       i=1 t=0                                                      i=1 t=0
                                                                                    n T
                                                                                    X X −1
                                                                                ≤                  yti γt2 ∥Gt ∥2 τhit
                                                                                    i=1 t=0
                                                                                            T
                                                                                            X −1
                                                                                = τhit             γt2 ∥Gt ∥2
                                                                                            t=0
                                                                                    T −1
                                                                                    X    γt
                                                                                ≤           ∥Gt ∥2
                                                                                     t=0
                                                                                         4L
                    1
for γt = 4L(maxi {t−a i (t)}+τhit )
                                    ≤ 4Lτ1hit , it yields
                                                           "                                #      " P          #
                                                                                                    T −1
                                                       2     2∆T                                    2 t=0 γt et
                                E min ∥∇F (xt )∥ ≤ E PT −1                                      +E   PT −1        .
                                       t<T                                             γt
                                                                            t=0                        t=0 γt
Noting that according to Lemma A.5 of (Even, 2023)
                                                                     T −1
                                                       T1 X −1
                                                PT −1 ≤      γ ≤ 8L log(n)τhit
                                                 t=0 γt
                                                        T t=0 t
and by Corollary B.4                   "T −1           #              "T −1 #      2           
                                        X                      1       X           σ τmix log T
                                   E           γt et       ≤        E      et = O                 .
                                        t=0
                                                             4Lτhit    t=0
                                                                                      Lτhit
Finally combining with the fact τhit ≤ τ we obtain
                                                              2              
                                                     τ L∆         σ max{τ, τmix }
                            E min ∥∇F (xt )∥2 = O           + Õ
                                 t<T                   T               T



                                                                           19
