Introduction
With the growing scale of training datasets, particularly in language model pretraining, large batch training is increasingly important for exploiting data parallelism. However, using a very large batch from initialization can reduce token efficiency, motivating schedules that begin with smaller batches and increase them as training progresses (Merrill et al., 2026). Such schedules are already used in large scale training, e.g., GPT-3 gradually increased its batch size during the initial phase of pretraining (Brown et al., [7 ] ). Existing adaptive batch schedulers commonly guide batch selection through gradient noise scale (GNS) estimates (McCandlish et al., 2018; Naganuma et al., 2026). However, Merrill et al. (2026) show that this connection relies on assumptions about the optimizer and curvature that need not hold in deep learning, and find GNS can be an unreliable proxy in practice. They instead estimate the critical batch size directly through additional branched training runs at different training stages. Despite the success of these schedules in practice, the theoretical justification for why increasing the batch size during training helps LLM pretraining is not well understood. In this work, we study this question from the perspective of stochastic gradient noise, where the variance grows as the iterates move away from initialization.
Classical optimization theory does not directly account for this behavior, as the convergence analysis of stochastic gradient methods commonly combines L L L -smoothness of the objective with a uniformly bounded variance assumption on the stochastic gradient oracle ([3 Shamir &] [10 ] (Zhang 2013). For an unbiased estimator g ( x , ξ ) g(x,\xi) g ( x , ξ ) of ∇ f ( x ) \nabla f(x) ∇ f ( x ) , this assumption requires E ξ ∥ g ( x , ξ ) − ∇ f ( x ) ∥ 2 ≤ σ 2 \mathbb{E}_{\xi}\lVert g(x,\xi)-\nabla f(x)\rVert^2 \le\sigma^2 E ξ ∥ g ( x , ξ ) − ∇ f ( x ) ∥ 2 ≤ σ 2 for every x x x , where σ \sigma σ is constant and independent of the iteration. However, this assumption is often unrealistic because smoothness directly controls the changes in the population gradient, not the variance of its stochastic estimates. As a result, the bounded variance assumption need not hold even for unconstrained least squares problems ([1 , 9 ] (Upadhyay et al. 2026)), where differences between sample gradients and the population gradient can grow linearly with the parameters, causing variance to grow quadratically. As a remedy, researchers have analyzed the Blum–Gladyshev (BG-0) noise model ([5 , 11 ] ) which accommodates this behavior by allowing E ξ ∥ g ( x , ξ ) − ∇ f ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ 2 + G 2 \mathbb{E}_{\xi}\lVert g(x,\xi)-\nabla f(x)\rVert^2 \le B^2\lVert x-x_0\rVert^2 + G^2 E ξ ∥ g ( x , ξ ) − ∇ f ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ 2 + G 2 , where x 0 x_0 x 0 is a fixed reference point, and B B B , G G G are problem dependent constants. For smooth nonconvex optimization under this unbounded variance oracle, Fazla et al. [9 ] establish an Ω ( ϵ − 6 ) \Omega(\epsilon^{-6}) Ω ( ϵ − 6 ) stochastic first-order oracle lower bound for finding an ϵ \epsilon ϵ -stationary point and provide matching upper bounds for stochastic gradient descent (SGD) with dynamic batching. Their results show that distance-dependent noise incurs an intrinsic complexity penalty relative to the classical bounded variance rate of Θ ( ϵ − 4 ) \Theta(\epsilon^{-4}) Θ ( ϵ − 4 ) ([2 ] ).
Although BG-0 relaxes the bounded variance assumption, its quadratic dependence on distance can overestimate the variance growth encountered in practice. As illustrated in Figure 1 , we find that the empirical variance growth in LLM pretraining is subquadratic, with fitted exponents a ∈ [ 0.98 , 1.49 ] a \in[0.98, 1.49] a ∈ [ 0.98 , 1.49 ] that increase with model size, and we observe a similar behavior for the vision models we study. Motivated by these observations, we introduce the generalized BG-a a a noise model, E ξ ∥ g ( x , ξ ) − ∇ f ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ a + G 2 \mathbb{E}_{\xi}\lVert g(x,\xi)-\nabla f(x)\rVert^2 \le B^2\lVert x-x_0\rVert^a + G^2 E ξ ∥ g ( x , ξ ) − ∇ f ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ a + G 2 , which interpolates between uniformly bounded variance at a = 0 a = 0 a = 0 and classical quadratic BG noise (a = 2 a = 2 a = 2 , denoted as BG-0 in prior works ([9 ] (Upadhyay et al. 2026)). For L L L -smooth nonconvex objectives, we establish matching lower and upper bounds with Θ ( ϵ − ( 4 + a ) ) \Theta(\epsilon^{-(4+a)}) Θ ( ϵ − ( 4 + a ) ) dependence for finding an ϵ \epsilon ϵ -stationary point for a ∈ [ 0 , 2 ] a \in[0,2] a ∈ [ 0 , 2 ] . Thus, the rate at which stochastic gradient noise grows with distance directly governs the oracle complexity, while recovering the bounded variance and BG-0 rates as the two endpoints.
Figure 1. Empirical stochastic-gradient noise of OLMo2 models on C4 as a function of displacement from initialization. For each radius r r r , we evaluate x = x 0 + r u x = x_0 + ru x = x 0 + r u along ten independently sampled, normalized Gaussian directions and plot the corresponding minibatch variance estimates. The dashed red curve in each panel is the fitted BG-a a a model, ( B 2 ∥ x − x 0 ∥ a + G 2 ) (B^2 \lVert x-x_0\rVert^a + G^2) ( B 2 ∥ x − x 0 ∥ a + G 2 ) . The fitted parameters are: (a) OLMo2-100M: B = 0.379 B = 0.379 B = 0.379 , G = 5.41 G = 5.41 G = 5.41 , a = 0.98 a = 0.98 a = 0.98 ; (b) OLMo2-600M: B = 0.132 B = 0.132 B = 0.132 , G = 8.64 G = 8.64 G = 8.64 , a = 1.38 a = 1.38 a = 1.38 ; and (c) OLMo2-1B: B = 0.0916 B = 0.0916 B = 0.0916 , G = 9.77 G = 9.77 G = 9.77 , a = 1.49 a = 1.49 a = 1.49 . Across all three model sizes, the fitted curve captures both the initial noise floor governed by G 2 G^2 G 2 and the distance-dependent growth governed by B 2 ∥ x − x 0 ∥ a B^2\lVert x-x_0\rVert^a B 2 ∥ x − x 0 ∥ a , with the fitted exponent a a a increasing with model size. The corresponding results for the vision models are provided in Appendix § 11 .2.1.
One direct way to control distance-dependent noise is to increase the batch size as the iterates move far from initialization. Accordingly, Fazla et al. [9 ] use dynamic batching to control the minibatch variance under BG-0 noise, which extends to the BG-a a a model, where the corresponding batch size requirement scales with B 2 ∥ x t − x 0 ∥ a + G 2 B^2\lVert x_t-x_0\rVert^a + G^2 B 2 ∥ x t − x 0 ∥ a + G 2 . We show that this dynamic batching strategy under the BG-a a a model yields a matching O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) oracle complexity for SGD. Thus, we provide a theoretical explanation for increasing batch size during training: small batches are sufficient near initialization, where noise is small, while larger batches are needed to control variance growth as iterates move away from initialization. However, directly scaling batch sizes with noise level can lead to large per-iteration batch requirements as displacement grows. To alleviate this issue and make the method more flexible and practical, we extend the dynamically batched SGD analysis to SGD with momentum (SGDM) under BG-a a a noise. Our analysis shows that momentum provides an additional form of averaging over time, reducing the sufficient per-iteration batch size at the cost of additional iterations while preserving the optimal O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) oracle complexity. This establishes a theoretical trade-off between batch size and iteration count under distance-dependent noise.
Together, these results offer a theoretical perspective on why increasing the batch size during pretraining works, complementary to empirical approaches based on GNS and critical batch size estimation. In particular, our BG-a a a analysis connects the growth of the batch size to the growth of stochastic gradient noise, prescribing batch sizes that control variance growth as the iterates move away from initialization. To examine this perspective in practice, we translate the resulting variance control condition into an adaptive batch scheduler. In our LLM pretraining experiments, our scheduler achieves a lower validation loss than both small and large batch training under matched token budgets. We also provide experiments on image classification tasks, and discuss the role of adaptive batching in offline, multi-epoch training in Appendix § 11 .§ 2 .
We summarize our contributions as follows:
We empirically study the stochastic gradient noise in LLM pretraining and demonstrate that its variance grows subquadratically with the distance from initialization. We formalize this phenomenon by introducing the BG-a a a oracle, which interpolates between bounded variance and BG-0 noise.
For L L L -smooth nonconvex optimization, we establish an Ω ( ϵ − ( 4 + a ) ) \Omega(\epsilon^{-(4+a)}) Ω ( ϵ − ( 4 + a ) ) lower bound on the stochastic first-order oracle complexity for a ∈ [ 0 , 2 ] a \in[0, 2] a ∈ [ 0 , 2 ] , characterizing how distance-dependent noise growth degrades the sample complexity of finding an ϵ \epsilon ϵ -stationary point.
We establish matching O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) oracle complexity bounds for both SGD and SGDM under dynamic batching schedules. We identify momentum as a mechanism to reduce the required batch size at the expense of additional iterations, all while maintaining the optimal dependence on ϵ \epsilon ϵ .
We instantiate our theoretical variance control analysis into a practical adaptive batch scheduler that scales batch sizes according to displacement from initialization and can be readily used in practice. In OLMo2 pretraining on C4, our scheduler achieves a lower validation loss than both small and large batch training under matched token budgets, while using less than 10% of the iterations of small batch training.
Gradient Noise Grows with Distance in LLM Pretraining
Before developing our theoretical results, we first examine the behavior of stochastic gradient noise in LLM pretraining. Specifically, we study how the gradient variance grows as the model parameters move away from initialization and assess how tightly the quadratic distance dependence assumed by the BG-0 oracle captures this growth. We then investigate whether allowing a tunable growth exponent yields a tighter characterization of the observed variance.
We study language modeling with OLMo2-100M, OLMo2-600M, and OLMo2-1B models (Team OLMo et al., 2024) on C4 (Raffel et al., 2020). To study the effect of displacement on noise growth without following an optimizer generated trajectory, we evaluate the model at randomly perturbed parameter states, without performing training. Starting from a randomly initialized anchor point x 0 x_0 x 0 , we construct evaluation points as
x = x 0 + r u , u = D z ∥ D z ∥ , z ∼ N ( 0 , I ) , x = x_0 + ru,\qquad u = \frac{Dz}{\lVert Dz\rVert},\qquad z \sim\mathcal{N}(0,I), x = x 0 + r u , u = ∥ D z ∥ D z , z ∼ N ( 0 , I ) ,
where r > 0 r > 0 r > 0 is the distance from initialization and D D D is a diagonal matrix specifying the relative perturbation scales. We set the diagonal entries of D D D to 2 for parameters of the LM head and 1 for all remaining parameters. Thus, we double the Gaussian perturbation scale of the LM head before globally normalizing the direction, preserving ∥ x − x 0 ∥ = r \lVert x - x_0\rVert= r ∥ x − x 0 ∥ = r . For each model, we consider 50 logarithmically spaced radii and sample 10 independent directions at each radius.
This modeling choice is motivated by our observation that the LM head exhibits the largest weight changes among all parameter groups in our pretraining runs. This observation agrees with prior work that identifies a gradient bottleneck at the LM head (Godey & Artzi, 2026) and highlights heterogeneous output layer gradients and, hence, larger effective learning rates for the LM head weights (Glentis et al., [12 ] ). We use a factor of two as a simple way to reflect this behavior, so that the perturbation directions more closely resemble how the parameters move during training.
At each evaluation point x x x , we estimate the variance of stochastic gradients around a fixed large batch reference gradient ∇ f ~ ( x ) \nabla\tilde{f}(x) ∇ f ~ ( x ) , which is computed before the evaluation process and used as an approximation to the population gradient. Specifically, we approximate the stochastic gradient variance E ξ ∥ ∇ f ( x ; ξ ) − ∇ f ( x ) ∥ 2 \mathbb{E}_{\xi}\lVert\nabla f(x;\xi)-\nabla f(x)\rVert^{2} E ξ ∥ ∇ f ( x ; ξ ) − ∇ f ( x ) ∥ 2 using 1 M ∑ i = 1 M ∥ g b ( i ) ( x ) − ∇ f ~ ( x ) ∥ 2 \frac{1}{M}\sum_{i=1}^{M}\lVert g_b^{(i)}(x)-\nabla\tilde{f}(x)\rVert^{2} M 1 ∑ i = 1 M ∥ g b ( i ) ( x ) − ∇ f ~ ( x ) ∥ 2 , where g b ( i ) ( x ) = 1 b ∑ j = 1 b ∇ f ( x ; ξ i , j ) g_b^{(i)}(x)=\frac{1}{b}\sum_{j=1}^{b}\nabla f(x;\xi_{i,j}) g b ( i ) ( x ) = b 1 ∑ j = 1 b ∇ f ( x ; ξ i , j ) . For all OLMo2 models, we use a reference batch of 512 sequences and M = 32 M=32 M = 32 stochastic batches, each containing 4 sequences, where sequence length is set as 2048.
Figure 1 shows the distribution of individual variance measurements across the three OLMo2 models, together with the best fitting curves of the form B 2 ∥ x − x 0 ∥ a + G 2 B^{2}\lVert x-x_{0}\rVert^{a}+G^{2} B 2 ∥ x − x 0 ∥ a + G 2 , subject to B , G ≥ 0 B,G\ge0 B , G ≥ 0 and a ∈ [ 0 , 2 ] a\in[0,2] a ∈ [ 0 , 2 ] . The fitted exponents are approximately a = 0.98 a=0.98 a = 0.98 , 1.38 1.38 1.38 , and 1.49 1.49 1.49 for OLMo2-100M, OLMo2-600M, and OLMo2-1B, respectively. These results indicate that the distance from initialization is a useful predictor of gradient noise growth. Across the sampled points, the proposed BG-a a a condition closely captures the observed increase in variance as the iterates move farther from initialization. Moreover, allowing the exponent a a a to adapt to the observed noise-growth behavior provides a better fit than the BG-0 condition of Alacaoglu et al. [1 ] ; Fazla et al. [9 ] ; Upadhyay et al. (2026), which fixes the corresponding exponent to 2. Figure 2 further shows how the fitted parameters change with model size: as the model grows, the growth exponent a a a and the noise floor G G G increase, while B B B decreases. We observe a similar subquadratic noise growth for ResNet50 on image classification tasks, which we report in Appendix § 11 .2.1.
Figure 2. Estimated BG-a a a noise-model parameters across OLMo2 model sizes. We observe that as model size increases, (a) B B B tends to decrease, while (b) G G G and (c) a a a tend to increase.
These observations motivate the BG-a a a noise model, which we formalize and analyze in the next section, and an adaptive batch size scheduler that increases the batch size as the iterates move farther from initialization, thereby controlling variance growth throughout training.
Theoretical Analysis under the BG-a a a Oracle
Preliminaries
For a given random variable X X X , we write E [ X ] \mathbb{E}[X] E [ X ] to denote the expectation with respect to all randomness introduced by the algorithm. ∥ ⋅ ∥ \lVert\cdot\rVert ∥ ⋅ ∥ denotes the Euclidean norm, and ⟨ ⋅ , ⋅ ⟩ \langle\cdot,\cdot\rangle ⟨ ⋅ , ⋅ ⟩ denotes the Euclidean inner product. The notation O ( ⋅ ) O(\cdot) O ( ⋅ ) suppresses numerical constants that are independent of the target accuracy ϵ \epsilon ϵ . We use F t \mathcal{F}_t F t to denote the history of the algorithm up to iteration t t t , which contains the initialization and all samples used at iterations 0 , … , t − 1 0,\ldots,t-1 0 , … , t − 1 . We denote the corresponding conditional expectation by E t [ ⋅ ] = E [ ⋅ ∣ F t ] \mathbb{E}_t[\cdot]=\mathbb{E}[\cdot\mid\mathcal{F}_t] E t [ ⋅ ] = E [ ⋅ ∣ F t ] . In assumptions involving an oracle sample, E ξ \mathbb{E}_{\xi} E ξ denotes expectation only with respect to the sample ξ \xi ξ , with the query points held fixed.
We consider the stochastic optimization problem min x ∈ R d f ( x ) \min_{x\in\mathbb{R}^{d}}f(x) min x ∈ R d f ( x ) , f ( x ) : = E ξ [ f ( x ; ξ ) ] f(x):=\mathbb{E}_{\xi}[f(x;\xi)] f ( x ) := E ξ [ f ( x ; ξ )] . Here, f : R d → R f:\mathbb{R}^{d}\to\mathbb{R} f : R d → R is differentiable, nonconvex, and bounded below by f inf : = inf x f ( x ) > − ∞ f_{\inf}:=\inf_{x}f(x)>-\infty f i n f := inf x f ( x ) > − ∞ . We denote the initialization query point with x 0 x_{0} x 0 and use Δ = f ( x 0 ) − f inf ≥ 0 \Delta=f(x_{0})-f_{\inf}\ge0 Δ = f ( x 0 ) − f i n f ≥ 0 .
The convergence criterion that we consider is the average expected squared gradient norm along the iterates x 0 , … , x T − 1 x_0,\ldots,x_{T-1} x 0 , … , x T − 1 ,
1 T ∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ ϵ 2 . (1) \frac{1}{T}\sum_{t=0}^{T-1}\mathbb{E}\left\|\nabla f(x_t)\right\|^2 \leq\epsilon^2. \tag*{(1)} T 1 t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ ϵ 2 . (1)
Equivalently, returning x τ x_\tau x τ with τ \tau τ drawn uniformly from { 0 , … , T − 1 } \{0,\ldots,T-1\} { 0 , … , T − 1 } yields E ∥ ∇ f ( x τ ) ∥ 2 ≤ ϵ 2 \mathbb{E}\|\nabla f(x_\tau)\|^2 \leq\epsilon^2 E ∥∇ f ( x τ ) ∥ 2 ≤ ϵ 2 . Given a query point x x x , the stochastic first-order oracle (SFO) returns a stochastic gradient ∇ f ( x ; ξ ) \nabla f(x;\xi) ∇ f ( x ; ξ ) . We measure the computational complexity by the total number of SFO calls. At iteration t t t , the algorithms we consider query the oracle b t b_t b t times at x t x_t x t and form the minibatch gradient
g t = 1 b t ∑ i = 1 b t ∇ f ( x t ; ξ t , i ) , (2) g_t=\frac{1}{b_t}\sum_{i=1}^{b_t}\nabla f(x_t;\xi_{t,i}), \tag*{(2)} g t = b t 1 i = 1 ∑ b t ∇ f ( x t ; ξ t , i ) , (2)
where the batch size b t b_t b t is chosen based on F t \mathcal{F}_t F t before sampling, and the samples ξ t , 1 , … , ξ t , b t \xi_{t,1},\ldots,\xi_{t,b_t} ξ t , 1 , … , ξ t , b t are drawn independently of each other and of F t \mathcal{F}_t F t . Hence, iteration t t t uses b t b_t b t SFO calls. We next state the assumptions used in our work.
Assumptions
Assumption 1 (L L L -smoothness of f f f ). The objective function f f f is globally L L L -smooth with L > 0 L>0 L > 0 such that:
∥ ∇ f ( x ) − ∇ f ( y ) ∥ ≤ L ∥ x − y ∥ for all x , y ∈ R d . \|\nabla f(x)-\nabla f(y)\|\leq L\|x-y\| \qquad\text{for all } x,y\in\mathbb{R}^d. ∥∇ f ( x ) − ∇ f ( y ) ∥ ≤ L ∥ x − y ∥ for all x , y ∈ R d .
Assumption 2 (Unbiased BG-a a a stochastic oracle). Given a ≥ 0 a\geq0 a ≥ 0 , for every x ∈ R d x\in\mathbb{R}^d x ∈ R d , the stochastic gradient oracle is unbiased, and there exist constants B , G ≥ 0 B,G\geq0 B , G ≥ 0 satisfying:
E ξ [ ∇ f ( x ; ξ ) ] = ∇ f ( x ) , E ξ ∥ ∇ f ( x ; ξ ) − ∇ f ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ a + G 2 . \mathbb{E}_{\xi}[\nabla f(x;\xi)]=\nabla f(x), \qquad\mathbb{E}_{\xi}\|\nabla f(x;\xi)-\nabla f(x)\|^2\leq B^2\|x-x_0\|^a+G^2. E ξ [ ∇ f ( x ; ξ )] = ∇ f ( x ) , E ξ ∥∇ f ( x ; ξ ) − ∇ f ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ a + G 2 .
Convergence Results
We now summarize our three main theoretical results. Complete statements, constants, and proofs are given in the Appendix.
Theorem 1 (Lower bound under BG-a a a noise). Fix any finite a ≥ 0 a\geq0 a ≥ 0 . Under Assumption 1, for all ϵ > 0 \epsilon>0 ϵ > 0 satisfying ϵ 2 ≤ c L Δ \epsilon^2\leq cL\Delta ϵ 2 ≤ c L Δ , where c > 0 c>0 c > 0 is an absolute constant specified in Appendix § 8 , every algorithm that returns a point x ^ \widehat{x} x satisfying E ∥ ∇ f ( x ^ ) ∥ 2 ≤ ϵ 2 \mathbb{E}\|\nabla f(\widehat{x})\|^2\leq\epsilon^2 E ∥∇ f ( x ) ∥ 2 ≤ ϵ 2 for every unbiased BG-a a a oracle must incur worst-case expected SFO complexity
Ω a ( L Δ ϵ 2 + G 2 L Δ ϵ 4 + B 2 L Δ a + 1 ϵ 4 + a ) . (3) \Omega_a\left(\frac{L\Delta}{\epsilon^2}+\frac{G^2L\Delta}{\epsilon^4}+\frac{B^2L\Delta^{a+1}}{\epsilon^{4+a}}\right). \tag*{(3)} Ω a ( ϵ 2 L Δ + ϵ 4 G 2 L Δ + ϵ 4 + a B 2 L Δ a + 1 ) . (3)
For Theorem 1, the oracle may be any unbiased vector estimator satisfying the BG-a a a variance bound. See Appendix § 8 for the complete statement and proof.
Theorem 2 (SGD Upper Bound with Dynamic Batching). Suppose Assumptions 1 and 2 hold with 0 ≤ a ≤ 2 0\leq a\leq2 0 ≤ a ≤ 2 . Fix σ 2 > 0 \sigma^2>0 σ 2 > 0 and let 0 < ϵ 2 ≤ min { 2 σ 2 , L Δ } 0<\epsilon^2\leq\min\{2\sigma^2,L\Delta\} 0 < ϵ 2 ≤ min { 2 σ 2 , L Δ } . At iteration t t t , use
b t = max { 1 , ⌈ B 2 ∥ x t − x 0 ∥ a + G 2 σ 2 ⌉ } , η = ϵ 2 2 L σ 2 , T = ⌈ 4 Δ η ϵ 2 ⌉ , (4) b_t=\max\left\{1,\left\lceil\frac{B^2\|x_t-x_0\|^a+G^2}{\sigma^2}\right\rceil\right\},\qquad\eta=\frac{\epsilon^2}{2L\sigma^2},\qquad T=\left\lceil\frac{4\Delta}{\eta\epsilon^2}\right\rceil, \tag*{(4)} b t = max { 1 , ⌈ σ 2 B 2 ∥ x t − x 0 ∥ a + G 2 ⌉ } , η = 2 L σ 2 ϵ 2 , T = ⌈ η ϵ 2 4Δ ⌉ , (4) and update the iterates using x t + 1 = x t − η g t x_{t+1}=x_t-\eta g_t x t + 1 = x t − η g t , where g t g_t g t is the minibatch gradient in equation (2) . Then equation (1) holds with the expected SFO cost given as
E [ ∑ t = 0 T − 1 b t ] = O ( L Δ ( σ 2 + G 2 ) ϵ − 4 + B 2 L Δ a + 1 ϵ − ( 4 + a ) ) . (5) \mathbb{E}\left[\sum_{t=0}^{T-1}b_t\right]=O\left(L\Delta(\sigma^2+G^2)\epsilon^{-4}+B^2L\Delta^{a+1}\epsilon^{-(4+a)}\right). \tag*{(5)} E [ t = 0 ∑ T − 1 b t ] = O ( L Δ ( σ 2 + G 2 ) ϵ − 4 + B 2 L Δ a + 1 ϵ − ( 4 + a ) ) . (5) In particular, for fixed σ 2 \sigma^2 σ 2 , the expected SFO complexity is O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) . The complete theorem statement and proof are provided in Appendix § 9 .
Theorem 3 (SGDM Upper Bound with Dynamic Batching). Suppose Assumptions 1 and 2 hold with 0 ≤ a ≤ 2 0 \le a \le2 0 ≤ a ≤ 2 . Fix β ∈ [ 0 , 1 ) \beta\in[0,1) β ∈ [ 0 , 1 ) and σ 2 > 0 \sigma^2 > 0 σ 2 > 0 , and let c β = 1 − β 1 + β c_\beta= \frac{1-\beta}{1+\beta} c β = 1 + β 1 − β and 0 < ϵ 2 ≤ min { 8 σ 2 ( 1 − β 2 ) , L Δ } 0 < \epsilon^2 \le\min\{8\sigma^2(1-\beta^2), L\Delta\} 0 < ϵ 2 ≤ min { 8 σ 2 ( 1 − β 2 ) , L Δ } . At iteration t t t , use
b t = max { 1 , ⌈ c β ( B 2 ∥ x t − x 0 ∥ a + G 2 ) σ 2 ⌉ } , η = c β ϵ 2 16 L σ 2 , T = ⌈ 16 Δ η ϵ 2 ⌉ (6) b_t = \max\left\{1,\left\lceil\frac{c_\beta(B^2\lVert x_t-x_0\rVert^a+G^2)}{\sigma^2}\right\rceil\right\},
\qquad
\eta= \frac{c_\beta\epsilon^2}{16L\sigma^2},
\qquad
T = \left\lceil\frac{16\Delta}{\eta\epsilon^2}\right\rceil \tag*{(6)} b t = max { 1 , ⌈ σ 2 c β ( B 2 ∥ x t − x 0 ∥ a + G 2 ) ⌉ } , η = 16 L σ 2 c β ϵ 2 , T = ⌈ η ϵ 2 16Δ ⌉ (6) and, with g t g_t g t as in equation (2) , update the iterates using
m − 1 = 0 , m t = β m t − 1 + ( 1 − β ) g t , x t + 1 = x t − η m t . (7) m_{-1}=0,\qquad m_t=\beta m_{t-1}+(1-\beta)g_t,\qquad x_{t+1}=x_t-\eta m_t. \tag*{(7)} m − 1 = 0 , m t = β m t − 1 + ( 1 − β ) g t , x t + 1 = x t − η m t . (7) Then equation (1) holds, and
E [ ∑ t = 0 T − 1 b t ] = O ( L Δ ( σ 2 c β + G 2 ) ϵ − 4 + B 2 L Δ a + 1 ϵ − ( 4 + a ) ) . (8) \mathbb{E}\left[\sum_{t=0}^{T-1}b_t\right]
=O\left(L\Delta\left(\frac{\sigma^2}{c_\beta}+G^2\right)\epsilon^{-4}+B^2L\Delta^{a+1}\epsilon^{-(4+a)}\right). \tag*{(8)} E [ t = 0 ∑ T − 1 b t ] = O ( L Δ ( c β σ 2 + G 2 ) ϵ − 4 + B 2 L Δ a + 1 ϵ − ( 4 + a ) ) . (8) Thus, for fixed β \beta β and σ 2 \sigma^2 σ 2 , SGDM also uses O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) expected SFO calls. The complete theorem statement and proof are provided in Appendix § 10 .
When B > 0 B>0 B > 0 , the upper bounds match the growth-dominated lower-bound exponent: ϵ − 4 \epsilon^{-4} ϵ − 4 at a = 0 a=0 a = 0 , ϵ − ( 4 + a ) \epsilon^{-(4+a)} ϵ − ( 4 + a ) for 0 < a < 2 0<a<2 0 < a < 2 , and ϵ − 6 \epsilon^{-6} ϵ − 6 at a = 2 a=2 a = 2 . When B = 0 B=0 B = 0 and G > 0 G>0 G > 0 , both stochastic rates reduce to ϵ − 4 \epsilon^{-4} ϵ − 4 . We emphasize that the restriction a ≤ 2 a\le2 a ≤ 2 in the upper bounds is needed to control the a a a -th displacement moment using the second moment supplied by the variance assumption. We discuss the obstruction that occurs when a > 2 a>2 a > 2 in Appendix § 9 .
Implications for Batch Size Scheduling
Theorems 2 and 3 prescribe a batch size that tracks the BG-a a a variance bound at the current iterate. For a > 0 a>0 a > 0 , since x 0 x_0 x 0 is the initialization, the prescribed batch size starts at b 0 = max { 1 , ⌈ c β G 2 / σ 2 ⌉ } b_0=\max\{1,\lceil c_\beta G^2/\sigma^2\rceil\} b 0 = max { 1 , ⌈ c β G 2 / σ 2 ⌉} , with c β = 1 c_\beta=1 c β = 1 for SGD, and increases only as the iterates move away from initialization, in proportion to B 2 ∥ x t − x 0 ∥ a B^2\lVert x_t-x_0\rVert^a B 2 ∥ x t − x 0 ∥ a . When a = 0 a=0 a = 0 , with the convention ∥ x − x 0 ∥ 0 = 1 \lVert x-x_0\rVert^0=1 ∥ x − x 0 ∥ 0 = 1 , the variance is uniformly bounded and the prescribed batch size remains constant. In our proofs, the expected squared displacement E ∥ x t − x 0 ∥ 2 \mathbb{E}\lVert x_t-x_0\rVert^2 E ∥ x t − x 0 ∥ 2 is bounded by a quantity that increases with t t t , so the prescribed batch size is small at the start of training and can grow as training progresses. This avoids the drawbacks of the two fixed batch alternatives: a fixed small batch does not control the variance growth as the iterates move away from initialization, which requires a smaller step size and more iterations, whereas a fixed large batch chosen for the variance level late in training spends unnecessary samples early in training, where the noise is small. Moreover, the batch size rule depends on the noise only through the parameters ( B , G , a ) (B,G,a) ( B , G , a ) , which we estimate empirically in § 2 , and serves as the basis of our adaptive batch scheduler in § 4 . Finally, momentum reduces the prescribed batch size by a factor of c β c_\beta c β at the same query point, at the cost of a 1 / c β 1/c_\beta 1/ c β times larger iteration count, providing a trade-off between batch size and iteration count while preserving the O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) oracle complexity.
Adaptive Batch Size Scheduler
We introduce an adaptive batch size scheduler that dynamically adjusts the batch size throughout training to account for the BG-a a a noise growth. Motivated by the empirical evidence in § 2 and the theoretical analysis in § 3 , our scheduler determines the batch size at each iteration based on the displacement of the current iterate from the initialization x 0 x_0 x 0 . We first describe the batch size rule and then present the optimization scheme built on top of it.
Under the BG-a a a noise model, the gradient variance at iteration t t t is bounded by B 2 ∥ x t − x 0 ∥ a + G 2 B^2\lVert x_t-x_0\rVert^a+G^2 B 2 ∥ x t − x 0 ∥ a + G 2 , where the exponent a a a governs how the variance grows with the distance from initialization, while B B B and G G G control the distance-dependent and constant noise components, respectively. Our scheduler takes these noise model parameters as inputs, which we estimate using the noise measurements in § 2 , and determines the batch size before sampling the stochastic gradients at each iteration.
Following Theorem 3, given a target noise scale σ 2 > 0 \sigma^2 > 0 σ 2 > 0 and a momentum parameter β ∈ [ 0 , 1 ) \beta\in[0,1) β ∈ [ 0 , 1 ) with c β = ( 1 − β ) / ( 1 + β ) c_\beta= (1-\beta)/(1+\beta) c β = ( 1 − β ) / ( 1 + β ) , we define the distance-dependent function
v t : = c β ( B 2 ∥ x t − x 0 ∥ a + G 2 ) σ 2 . (9) v_t := \frac{c_\beta\left(B^2\lVert x_t-x_0\rVert^a+G^2\right)}{\sigma^2}. \tag*{(9)} v t := σ 2 c β ( B 2 ∥ x t − x 0 ∥ a + G 2 ) . (9)
For simplicity, throughout this section we assume B , G > 0 B,G > 0 B , G > 0 and a ∈ ( 0 , 2 ] a \in(0,2] a ∈ ( 0 , 2 ] . Hence, v 0 = c β G 2 / σ 2 > 0 v_0 = c_\beta G^2/\sigma^2 > 0 v 0 = c β G 2 / σ 2 > 0 and v t ≥ v 0 v_t \ge v_0 v t ≥ v 0 .
We initialize the batch size as b 0 ≥ v 0 b_0 \ge v_0 b 0 ≥ v 0 and restrict subsequent batch sizes to power-of-two multiples of b 0 b_0 b 0 to reduce the frequency of potentially costly batch size adjustments, while allowing distributed systems to naturally benefit from data parallelism. At each iteration, we round the ratio v t / v 0 v_t/v_0 v t / v 0 upward to the smallest power of two that is at least this ratio:
k t : = 2 ⌈ log 2 ( v t / v 0 ) ⌉ , b t : = k t b 0 . (10) k_t := 2^{\lceil\log_2(v_t/v_0)\rceil}, \qquad b_t := k_t b_0. \tag*{(10)} k t := 2 ⌈ l o g 2 ( v t / v 0 )⌉ , b t := k t b 0 . (10)
This guarantees k t ∈ { 1 , 2 , 4 , 8 , … } k_t \in\{1,2,4,8,\ldots\} k t ∈ { 1 , 2 , 4 , 8 , … } , k 0 = 1 k_0=1 k 0 = 1 , and v t / v 0 ≤ k t < 2 v t / v 0 v_t/v_0 \le k_t < 2v_t/v_0 v t / v 0 ≤ k t < 2 v t / v 0 . Thus, b t ≥ v t b_t \ge v_t b t ≥ v t , and conditional independence and the BG-a a a bound give
E t ∥ g t − ∇ f ( x t ) ∥ 2 ≤ B 2 ∥ x t − x 0 ∥ a + G 2 b t = σ 2 v t c β k t b 0 ≤ σ 2 v 0 c β b 0 = G 2 b 0 ≤ σ 2 c β . (11) \mathbb{E}_t\lVert g_t-\nabla f(x_t)\rVert^2 \le\frac{B^2\lVert x_t-x_0\rVert^a+G^2}{b_t} = \frac{\sigma^2v_t}{c_\beta k_t b_0} \le\frac{\sigma^2v_0}{c_\beta b_0} = \frac{G^2}{b_0} \le\frac{\sigma^2}{c_\beta}. \tag*{(11)} E t ∥ g t − ∇ f ( x t ) ∥ 2 ≤ b t B 2 ∥ x t − x 0 ∥ a + G 2 = c β k t b 0 σ 2 v t ≤ c β b 0 σ 2 v 0 = b 0 G 2 ≤ c β σ 2 . (11)
The scheduler therefore keeps the minibatch variance bound at or below its initial level. Since b t b_t b t is a positive integer and b t ≥ v t b_t \ge v_t b t ≥ v t , it satisfies the batch size requirement in Theorem 3, and in Theorem 2 when β = 0 \beta=0 β = 0 so that c β = 1 c_\beta=1 c β = 1 .
While c β c_\beta c β and σ 2 \sigma^2 σ 2 determine the initial batch size b 0 b_0 b 0 , they cancel out in the ratio v t / v 0 v_t/v_0 v t / v 0 . Hence, the multiplier k t k_t k t can be computed directly from ( x t , x 0 , B , G , a ) (x_t,x_0,B,G,a) ( x t , x 0 , B , G , a ) as
k t = AdaptiveBatchSize ( x t , x 0 , B , G , a ) : = 2 ⌈ log 2 ( 1 + B 2 G 2 ∥ x t − x 0 ∥ a ) ⌉ . (12) k_t=\operatorname{AdaptiveBatchSize}(x_t,x_0,B,G,a):=2^{\left\lceil\log_2\left(1+\frac{B^2}{G^2}\lVert x_t-x_0\rVert^a\right)\right\rceil}. \tag*{(12)} k t = AdaptiveBatchSize ( x t , x 0 , B , G , a ) := 2 ⌈ l o g 2 ( 1 + G 2 B 2 ∥ x t − x 0 ∥ a ) ⌉ . (12)
Note that k t k_t k t depends on the noise parameters only through the ratio B 2 / G 2 B^2/G^2 B 2 / G 2 and the exponent a a a . In particular, rescaling B 2 B^2 B 2 and G 2 G^2 G 2 by a common factor, such as the minibatch size used when estimating the variance in § 2 , leaves k t k_t k t unchanged.
Algorithm 1 applies the proposed batch size scheduler to an optimizer of choice, with a base learning rate schedule { η t } t = 0 T − 1 \{\eta_t\}_{t=0}^{T-1} { η t } t = 0 T − 1 specified for the initial batch size b 0 b_0 b 0 . We adjust the learning rate to the selected batch size using the optimizer-dependent scaling rules of linear scaling for SGD-based optimizers ((Goyal et al., 2017; McCandlish et al., 2018)) and square-root scaling for Adam ((Malladi et al., 2022; Merrill et al., 2026)). Using the multiplier k t = b t / b 0 k_t=b_t/b_0 k t = b t / b 0 , we set
η ˉ t = η t f O P T ( k t ) , f O P T ( k ) = { k , O P T ∈ { S G D , S G D M } , k , O P T ∈ { A d a m } . (13) \bar{\eta}_t=\eta_t f_{\mathrm{OPT}}(k_t), \qquad
f_{\mathrm{OPT}}(k)=
\begin{cases}
k, & \mathrm{OPT}\in\{\mathrm{SGD},\mathrm{SGDM}\},\\
\sqrt{k}, & \mathrm{OPT}\in\{\mathrm{Adam}\}.
\end{cases} \tag*{(13)} η ˉ t = η t f OPT ( k t ) , f OPT ( k ) = { k , k , OPT ∈ { SGD , SGDM } , OPT ∈ { Adam } . (13)
Consequently, doubling the batch size doubles the learning rate for SGD and SGDM and multiplies it by 2 \sqrt{2} 2 for Adam.
Algorithm 1 Optimization with the Adaptive Batch Size Scheduler
Require: Initialization x 0 x_0 x 0 ; initial batch size b 0 b_0 b 0 ; optimizer OPT with its hyperparameters; base learning rate schedule { η t } t = 0 T − 1 \{\eta_t\}_{t=0}^{T-1} { η t } t = 0 T − 1 ; iteration budget T ≥ 1 T\ge1 T ≥ 1 ; noise parameters B , G > 0 B,G>0 B , G > 0 , a ∈ ( 0 , 2 ] a\in(0,2] a ∈ ( 0 , 2 ]
s 0 ← OPT.Initialize ( ) s_0 \leftarrow\operatorname{OPT.Initialize}() s 0 ← OPT.Initialize ( ) \hfill ▹ \triangleright ▹ Initialize optimizer state
for t = 0 , 1 , … , T − 1 t=0,1,\ldots,T-1 t = 0 , 1 , … , T − 1 do
k t ← AdaptiveBatchSize ( x t , x 0 , B , G , a ) k_t \leftarrow\operatorname{AdaptiveBatchSize}(x_t,x_0,B,G,a) k t ← AdaptiveBatchSize ( x t , x 0 , B , G , a ) \hfill ▹ \triangleright ▹ Using equation 12
b t ← k t b 0 b_t \leftarrow k_t b_0 b t ← k t b 0
η ˉ t ← η t f O P T ( k t ) \bar{\eta}_t \leftarrow\eta_t f_{\mathrm{OPT}}(k_t) η ˉ t ← η t f OPT ( k t ) \hfill ▹ \triangleright ▹ Using equation 13
Draw fresh conditionally independent samples ξ t , 1 , … , ξ t , b t \xi_{t,1},\ldots,\xi_{t,b_t} ξ t , 1 , … , ξ t , b t
g t ← 1 b t ∑ i = 1 b t ∇ f ( x t ; ξ t , i ) g_t \leftarrow\frac{1}{b_t}\sum_{i=1}^{b_t}\nabla f(x_t;\xi_{t,i}) g t ← b t 1 ∑ i = 1 b t ∇ f ( x t ; ξ t , i )
( x t + 1 , s t + 1 ) ← OPT.Step ( x t , s t , g t , η ˉ t ) (x_{t+1},s_{t+1})\leftarrow\operatorname{OPT.Step}(x_t,s_t,g_t,\bar{\eta}_t) ( x t + 1 , s t + 1 ) ← OPT.Step ( x t , s t , g t , η ˉ t )
end for
return x T x_T x T
In Algorithm 1, s t s_t s t corresponds to the optimizer state at iteration t t t , such as momentum for SGDM, or first and second moment estimates for Adam, whereas SGD requires no states. The scheduler changes the batch size and adjusts the learning rate, while the optimizer follows its usual state update.
Our analysis requires b 0 ≥ v 0 = c β G 2 / σ 2 b_0 \ge v_0 = c_\beta G^2/\sigma^2 b 0 ≥ v 0 = c β G 2 / σ 2 . However, in practice, a suitable target noise level σ 2 \sigma^2 σ 2 is not known a priori and can differ across model-dataset pairs. Therefore, in our experiments, we set b 0 b_0 b 0 equal to the batch size of the small batch baseline, so that BG-a and the small batch baseline start from the same batch size and the same base learning rate. We choose this as the smallest batch size that trains stably and attains a competitive final loss after tuning the learning rate through a grid search (see Appendix § 12 ).
The scheduler follows the batch size rule based on our theoretical analysis. Since b t ≥ v t b_t \ge v_t b t ≥ v t at every iteration, the resulting batch sizes satisfy the variance control condition in Theorems 2 and 3, while the power-of-two rounding enables better compatibility with common pretraining frameworks, e.g., OLMo-core (Team OLMo et al., 2024). As discussed in § 3.4 , the scheduler starts training with a small batch, where the noise is small, and increases the batch size as the iterates move away from initialization and the variance grows. The noise parameters (B B B , G G G , a a a ) used by the scheduler are estimated through the measurements in § 2 , connecting our empirical observations and theoretical analysis to a practical scheduler. We discuss further practical considerations in Appendix § 13 . Next, we present experiments showing that, under matched token budgets, our scheduler achieves a lower validation loss in LLM pretraining while using far fewer iterations than small batch training.
Experiments
We evaluate our adaptive batch size scheduler in LLM pretraining, where large batch training is particularly important for exploiting data parallelism, and where each training token is seen at most once (online training). Our experiments on image classification, where models are trained for multiple epochs (offline training), are provided in Appendix § 11 .§ 2 . We pretrain OLMo2-100M, OLMo2-600M, and OLMo2-1B models on C4 using Chinchilla optimal training budgets of approximately 20 tokens per parameter (Hoffmann et al., 2022), corresponding to 2B, 12B, and 20B tokens, respectively. All runs use AdamW with a linear warmup over the first 5% of training followed by a cosine decay. We compare our scheduler, denoted as BG-a, against a small and a large fixed batch baseline under the same token budget. BG-a starts from the small batch size, uses the noise parameters (B B B , G G G , a a a ) estimated in § 2 , and scales the learning rate with the square-root rule in equation (13) . Further training details are provided in Appendix § 12 .
Table 1 and Figure 3 show that BG-a achieves the lowest validation loss across all 3 model sizes. Hence, we observe that the optimization benefit of adaptive batching directly translates into a lower validation loss. We emphasize that BG-a achieves these results while using only 8.76%, 8.10%, and 5.25% of the iterations of small batch training for OLMo2-100M, OLMo2-600M, and OLMo2-1B, respectively. Since the scheduler starts from the small batch size and increases it only as the iterates move away from initialization, it uses more iterations than large batch training, but it remains within the same order of magnitude. The reduction in iterations also translates into a shorter training time, with BG-a reducing the wall-clock time of small batch training by approximately 40% for OLMo2-100M, 28% for OLMo2-600M and 20% for OLMo2-1B (Table 5 ).
Figure 3. Results for OLMo2-100M (top), OLMo2-600M (middle) and OLMo2-1B (bottom) pretrained on C4. (a) Validation loss for a fixed small batch (b = 32 b = 32 b = 32 for 100M and 600M, b = 64 b = 64 b = 64 for 1B), a fixed large batch (b = 512 b = 512 b = 512 for 100M and 600M, b = 2048 b = 2048 b = 2048 for 1B), and BG-a a a , with batch size across iterations shown in the inset. (b) Modeled variance ratio for BG-a a a , with parameters B = 0.379 B = 0.379 B = 0.379 , G = 5.41 G = 5.41 G = 5.41 , a = 0.98 a = 0.98 a = 0.98 (100M), B = 0.132 B = 0.132 B = 0.132 , G = 8.64 G = 8.64 G = 8.64 , a = 1.38 a = 1.38 a = 1.38 (600M) and B = 0.0916 B = 0.0916 B = 0.0916 , G = 9.77 G = 9.77 G = 9.77 , a = 1.49 a = 1.49 a = 1.49 (1B).
Table 5. Language model pretraining configurations on C4 and mean wall-clock times, using four NVIDIA H100 GPUs. For BG-a a a , the batch size and base learning rate refer to the initial batch size and its associated base learning rate. (*) means that the given values are the initial starting values.
The comparison between the two fixed batch baselines further supports our analysis on the BG-a noise model. For OLMo2-100M, whose fitted exponent is α = 0.98 \alpha= 0.98 α = 0.98 , small batch training outperforms large batch training. For OLMo2-600M and OLMo2-1B, where the fitted exponents are larger, small batch training attains the worst validation loss among the three methods. This is consistent with our theory, as a faster growth of the variance with the distance from initialization makes a fixed small batch less effective in controlling the noise later in training. Note that as detailed in Appendix § 12 , we select the base learning rate through a grid search for small batch training, and obtain the learning rates for large batch and adaptive batch training through square-root scaling, without additional tuning. This setup favors small batch training, as it is the only configuration whose learning rate is tuned directly. Similarly, the small batch size itself is selected as the smallest batch size that trains stably and attains a competitive final loss in each setting, as also described in Appendix § 12 . We adopt this protocol to ensure that the improvements of our scheduler do not result from an insufficient learning rate or insufficiently small batch size. We also present downstream accuracy scores on HellaSwag and CommonsenseQA in Table 2 in Appendix § 11 . We provide a detailed discussion in Appendix § 13 .
Table 2. Downstream performance of OLMo2 models pretrained on C4. Entries are accuracy (%), reported as mean±std across 3 seeds.
Conclusion
In this work, we studied why increasing the batch size during training is effective in LLM pretraining, a common practice that lacks a clear theoretical justification. We approached this question from the perspective of stochastic gradient noise whose variance grows as the iterates move away from initialization, a behavior that the classical bounded variance assumption does not capture. Motivated by our empirical observations in language model pretraining, we introduced the BG-a a a noise model, which interpolates between bounded variance and BG-0 noise, and characterized how the growth of the noise governs the oracle complexity of finding a stationary point. We showed that increasing the batch size as the iterates move away from initialization offers a theoretical explanation for batch size schedules. We argued that small batches are sufficient early in training, while larger batches are needed later to control the growing noise. We also theoretically demonstrated that momentum provides a trade-off between the batch size and the number of iterations. Building on this analysis, we proposed an adaptive batch size scheduler that improves upon both small and large batch training in LLM pretraining. We hope that this perspective encourages further work connecting stochastic optimization theory with the design of batch size schedules in large scale training.
Table 1. Validation performance and optimization cost of OLMo2 models pretrained on C4. Validation loss is reported as mean± \pm ± std across 3 seeds, with iteration percentages relative to small batch runs.
Related Work
Large scale training. Larger batches enable greater data parallelism, but their benefits greatly depend on the workload and the optimizer. Extensive experiments conducted by Shallue et al. (2019) show that the reduction in training steps from increasing batch size varies substantially across tasks and depends on hyperparameter tuning and compute budgets. Learning rate scaling is also hugely dependent on the optimizer and training scheme. Goyal et al. (2017); McCandlish et al. (2018) use linear scaling for large batch SGD, whereas Malladi et al. (2022); Merrill et al. (2026) apply square root scaling for AdamW and RMSprop. In large language model pretraining, the critical batch size (CBS) (McCandlish et al. (2018)) marks the scale beyond which additional parallelism comes at the expense of token efficiency. Batch size warmup, where training starts with a small batch that is increased as training progresses, is used in large scale pretraining (Brown et al. [7 ] ) and can improve token efficiency compared to training with a large batch from initialization (Merrill et al. (2026)). Zhang et al. (2025) find that the CBS depends more strongly on training data size than model size. Merrill et al. (2026) identify limitations of the gradient noise scale as a proxy for critical batch size and estimate it directly through branched training runs. These findings directly motivate our displacement dependent adaptive batch scheduler in language model pretraining, as we couple batch size changes with optimizer-dependent learning rate scaling rules and compare training quality under matched sample or token budgets. While these works approach adaptive batching from the perspective of training efficiency and predicting the critical batch size during training, our theoretical analysis of the BG-α \alpha α noise model and the batch size rule derived from it offer a complementary theoretical perspective on why increasing the batch size during training helps.
Effect of batch size. Batch size controls both the accuracy of stochastic gradients and the cost of each update, which has motivated researchers to come up with methods to adjust the batch sizes throughout training. Early approaches increase batch size to maintain a suitable gradient signal-to-noise ratio (Bollapragada et al. [6 ] ). As batch size and learning rate jointly influence optimization, the relation between them has been studied by Balles et al. [4 ] and Smith et al. (2018), where it is shown that increasing the batch size can have similar effects to learning rate decay in common training schedules. Theoretical work also studies the computational and communication benefits of increasing batches in nonconvex SGD (Yu & Jin, 2019), and the effect of batch size adaptation based on past stochastic gradients in variance reduced methods (Ji et al. (2020)). From the empirical side of things, McCandlish et al. (2018) propose the gradient noise scale (GNS) as a useful proxy to the critical batch size during training. Naganuma et al. (2020) extend the GNS framework to cover non Euclidean algorithms such as sign and spectral descent, and their variants.
Online and offline learning. The role of stochastic gradient noise differs between offline training, where the model is trained for multiple epochs over a fixed dataset, and online training, where each sample is seen at most once. In the offline setting, small batch training is known to generalize better than large batch training, which Keskar et al. (2017) attribute to large batches converging to sharper minima. This has led to the view of SGD noise as an implicit regularizer. Vyas et al. (2024) show that this implicit bias advantage disappears in the online setting, where the benefit of small batches becomes purely computational and lower noise runs consistently perform better once the number of gradient steps is controlled. They further hypothesize that online SGD takes noisy steps along the trajectory of noiseless gradient descent. LLM pretraining, which is typically performed for a single epoch over a large corpus, falls into this online regime. This distinction is consistent with the difference we observe between our language model and image classification experiments. Our analysis concerns the optimization of the training objective. In online LLM pretraining, each batch consists of previously unseen tokens, so the training and validation losses estimate the same population loss, and our scheduler attains a lower validation loss than small batch training. In multi-epoch image classification, our scheduler achieves a lower training loss than small batch training, whereas small batch training retains its generalization advantage in test loss.
Stochastic optimization and variance models. The classical analysis of smooth nonconvex optimization often assumes an unbiased stochastic gradient oracle with uniformly bounded variance. Under this setting, SGD achieves O ( ϵ − 4 ) \mathcal{O}(\epsilon^{-4}) O ( ϵ − 4 ) oracle complexity for finding a point satisfying E ∥ ∇ f ( x ) ∥ 2 ≤ ϵ 2 \mathbb{E}\left\|\nabla f(x)\right\|^2 \le\epsilon^2 E ∥ ∇ f ( x ) ∥ 2 ≤ ϵ 2 (Ghadimi & Lan, [10 ] ) matching the lower bound of Arjevani et al. [2 ] . Several analyses have attempted to relax the uniform variance bound, e.g., the expected smoothness framework of Khaled & Richtárik (2023) controls the second moment of the stochastic gradient through objective suboptimality and the gradient norm. The heavy-tail framework (Zhang et al., 2020)) analyzes gradient clipping under bounded moments of order below two, allowing the variance to be infinite. The BG-0 oracle allows variance to grow quadratically with distance from a fixed reference point, building on classical assumptions in stochastic approximation [5 , 11 ] . Alacaoglu et al. [1 ] revisit this condition and develop convergence guarantees for convex optimization without requiring bounded domains. For smooth nonconvex objectives, Fazla et al. [9 ] establish an Ω ( ϵ − 6 ) \Omega(\epsilon^{-6}) Ω ( ϵ − 6 ) lower bound under BG-0 and obtain matching upper bounds through dynamic batching. Upadhyay et al. (2026) analyze BG-0 under both standard and symmetric generalized smoothness, achieving O ( ϵ − 6 ) O(\epsilon^{-6}) O ( ϵ − 6 ) oracle complexity with normalized SGD without increasing batch sizes. Existing analyses of the BG-0 oracle assume quadratic growth of the gradient variance with distance from a reference point, while the empirical validity of this assumption in practical training settings remains unexplored. Our work considers variance growth of order ∥ x − x 0 ∥ a \lVert x-x_0\rVert^a ∥ x − x 0 ∥ a for a ∈ [ 0 , 2 ] a \in[0,2] a ∈ [ 0 , 2 ] and characterizes how the growth exponent determines the optimal dependence of oracle complexity on accuracy. We also assess our proposed BG-a a a noise model empirically in language model pretraining, with additional vision experiments in Appendix § 11 .§ 2 , and use the observed relationship between displacement and gradient variance to explain why increasing the batch size during training helps and to guide adaptive batch size selection.
Lower bound under L L L -Smoothness
We build on the lower bound in Theorem 1 of Fazla et al. [9 ] with the oracle model
E ξ [ ∇ f ( x ; ξ ) ] = ∇ f ( x ) , E ξ ∥ ∇ f ( x ; ξ ) − ∇ f ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ a + G 2 , (14) \mathbb{E}_{\xi}[\nabla f(x;\xi)] = \nabla f(x), \qquad\mathbb{E}_{\xi}\lVert\nabla f(x;\xi)-\nabla f(x)\rVert^2 \le B^2\lVert x-x_0\rVert^a+G^2, \tag*{(14)} E ξ [ ∇ f ( x ; ξ )] = ∇ f ( x ) , E ξ ∥ ∇ f ( x ; ξ ) − ∇ f ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ a + G 2 , (14)
where we use the convention r 0 = 1 r^0=1 r 0 = 1 for all r ≥ 0 r \ge0 r ≥ 0 , including r = 0 r=0 r = 0 . Here a = 2 a=2 a = 2 gives BG-0, while a = 0 a=0 a = 0 gives bounded variance. We consider lower bounded, globally L L L -smooth objectives with f ( x 0 ) − f inf ≤ Δ f(x_0)-f^{\inf}\le\Delta f ( x 0 ) − f i n f ≤ Δ , where f inf : = inf x f ( x ) f^{\inf}:=\inf_x f(x) f i n f := inf x f ( x ) . We use ∇ f ( x ; ξ ) \nabla f(x;\xi) ∇ f ( x ; ξ ) for the stochastic oracle calls. For the proof of the lower bound, this notation denotes a general unbiased vector estimator and does not require a sample loss whose gradient equals the estimator. We write g ( x ; ξ ) : = ∇ f ( x ; ξ ) g(x;\xi):=\nabla f(x;\xi) g ( x ; ξ ) := ∇ f ( x ; ξ ) when referring to an objective–oracle pair ( f , g ) (f,g) ( f , g ) . Each call uses a fresh independent seed and counts as one SFO call.
Definitions and auxiliary results
Before getting into the proof details, we restate the definitions and chain properties used in the proof. The deterministic chain and masked oracle are those of Arjevani et al. [2 ] , and the range bound below is adopted from Fazla et al. [9 ] , which is used to shift the chain to a nonpositive function.
Definition 1 (Progress function). For w ∈ R T w \in\mathbb{R}^T w ∈ R T and γ ≥ 0 \gamma\ge0 γ ≥ 0 , define
prog γ ( w ) : = max ( { i ∈ { 1 , … , T } : ∣ w i ∣ > γ } ∪ { 0 } ) . \operatorname{prog}_{\gamma}(w):=\max(\{i\in\{1,\ldots,T\}:|w_i|>\gamma\}\cup\{0\}). prog γ ( w ) := max ({ i ∈ { 1 , … , T } : ∣ w i ∣ > γ } ∪ { 0 }) . This is the largest coordinate index whose absolute value exceeds the threshold, and is defined to be zero if no such coordinate exists. E.g., prog 1 ( w ) = T \operatorname{prog}_1(w)=T prog 1 ( w ) = T means that ∣ w T ∣ > 1 |w_T|>1 ∣ w T ∣ > 1 , without imposing any condition on the preceding coordinates.
Definition 2 (Zero-respecting algorithm). Let supp ( v ) : = { i : v i ≠ 0 } \operatorname{supp}(v):=\{i:v_i\ne0\} supp ( v ) := { i : v i = 0 } . Suppose we initialize with x 0 = 0 x_0=0 x 0 = 0 and g t g_t g t is the stochastic gradient returned at query x t x_t x t . An algorithm is zero-respecting if, almost surely, each query made before termination satisfies
supp ( x t ) ⊆ ⋃ j = 0 t − 1 supp ( g j ) . \operatorname{supp}(x_t)\subseteq\bigcup_{j=0}^{t-1}\operatorname{supp}(g_j). supp ( x t ) ⊆ j = 0 ⋃ t − 1 supp ( g j ) . For the lower bound in Stage I below, we also require its output after τ \tau τ oracle calls to satisfy
supp ( x ^ ) ⊆ ⋃ j = 0 τ − 1 supp ( g j ) . \operatorname{supp}(\widehat{x})\subseteq\bigcup_{j=0}^{\tau-1}\operatorname{supp}(g_j). supp ( x ) ⊆ j = 0 ⋃ τ − 1 supp ( g j ) . These restrictions allow a coordinate to become nonzero only after it has appeared in an oracle response.
Definition 3 (Deterministic chain). For T ≥ 1 T \ge1 T ≥ 1 and w ∈ R T w \in\mathbb{R}^{T} w ∈ R T , define
f ˉ T ( w ) : = − Ψ ( 1 ) Φ ( w 1 ) + ∑ i = 2 T [ Ψ ( − w i − 1 ) Φ ( − w i ) − Ψ ( w i − 1 ) Φ ( w i ) ] . (15) \bar{f}_{T}(w) := -\Psi(1)\Phi(w_{1}) + \sum_{i=2}^{T}\left[\Psi(-w_{i-1})\Phi(-w_{i}) - \Psi(w_{i-1})\Phi(w_{i})\right]. \tag*{(15)} f ˉ T ( w ) := − Ψ ( 1 ) Φ ( w 1 ) + i = 2 ∑ T [ Ψ ( − w i − 1 ) Φ ( − w i ) − Ψ ( w i − 1 ) Φ ( w i ) ] . (15) where
Ψ ( r ) : = { 0 , r ≤ 1 / 2 , exp ( 1 − 1 ( 2 r − 1 ) 2 ) , r > 1 / 2 , Φ ( r ) : = e ∫ − ∞ r e − z 2 / 2 d z . \Psi(r) :=
\begin{cases}
0, & r \le1/2,\\
\exp\left(1-\frac{1}{(2r-1)^{2}}\right), & r > 1/2,
\end{cases}
\qquad
\Phi(r) := \sqrt{e}\int_{-\infty}^{r}e^{-z^{2}/2}\,\mathrm{d}z. Ψ ( r ) := { 0 , exp ( 1 − ( 2 r − 1 ) 2 1 ) , r ≤ 1/2 , r > 1/2 , Φ ( r ) := e ∫ − ∞ r e − z 2 /2 d z . These scalar functions define the base chain used in the construction of the lower bound.
Lemma 1 (Deterministic chain properties (Lemma 2 of Arjevani et al. [2 ] restated)). Setting ℓ 1 = 152 \ell_{1}=152 ℓ 1 = 152 and ς = 23 \varsigma=23 ς = 23 , the function in Definition 3 satisfies the following properties with:
f ˉ T ( 0 ) − inf w f ˉ T ( w ) ≤ 12 T \bar{f}_{T}(0)-\inf_{w}\bar{f}_{T}(w)\le12T f ˉ T ( 0 ) − inf w f ˉ T ( w ) ≤ 12 T .
Its gradient is globally ℓ 1 \ell_{1} ℓ 1 -Lipschitz and, for every w ∈ R T w\in\mathbb{R}^{T} w ∈ R T ,
Lip ( ∇ f ˉ T ) ≤ ℓ 1 , ∥ ∇ f ˉ T ( w ) ∥ ∞ ≤ ς . (16) \operatorname{Lip}(\nabla\bar{f}_{T})\le\ell_{1}, \qquad\lVert\nabla\bar{f}_{T}(w)\rVert_{\infty}\le\varsigma. \tag*{(16)} Lip ( ∇ f ˉ T ) ≤ ℓ 1 , ∥ ∇ f ˉ T ( w ) ∥ ∞ ≤ ς . (16) The gradient can extend the chain by at most one coordinate:
prog 0 ( ∇ f ˉ T ( w ) ) ≤ prog 1 / 2 ( w ) + 1. \operatorname{prog}_{0}(\nabla\bar{f}_{T}(w))\le\operatorname{prog}_{1/2}(w)+1. prog 0 ( ∇ f ˉ T ( w )) ≤ prog 1/2 ( w ) + 1. If prog 1 ( w ) < T \operatorname{prog}_{1}(w)<T prog 1 ( w ) < T , then
∣ ∂ prog 1 ( w ) + 1 f ˉ T ( w ) ∣ > 1 , ∥ ∇ f ˉ T ( w ) ∥ ∞ > 1. \left|\partial_{\operatorname{prog}_{1}(w)+1}\bar{f}_{T}(w)\right|>1, \qquad\lVert\nabla\bar{f}_{T}(w)\rVert_{\infty}>1. ∂ prog 1 ( w ) + 1 f ˉ T ( w ) > 1 , ∥ ∇ f ˉ T ( w ) ∥ ∞ > 1.
Lemma 2 (Range bound from Fazla et al. [9 ] ). Let M T : = sup w f ˉ T ( w ) M_{T}:=\sup_{w}\bar{f}_{T}(w) M T := sup w f ˉ T ( w ) . Then M T M_{T} M T is finite and for every w ∈ R T w\in\mathbb{R}^{T} w ∈ R T ,
− 24 T ≤ f ˉ T ( w ) − M T ≤ 0. (17) -24T\le\bar{f}_{T}(w)-M_{T}\le0. \tag*{(17)} − 24 T ≤ f ˉ T ( w ) − M T ≤ 0. (17) Proof. The definitions above give 0 ≤ Ψ ≤ e 0\le\Psi\le e 0 ≤ Ψ ≤ e , Ψ ( 1 ) = 1 \Psi(1)=1 Ψ ( 1 ) = 1 , and 0 ≤ Φ ≤ 2 π e 0\le\Phi\le\sqrt{2\pi e} 0 ≤ Φ ≤ 2 π e . For every real r r r , at most one of Ψ ( r ) \Psi(r) Ψ ( r ) and Ψ ( − r ) \Psi(-r) Ψ ( − r ) is nonzero. Thus each summand with i ≥ 2 i\ge2 i ≥ 2 in equation (15) has absolute value at most e 2 π e e\sqrt{2\pi e} e 2 π e , and the first term has absolute value at most 2 π e \sqrt{2\pi e} 2 π e . Hence
∣ f ˉ T ( w ) ∣ ≤ 2 π e + ( T − 1 ) e 2 π e ≤ T e 2 π e < 12 T . |\bar{f}_{T}(w)|\le\sqrt{2\pi e}+(T-1)e\sqrt{2\pi e}\le Te\sqrt{2\pi e}<12T. ∣ f ˉ T ( w ) ∣ ≤ 2 π e + ( T − 1 ) e 2 π e ≤ T e 2 π e < 12 T . It follows that M T ≤ 12 T M_{T}\le12T M T ≤ 12 T and inf w f ˉ T ( w ) ≥ − 12 T \inf_{w}\bar{f}_{T}(w)\ge-12T inf w f ˉ T ( w ) ≥ − 12 T , proving equation (17) .
Definition 4 (Bernoulli masked chain oracle). Fix p ∈ ( 0 , 1 ] p\in(0,1] p ∈ ( 0 , 1 ] and draw ξ ∼ Bernoulli ( p ) \xi\sim\operatorname{Bernoulli}(p) ξ ∼ Bernoulli ( p ) . For w ∈ R T w\in\mathbb{R}^{T} w ∈ R T , we define g ˉ T ( w ; ξ ) ∈ R T \bar{g}_{T}(w;\xi)\in\mathbb{R}^{T} g ˉ T ( w ; ξ ) ∈ R T (coordinate wise) by
[ g ˉ T ( w ; ξ ) ] i : = ∂ i f ˉ T ( w ) [ 1 + 1 { i > prog 1 / 4 ( w ) } ( ξ / p − 1 ) ] , i = 1 , … , T . (18) [\bar{g}_{T}(w;\xi)]_{i}:=\partial_{i}\bar{f}_{T}(w)\left[1+\mathbb{1}_{\{i>\operatorname{prog}_{1/4}(w)\}}(\xi/p-1)\right], \qquad i=1,\ldots,T. \tag*{(18)} [ g ˉ T ( w ; ξ ) ] i := ∂ i f ˉ T ( w ) [ 1 + 1 { i > prog 1/4 ( w )} ( ξ / p − 1 ) ] , i = 1 , … , T . (18) Each oracle call uses a fresh independent seed. Coordinates beyond the progress index are suppressed when ξ = 0 \xi=0 ξ = 0 and multiplied by $1/pw h e n when w h e n \xi=1.
Lemma 3 (Masked oracle properties from Lemma 3 of Arjevani et al. [2 ] ). For every w ∈ R T w\in\mathbb{R}^{T} w ∈ R T , the oracle in Definition 4 satisfies
E ξ [ g ˉ T ( w ; ξ ) ] = ∇ f ˉ T ( w ) , E ξ [ ∥ g ˉ T ( w ; ξ ) − ∇ f ˉ T ( w ) ∥ 2 ] ≤ ς 2 1 − p p . (19) \mathbb{E}_{\xi}[\bar{g}_{T}(w;\xi)]=\nabla\bar{f}_{T}(w), \qquad\mathbb{E}_{\xi}\left[\left\|\bar{g}_{T}(w;\xi)-\nabla\bar{f}_{T}(w)\right\|^{2}\right]\le\varsigma^{2}\frac{1-p}{p}. \tag*{(19)} E ξ [ g ˉ T ( w ; ξ )] = ∇ f ˉ T ( w ) , E ξ [ g ˉ T ( w ; ξ ) − ∇ f ˉ T ( w ) 2 ] ≤ ς 2 p 1 − p . (19) Writing k = prog 1 / 4 ( w ) k=\operatorname{prog}_{1/4}(w) k = prog 1/4 ( w ) , for both possible seeds its support satisfies
supp ( g ˉ T ( w ; ξ ) ) ⊆ { 1 , … , min ( T , k + 1 ) } , supp ( g ˉ T ( w ; 0 ) ) ⊆ { 1 , … , k } . \operatorname{supp}(\bar{g}_{T}(w;\xi))\subseteq\{1,\ldots,\min(T,k+1)\}, \qquad\operatorname{supp}(\bar{g}_{T}(w;0))\subseteq\{1,\ldots,k\}. supp ( g ˉ T ( w ; ξ )) ⊆ { 1 , … , min ( T , k + 1 )} , supp ( g ˉ T ( w ; 0 )) ⊆ { 1 , … , k } . Thus, a response can extend progress by at most one coordinate, and such an extension requires ξ = 1 \xi=1 ξ = 1 . For each fixed seed, these support statements hold simultaneously for every w w w , yielding the probability-p p p zero-chain property used in Arjevani et al. [2 ] .
Proof. Since E ξ [ ξ / p ] = 1 \mathbb{E}_{\xi}[\xi/p] = 1 E ξ [ ξ / p ] = 1 , we achieve unbiasedness by taking expectation in equation (18) . Furthermore, prog 1 / 2 ( w ) ≤ k \operatorname{prog}_{1/2}(w) \le k prog 1/2 ( w ) ≤ k , hence, Lemma 1 implies ∂ i f ˉ T ( w ) = 0 \partial_i \bar{f}_T(w) = 0 ∂ i f ˉ T ( w ) = 0 for i > k + 1 i > k + 1 i > k + 1 . When ξ = 0 \xi= 0 ξ = 0 , the mask also removes coordinate k + 1 k + 1 k + 1 , which proves the support statements.
If k < T k < T k < T , the only possibly nonzero component of the oracle error is
[ g ˉ T ( w ; ξ ) − ∇ f ˉ T ( w ) ] k + 1 = ∂ k + 1 f ˉ T ( w ) ( ξ / p − 1 ) . [\bar{g}_T(w;\xi)-\nabla\bar{f}_T(w)]_{k+1}=\partial_{k+1}\bar{f}_T(w)(\xi/p-1). [ g ˉ T ( w ; ξ ) − ∇ f ˉ T ( w ) ] k + 1 = ∂ k + 1 f ˉ T ( w ) ( ξ / p − 1 ) .
Using E ξ [ ( ξ / p − 1 ) 2 ] = ( 1 − p ) / p \mathbb{E}_{\xi}[(\xi/p-1)^2]=(1-p)/p E ξ [( ξ / p − 1 ) 2 ] = ( 1 − p ) / p and applying the gradient bound in Lemma 1 gives
E ξ ∥ g ˉ T ( w ; ξ ) − ∇ f ˉ T ( w ) ∥ 2 = ∣ ∂ k + 1 f ˉ T ( w ) ∣ 2 1 − p p ≤ ς 2 1 − p p . \mathbb{E}_{\xi}\left\|\bar{g}_T(w;\xi)-\nabla\bar{f}_T(w)\right\|^2
=|\partial_{k+1}\bar{f}_T(w)|^2\frac{1-p}{p}
\le\varsigma^2\frac{1-p}{p}. E ξ g ˉ T ( w ; ξ ) − ∇ f ˉ T ( w ) 2 = ∣ ∂ k + 1 f ˉ T ( w ) ∣ 2 p 1 − p ≤ ς 2 p 1 − p .
If k = T k=T k = T , the error is zero as the mask does not change any coordinates. Hence, the same bound holds.
Lower-bound theorem and proof
We prove the lower bound under the weaker requirement E ∥ ∇ f ( x ^ ) ∥ ≤ ϵ \mathbb{E}\left\|\nabla f(\hat{x})\right\| \le\epsilon E ∥ ∇ f ( x ^ ) ∥ ≤ ϵ . Since E ∥ ∇ f ( x ^ ) ∥ 2 ≤ ϵ 2 \mathbb{E}\left\|\nabla f(\hat{x})\right\|^2 \le\epsilon^2 E ∥ ∇ f ( x ^ ) ∥ 2 ≤ ϵ 2 implies this requirement by Cauchy–Schwarz, the lower bound also applies to the squared gradient criterion in Theorem 1.
Theorem 1 (Lower bound under smoothness). Under fixed L L L , Δ > 0 \Delta> 0 Δ > 0 , B , G ≥ 0 B,G \ge0 B , G ≥ 0 , and a finite a ≥ 0 a \ge0 a ≥ 0 , let ℓ = 155 \ell= 155 ℓ = 155 and ς = 23 \varsigma= 23 ς = 23 , and suppose
0 < ϵ 2 ≤ L Δ 98304 ℓ . (20) 0 < \epsilon^2 \le\frac{L\Delta}{98304\ell}. \tag*{(20)} 0 < ϵ 2 ≤ 98304 ℓ L Δ . (20) Any algorithm that returns x ^ \hat{x} x ^ after a random number τ \tau τ of SFO calls and satisfies
E ∥ ∇ f ( x ^ ) ∥ ≤ ϵ (21) \mathbb{E}\left\|\nabla f(\hat{x})\right\| \le\epsilon \tag*{(21)} E ∥ ∇ f ( x ^ ) ∥ ≤ ϵ (21) for every admissible instance must satisfy
sup ( f , g ) E [ τ ] ≥ L Δ 786432 ℓ ϵ 2 [ 1 + G 2 + B 2 ( Δ / ( 16 ϵ ) ) a 64 ς 2 ϵ 2 ] . (22) \sup_{(f,g)}\mathbb{E}[\tau]\ge\frac{L\Delta}{786432\ell\epsilon^2}\left[1+\frac{G^2+B^2(\Delta/(16\epsilon))^a}{64\varsigma^2\epsilon^2}\right]. \tag*{(22)} ( f , g ) sup E [ τ ] ≥ 786432 ℓ ϵ 2 L Δ [ 1 + 64 ς 2 ϵ 2 G 2 + B 2 ( Δ/ ( 16 ϵ ) ) a ] . (22) Consequently, the worst-case expected SFO complexity is
Ω a ( L Δ ϵ 2 + G 2 L Δ ϵ 4 + B 2 L Δ a + 1 ϵ 4 + a ) . (23) \Omega_a\left(\frac{L\Delta}{\epsilon^2}+\frac{G^2L\Delta}{\epsilon^4}+\frac{B^2L\Delta^{a+1}}{\epsilon^{4+a}}\right). \tag*{(23)} Ω a ( ϵ 2 L Δ + ϵ 4 G 2 L Δ + ϵ 4 + a B 2 L Δ a + 1 ) . (23)
Proof. Proof roadmap and relation to prior works. We first explain the roadmap that we follow for the proof and explain its relation to Arjevani et al. [2 ] and PASTA (Fazla et al. [9 ] ). We follow PASTA’s travel coordinate and activation construction. This choice is intuitive, as PASTA’s variance assumption (BG-0) is a special case of the BG-a a a noise model with a = 2 a=2 a = 2 , and its extension to general a a a is our goal. The travel coordinate forces points with sufficiently small gradient to lie at distance of order Δ / ϵ \Delta/\epsilon Δ/ ϵ from initialization, whereas the activation function keeps the noisy chain inactive near initialization and allows it to become active only where the distance-dependent variance budget is sufficiently large. Note that, this is a geometric requirement, as an unrestricted algorithm may jump to a distant point in one query. The established oracle complexity comes from learning the chain coordinates, rather than from the number of steps needed to travel that distance. Note that, the proof strategies in Fazla et al. [9 ] are mostly built on top of Arjevani et al. [2 ] .
In our extension to BG-a a a , we replace PASTA’s quadratic activation variance budget by B 2 ( D / 2 ) a + G 2 B^2(D/2)^a+G^2 B 2 ( D /2 ) a + G 2 and recalibrate the Bernoulli reveal probability p p p . The chain length remains of order L Δ / ϵ 2 L\Delta/\epsilon^2 L Δ/ ϵ 2 , while each coordinate revelation requires order 1 / p 1/p 1/ p calls, with
1 p = 1 + Θ a ( G 2 + B 2 ( Δ / ϵ ) a ϵ 2 ) . \frac{1}{p}=1+\Theta_a\left(\frac{G^2+B^2(\Delta/\epsilon)^a}{\epsilon^2}\right). p 1 = 1 + Θ a ( ϵ 2 G 2 + B 2 ( Δ/ ϵ ) a ) .
Multiplying these two scales gives the claimed rate. We first establish this mechanism for zero-respecting algorithms, then give the compressed random-rotation construction and the random-stopping argument needed for unrestricted randomized algorithms.
Stage 1: Construction and lower bound for zero-respecting algorithms. Let D = Δ / ( 4 ϵ ) D = \Delta/(4\epsilon) D = Δ/ ( 4 ϵ ) and define f 0 ( 0 ) = 0 f_0(0) = 0 f 0 ( 0 ) = 0 with
f 0 ′ ( u ) = { − 2 ϵ , u ≤ D , − 2 ϵ + L 2 ( u − D ) , D < u < D + 4 ϵ / L , 0 , u ≥ D + 4 ϵ / L . (24) f_0'(u) =
\begin{cases}
-2\epsilon, & u \le D,\\
-2\epsilon+ \frac{L}{2}(u-D), & D < u < D + 4\epsilon/L,\\
0, & u \ge D + 4\epsilon/L.
\end{cases} \tag*{(24)} f 0 ′ ( u ) = ⎩ ⎨ ⎧ − 2 ϵ , − 2 ϵ + 2 L ( u − D ) , 0 , u ≤ D , D < u < D + 4 ϵ / L , u ≥ D + 4 ϵ / L . (24)
Writing f 0 i n f : = inf u f 0 ( u ) f_0^{\mathrm{inf}} := \inf_u f_0(u) f 0 inf := inf u f 0 ( u ) , integration gives f 0 i n f = − Δ / 2 − 4 ϵ 2 / L f_0^{\mathrm{inf}} = -\Delta/2 - 4\epsilon^2/L f 0 inf = − Δ/2 − 4 ϵ 2 / L . Next, we define the twice continuously differentiable activation
ϕ ( u ) = { 0 , u ≤ D / 2 , 10 t 3 − 15 t 4 + 6 t 5 , D / 2 < u < D , t = 2 u / D − 1 , 1 , u ≥ D . (25) \phi(u) =
\begin{cases}
0, & u \le D/2,\\
10t^3 - 15t^4 + 6t^5, & D/2 < u < D,\quad t = 2u/D - 1,\\
1, & u \ge D.
\end{cases} \tag*{(25)} ϕ ( u ) = ⎩ ⎨ ⎧ 0 , 10 t 3 − 15 t 4 + 6 t 5 , 1 , u ≤ D /2 , D /2 < u < D , t = 2 u / D − 1 , u ≥ D . (25)
which satisfies 0 ≤ ϕ ≤ 1 0 \le\phi\le1 0 ≤ ϕ ≤ 1 , ϕ ′ ≥ 0 \phi' \ge0 ϕ ′ ≥ 0 , and
∥ ϕ ′ ∥ ∞ = 15 ϵ Δ , ∥ ϕ ′ ′ ∥ ∞ = 640 ϵ 2 3 Δ 2 . \lVert\phi'\rVert_\infty= \frac{15\epsilon}{\Delta}, \qquad\lVert\phi''\rVert_\infty= \frac{640\epsilon^2}{\sqrt{3}\Delta^2}. ∥ ϕ ′ ∥ ∞ = Δ 15 ϵ , ∥ ϕ ′′ ∥ ∞ = 3 Δ 2 640 ϵ 2 .
Use the chain f ˉ T \bar{f}_T f ˉ T and oracle g ˉ T \bar{g}_T g ˉ T from Definitions 3 and 4, with M T = sup w f ˉ T ( w ) M_T = \sup_w \bar{f}_T(w) M T = sup w f ˉ T ( w ) . Lemmas 1–3 provide the smoothness, range, gradient, and variance bounds used below.
Using the same scaling as in Fazla et al. [9 ] , we set
f s c a l e d ( y ) = L λ 2 2 ℓ 1 [ f ˉ T ( y / λ ) − M T ] , λ = 4 ℓ 1 ϵ L , T = ⌈ L Δ 768 ℓ 1 ϵ 2 ⌉ . (26) f_{\mathrm{scaled}}(y) = \frac{L\lambda^2}{2\ell_1}\left[\bar{f}_T(y/\lambda) - M_T\right], \qquad\lambda= \frac{4\ell_1\epsilon}{L}, \qquad T = \left\lceil\frac{L\Delta}{768\ell_1\epsilon^2}\right\rceil. \tag*{(26)} f scaled ( y ) = 2 ℓ 1 L λ 2 [ f ˉ T ( y / λ ) − M T ] , λ = L 4 ℓ 1 ϵ , T = ⌈ 768 ℓ 1 ϵ 2 L Δ ⌉ . (26)
Then − Δ / 4 ≤ f s c a l e d ≤ 0 -\Delta/4 \le f_{\mathrm{scaled}} \le0 − Δ/4 ≤ f scaled ≤ 0 , Lip ( ∇ f s c a l e d ) ≤ L / 2 \operatorname{Lip}(\nabla f_{\mathrm{scaled}}) \le L/2 Lip ( ∇ f scaled ) ≤ L /2 , and ∇ f s c a l e d ( y ) = 2 ϵ ∇ f ˉ T ( y / λ ) \nabla f_{\mathrm{scaled}}(y) = 2\epsilon\nabla\bar{f}_T(y/\lambda) ∇ f scaled ( y ) = 2 ϵ ∇ f ˉ T ( y / λ ) . Hence, subtracting M T M_T M T makes the scaled chain nonpositive. Consequently, since ϕ ′ ≥ 0 \phi' \ge0 ϕ ′ ≥ 0 , the activation contribution ϕ ′ ( u ) f s c a l e d ( y ) \phi'(u)f_{\mathrm{scaled}}(y) ϕ ′ ( u ) f scaled ( y ) cannot cancel the negative travel-coordinate gradient. Defining
f ( u , y ) = f 0 ( u ) + ϕ ( u ) f s c a l e d ( y ) , x 0 = ( 0 , 0 ) , (27) f(u,y) = f_0(u) + \phi(u)f_{\mathrm{scaled}}(y), \qquad x_0 = (0,0), \tag*{(27)} f ( u , y ) = f 0 ( u ) + ϕ ( u ) f scaled ( y ) , x 0 = ( 0 , 0 ) , (27)
and writing x = ( u , y ) x = (u,y) x = ( u , y ) and f i n f : = inf x f ( x ) f^{\mathrm{inf}} := \inf_x f(x) f inf := inf x f ( x ) , we get f ( x 0 ) = 0 f(x_0) = 0 f ( x 0 ) = 0 and
f ( x 0 ) − f i n f ≤ 3 Δ 4 + 4 ϵ 2 L ≤ Δ . f(x_0) - f^{\mathrm{inf}} \le\frac{3\Delta}{4} + \frac{4\epsilon^2}{L} \le\Delta. f ( x 0 ) − f inf ≤ 4 3Δ + L 4 ϵ 2 ≤ Δ.
The block-diagonal part of ∇ 2 f \nabla^2 f ∇ 2 f has operator norm at most L / 2 + ∥ ϕ ′ ′ ∥ ∞ ∥ f s c a l e d ∥ ∞ L/2 + \lVert\phi''\rVert_\infty\lVert f_{\mathrm{scaled}}\rVert_\infty L /2 + ∥ ϕ ′′ ∥ ∞ ∥ f scaled ∥ ∞ . The off-diagonal part has operator norm ∥ ϕ ′ ∇ f s c a l e d ∥ \lVert\phi'\nabla f_{\mathrm{scaled}}\rVert ∥ ϕ ′ ∇ f scaled ∥ , and ∥ ∇ f s c a l e d ∥ ≤ 46 ϵ T \lVert\nabla f_{\mathrm{scaled}}\rVert\le46\epsilon\sqrt{T} ∥ ∇ f scaled ∥ ≤ 46 ϵ T . Consequently,
∥ ∇ 2 f ∥ o p ≤ L 2 + 160 ϵ 2 3 Δ + 690 ϵ L 768 ℓ 1 Δ ≤ L . (28) \lVert\nabla^2 f\rVert_{\mathrm{op}} \le\frac{L}{2} + \frac{160\epsilon^2}{\sqrt{3}\Delta} + \frac{690\epsilon\sqrt{L}}{\sqrt{768\ell_1\Delta}} \le L. \tag*{(28)} ∥ ∇ 2 f ∥ op ≤ 2 L + 3 Δ 160 ϵ 2 + 768 ℓ 1 Δ 690 ϵ L ≤ L . (28)
Indeed, ϵ 2 ≤ L Δ / ( 1536 ℓ 1 ) \epsilon^2 \le L\Delta/(1536\ell_1) ϵ 2 ≤ L Δ/ ( 1536 ℓ 1 ) , which follows from equation (20) , bounds each of the last two terms by L / 4 L/4 L /4 . The gradient is continuous at the junctions of f 0 ′ f_0' f 0 ′ , so integration along line segments extends the bound to global L L L -smoothness.
Next, observe that the composite gradient is
∇ f ( u , y ) = ( f 0 ′ ( u ) + ϕ ′ ( u ) f s c a l e d ( y ) ϕ ( u ) ∇ f s c a l e d ( y ) ) . \nabla f(u,y) =
\begin{pmatrix}
f_0'(u) + \phi'(u)f_{\mathrm{scaled}}(y)\\
\phi(u)\nabla f_{\mathrm{scaled}}(y)
\end{pmatrix}. ∇ f ( u , y ) = ( f 0 ′ ( u ) + ϕ ′ ( u ) f scaled ( y ) ϕ ( u ) ∇ f scaled ( y ) ) .
We consider two cases to identify necessary conditions for ∥ ∇ f ( u , y ) ∥ < 2 ϵ \lVert\nabla f(u,y)\rVert< 2\epsilon ∥ ∇ f ( u , y )∥ < 2 ϵ .
First, if u ≤ D u \le D u ≤ D , then f 0 ′ ( u ) = − 2 ϵ f_0'(u) = -2\epsilon f 0 ′ ( u ) = − 2 ϵ . Since ϕ ′ ( u ) ≥ 0 \phi'(u) \ge0 ϕ ′ ( u ) ≥ 0 and f s c a l e d ( y ) ≤ 0 f_{\mathrm{scaled}}(y) \le0 f scaled ( y ) ≤ 0 , we have
∂ u f ( u , y ) = − 2 ϵ + ϕ ′ ( u ) f s c a l e d ( y ) ≤ − 2 ϵ . \partial_u f(u,y) = -2\epsilon+ \phi'(u)f_{\mathrm{scaled}}(y) \le-2\epsilon. ∂ u f ( u , y ) = − 2 ϵ + ϕ ′ ( u ) f scaled ( y ) ≤ − 2 ϵ .
Therefore, ∥ ∇ f ( u , y ) ∥ ≥ ∣ ∂ u f ( u , y ) ∣ ≥ 2 ϵ \lVert\nabla f(u,y)\rVert\ge\lvert\partial_u f(u,y)\rvert\ge2\epsilon ∥ ∇ f ( u , y )∥ ≥ ∣ ∂ u f ( u , y )∣ ≥ 2 ϵ . Thus, a gradient norm strictly below 2 ϵ 2\epsilon 2 ϵ requires u > D u > D u > D .
Second, suppose u > D u > D u > D but prog 1 ( y / λ ) < T \operatorname{prog}_1(y/\lambda) < T prog 1 ( y / λ ) < T . Then ϕ ( u ) = 1 \phi(u) = 1 ϕ ( u ) = 1 , and the scaling in equation (26) together with the gradient lower bound in Lemma 1 gives
∥ ∇ f ( u , y ) ∥ ≥ ∥ ∇ y f ( u , y ) ∥ = ∥ ∇ f s c a l e d ( y ) ∥ = 2 ϵ ∥ ∇ f ˉ T ( y / λ ) ∥ ≥ 2 ϵ ∥ ∇ f ˉ T ( y / λ ) ∥ ∞ > 2 ϵ . \lVert\nabla f(u,y)\rVert\ge\lVert\nabla_y f(u,y)\rVert
= \lVert\nabla f_{\mathrm{scaled}}(y)\rVert
= 2\epsilon\lVert\nabla\bar{f}_T(y/\lambda)\rVert
\ge2\epsilon\lVert\nabla\bar{f}_T(y/\lambda)\rVert_\infty
> 2\epsilon. ∥ ∇ f ( u , y )∥ ≥ ∥ ∇ y f ( u , y )∥ = ∥ ∇ f scaled ( y )∥ = 2 ϵ ∥ ∇ f ˉ T ( y / λ )∥ ≥ 2 ϵ ∥ ∇ f ˉ T ( y / λ ) ∥ ∞ > 2 ϵ .
This also rules out a gradient norm strictly below 2 ϵ 2\epsilon 2 ϵ . Since prog 1 ( y / λ ) ∈ { 0 , … , T } \operatorname{prog}_1(y/\lambda) \in\{0,\ldots,T\} prog 1 ( y / λ ) ∈ { 0 , … , T } , the two cases imply
∥ ∇ f ( u , y ) ∥ < 2 ϵ ⟹ u > D and prog 1 ( y / λ ) = T . (29) \lVert\nabla f(u,y)\rVert< 2\epsilon\quad\Longrightarrow\quad u>D\ \text{and}\ \operatorname{prog}_1(y/\lambda)=T. \tag*{(29)} ∥ ∇ f ( u , y )∥ < 2 ϵ ⟹ u > D and prog 1 ( y / λ ) = T . (29)
We now choose a constant variance budget that is admissible wherever the chain is active. Recall that x = ( u , y ) x=(u,y) x = ( u , y ) , x 0 = ( 0 , 0 ) x_0=(0,0) x 0 = ( 0 , 0 ) , and ϕ ( u ) = 0 \phi(u)=0 ϕ ( u ) = 0 for u ≤ D / 2 u\le D/2 u ≤ D /2 . Thus, whenever ϕ ( u ) > 0 \phi(u)>0 ϕ ( u ) > 0 ,
u > D / 2 > 0 , ∥ x − x 0 ∥ = u 2 + ∥ y ∥ 2 ≥ u > D / 2. u>D/2>0,\qquad\lVert x-x_0\rVert=\sqrt{u^2+\lVert y\rVert^2}\ge u>D/2. u > D /2 > 0 , ∥ x − x 0 ∥ = u 2 + ∥ y ∥ 2 ≥ u > D /2.
Since r ↦ r a r\mapsto r^a r ↦ r a is nondecreasing for a ≥ 0 a\ge0 a ≥ 0 , the BG-a a a variance bound throughout this active region satisfies
B 2 ∥ x − x 0 ∥ a + G 2 ≥ B 2 ( D / 2 ) a + G 2 . B^2\lVert x-x_0\rVert^a+G^2\ge B^2(D/2)^a+G^2. B 2 ∥ x − x 0 ∥ a + G 2 ≥ B 2 ( D /2 ) a + G 2 .
We therefore define the constant budget
σ ~ a 2 : = B 2 ( D / 2 ) a + G 2 = B 2 ( Δ 8 ϵ ) a + G 2 , (30) \widetilde{\sigma}_a^2:=B^2(D/2)^a+G^2=B^2\left(\frac{\Delta}{8\epsilon}\right)^a+G^2, \tag*{(30)} σ a 2 := B 2 ( D /2 ) a + G 2 = B 2 ( 8 ϵ Δ ) a + G 2 , (30)
where we use D = Δ / ( 4 ϵ ) D=\Delta/(4\epsilon) D = Δ/ ( 4 ϵ ) in the last equality. Note that, this budget is a permissible upper bound for the noise we introduce on the active region, it is not a lower bound on the oracle’s actual variance. Thus, we construct the oracle below so that its variance is at most ϕ ( u ) 2 σ ~ a 2 \phi(u)^2\widetilde{\sigma}_a^2 ϕ ( u ) 2 σ a 2 . Since 0 ≤ ϕ ≤ 1 0\le\phi\le1 0 ≤ ϕ ≤ 1 , the factor ϕ ( u ) 2 \phi(u)^2 ϕ ( u ) 2 makes the noise vanish on the inactive region and keeps it within the chosen budget on the active region.
As the next step, we keep the travel-coordinate component of the gradient exact and introduce randomness only through the chain estimator g ˉ T \bar{g}_T g ˉ T . Its Bernoulli seed ξ ∼ Bernoulli ( p ) \xi\sim\operatorname{Bernoulli}(p) ξ ∼ Bernoulli ( p ) permits the next unrevealed chain coordinate to be revealed only when ξ = 1 \xi=1 ξ = 1 . The factor ξ / p \xi/p ξ / p in the masked estimator preserves its expectation, while a smaller p p p increases its variance through the factor ( 1 − p ) / p (1-p)/p ( 1 − p ) / p in equation (19) . We define the composite oracle and choose p p p to match this variance bound to the budget above:
∇ f ( u , y ; ξ ) = ( f 0 ′ ( u ) + ϕ ′ ( u ) f s c a l e d ( y ) 2 ϵ ϕ ( u ) g ˉ T ( y / λ ; ξ ) ) , p = 4 ζ 2 ϵ 2 4 ζ 2 ϵ 2 + σ ~ a 2 . (31) \nabla f(u,y;\xi)=\begin{pmatrix}f_0'(u)+\phi'(u)f_{\mathrm{scaled}}(y)\\ 2\epsilon\phi(u)\bar{g}_T(y/\lambda;\xi)\end{pmatrix},
\qquad
p=\frac{4\zeta^2\epsilon^2}{4\zeta^2\epsilon^2+\widetilde{\sigma}_a^2}. \tag*{(31)} ∇ f ( u , y ; ξ ) = ( f 0 ′ ( u ) + ϕ ′ ( u ) f scaled ( y ) 2 ϵ ϕ ( u ) g ˉ T ( y / λ ; ξ ) ) , p = 4 ζ 2 ϵ 2 + σ a 2 4 ζ 2 ϵ 2 . (31)
To verify conditional unbiasedness, let x t = ( u t , y t ) x_t=(u_t,y_t) x t = ( u t , y t ) be a query measurable with respect to F t \mathcal{F}_t F t , and draw ξ t ∼ Bernoulli ( p ) \xi_t\sim\operatorname{Bernoulli}(p) ξ t ∼ Bernoulli ( p ) independently of F t \mathcal{F}_t F t . Conditioned on this history, the query is fixed, so equation (19) gives
E t [ g ˉ T ( y t / λ ; ξ t ) ] = ∇ f ˉ T ( y t / λ ) . \mathbb{E}_t[\bar{g}_T(y_t/\lambda;\xi_t)]=\nabla\bar{f}_T(y_t/\lambda). E t [ g ˉ T ( y t / λ ; ξ t )] = ∇ f ˉ T ( y t / λ ) .
Consequently, using ∇ f s c a l e d ( y t ) = 2 ϵ ∇ f ˉ T ( y t / λ ) \nabla f_{\mathrm{scaled}}(y_t)=2\epsilon\nabla\bar{f}_T(y_t/\lambda) ∇ f scaled ( y t ) = 2 ϵ ∇ f ˉ T ( y t / λ ) ,
E t [ ∇ f ( x t ; ξ t ) ] = ( f 0 ′ ( u t ) + ϕ ′ ( u t ) f s c a l e d ( y t ) 2 ϵ ϕ ( u t ) ∇ f ˉ T ( y t / λ ) ) = ∇ f ( x t ) . \mathbb{E}_t[\nabla f(x_t;\xi_t)]
=
\begin{pmatrix}
f_0'(u_t)+\phi'(u_t)f_{\mathrm{scaled}}(y_t)\\
2\epsilon\phi(u_t)\nabla\bar{f}_T(y_t/\lambda)
\end{pmatrix}
=\nabla f(x_t). E t [ ∇ f ( x t ; ξ t )] = ( f 0 ′ ( u t ) + ϕ ′ ( u t ) f scaled ( y t ) 2 ϵ ϕ ( u t ) ∇ f ˉ T ( y t / λ ) ) = ∇ f ( x t ) .
The oracle error has a zero travel-coordinate component and can be written explicitly as
e t : = ∇ f ( x t ; ξ t ) − ∇ f ( x t ) = ( 0 2 ϵ ϕ ( u t ) [ g ˉ T ( y t / λ ; ξ t ) − ∇ f ˉ T ( y t / λ ) ] ) . e_t:=\nabla f(x_t;\xi_t)-\nabla f(x_t)
=
\begin{pmatrix}
0\\
2\epsilon\phi(u_t)\left[\bar{g}_T(y_t/\lambda;\xi_t)-\nabla\bar{f}_T(y_t/\lambda)\right]
\end{pmatrix}. e t := ∇ f ( x t ; ξ t ) − ∇ f ( x t ) = ( 0 2 ϵ ϕ ( u t ) [ g ˉ T ( y t / λ ; ξ t ) − ∇ f ˉ T ( y t / λ ) ] ) .
Taking its conditional second moment and applying equation (19) yields
E t ∥ e t ∥ 2 = 4 ϵ 2 ϕ ( u t ) 2 E t ∥ g ˉ T ( y t / λ ; ξ t ) − ∇ f ˉ T ( y t / λ ) ∥ 2 ≤ 4 ϵ 2 ϕ ( u t ) 2 ζ 2 1 − p p . \mathbb{E}_t\lVert e_t\rVert^2
=
4\epsilon^2\phi(u_t)^2\mathbb{E}_t\left\lVert\bar{g}_T(y_t/\lambda;\xi_t)-\nabla\bar{f}_T(y_t/\lambda)\right\rVert^2
\le4\epsilon^2\phi(u_t)^2\zeta^2\frac{1-p}{p}. E t ∥ e t ∥ 2 = 4 ϵ 2 ϕ ( u t ) 2 E t g ˉ T ( y t / λ ; ξ t ) − ∇ f ˉ T ( y t / λ ) 2 ≤ 4 ϵ 2 ϕ ( u t ) 2 ζ 2 p 1 − p .
On the other hand, the choice of p p p in equation (31) lies in ( 0 , 1 ] (0,1] ( 0 , 1 ] and satisfies
1 − p p = σ ~ a 2 4 ζ 2 ϵ 2 . \frac{1-p}{p}=\frac{\widetilde{\sigma}_a^2}{4\zeta^2\epsilon^2}. p 1 − p = 4 ζ 2 ϵ 2 σ a 2 .
Thus, the conditional variance satisfies the desired bound
E t ∥ ∇ f ( x t ; ξ t ) − ∇ f ( x t ) ∥ 2 ≤ ϕ ( u t ) 2 σ ~ a 2 . \mathbb{E}_t\left\lVert\nabla f(x_t;\xi_t)-\nabla f(x_t)\right\rVert^2\le\phi(u_t)^2\widetilde{\sigma}_a^2. E t ∥ ∇ f ( x t ; ξ t ) − ∇ f ( x t ) ∥ 2 ≤ ϕ ( u t ) 2 σ a 2 .
For u t ≤ D / 2 u_t \le D/2 u t ≤ D /2 , we have ϕ ( u t ) = 0 \phi(u_t)=0 ϕ ( u t ) = 0 , so the conditional variance is zero. For u t > D / 2 u_t>D/2 u t > D /2 , the active-region bound above gives
ϕ ( u t ) 2 σ ~ a 2 ≤ σ ~ a 2 = B 2 ( D / 2 ) a + G 2 ≤ B 2 ∥ x t − x 0 ∥ a + G 2 . \phi(u_t)^2\widetilde{\sigma}_a^2 \le\widetilde{\sigma}^2_a = B^2(D/2)^a+G^2 \le B^2\lVert x_t-x_0\rVert^a+G^2. ϕ ( u t ) 2 σ a 2 ≤ σ a 2 = B 2 ( D /2 ) a + G 2 ≤ B 2 ∥ x t − x 0 ∥ a + G 2 .
Hence, conditional unbiasedness and the BG-a a a variance bound hold at every query and for every a ≥ 0 a\ge0 a ≥ 0 , including those in the activation interval D / 2 < u t < D D/2<u_t<D D /2 < u t < D . To recover the BG-0 case, setting a = 2 a=2 a = 2 in equation (30) gives σ ~ 2 2 = B 2 Δ 2 / ( 64 ϵ 2 ) + G 2 \widetilde{\sigma}_2^2=B^2\Delta^2/(64\epsilon^2)+G^2 σ 2 2 = B 2 Δ 2 / ( 64 ϵ 2 ) + G 2 . Substituting this expression into p p p and multiplying its numerator and denominator by 64 ϵ 2 64\epsilon^2 64 ϵ 2 gives
p = 256 ζ 2 ϵ 4 B 2 Δ 2 + 64 G 2 ϵ 2 + 256 ζ 2 ϵ 4 . p=\frac{256\zeta^2\epsilon^4}{B^2\Delta^2+64G^2\epsilon^2+256\zeta^2\epsilon^4}. p = B 2 Δ 2 + 64 G 2 ϵ 2 + 256 ζ 2 ϵ 4 256 ζ 2 ϵ 4 .
recovering the choice in Fazla et al. [9 ] .
We now translate the stationarity requirement into a lower bound on the number of oracle calls. Consider a zero-respecting algorithm as in Definition 2, with output written as x ^ = ( u ^ , y ^ ) \widehat{x}=(\widehat{u},\widehat{y}) x = ( u , y ) , and define the event A : = { ∥ ∇ f ( x ^ ) ∥ < 2 ϵ } A:=\{\lVert\nabla f(\widehat{x})\rVert<2\epsilon\} A := {∥ ∇ f ( x )∥ < 2 ϵ } . By equation (21) and Markov’s inequality, we have
Pr ( A c ) = Pr ( ∥ ∇ f ( x ^ ) ∥ ≥ 2 ϵ ) ≤ E ∥ ∇ f ( x ^ ) ∥ 2 ϵ ≤ 1 2 , \Pr(A^{\mathsf{c}})=\Pr(\lVert\nabla f(\widehat{x})\rVert\ge2\epsilon)\le\frac{\mathbb{E}\lVert\nabla f(\widehat{x})\rVert}{2\epsilon}\le\frac{1}{2}, Pr ( A c ) = Pr (∥ ∇ f ( x )∥ ≥ 2 ϵ ) ≤ 2 ϵ E ∥ ∇ f ( x )∥ ≤ 2 1 ,
so Pr ( A ) ≥ 1 / 2 \Pr(A)\ge1/2 Pr ( A ) ≥ 1/2 . Within the event A A A , equation (29) requires prog 1 ( y ^ / λ ) = T \operatorname{prog}_1(\widehat{y}/\lambda)=T prog 1 ( y / λ ) = T , and in particular the T T T -th chain coordinate of the output must be nonzero. The zero-respecting restriction requires this coordinate to have been revealed before the algorithm outputs it. Starting from y 0 = 0 y_0=0 y 0 = 0 , Lemma 3 implies that the masked chain oracle can reveal at most one new chain coordinate per oracle call, and only when the Bernoulli seed equals one. Thus, reaching the T T T -th coordinate requires at least T T T Bernoulli successes.
Next, we define τ \tau τ as the number of oracle calls and denote the number of successes before termination by
S τ : = ∑ t = 0 τ − 1 ξ t . S_\tau:=\sum_{t=0}^{\tau-1}\xi_t. S τ := t = 0 ∑ τ − 1 ξ t .
The preceding argument gives S τ ≥ T 1 A S_\tau\ge T1_A S τ ≥ T 1 A , hence
E [ S τ ] ≥ T Pr ( A ) ≥ T / 2. \mathbb{E}[S_\tau]\ge T\Pr(A)\ge T/2. E [ S τ ] ≥ T Pr ( A ) ≥ T /2.
Observing that the event { τ > t } \{\tau>t\} { τ > t } means that call t t t is made and is F t \mathcal{F}_t F t -measurable and using independence, we obtain
E [ 1 { τ > t } ξ t ] = E [ 1 { τ > t } E [ ξ t ∣ F t ] ] = p Pr ( τ > t ) . \mathbb{E}[1_{\{\tau>t\}}\xi_t]=\mathbb{E}\left[1_{\{\tau>t\}}\mathbb{E}[\xi_t\mid\mathcal{F}_t]\right]
=p\Pr(\tau>t). E [ 1 { τ > t } ξ t ] = E [ 1 { τ > t } E [ ξ t ∣ F t ] ] = p Pr ( τ > t ) .
Next, using Tonelli’s theorem and the tail-sum identity for τ \tau τ yields
E [ S τ ] = E [ ∑ t ≥ 0 1 { τ > t } ξ t ] = ∑ t ≥ 0 E [ 1 { τ > t } ξ t ] = p ∑ t ≥ 0 Pr ( τ > t ) = p E [ τ ] . \mathbb{E}[S_\tau]=\mathbb{E}\left[\sum_{t\ge0}1_{\{\tau>t\}}\xi_t\right]
=\sum_{t\ge0}\mathbb{E}[1_{\{\tau>t\}}\xi_t]
=p\sum_{t\ge0}\Pr(\tau>t)=p\mathbb{E}[\tau]. E [ S τ ] = E [ t ≥ 0 ∑ 1 { τ > t } ξ t ] = t ≥ 0 ∑ E [ 1 { τ > t } ξ t ] = p t ≥ 0 ∑ Pr ( τ > t ) = p E [ τ ] .
These identities also hold for infinite expectations, in which case the claimed lower bound is immediate. Otherwise, combining them with E [ S τ ] ≥ T / 2 \mathbb{E}[S_\tau]\ge T/2 E [ S τ ] ≥ T /2 and dividing by p > 0 p>0 p > 0 gives E [ τ ] ≥ T / ( 2 p ) \mathbb{E}[\tau]\ge T/(2p) E [ τ ] ≥ T / ( 2 p ) .
For convenience, we weaken this to E [ τ ] ≥ T / ( 4 p ) \mathbb{E}[\tau]\ge T/(4p) E [ τ ] ≥ T / ( 4 p ) . The accuracy restriction equation (20) ensures L Δ / ( 768 ℓ 1 ϵ 2 ) ≥ 2 L\Delta/(768\ell_1\epsilon^2)\ge2 L Δ/ ( 768 ℓ 1 ϵ 2 ) ≥ 2 , so the definition of T T T and ⌊ r ⌋ ≥ r / 2 \lfloor r\rfloor\ge r/2 ⌊ r ⌋ ≥ r /2 for r ≥ 2 r\ge2 r ≥ 2 give
T ≥ L Δ 1536 ℓ 1 ϵ 2 . T\ge\frac{L\Delta}{1536\ell_1\epsilon^2}. T ≥ 1536 ℓ 1 ϵ 2 L Δ .
Furthermore, equation (31) and equation (30) imply
1 p = 1 + σ ~ a 2 4 ζ 2 ϵ 2 = 1 + G 2 + B 2 ( Δ / ( 8 ϵ ) ) a 4 ζ 2 ϵ 2 . \frac{1}{p}=1+\frac{\widetilde{\sigma}_a^2}{4\zeta^2\epsilon^2}
=1+\frac{G^2+B^2(\Delta/(8\epsilon))^a}{4\zeta^2\epsilon^2}. p 1 = 1 + 4 ζ 2 ϵ 2 σ a 2 = 1 + 4 ζ 2 ϵ 2 G 2 + B 2 ( Δ/ ( 8 ϵ ) ) a .
Substituting both bounds yields
E [ τ ] ≥ T 4 p ≥ L Δ 6144 ℓ ϵ 2 [ 1 + G 2 + B 2 ( Δ / ( 8 ϵ ) ) a 4 ζ 2 ϵ 2 ] . (32) \mathbb{E}[\tau] \ge\frac{T}{4p} \ge\frac{L\Delta}{6144\ell\epsilon^2}\left[1+\frac{G^2+B^2(\Delta/(8\epsilon))^a}{4\zeta^2\epsilon^2}\right]. \tag*{(32)} E [ τ ] ≥ 4 p T ≥ 6144 ℓ ϵ 2 L Δ [ 1 + 4 ζ 2 ϵ 2 G 2 + B 2 ( Δ/ ( 8 ϵ ) ) a ] . (32)
Hence, the expected number of oracle calls is lower bounded by the ϵ − 6 \epsilon^{-6} ϵ − 6 growth term at a = 2 a=2 a = 2 , which becomes ϵ − ( 4 + a ) \epsilon^{-(4+a)} ϵ − ( 4 + a ) for general a a a .
Stage 2: Applying the reduction to unrestricted randomized algorithms. Next, we extend the analysis to unrestricted randomized algorithms.
Lemma 5 is built on an admissible activated-chain instance for unrestricted randomized algorithms, including unbounded queries, arbitrary output points, and random stopping. It combines the travel-coordinate and activation mechanism of Fazla et al. [9 ] with the compressed random-rotation construction of Arjevani et al. [2 ] . For its construction, we rely on a new chain length T ⋆ T_\star T ⋆ and reveal probability p ⋆ p_\star p ⋆ , which replace the parameters in the first stage and are given as
T ⋆ = ⌊ L Δ 12288 ℓ ϵ 2 ⌋ , p ⋆ = 64 ζ 2 ϵ 2 64 ζ 2 ϵ 2 + G 2 + B 2 ( Δ / ( 16 ϵ ) ) a . T_\star=\left\lfloor\frac{L\Delta}{12288\ell\epsilon^2}\right\rfloor,\qquad p_\star=\frac{64\zeta^2\epsilon^2}{64\zeta^2\epsilon^2+G^2+B^2(\Delta/(16\epsilon))^a}. T ⋆ = ⌊ 12288 ℓ ϵ 2 L Δ ⌋ , p ⋆ = 64 ζ 2 ϵ 2 + G 2 + B 2 ( Δ/ ( 16 ϵ ) ) a 64 ζ 2 ϵ 2 .
Equation 20 ensures that the expression inside the floor defining T ⋆ T_\star T ⋆ is at least eight, which gives
T ⋆ ≥ L Δ 24576 ℓ ϵ 2 , 1 p ⋆ = 1 + G 2 + B 2 ( Δ / ( 16 ϵ ) ) a 64 ζ 2 ϵ 2 . T_\star\ge\frac{L\Delta}{24576\ell\epsilon^2},\qquad\frac{1}{p_\star}=1+\frac{G^2+B^2(\Delta/(16\epsilon))^a}{64\zeta^2\epsilon^2}. T ⋆ ≥ 24576 ℓ ϵ 2 L Δ , p ⋆ 1 = 1 + 64 ζ 2 ϵ 2 G 2 + B 2 ( Δ/ ( 16 ϵ ) ) a .
Substituting these expressions into the inequality sup ( f , g ) E [ τ ] ≥ T ⋆ / ( 32 p ⋆ ) \sup_{(f,g)}\mathbb{E}[\tau]\ge T_\star/(32p_\star) sup ( f , g ) E [ τ ] ≥ T ⋆ / ( 32 p ⋆ ) , obtained in Lemma 5, yields
sup ( f , g ) E [ τ ] ≥ L Δ 786432 ℓ ϵ 2 [ 1 + G 2 + B 2 ( Δ / ( 16 ϵ ) ) a 64 ζ 2 ϵ 2 ] , \sup_{(f,g)}\mathbb{E}[\tau]\ge\frac{L\Delta}{786432\ell\epsilon^2}\left[1+\frac{G^2+B^2(\Delta/(16\epsilon))^a}{64\zeta^2\epsilon^2}\right], ( f , g ) sup E [ τ ] ≥ 786432 ℓ ϵ 2 L Δ [ 1 + 64 ζ 2 ϵ 2 G 2 + B 2 ( Δ/ ( 16 ϵ ) ) a ] ,
which proves equation 22 and equation 23. Finally, Cauchy–Schwarz gives E [ ∥ ∇ f ( x ^ ) ∥ ] ≤ ( E [ ∥ ∇ f ( x ^ ) ∥ 2 ] ) 1 / 2 \mathbb{E}[\|\nabla f(\widehat{x})\|]\le(\mathbb{E}[\|\nabla f(\widehat{x})\|^2])^{1/2} E [ ∥∇ f ( x ) ∥ ] ≤ ( E [ ∥∇ f ( x ) ∥ 2 ] ) 1/2 , so the same bound applies to the squared gradient guarantee, which we utilize in our upper bound proofs.
Reduction to unrestricted randomized algorithms
We first state the random rotation result used in the reduction. This is the single-query specialization of Lemma 6 of Arjevani et al. [2 ] , whose oracle returns the exact objective value together with the stochastic gradient. We use this version because the activated construction below requires the value of the rotated chain in order to compute the first, travel-coordinate component of the stochastic gradient oracle.
Lemma 4 (Lemma 6 of Arjevani et al. [2 ] restated). Let T ≥ 1 T\ge1 T ≥ 1 , p ∈ ( 0 , 1 ] p\in(0,1] p ∈ ( 0 , 1 ] , and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . Suppose
d ≥ ⌈ 18 ⋅ 230 2 T 2 p log ( 2 T 2 p δ ) ⌉ . d\ge\left\lceil18\cdot230^2\frac{T^2}{p}\log\left(\frac{2T^2}{p\delta}\right)\right\rceil. d ≥ ⌈ 18 ⋅ 23 0 2 p T 2 log ( p δ 2 T 2 ) ⌉ . and let U ∈ R d × T U\in\mathbb{R}^{d\times T} U ∈ R d × T be uniformly distributed over matrices with orthonormal columns, independently of the algorithm’s internal randomness and oracle seeds. We define
ρ ( z ) = z 1 + ∥ z ∥ 2 / R 2 , R = 230 T , J ( z ) = D ρ ( z ) , \rho(z)=\frac{z}{\sqrt{1+\|z\|^2/R^2}},\qquad R=230\sqrt{T},\qquad J(z)=D\rho(z), ρ ( z ) = 1 + ∥ z ∥ 2 / R 2 z , R = 230 T , J ( z ) = D ρ ( z ) , h U ( z ) = f ˉ T ( U ⊤ ρ ( z ) ) , q ( z ) = ∥ z ∥ 2 / 10 , H U = h U + q , h_U(z)=\bar f_T(U^\top\rho(z)),\qquad q(z)=\|z\|^2/10,\qquad H_U=h_U+q, h U ( z ) = f ˉ T ( U ⊤ ρ ( z )) , q ( z ) = ∥ z ∥ 2 /10 , H U = h U + q , v U ( z ; ξ ) = J ( z ) ⊤ U g ˉ T ( U ⊤ ρ ( z ) ; ξ ) + z / 5 , v_U(z;\xi)=J(z)^\top U\bar g_T(U^\top\rho(z);\xi)+z/5, v U ( z ; ξ ) = J ( z ) ⊤ U g ˉ T ( U ⊤ ρ ( z ) ; ξ ) + z /5 , where J ( z ) = D ρ ( z ) J(z)=D\rho(z) J ( z ) = D ρ ( z ) denotes the Jacobian of ρ \rho ρ and ξ ∼ Bernoulli ( p ) \xi\sim\operatorname{Bernoulli}(p) ξ ∼ Bernoulli ( p ) . The algorithm accesses the unknown instance through the responses ( H U ( z ) , v U ( z ; ξ ) ) (H_U(z),v_U(z;\xi)) ( H U ( z ) , v U ( z ; ξ )) . For any adaptive randomized algorithm making one query per call, with no bound on the query norms, and with probability at least 1 − δ 1-\delta 1 − δ ,
∥ ∇ H U ( z j ) ∥ ≥ 1 2 for every integer 1 ≤ j ≤ T − log ( 2 / δ ) 2 p . \|\nabla H_U(z_j)\|\ge\frac{1}{2}\quad\text{for every integer }1\le j\le\frac{T-\log(2/\delta)}{2p}. ∥∇ H U ( z j ) ∥ ≥ 2 1 for every integer 1 ≤ j ≤ 2 p T − log ( 2/ δ ) .
Lemma 5 (Unrestricted algorithm reduction of the activated BG-a a a chain). Fix L , Δ > 0 L, \Delta> 0 L , Δ > 0 , B , G ≥ 0 B, G \ge0 B , G ≥ 0 , and a finite a ≥ 0 a \ge0 a ≥ 0 . Let ℓ = 155 \ell= 155 ℓ = 155 , ς = 23 \varsigma= 23 ς = 23 , and 0 < ϵ 2 ≤ L Δ / ( 98304 ℓ ) 0 < \epsilon^2 \le L\Delta/(98304\ell) 0 < ϵ 2 ≤ L Δ/ ( 98304 ℓ ) . Define
T = ⌊ L Δ 12288 ℓ ϵ 2 ⌋ , p = 64 ς 2 ϵ 2 64 ς 2 ϵ 2 + G 2 + B 2 ( Δ / ( 16 ϵ ) ) a . T = \left\lfloor\frac{L\Delta}{12288\ell\epsilon^2} \right\rfloor,\qquad p = \frac{64\varsigma^2\epsilon^2}{64\varsigma^2\epsilon^2 + G^2 + B^2(\Delta/(16\epsilon))^a}. T = ⌊ 12288 ℓ ϵ 2 L Δ ⌋ , p = 64 ς 2 ϵ 2 + G 2 + B 2 ( Δ/ ( 16 ϵ ) ) a 64 ς 2 ϵ 2 . For any integer d d d satisfying
d ≥ ⌈ 18 ⋅ 230 2 T 2 p log ( 8 T 2 p ) ⌉ (33) d \ge\left\lceil18 \cdot230^2 \frac{T^2}{p}\log\left(\frac{8T^2}{p}\right) \right\rceil \tag*{(33)} d ≥ ⌈ 18 ⋅ 23 0 2 p T 2 log ( p 8 T 2 ) ⌉ (33) there is a family of lower bounded, globally L L L -smooth objectives f U : R d + 1 → R f_U : \mathbb{R}^{d+1} \to\mathbb{R} f U : R d + 1 → R , indexed by matrices U ∈ R d × T U \in\mathbb{R}^{d \times T} U ∈ R d × T with orthonormal columns, and unbiased vector oracles g U ( x ; ξ ) = ∇ f U ( x ; ξ ) g_U(x;\xi) = \nabla f_U(x;\xi) g U ( x ; ξ ) = ∇ f U ( x ; ξ ) such that, for x 0 = 0 x_0 = 0 x 0 = 0 and f U inf : = inf x f U ( x ) f_U^{\inf} := \inf_x f_U(x) f U i n f := inf x f U ( x ) ,
f U ( x 0 ) − f U inf ≤ Δ , E ξ ∥ g U ( x ; ξ ) − ∇ f U ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ a + G 2 for every x . f_U(x_0) - f_U^{\inf} \le\Delta,\qquad\mathbb{E}_{\xi}\left\|g_U(x;\xi)-\nabla f_U(x)\right\|^2 \le B^2\left\|x-x_0\right\|^a+G^2\quad\text{for every }x. f U ( x 0 ) − f U i n f ≤ Δ , E ξ ∥ g U ( x ; ξ ) − ∇ f U ( x ) ∥ 2 ≤ B 2 ∥ x − x 0 ∥ a + G 2 for every x . Every adaptive randomized algorithm that returns x ^ \widehat{x} x at a stopping time τ \tau τ and satisfies E ∥ ∇ f U ( x ^ ) ∥ ≤ ϵ \mathbb{E}\left\|\nabla f_U(\widehat{x})\right\| \le\epsilon E ∥ ∇ f U ( x ) ∥ ≤ ϵ for every function in this family must obey
sup U E [ τ ∣ U ] ≥ T 32 p . \sup_U \mathbb{E}[\tau\mid U] \ge\frac{T}{32p}. U sup E [ τ ∣ U ] ≥ 32 p T .
Proof. The random rotation makes the chain directions inaccessible to the algorithm. Compression keeps the input to the chain bounded, even for unbounded queries. Finally, the quadratic penalty ensures that large-norm queries cannot exploit the compression to produce small gradients.
Now, we use U U U , ρ \rho ρ , J J J , h U h_U h U , q q q , H U H_U H U , and v U v_U v U from Lemma 4 with the parameters T , p T,p T , p specified above. Here ∥ J ∥ o p ≤ 1 \|J\|_{\mathrm{op}} \le1 ∥ J ∥ op ≤ 1 and Lip ( J ) ≤ 3 / R \operatorname{Lip}(J) \le3/R Lip ( J ) ≤ 3/ R , so we have Lip ( ∇ h U ) ≤ 152 + 69 / 230 < ℓ \operatorname{Lip}(\nabla h_U) \le152+69/230 < \ell Lip ( ∇ h U ) ≤ 152 + 69/230 < ℓ , ∥ ∇ h U ∥ ≤ 23 T \|\nabla h_U\| \le23\sqrt{T} ∥∇ h U ∥ ≤ 23 T , and v U v_U v U is unbiased for ∇ H U \nabla H_U ∇ H U with variance at most ς 2 ( 1 − p ) / p \varsigma^2(1-p)/p ς 2 ( 1 − p ) / p . Taking δ = 1 / 4 \delta= 1/4 δ = 1/4 in Lemma 4, we obtain the dimension requirement equation (33) . Hence, with probability at least 3 / 4 3/4 3/4 , any adaptive randomized query sequence satisfies
∥ ∇ H U ( z j ) ∥ ≥ 1 2 for every integer 1 ≤ j ≤ T − log 8 2 p . (34) \|\nabla H_U(z_j)\| \ge\frac{1}{2}\quad\text{for every integer }1\le j\le\frac{T-\log8}{2p}. \tag*{(34)} ∥∇ H U ( z j ) ∥ ≥ 2 1 for every integer 1 ≤ j ≤ 2 p T − log 8 . (34)
For the activated construction, we use the following scales
D = Δ 8 ϵ , s = 16 ℓ ϵ L , κ = L s 2 2 ℓ , D = \frac{\Delta}{8\epsilon},\qquad s = \frac{16\ell\epsilon}{L},\qquad\kappa= \frac{Ls^2}{2\ell}, D = 8 ϵ Δ , s = L 16 ℓ ϵ , κ = 2 ℓ L s 2 ,
T = ⌊ L Δ 12288 ℓ ϵ 2 ⌋ , V a = B 2 ( D / 2 ) a + G 2 , p = 64 ς 2 ϵ 2 64 ς 2 ϵ 2 + V a . (35) T = \left\lfloor\frac{L\Delta}{12288\ell\epsilon^2} \right\rfloor,\qquad V_a = B^2(D/2)^a+G^2,\qquad p = \frac{64\varsigma^2\epsilon^2}{64\varsigma^2\epsilon^2+V_a}. \tag*{(35)} T = ⌊ 12288 ℓ ϵ 2 L Δ ⌋ , V a = B 2 ( D /2 ) a + G 2 , p = 64 ς 2 ϵ 2 + V a 64 ς 2 ϵ 2 . (35)
Now, in a similar way to equation (24) –equation (25) , with ϵ \epsilon ϵ replaced by 2 ϵ 2\epsilon 2 ϵ , we set
A U ( y ) = κ [ h U ( y / s ) − M T ] , f U ( u , y ) = f 0 ( u ) + ϕ ( u ) A U ( y ) + κ q ( y / s ) . (36) A_U(y)=\kappa[h_U(y/s)-M_T],\qquad f_U(u,y)=f_0(u)+\phi(u)A_U(y)+\kappa q(y/s). \tag*{(36)} A U ( y ) = κ [ h U ( y / s ) − M T ] , f U ( u , y ) = f 0 ( u ) + ϕ ( u ) A U ( y ) + κ q ( y / s ) . (36)
The same shifted chain bounds give − Δ / 4 ≤ A U ≤ 0 -\Delta/4\le A_U\le0 − Δ/4 ≤ A U ≤ 0 , ∥ ∇ A U ∥ ≤ 184 ϵ T \|\nabla A_U\|\le184\epsilon\sqrt{T} ∥∇ A U ∥ ≤ 184 ϵ T , and Lip ( ∇ A U ) ≤ L / 2 \operatorname{Lip}(\nabla A_U)\le L/2 Lip ( ∇ A U ) ≤ L /2 . The gap is at most 3 Δ / 4 + 16 ϵ 2 / L ≤ Δ 3\Delta/4+16\epsilon^2/L\le\Delta 3Δ/4 + 16 ϵ 2 / L ≤ Δ , and the Hessian bound of the block becomes
∥ ∇ 2 f U ∥ o p ≤ L 2 + L 10 ℓ + 640 ϵ 2 3 Δ + 5520 ϵ 2 T Δ ≤ 7 L 8 . \|\nabla^2 f_U\|_{\mathrm{op}}\le\frac{L}{2}+\frac{L}{10\ell}+\frac{640\epsilon^2}{\sqrt{3\Delta}}+\frac{5520\epsilon^2\sqrt{T}}{\Delta}\le\frac{7L}{8}. ∥ ∇ 2 f U ∥ op ≤ 2 L + 10 ℓ L + 3Δ 640 ϵ 2 + Δ 5520 ϵ 2 T ≤ 8 7 L .
The last three terms are each at most L / 8 L/8 L /8 by equation (20) , and continuity at the travel-function junctions again gives global smoothness. For u ≤ D u\le D u ≤ D , we have ∂ u f U ≤ − 4 ϵ \partial_u f_U\le-4\epsilon ∂ u f U ≤ − 4 ϵ ; and for u > D u>D u > D , we get ∇ y f U = 8 ϵ ∇ H U ( y / s ) \nabla_y f_U=8\epsilon\nabla H_U(y/s) ∇ y f U = 8 ϵ ∇ H U ( y / s ) . Thus equation (34) forces ∥ ∇ f U ∥ ≥ 4 ϵ \|\nabla f_U\|\ge4\epsilon ∥∇ f U ∥ ≥ 4 ϵ regardless of u u u . Denoting z = y / s z=y/s z = y / s , we get
∇ f U ( u , y ; ξ ) = ( f 0 ′ ( u ) + ϕ ′ ( u ) A U ( y ) 8 ϵ { ϕ ( u ) [ v U ( z ; ξ ) − z / 5 ] + z / 5 } ) . (37) \nabla f_U(u,y;\xi)=\begin{pmatrix}
f_0'(u)+\phi'(u)A_U(y)\\
8\epsilon\{\phi(u)[v_U(z;\xi)-z/5]+z/5\}
\end{pmatrix}. \tag*{(37)} ∇ f U ( u , y ; ξ ) = ( f 0 ′ ( u ) + ϕ ′ ( u ) A U ( y ) 8 ϵ { ϕ ( u ) [ v U ( z ; ξ ) − z /5 ] + z /5 } ) . (37)
which is conditionally unbiased with conditional variance at most 64 ϵ 2 ϕ ( u ) 2 ( 1 − p ) / p = ϕ ( u ) 2 V a 64\epsilon^2\phi(u)^2(1-p)/p=\phi(u)^2V_a 64 ϵ 2 ϕ ( u ) 2 ( 1 − p ) / p = ϕ ( u ) 2 V a . Note that both the inactive and active cases used above satisfy equation (14) at every point. As A U ( y ) = κ [ H U ( z ) − q ( z ) − M T ] A_U(y)=\kappa[H_U(z)-q(z)-M_T] A U ( y ) = κ [ H U ( z ) − q ( z ) − M T ] , each composite call can be simulated with one call to ( H U , v U ) (H_U,v_U) ( H U , v U ) at z = y / s z=y/s z = y / s . Hence the first coordinate reveals no additional information about U U U .
It remains to turn the query bound in equation (34) into a lower bound on the expected stopping time. Setting m = ⌊ T / ( 8 p ) ⌋ m=\lfloor T/(8p)\rfloor m = ⌊ T / ( 8 p )⌋ , the accuracy restriction gives T ≥ 8 T\ge8 T ≥ 8 , and p ≤ 1 p\le1 p ≤ 1 , so T / ( 8 p ) ≥ 1 T/(8p)\ge1 T / ( 8 p ) ≥ 1 . Therefore,
m ≥ T 16 p , m + 1 ≤ T 8 p + 1 ≤ T 4 p ≤ T − log 8 2 p . m\ge\frac{T}{16p},\qquad m+1\le\frac{T}{8p}+1\le\frac{T}{4p}\le\frac{T-\log8}{2p}. m ≥ 16 p T , m + 1 ≤ 8 p T + 1 ≤ 4 p T ≤ 2 p T − log 8 .
where we use T ≥ 8 > 2 log 8 T\ge8>2\log8 T ≥ 8 > 2 log 8 in the last inequality. Thus the bound in equation (34) covers m m m oracle calls with an additional query at the output point.
First, lets consider any algorithm that makes at most m m m calls and returns x ^ = ( u ^ , y ^ ) \widehat{x}=(\widehat{u},\widehat{y}) x = ( u , y ) , and simulate these calls using the oracle ( H U , v U ) (H_U,v_U) ( H U , v U ) as described above. If the algorithm stops before m m m calls, we keep its output fixed and make the remaining queries at the origin, ignoring their responses. We then query y ^ / s \widehat{y}/s y / s as query m + 1 m+1 m + 1 . This final query is used only to apply equation (34) and its response does not change the output. With probability at least 3 / 4 3/4 3/4 , we get
∥ ∇ H U ( y ^ / s ) ∥ ≥ 1 2 . \lVert\nabla H_U(\widehat{y}/s)\rVert\ge\frac{1}{2}. ∥ ∇ H U ( y / s )∥ ≥ 2 1 .
If u ^ ≤ D \widehat{u}\le D u ≤ D , the travel-coordinate derivative already has magnitude at least 4 ϵ 4\epsilon 4 ϵ . If u ^ > D \widehat{u}>D u > D , then
∥ ∇ f U ( x ^ ) ∥ ≥ ∥ ∇ y f U ( x ^ ) ∥ = 8 ϵ ∥ ∇ H U ( y ^ / s ) ∥ ≥ 4 ϵ . \lVert\nabla f_U(\widehat{x})\rVert\ge\lVert\nabla_y f_U(\widehat{x})\rVert=8\epsilon\lVert\nabla H_U(\widehat{y}/s)\rVert\ge4\epsilon. ∥ ∇ f U ( x )∥ ≥ ∥ ∇ y f U ( x )∥ = 8 ϵ ∥ ∇ H U ( y / s )∥ ≥ 4 ϵ .
Hence every algorithm with a budget of m m m calls satisfies
Pr ( ∥ ∇ f U ( x ^ ) ∥ ≥ 4 ϵ ) ≥ 3 4 . \Pr(\lVert\nabla f_U(\widehat{x})\rVert\ge4\epsilon)\ge\frac{3}{4}. Pr (∥ ∇ f U ( x )∥ ≥ 4 ϵ ) ≥ 4 3 .
Now let A \mathcal{A} A be the algorithm in Lemma 5 , with stopping time τ \tau τ and output x ^ \widehat{x} x . Its guarantee holds for every fixed U U U , so averaging over U U U gives E ∥ ∇ f U ( x ^ ) ∥ ≤ ϵ \mathbb{E}\,\lVert\nabla f_U(\widehat{x})\rVert\le\epsilon E ∥ ∇ f U ( x )∥ ≤ ϵ . Markov’s inequality then yields
Pr ( ∥ ∇ f U ( x ^ ) ∥ ≥ 4 ϵ ) ≤ E ∥ ∇ f U ( x ^ ) ∥ 4 ϵ ≤ 1 4 . \Pr(\lVert\nabla f_U(\widehat{x})\rVert\ge4\epsilon)\le\frac{\mathbb{E}\,\lVert\nabla f_U(\widehat{x})\rVert}{4\epsilon}\le\frac{1}{4}. Pr (∥ ∇ f U ( x )∥ ≥ 4 ϵ ) ≤ 4 ϵ E ∥ ∇ f U ( x )∥ ≤ 4 1 .
Next, we define a truncated algorithm A m \mathcal{A}_m A m that runs A \mathcal{A} A for at most m m m calls. If A \mathcal{A} A stops within this budget, A m \mathcal{A}_m A m returns the same output. Otherwise, it returns x 0 x_0 x 0 . Denoting x ^ m \widehat{x}_m x m as this truncated algorithm’s output, we run the two algorithms with the same U U U , oracle seeds, and internal randomness. Their outputs agree whenever τ ≤ m \tau\le m τ ≤ m . Consequently,
Pr ( ∥ ∇ f U ( x ^ m ) ∥ ≥ 4 ϵ ) ≤ Pr ( ∥ ∇ f U ( x ^ ) ∥ ≥ 4 ϵ ) + Pr ( τ > m ) ≤ 1 4 + Pr ( τ > m ) . \begin{aligned}
\Pr(\lVert\nabla f_U(\widehat{x}_m)\rVert\ge4\epsilon)\le\Pr(\lVert\nabla f_U(\widehat{x})\rVert\ge4\epsilon)+\Pr(\tau>m) \\
&\le\frac{1}{4}+\Pr(\tau>m).
\end{aligned} Pr (∥ ∇ f U ( x m )∥ ≥ 4 ϵ ) ≤ Pr (∥ ∇ f U ( x )∥ ≥ 4 ϵ ) + Pr ( τ > m ) ≤ 4 1 + Pr ( τ > m ) .
Since A m \mathcal{A}_m A m uses at most m m m calls, its probability on the left is at least 3 / 4 3/4 3/4 . Thus
Pr ( τ > m ) ≥ 3 4 − 1 4 = 1 2 . \Pr(\tau>m)\ge\frac{3}{4}-\frac{1}{4}=\frac{1}{2}. Pr ( τ > m ) ≥ 4 3 − 4 1 = 2 1 .
Finally, τ ≥ m 1 { τ > m } \tau\ge m\mathbf{1}_{\{\tau>m\}} τ ≥ m 1 { τ > m } , and the supremum over fixed rotations is at least the average over U U U . Therefore,
sup U E [ τ ∣ U ] ≥ E [ τ ] ≥ m Pr ( τ > m ) ≥ m 2 ≥ T 32 p . (38) \sup_U\mathbb{E}[\tau\mid U]\ge\mathbb{E}[\tau]\ge m\Pr(\tau>m)\ge\frac{m}{2}\ge\frac{T}{32p}. \tag*{(38)} U sup E [ τ ∣ U ] ≥ E [ τ ] ≥ m Pr ( τ > m ) ≥ 2 m ≥ 32 p T . (38)
which proves the expected SFO lower bound and completes the lemma.
Interpretation and relation to the upper bound
Based on our lower bound proofs from the previous part, the chain length is T = Θ ( L Δ / ϵ 2 ) T=\Theta(L\Delta/\epsilon^2) T = Θ ( L Δ/ ϵ 2 ) , while the inverse reveal probability is
1 p = 1 + Θ a ( G 2 + B 2 ( Δ / ϵ ) a ϵ 2 ) . (39) \frac{1}{p}=1+\Theta_a\left(\frac{G^2+B^2(\Delta/\epsilon)^a}{\epsilon^2}\right). \tag*{(39)} p 1 = 1 + Θ a ( ϵ 2 G 2 + B 2 ( Δ/ ϵ ) a ) . (39)
Therefore, the expected number of oracle calls is at least of order T / p T/p T / p . For varying values of α \alpha α , this gives: Note that, if B = 0 B = 0 B = 0 and G > 0 G > 0 G > 0 , the BG-a a a noise model reduces to the more restrictive bounded variance case, and the lower bound becomes Ω ( ϵ − 4 ) \Omega(\epsilon^{-4}) Ω ( ϵ − 4 ) , recovering Arjevani et al. [2 ] . Similarly, if B = G = 0 B = G = 0 B = G = 0 , only the deterministic ϵ − 2 \epsilon^{-2} ϵ − 2 term remains, and the lower bound reduces to the deterministic case. The additional factor ϵ − a \epsilon^{-a} ϵ − a to the lower bounds obtained in Fazla et al. [9 ] is the distance-dependent term and comes from the allowable variance at distance Θ ( Δ / ϵ ) \Theta(\Delta/\epsilon) Θ ( Δ/ ϵ ) from initialization. For 0 ≤ a ≤ 2 0 \leq a \leq2 0 ≤ a ≤ 2 and B > 0 B > 0 B > 0 , the lower bound matches the ϵ \epsilon ϵ -dependence of the expected SFO upper bounds for dynamically batched SGD and SGDM, obtained in Theorems 2 and 3, for fixed problem parameters, target variance σ 2 \sigma^2 σ 2 , and momentum coefficient β \beta β .
Table 8.
Convergence of SGD
Theorem 2 (Convergence of SGD with Dynamic Batching). Suppose Assumptions 1 and 2 hold with 0 ≤ a ≤ 2 0 \leq a \leq2 0 ≤ a ≤ 2 . Under a fixed target variance σ 2 > 0 \sigma^2 > 0 σ 2 > 0 and a target accuracy ϵ > 0 \epsilon> 0 ϵ > 0 satisfying ϵ 2 ≤ min { 2 σ 2 , L Δ } \epsilon^2 \leq\min\{2\sigma^2,L\Delta\} ϵ 2 ≤ min { 2 σ 2 , L Δ } , denote the batch size b t b_t b t , step size η \eta η , and total iterations T T T as
b t = max { 1 , ⌈ B 2 ∥ x t − x 0 ∥ a + G 2 σ 2 ⌉ } , η = ϵ 2 2 L σ 2 , T = ⌈ 4 Δ η ϵ 2 ⌉ . (40) b_t = \max\left\{1,\left\lceil\frac{B^2\lVert x_t-x_0\rVert^a+G^2}{\sigma^2}\right\rceil\right\}, \qquad\eta= \frac{\epsilon^2}{2L\sigma^2}, \qquad T = \left\lceil\frac{4\Delta}{\eta\epsilon^2}\right\rceil. \tag*{(40)} b t = max { 1 , ⌈ σ 2 B 2 ∥ x t − x 0 ∥ a + G 2 ⌉ } , η = 2 L σ 2 ϵ 2 , T = ⌈ η ϵ 2 4Δ ⌉ . (40) For t = 0 , … , T − 1 t = 0,\ldots,T-1 t = 0 , … , T − 1 , form the minibatch gradient g t = 1 b t ∑ i = 1 b t ∇ f ( x t ; ξ t , i ) g_t = \frac{1}{b_t}\sum_{i=1}^{b_t}\nabla f(x_t;\xi_{t,i}) g t = b t 1 ∑ i = 1 b t ∇ f ( x t ; ξ t , i ) from fresh conditionally independent samples and update x t + 1 = x t − η g t x_{t+1}=x_t-\eta g_t x t + 1 = x t − η g t . Then,
1 T ∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ ϵ 2 , (41) \frac{1}{T}\sum_{t=0}^{T-1}\mathbb{E}\lVert\nabla f(x_t)\rVert^2 \leq\epsilon^2, \tag*{(41)} T 1 t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ ϵ 2 , (41) and the expected total stochastic first-order (SFO) oracle complexity satisfies
E [ S F O ] = E [ ∑ t = 0 T − 1 b t ] ≤ 10 L Δ [ ( σ 2 + G 2 ) ϵ − 4 + 50 a / 2 B 2 Δ a ϵ − ( 4 + a ) ] . (42) \mathbb{E}[\mathrm{SFO}] = \mathbb{E}\left[\sum_{t=0}^{T-1}b_t\right] \leq10L\Delta\left[(\sigma^2+G^2)\epsilon^{-4}+50^{a/2}B^2\Delta^a\epsilon^{-(4+a)}\right]. \tag*{(42)} E [ SFO ] = E [ t = 0 ∑ T − 1 b t ] ≤ 10 L Δ [ ( σ 2 + G 2 ) ϵ − 4 + 5 0 a /2 B 2 Δ a ϵ − ( 4 + a ) ] . (42) In particular, for a fixed σ 2 \sigma^2 σ 2 independent of ϵ \epsilon ϵ , the expected SFO complexity is O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) .
Proof. Let e t : = g t − ∇ f ( x t ) e_t := g_t-\nabla f(x_t) e t := g t − ∇ f ( x t ) , and z t , i : = ∇ f ( x t ; ξ t , i ) − ∇ f ( x t ) z_{t,i}:=\nabla f(x_t;\xi_{t,i})-\nabla f(x_t) z t , i := ∇ f ( x t ; ξ t , i ) − ∇ f ( x t ) . Note that the batch size b t b_t b t is chosen before sampling that batch. Hence, conditioned on F t \mathcal{F}_t F t , b t b_t b t is a fixed positive integer and z t , i z_{t,i} z t , i are independent with conditional mean zero. Therefore, we have
E t [ e t ] = 0 , E t ∥ e t ∥ 2 = 1 b t 2 ∑ i = 1 b t E t ∥ z t , i ∥ 2 ≤ B 2 ∥ x t − x 0 ∥ a + G 2 b t ≤ σ 2 , (43) \mathbb{E}_t[e_t]=0,\qquad\mathbb{E}_t\lVert e_t\rVert^2=\frac{1}{b_t^2}\sum_{i=1}^{b_t}\mathbb{E}_t\lVert z_{t,i}\rVert^2\leq\frac{B^2\lVert x_t-x_0\rVert^a+G^2}{b_t}\leq\sigma^2, \tag*{(43)} E t [ e t ] = 0 , E t ∥ e t ∥ 2 = b t 2 1 i = 1 ∑ b t E t ∥ z t , i ∥ 2 ≤ b t B 2 ∥ x t − x 0 ∥ a + G 2 ≤ σ 2 , (43) where the cross terms vanish by conditional independence and zero means.
Step 1: Descent lemma. Using L L L -smoothness and with the SGD update iterates x t x_t x t , we get
f ( x t + 1 ) ≤ f ( x t ) − η ⟨ ∇ f ( x t ) , g t ⟩ + L η 2 2 ∥ g t ∥ 2 . (44) f(x_{t+1})\leq f(x_t)-\eta\langle\nabla f(x_t),g_t\rangle+\frac{L\eta^2}{2}\lVert g_t\rVert^2. \tag*{(44)} f ( x t + 1 ) ≤ f ( x t ) − η ⟨ ∇ f ( x t ) , g t ⟩ + 2 L η 2 ∥ g t ∥ 2 . (44) Taking conditional expectation E t [ ⋅ ] \mathbb{E}_t[\cdot] E t [ ⋅ ] and using equation (43)
E t ∥ g t ∥ 2 = ∥ ∇ f ( x t ) ∥ 2 + E t ∥ e t ∥ 2 ≤ ∥ ∇ f ( x t ) ∥ 2 + σ 2 . (45) \mathbb{E}_t\lVert g_t\rVert^2=\lVert\nabla f(x_t)\rVert^2+\mathbb{E}_t\lVert e_t\rVert^2\leq\lVert\nabla f(x_t)\rVert^2+\sigma^2. \tag*{(45)} E t ∥ g t ∥ 2 = ∥ ∇ f ( x t ) ∥ 2 + E t ∥ e t ∥ 2 ≤ ∥ ∇ f ( x t ) ∥ 2 + σ 2 . (45) Consequently, since η ≤ 1 / L \eta\leq1/L η ≤ 1/ L (as ϵ 2 ≤ 2 σ 2 \epsilon^2\leq2\sigma^2 ϵ 2 ≤ 2 σ 2 ),
E t f ( x t + 1 ) ≤ f ( x t ) − η ( 1 − L η 2 ) ∥ ∇ f ( x t ) ∥ 2 + L η 2 σ 2 2 \mathbb{E}_t f(x_{t+1})\leq f(x_t)-\eta\left(1-\frac{L\eta}{2}\right)\lVert\nabla f(x_t)\rVert^2+\frac{L\eta^2\sigma^2}{2} E t f ( x t + 1 ) ≤ f ( x t ) − η ( 1 − 2 L η ) ∥ ∇ f ( x t ) ∥ 2 + 2 L η 2 σ 2 ≤ f ( x t ) − η 2 ∥ ∇ f ( x t ) ∥ 2 + L η 2 σ 2 2 . (46) \leq f(x_t)-\frac{\eta}{2}\lVert\nabla f(x_t)\rVert^2+\frac{L\eta^2\sigma^2}{2}. \tag*{(46)} ≤ f ( x t ) − 2 η ∥ ∇ f ( x t ) ∥ 2 + 2 L η 2 σ 2 . (46)
Step 2: Telescoping to obtain the stationarity criterion. Taking total expectation of each side of equation (46) , summing over t = 0 , … , T − 1 t = 0, \ldots, T - 1 t = 0 , … , T − 1 , and since E [ f ( x T ) ] ≥ f inf \mathbb{E}[f(x_T)] \ge f^{\inf} E [ f ( x T )] ≥ f i n f , we get
η 2 ∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ f ( x 0 ) − E [ f ( x T ) ] + T L η 2 σ 2 2 ≤ Δ + T L η 2 σ 2 2 . (47) \begin{aligned}
\frac{\eta}{2} \sum_{t=0}^{T-1} \mathbb{E}\left\lVert\nabla f(x_t) \right\rVert^2 \le f(x_0) - \mathbb{E}[f(x_T)] + \frac{T L \eta^2 \sigma^2}{2} \\
&\le\Delta+ \frac{T L \eta^2 \sigma^2}{2}. \tag*{(47)}
\end{aligned} 2 η t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ f ( x 0 ) − E [ f ( x T )] + 2 T L η 2 σ 2 ≤ Δ + 2 T L η 2 σ 2 . (47)
Dividing both sides by T η / 2 T\eta/2 T η /2 and substituting the parameters from equation (40) , we end up with
1 T ∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ 2 Δ T η + L η σ 2 ≤ ϵ 2 2 + ϵ 2 2 = ϵ 2 . (48) \frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\left\lVert\nabla f(x_t) \right\rVert^2 \le\frac{2\Delta}{T\eta} + L\eta\sigma^2 \le\frac{\epsilon^2}{2} + \frac{\epsilon^2}{2} = \epsilon^2. \tag*{(48)} T 1 t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ T η 2Δ + L η σ 2 ≤ 2 ϵ 2 + 2 ϵ 2 = ϵ 2 . (48)
Step 3: SFO computation. Telescoping the iterates x t x_t x t gives:
x t − x 0 = − η ∑ j = 0 t − 1 ∇ f ( x j ) − η ∑ j = 0 t − 1 e j . (49) x_t - x_0 = -\eta\sum_{j=0}^{t-1} \nabla f(x_j) - \eta\sum_{j=0}^{t-1} e_j. \tag*{(49)} x t − x 0 = − η j = 0 ∑ t − 1 ∇ f ( x j ) − η j = 0 ∑ t − 1 e j . (49)
Taking the norm squared into total expectation of both sides gives
E ∥ x t − x 0 ∥ 2 = E ∥ η ∑ j = 0 t − 1 ∇ f ( x j ) + η ∑ j = 0 t − 1 e j ∥ 2 . (50) \mathbb{E}\left\lVert x_t - x_0 \right\rVert^2 = \mathbb{E}\left\lVert\eta\sum_{j=0}^{t-1} \nabla f(x_j) + \eta\sum_{j=0}^{t-1} e_j \right\rVert^2. \tag*{(50)} E ∥ x t − x 0 ∥ 2 = E η j = 0 ∑ t − 1 ∇ f ( x j ) + η j = 0 ∑ t − 1 e j 2 . (50)
Applying the inequality ∥ u + v ∥ 2 ≤ 2 ∥ u ∥ 2 + 2 ∥ v ∥ 2 \lVert u + v \rVert^2 \le2\lVert u \rVert^2 + 2\lVert v \rVert^2 ∥ u + v ∥ 2 ≤ 2 ∥ u ∥ 2 + 2 ∥ v ∥ 2 and Cauchy–Schwarz on the gradient sum gives
E ∥ x t − x 0 ∥ 2 ≤ 2 η 2 t ∑ j = 0 t − 1 E ∥ ∇ f ( x j ) ∥ 2 + 2 η 2 E ∥ ∑ j = 0 t − 1 e j ∥ 2 . (51) \mathbb{E}\left\lVert x_t - x_0 \right\rVert^2 \le2\eta^2 t \sum_{j=0}^{t-1} \mathbb{E}\left\lVert\nabla f(x_j) \right\rVert^2 + 2\eta^2 \mathbb{E}\left\lVert\sum_{j=0}^{t-1} e_j \right\rVert^2. \tag*{(51)} E ∥ x t − x 0 ∥ 2 ≤ 2 η 2 t j = 0 ∑ t − 1 E ∥ ∇ f ( x j ) ∥ 2 + 2 η 2 E j = 0 ∑ t − 1 e j 2 . (51)
Now, notice that for i < j i < j i < j , e i e_i e i is F j \mathcal{F}_j F j -measurable, hence
E [ ⟨ e i , e j ⟩ ] = E [ E [ ⟨ e i , e j ⟩ ∣ F j ] ] = E [ ⟨ e i , E [ e j ∣ F j ] ⟩ ] = 0. (52) \mathbb{E}[\langle e_i,e_j\rangle] = \mathbb{E}[\mathbb{E}[\langle e_i,e_j\rangle\mid\mathcal{F}_j]] = \mathbb{E}[\langle e_i,\mathbb{E}[e_j \mid\mathcal{F}_j]\rangle] = 0. \tag*{(52)} E [⟨ e i , e j ⟩] = E [ E [⟨ e i , e j ⟩ ∣ F j ]] = E [⟨ e i , E [ e j ∣ F j ]⟩] = 0. (52)
Thus, martingale orthogonality and equation (43) imply
E ∥ ∑ j = 0 t − 1 e j ∥ 2 = ∑ j = 0 t − 1 E ∥ e j ∥ 2 ≤ t σ 2 . (53) \mathbb{E}\left\lVert\sum_{j=0}^{t-1} e_j \right\rVert^2 = \sum_{j=0}^{t-1} \mathbb{E}\lVert e_j\rVert^2 \le t\sigma^2. \tag*{(53)} E j = 0 ∑ t − 1 e j 2 = j = 0 ∑ t − 1 E ∥ e j ∥ 2 ≤ t σ 2 . (53)
Substituting this and equation (47) into equation (51) , and using t ≤ T t \le T t ≤ T , we obtain
E ∥ x t − x 0 ∥ 2 ≤ 2 η 2 T ( 2 Δ η + T L η σ 2 ) + 2 η 2 T σ 2 = 4 η T Δ + 2 L η 3 T 2 σ 2 + 2 η 2 T σ 2 = : D T . (54) \begin{aligned}
\mathbb{E}\left\lVert x_t - x_0 \right\rVert^2 \le2\eta^2 T\left(\frac{2\Delta}{\eta} + T L\eta\sigma^2\right) + 2\eta^2 T\sigma^2 \\
&= 4\eta T\Delta+ 2L\eta^3T^2\sigma^2 + 2\eta^2T\sigma^2 =: D_T. \tag*{(54)}
\end{aligned} E ∥ x t − x 0 ∥ 2 ≤ 2 η 2 T ( η 2Δ + T L η σ 2 ) + 2 η 2 T σ 2 = 4 η T Δ + 2 L η 3 T 2 σ 2 + 2 η 2 T σ 2 =: D T . (54)
Step 4: a power growth. For 0 ≤ a ≤ 2 0 \le a \le2 0 ≤ a ≤ 2 , the map u ↦ u a / 2 u \mapsto u^{a/2} u ↦ u a /2 is concave on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) . Hence, using Jensen’s inequality gives
E ∥ x t − x 0 ∥ a = E [ ( ∥ x t − x 0 ∥ 2 ) a / 2 ] ≤ ( E ∥ x t − x 0 ∥ 2 ) a / 2 ≤ ( D T ) a / 2 . (55) \mathbb{E}\lVert x_t - x_0\rVert^a = \mathbb{E}\left[(\lVert x_t - x_0\rVert^2)^{a/2}\right] \le\left(\mathbb{E}\lVert x_t - x_0\rVert^2\right)^{a/2} \le(D_T)^{a/2}. \tag*{(55)} E ∥ x t − x 0 ∥ a = E [ (∥ x t − x 0 ∥ 2 ) a /2 ] ≤ ( E ∥ x t − x 0 ∥ 2 ) a /2 ≤ ( D T ) a /2 . (55)
Summing b t b_t b t , taking expectations and using max { 1 , ⌈ u ⌉ } ≤ 1 + u \max\{1,\lceil u\rceil\} \le1 + u max { 1 , ⌈ u ⌉} ≤ 1 + u for u ≥ 0 u \ge0 u ≥ 0 , we get
E [ ∑ t = 0 T − 1 b t ] ≤ ∑ t = 0 T − 1 [ 1 + G 2 σ 2 + B 2 σ 2 E [ ∥ x t − x 0 ∥ a ] ] ≤ T ( 1 + G 2 σ 2 + B 2 σ 2 ( D T ) a / 2 ) . (56) \begin{aligned}
\mathbb{E}\left[\sum_{t=0}^{T-1} b_t\right] \le\sum_{t=0}^{T-1}\left[1 + \frac{G^2}{\sigma^2} + \frac{B^2}{\sigma^2}\mathbb{E}[\lVert x_t - x_0\rVert^a]\right] \\
&\le T\left(1 + \frac{G^2}{\sigma^2} + \frac{B^2}{\sigma^2}(D_T)^{a/2}\right). \tag*{(56)}
\end{aligned} E [ t = 0 ∑ T − 1 b t ] ≤ t = 0 ∑ T − 1 [ 1 + σ 2 G 2 + σ 2 B 2 E [∥ x t − x 0 ∥ a ] ] ≤ T ( 1 + σ 2 G 2 + σ 2 B 2 ( D T ) a /2 ) . (56)
Step 5: Substituting the explicit constants. Setting ϵ 2 ≤ min { 2 σ 2 , L Δ } \epsilon^2 \le\min\{2\sigma^2, L\Delta\} ϵ 2 ≤ min { 2 σ 2 , L Δ } and using the explicit constant values from Theorem 2 gives us
η = ϵ 2 2 L σ 2 , m : = 4 Δ η ϵ 2 = 8 L σ 2 Δ ϵ 4 ≥ 4. (57) \eta= \frac{\epsilon^2}{2L\sigma^2}, \qquad m := \frac{4\Delta}{\eta\epsilon^2} = \frac{8L\sigma^2\Delta}{\epsilon^4} \ge4. \tag*{(57)} η = 2 L σ 2 ϵ 2 , m := η ϵ 2 4Δ = ϵ 4 8 L σ 2 Δ ≥ 4. (57)
Since m ≥ 4 m \ge4 m ≥ 4 , the ceiling satisfies T = ⌈ m ⌉ ≤ m + 1 ≤ ( 5 / 4 ) m T = \lceil m\rceil\le m+1 \le(5/4)m T = ⌈ m ⌉ ≤ m + 1 ≤ ( 5/4 ) m . Hence
T ≤ 10 L σ 2 Δ ϵ 4 , η T ≤ 5 Δ ϵ 2 . (58) T \le\frac{10L\sigma^2\Delta}{\epsilon^4}, \qquad\eta T \le\frac{5\Delta}{\epsilon^2}. \tag*{(58)} T ≤ ϵ 4 10 L σ 2 Δ , η T ≤ ϵ 2 5Δ . (58)
We now bound the three terms of D T D_T D T (equation (54) ) separately:
4 η T Δ ≤ 20 Δ 2 ϵ 2 , (59) 4\eta T\Delta\le\frac{20\Delta^2}{\epsilon^2}, \tag*{(59)} 4 η T Δ ≤ ϵ 2 20 Δ 2 , (59)
2 L η 3 T 2 σ 2 = 2 L η σ 2 ( η T ) 2 ≤ ϵ 2 25 Δ 2 ϵ 4 = 25 Δ 2 ϵ 2 , (60) 2L\eta^3T^2\sigma^2 = 2L\eta\sigma^2(\eta T)^2 \le\epsilon^2\frac{25\Delta^2}{\epsilon^4} = \frac{25\Delta^2}{\epsilon^2}, \tag*{(60)} 2 L η 3 T 2 σ 2 = 2 L η σ 2 ( η T ) 2 ≤ ϵ 2 ϵ 4 25 Δ 2 = ϵ 2 25 Δ 2 , (60)
2 η 2 T σ 2 = 2 η σ 2 ( η T ) ≤ ϵ 2 L 5 Δ ϵ 2 = 5 Δ L ≤ 5 Δ 2 ϵ 2 , (61) 2\eta^2T\sigma^2 = 2\eta\sigma^2(\eta T) \le\frac{\epsilon^2}{L}\frac{5\Delta}{\epsilon^2} = \frac{5\Delta}{L} \le\frac{5\Delta^2}{\epsilon^2}, \tag*{(61)} 2 η 2 T σ 2 = 2 η σ 2 ( η T ) ≤ L ϵ 2 ϵ 2 5Δ = L 5Δ ≤ ϵ 2 5 Δ 2 , (61)
where the final inequality uses ϵ 2 ≤ L Δ \epsilon^2 \le L\Delta ϵ 2 ≤ L Δ . Combining all three bounds, we get
D T ≤ 50 Δ 2 ϵ 2 . (62) D_T \le\frac{50\Delta^2}{\epsilon^2}. \tag*{(62)} D T ≤ ϵ 2 50 Δ 2 . (62)
Combining equation (58) , equation (62) , and equation (56) , we arrive at
E [ S F O ] ≤ 10 L Δ [ ( σ 2 + G 2 ) ϵ − 4 + 50 a / 2 B 2 Δ a ϵ − ( 4 + a ) ] , (63) \mathbb{E}[\mathrm{SFO}] \le10L\Delta\left[(\sigma^2+G^2)\epsilon^{-4}+50^{a/2}B^2\Delta^a\epsilon^{-(4+a)}\right], \tag*{(63)} E [ SFO ] ≤ 10 L Δ [ ( σ 2 + G 2 ) ϵ − 4 + 5 0 a /2 B 2 Δ a ϵ − ( 4 + a ) ] , (63)
completing the proof.
Interpretation of equation 63. We demonstrate below the expected SFO based on the values of a a a , and discuss the relation to the convergence results in the literature.
Table 1 (PDF p. 26).
Connecting bounded variance and BG-0 through a a a . The exponent a a a connects the bounded variance setting of ordinary SGD with the BG-0 model of distance-dependent, potentially unbounded variance. At a = 0 a=0 a = 0 , the convention ∥ x − x 0 ∥ 0 = 1 \lVert x-x_0\rVert^0=1 ∥ x − x 0 ∥ 0 = 1 gives the uniform variance bound B 2 + G 2 B^2+G^2 B 2 + G 2 . The batch size in equation (40) is then constant throughout the run, and equation (63) recovers the O ( ϵ − 4 ) O(\epsilon^{-4}) O ( ϵ − 4 ) SFO rate of SGD under bounded variance. Independently of a a a , setting B = 0 B=0 B = 0 also gives a uniform variance bound, now equal to G 2 G^2 G 2 , and removes the distance-dependent term from the complexity bound.
At a = 2 a=2 a = 2 , the oracle bound becomes B 2 ∥ x − x 0 ∥ 2 + G 2 B^2\lVert x-x_0\rVert^2+G^2 B 2 ∥ x − x 0 ∥ 2 + G 2 , which is the BG-0 model considered in Fazla et al. [9 ] . The expected SFO bound correspondingly becomes O ( ϵ − 6 ) O(\epsilon^{-6}) O ( ϵ − 6 ) , recovering the smooth nonconvex BG-0 rate. For 0 < a < 2 0<a<2 0 < a < 2 , the rate O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) interpolates between these two endpoints: a a a specifies the power of the allowed variance growth with distance from initialization. Note that, in our proof, the displacement scale Δ / ϵ \Delta/\epsilon Δ/ ϵ contributes a factor ( Δ / ϵ ) a (\Delta/\epsilon)^a ( Δ/ ϵ ) a to the expected batch cost, while the iteration budget remains O ( ϵ − 4 ) O(\epsilon^{-4}) O ( ϵ − 4 ) for fixed σ 2 \sigma^2 σ 2 .
Discussion on the Expected SFO bound when a > 2 a>2 a > 2
From our analysis in Theorem 2, we see that the descent and expected SFO analyses require different moments, given that the variance is of order 2 2 2 while the distance norm is of order a a a . When 0 ≤ a ≤ 2 0\le a\le2 0 ≤ a ≤ 2 , meaning that the moment of the distance growth is of order smaller than or equal to the gradient noise variance, the mismatch in orders do not cause a problem, since we can utilize steps similar to equation (55) . However, when the order of the moment of the distance growth exceed that of the variance, we can no longer control it.
Formally, the variance bound in equation (43) controls the expected decrease in the objective, whereas the batch rule in equation (40) gives
B 2 E ∥ x t − x 0 ∥ a + G 2 σ 2 ≤ E [ b t ] ≤ 1 + B 2 E ∥ x t − x 0 ∥ a + G 2 σ 2 . (64) \frac{B^2\mathbb{E}\lVert x_t-x_0\rVert^a+G^2}{\sigma^2}\leq\mathbb{E}[b_t]\leq1+\frac{B^2\mathbb{E}\lVert x_t-x_0\rVert^a+G^2}{\sigma^2}. \tag*{(64)} σ 2 B 2 E ∥ x t − x 0 ∥ a + G 2 ≤ E [ b t ] ≤ 1 + σ 2 B 2 E ∥ x t − x 0 ∥ a + G 2 . (64)
Thus, when B > 0 B>0 B > 0 , finite expected batch cost requires a finite a a a -th moment of the displacement. In the proof of Theorem 2, the second-moment bound equation (54) supplies this control through Jensen’s inequality for 0 < a ≤ 2 0<a\leq2 0 < a ≤ 2 . For a > 2 a>2 a > 2 , a second-moment bound is no longer sufficient. To obtain the same O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) expected SFO bound with the prescribed T = O ( ϵ − 4 ) T=O(\epsilon^{-4}) T = O ( ϵ − 4 ) iterations, we need to establish
1 T ∑ t = 0 T − 1 E ∥ x t − x 0 ∥ a = O ( ( Δ / ϵ ) a ) . (65) \frac{1}{T}\sum_{t=0}^{T-1}\mathbb{E}\lVert x_t-x_0\rVert^a=O\left((\Delta/\epsilon)^a\right). \tag*{(65)} T 1 t = 0 ∑ T − 1 E ∥ x t − x 0 ∥ a = O ( ( Δ/ ϵ ) a ) . (65)
However, this construction may not be possible. As an example, the following construction shows why Assumptions 1 and 2 alone cannot satisfy even the finiteness of this moment: the first SGD update can inherit an infinite a a a -th moment from a finite variance oracle.
Proposition 1 (Expected SFO cost for a > 2 a>2 a > 2 ). For every fixed a > 2 a>2 a > 2 and target variance σ 2 > 0 \sigma^2>0 σ 2 > 0 , there exist an objective and a stochastic gradient oracle satisfying Assumptions 1 and 2 such that SGD with the batch rule in equation (40) and any fixed step size η > 0 \eta>0 η > 0 satisfies E [ b 1 ] = ∞ \mathbb{E}[b_1]=\infty E [ b 1 ] = ∞ . Consequently, its expected total SFO cost is infinite for every T ≥ 2 T\geq2 T ≥ 2 .
Proof. We demonstrate the proof by direct construction of such case. We set d = 1 d=1 d = 1 , x 0 = 0 x_0=0 x 0 = 0 , and f ( x ) = ( x − 1 ) 2 / 2 f(x)=(x-1)^2/2 f ( x ) = ( x − 1 ) 2 /2 , which gives L = 1 L=1 L = 1 and Δ = 1 / 2 \Delta=1/2 Δ = 1/2 . Then, we choose a random variable Z Z Z such that
E [ Z ] = 0 , E [ Z 2 ] = 1 , E [ ∣ Z ∣ a ] = ∞ . (66) \mathbb{E}[Z]=0,\qquad\mathbb{E}[Z^2]=1,\qquad\mathbb{E}[|Z|^a]=\infty. \tag*{(66)} E [ Z ] = 0 , E [ Z 2 ] = 1 , E [ ∣ Z ∣ a ] = ∞. (66)
For example, a symmetric Pareto variable with tail exponent p ∈ ( 2 , a ) p\in(2,a) p ∈ ( 2 , a ) can be rescaled to have unit variance. We denote the stochastic signal f ( x ; Z ) = f ( x ) + Z ∫ 0 x σ 2 + ∣ s ∣ a d s f(x;Z)=f(x)+Z\int_0^x\sqrt{\sigma^2+|s|^a}\,\mathrm{d}s f ( x ; Z ) = f ( x ) + Z ∫ 0 x σ 2 + ∣ s ∣ a d s , whose expectation gives the objective function f ( x ) f(x) f ( x ) and its gradient can be written as
g ( x ; Z ) = x − 1 + σ 2 + ∣ x ∣ a Z , (67) g(x;Z)=x-1+\sqrt{\sigma^2+|x|^a}\,Z, \tag*{(67)} g ( x ; Z ) = x − 1 + σ 2 + ∣ x ∣ a Z , (67)
using an independent draw of Z Z Z at each oracle call. Moreover, we have
E Z [ g ( x ; Z ) ] = ∇ f ( x ) , E Z ∥ g ( x ; Z ) − ∇ f ( x ) ∥ 2 = σ 2 + ∣ x ∣ a . (68) \mathbb{E}_Z[g(x;Z)]=\nabla f(x),\qquad\mathbb{E}_Z\lVert g(x;Z)-\nabla f(x)\rVert^2=\sigma^2+|x|^a. \tag*{(68)} E Z [ g ( x ; Z )] = ∇ f ( x ) , E Z ∥ g ( x ; Z ) − ∇ f ( x ) ∥ 2 = σ 2 + ∣ x ∣ a . (68)
Thus, the oracle satisfies Assumption 2 with B = 1 B=1 B = 1 and G = σ G=\sigma G = σ . Now, since the variance at x 0 = 0 x_0=0 x 0 = 0 equals the target variance, the initial batch size is b 0 = 1 b_0=1 b 0 = 1 . The first update is therefore
g 0 = − 1 + σ Z 0 , 1 , x 1 = η ( 1 − σ Z 0 , 1 ) , (69) g_0=-1+\sigma Z_{0,1},\qquad x_1=\eta(1-\sigma Z_{0,1}), \tag*{(69)} g 0 = − 1 + σ Z 0 , 1 , x 1 = η ( 1 − σ Z 0 , 1 ) , (69)
Where Z 0 , 1 Z_{0,1} Z 0 , 1 is a single instantiation of Z Z Z sampled at time x 0 x_0 x 0 . From this update step, we can see that the second moment E [ ∣ x 1 ∣ 2 ] = η 2 ( 1 + σ 2 ) \mathbb{E}[|x_1|^2]=\eta^2(1+\sigma^2) E [ ∣ x 1 ∣ 2 ] = η 2 ( 1 + σ 2 ) and is finite. However, its a a a -th moment is infinite. Indeed, ∣ 1 − σ Z 0 , 1 ∣ ≥ σ ∣ Z 0 , 1 ∣ / 2 |1-\sigma Z_{0,1}|\geq\sigma|Z_{0,1}|/2 ∣1 − σ Z 0 , 1 ∣ ≥ σ ∣ Z 0 , 1 ∣/2 whenever ∣ Z 0 , 1 ∣ ≥ 2 / σ |Z_{0,1}|\geq2/\sigma ∣ Z 0 , 1 ∣ ≥ 2/ σ , giving
E [ ∣ x 1 ∣ a ] ≥ ( η σ 2 ) a E [ ∣ Z 0 , 1 ∣ a 1 { ∣ Z 0 , 1 ∣ ≥ 2 / σ } ] = ∞ . (70) \mathbb{E}[|x_1|^a]\geq\left(\frac{\eta\sigma}{2}\right)^a\mathbb{E}\left[|Z_{0,1}|^a\mathbf{1}_{\{|Z_{0,1}|\geq2/\sigma\}}\right]=\infty. \tag*{(70)} E [ ∣ x 1 ∣ a ] ≥ ( 2 η σ ) a E [ ∣ Z 0 , 1 ∣ a 1 { ∣ Z 0 , 1 ∣ ≥ 2/ σ } ] = ∞. (70)
The next batch size satisfies
b 1 = ⌈ 1 + ∣ x 1 ∣ a σ 2 ⌉ ≥ 1 + ∣ x 1 ∣ a σ 2 . (71) b_1=\left\lceil1+\frac{|x_1|^a}{\sigma^2}\right\rceil\geq1+\frac{|x_1|^a}{\sigma^2}. \tag*{(71)} b 1 = ⌈ 1 + σ 2 ∣ x 1 ∣ a ⌉ ≥ 1 + σ 2 ∣ x 1 ∣ a . (71)
Hence equation (70) gives E [ b 1 ] = ∞ \mathbb{E}[b_1]=\infty E [ b 1 ] = ∞ , and E [ ∑ t = 0 T − 1 b t ] ≥ E [ b 1 ] = ∞ \mathbb{E}\left[\sum_{t=0}^{T-1}b_t\right]\geq\mathbb{E}[b_1]=\infty E [ ∑ t = 0 T − 1 b t ] ≥ E [ b 1 ] = ∞ for T ≥ 2 T\geq2 T ≥ 2 . □
The obstruction is a mismatch between the moment controlled by the oracle assumption and the moment required by the batch rule. Variance control remains sufficient for the expected stationarity analysis, but it does not control the a a a -th displacement moment that determines expected SFO cost when a > 2 a>2 a > 2 . Recovering the rate requires a quantitative bound such as equation (65) and finiteness alone would not establish its dependence on ϵ \epsilon ϵ .
Note that, such a quantitative bound can be obtained with new assumptions that bound the gradient noise moments of order a a a when a ≥ 2 a \ge2 a ≥ 2 , hence, matching the orders of noise growth and distance growth. This type of analysis, notation given below for convenience, requires further thought and new analysis. Interestingly, it resembles the heavy-tailed p p p -moment analysis common in the literature (Zhang et al., 2020). We leave this interesting intersection of p p p -th moment growth and a a a -th moment distance growth for future work.
E ξ ∥ ∇ f ( x ; ξ ) − ∇ f ( x ) ∥ p ≤ B 2 ∥ x − x 0 ∥ a + G 2 . (72) \mathbb{E}_{\xi}\left\|\nabla f(x;\xi)-\nabla f(x)\right\|^{p}\le B^{2}\left\|x-x_{0}\right\|^{a}+G^{2}. \tag*{(72)} E ξ ∥ ∇ f ( x ; ξ ) − ∇ f ( x ) ∥ p ≤ B 2 ∥ x − x 0 ∥ a + G 2 . (72)
Convergence of SGDM
Theorem 3 (Convergence of SGDM with Dynamic Batching). Suppose Assumptions 1 and 2 hold with 0 ≤ a ≤ 2 0 \le a \le2 0 ≤ a ≤ 2 . Fix the momentum coefficient β ∈ [ 0 , 1 ) \beta\in[0,1) β ∈ [ 0 , 1 ) and a target variance σ 2 > 0 \sigma^{2}>0 σ 2 > 0 , and define c β : = 1 − β 1 + β c_{\beta}:=\frac{1-\beta}{1+\beta} c β := 1 + β 1 − β . For a target accuracy ϵ > 0 \epsilon>0 ϵ > 0 satisfying ϵ 2 ≤ min { 8 σ 2 ( 1 − β 2 ) , L Δ } \epsilon^{2}\le\min\{8\sigma^{2}(1-\beta^{2}),L\Delta\} ϵ 2 ≤ min { 8 σ 2 ( 1 − β 2 ) , L Δ } , denote the batch size b t b_t b t , step size η \eta η , and total iterations T T T as
b t = max { 1 , ⌈ c β B 2 ∥ x t − x 0 ∥ a + G 2 σ 2 ⌉ } , η = c β ϵ 2 16 L σ 2 , T = ⌈ 16 Δ η ϵ 2 ⌉ . (73) b_t=\max\left\{1,\left\lceil c_{\beta}\frac{B^{2}\left\|x_t-x_0\right\|^{a}+G^{2}}{\sigma^{2}}\right\rceil\right\},\qquad
\eta=\frac{c_{\beta}\epsilon^{2}}{16L\sigma^{2}},\qquad
T=\left\lceil\frac{16\Delta}{\eta\epsilon^{2}}\right\rceil. \tag*{(73)} b t = max { 1 , ⌈ c β σ 2 B 2 ∥ x t − x 0 ∥ a + G 2 ⌉ } , η = 16 L σ 2 c β ϵ 2 , T = ⌈ η ϵ 2 16Δ ⌉ . (73) For t = 0 , … , T − 1 t=0,\ldots,T-1 t = 0 , … , T − 1 , form the minibatch gradient g t = 1 b t ∑ i = 1 b t ∇ f ( x t ; ξ t , i ) g_t=\frac{1}{b_t}\sum_{i=1}^{b_t}\nabla f(x_t;\xi_{t,i}) g t = b t 1 ∑ i = 1 b t ∇ f ( x t ; ξ t , i ) from fresh conditionally independent samples and update
m − 1 = 0 , m t = β m t − 1 + ( 1 − β ) g t , x t + 1 = x t − η m t . (74) m_{-1}=0,\qquad m_t=\beta m_{t-1}+(1-\beta)g_t,\qquad x_{t+1}=x_t-\eta m_t. \tag*{(74)} m − 1 = 0 , m t = β m t − 1 + ( 1 − β ) g t , x t + 1 = x t − η m t . (74) Then
1 T ∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ ϵ 2 , (75) \frac{1}{T}\sum_{t=0}^{T-1}\mathbb{E}\left\|\nabla f(x_t)\right\|^{2}\le\epsilon^{2}, \tag*{(75)} T 1 t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ ϵ 2 , (75) and the expected total stochastic first-order (SFO) oracle complexity satisfies
E [ S F O ] = E [ ∑ t = 0 T − 1 b t ] ≤ 320 L Δ ( σ 2 c β + G 2 ) ϵ − 4 + 725 a / 2 B 2 Δ a ϵ − ( 4 + a ) . (76) \mathbb{E}[\mathrm{SFO}]=\mathbb{E}\left[\sum_{t=0}^{T-1}b_t\right]\le320L\Delta\left(\frac{\sigma^{2}}{c_{\beta}}+G^{2}\right)\epsilon^{-4}+725^{a/2}B^{2}\Delta^{a}\epsilon^{-(4+a)}. \tag*{(76)} E [ SFO ] = E [ t = 0 ∑ T − 1 b t ] ≤ 320 L Δ ( c β σ 2 + G 2 ) ϵ − 4 + 72 5 a /2 B 2 Δ a ϵ − ( 4 + a ) . (76) In particular, for fixed β \beta β and σ 2 \sigma^{2} σ 2 independent of ϵ \epsilon ϵ , the expected SFO complexity is O ( ϵ − ( 4 + a ) ) O(\epsilon^{-(4+a)}) O ( ϵ − ( 4 + a ) ) .
Proof. Let e t : = g t − ∇ f ( x t ) e_t:=g_t-\nabla f(x_t) e t := g t − ∇ f ( x t ) and z t , i : = ∇ f ( x t ; ξ t , i ) − ∇ f ( x t ) z_{t,i}:=\nabla f(x_t;\xi_{t,i})-\nabla f(x_t) z t , i := ∇ f ( x t ; ξ t , i ) − ∇ f ( x t ) . The history F t \mathcal{F}_t F t contains all samples revealed before iteration t t t , therefore, x t x_t x t , m t − 1 m_{t-1} m t − 1 , and b t b_t b t are F t \mathcal{F}_t F t -measurable. We choose the batch size before sampling, and the errors z t , i z_{t,i} z t , i are independent with conditional mean zero. Therefore,
E t [ e t ] = 0 , E t ∥ e t ∥ 2 = 1 b t 2 ∑ i = 1 b t E t ∥ z t , i ∥ 2 ≤ B 2 ∥ x t − x 0 ∥ a + G 2 b t ≤ σ 2 c β , (77) \mathbb{E}_t[e_t]=0,\qquad\mathbb{E}_t\|e_t\|^{2}=\frac{1}{b_t^{2}}\sum_{i=1}^{b_t}\mathbb{E}_t\|z_{t,i}\|^{2}\le\frac{B^{2}\|x_t-x_0\|^{a}+G^{2}}{b_t}\le\frac{\sigma^{2}}{c_{\beta}}, \tag*{(77)} E t [ e t ] = 0 , E t ∥ e t ∥ 2 = b t 2 1 i = 1 ∑ b t E t ∥ z t , i ∥ 2 ≤ b t B 2 ∥ x t − x 0 ∥ a + G 2 ≤ c β σ 2 , (77)
where the cross terms vanish due to conditional independence and zero means. The factor c β c_{\beta} c β corresponds to the variance reduction of the momentum filter. Indeed, the filtered noise r t : = ( 1 − β ) ∑ j = 0 t β t − j e j r_t:=(1-\beta)\sum_{j=0}^{t}\beta^{t-j}e_j r t := ( 1 − β ) ∑ j = 0 t β t − j e j satisfies, by martingale orthogonality
E ∥ r t ∥ 2 = ( 1 − β ) 2 ∑ j = 0 t β 2 ( t − j ) E ∥ e j ∥ 2 ≤ ( 1 − β ) 2 1 − β 2 σ 2 c β = σ 2 . \mathbb{E}\|r_t\|^{2}=(1-\beta)^{2}\sum_{j=0}^{t}\beta^{2(t-j)}\mathbb{E}\|e_j\|^{2}\le\frac{(1-\beta)^{2}}{1-\beta^{2}}\frac{\sigma^{2}}{c_{\beta}}=\sigma^{2}. E ∥ r t ∥ 2 = ( 1 − β ) 2 j = 0 ∑ t β 2 ( t − j ) E ∥ e j ∥ 2 ≤ 1 − β 2 ( 1 − β ) 2 c β σ 2 = σ 2 .
This controls the filtered noise component.
Step 1: Descent lemma. To handle the components introduced by momentum, we define the auxiliary iterate
x ~ t : = x t − η β 1 − β m t − 1 . \widetilde{x}_t:=x_t-\frac{\eta\beta}{1-\beta}m_{t-1}. x t := x t − 1 − β η β m t − 1 .
where x ~ 0 = x 0 \tilde{x}_0=x_0 x ~ 0 = x 0 since m − 1 = 0 m_{-1}=0 m − 1 = 0 . Expanding the update gives
x ~ t + 1 = x t − η m t − η β 1 − β m t = x t − η 1 − β [ β m t − 1 + ( 1 − β ) g t ] = x ~ t − η g t . (78) \begin{aligned}
\tilde{x}_{t+1} &= x_t-\eta m_t-\frac{\eta\beta}{1-\beta}m_t\\
&=x_t-\frac{\eta}{1-\beta}\left[\beta m_{t-1}+(1-\beta)g_t\right]=\tilde{x}_t-\eta g_t. \tag*{(78)}
\end{aligned} x ~ t + 1 = x t − η m t − 1 − β η β m t = x t − 1 − β η [ β m t − 1 + ( 1 − β ) g t ] = x ~ t − η g t . (78)
Hence, by using L L L -smoothness at x ~ t \tilde{x}_t x ~ t , we obtain
f ( x ~ t + 1 ) ≤ f ( x ~ t ) − η ⟨ ∇ f ( x ~ t ) , g t ⟩ + L η 2 2 ∥ g t ∥ 2 . (79) f(\tilde{x}_{t+1})\le f(\tilde{x}_t)-\eta\langle\nabla f(\tilde{x}_t),g_t\rangle+\frac{L\eta^2}{2}\lVert g_t\rVert^2. \tag*{(79)} f ( x ~ t + 1 ) ≤ f ( x ~ t ) − η ⟨ ∇ f ( x ~ t ) , g t ⟩ + 2 L η 2 ∥ g t ∥ 2 . (79)
Taking conditional expectation E t [ ⋅ ] \mathbb{E}_t[\cdot] E t [ ⋅ ] and using
E t [ g t ] = ∇ f ( x t ) , E t ∥ g t ∥ 2 = ∥ ∇ f ( x t ) ∥ 2 + E t ∥ e t ∥ 2 , \mathbb{E}_t[g_t]=\nabla f(x_t),\qquad\mathbb{E}_t\lVert g_t\rVert^2=\lVert\nabla f(x_t)\rVert^2+\mathbb{E}_t\lVert e_t\rVert^2, E t [ g t ] = ∇ f ( x t ) , E t ∥ g t ∥ 2 = ∥ ∇ f ( x t ) ∥ 2 + E t ∥ e t ∥ 2 ,
along with the polarization identity and using L L L -smoothness, we have
− ⟨ ∇ f ( x ~ t ) , ∇ f ( x t ) ⟩ ≤ − 1 2 ∥ ∇ f ( x t ) ∥ 2 + 1 2 ∥ ∇ f ( x ~ t ) − ∇ f ( x t ) ∥ 2 ≤ − 1 2 ∥ ∇ f ( x t ) ∥ 2 + L 2 η 2 β 2 2 ( 1 − β ) 2 ∥ m t − 1 ∥ 2 . (80) \begin{aligned}
-\langle\nabla f(\tilde{x}_t),\nabla f(x_t)\rangle
&\le-\frac{1}{2}\lVert\nabla f(x_t)\rVert^2+\frac{1}{2}\lVert\nabla f(\tilde{x}_t)-\nabla f(x_t)\rVert^2\\
&\le-\frac{1}{2}\lVert\nabla f(x_t)\rVert^2+\frac{L^2\eta^2\beta^2}{2(1-\beta)^2}\lVert m_{t-1}\rVert^2. \tag*{(80)}
\end{aligned} − ⟨ ∇ f ( x ~ t ) , ∇ f ( x t )⟩ ≤ − 2 1 ∥ ∇ f ( x t ) ∥ 2 + 2 1 ∥ ∇ f ( x ~ t ) − ∇ f ( x t ) ∥ 2 ≤ − 2 1 ∥ ∇ f ( x t ) ∥ 2 + 2 ( 1 − β ) 2 L 2 η 2 β 2 ∥ m t − 1 ∥ 2 . (80)
Applying the previous steps to equation 79, we arrive at
E t [ f ( x ~ t + 1 ) ] ≤ f ( x ~ t ) − ( η 2 − L η 2 2 ) ∥ ∇ f ( x t ) ∥ 2 + L 2 η 3 β 2 2 ( 1 − β ) 2 ∥ m t − 1 ∥ 2 + L η 2 2 E t ∥ e t ∥ 2 . (81) \mathbb{E}_t[f(\tilde{x}_{t+1})]\le f(\tilde{x}_t)-\left(\frac{\eta}{2}-\frac{L\eta^2}{2}\right)\lVert\nabla f(x_t)\rVert^2+\frac{L^2\eta^3\beta^2}{2(1-\beta)^2}\lVert m_{t-1}\rVert^2+\frac{L\eta^2}{2}\mathbb{E}_t\lVert e_t\rVert^2. \tag*{(81)} E t [ f ( x ~ t + 1 )] ≤ f ( x ~ t ) − ( 2 η − 2 L η 2 ) ∥ ∇ f ( x t ) ∥ 2 + 2 ( 1 − β ) 2 L 2 η 3 β 2 ∥ m t − 1 ∥ 2 + 2 L η 2 E t ∥ e t ∥ 2 . (81)
Step 2: Telescoping to obtain the stationarity criterion. We first control the additional momentum term in equation 81. Conditional unbiasedness and convexity of the squared norm imply
E t ∥ m t ∥ 2 = ∥ β m t − 1 + ( 1 − β ) ∇ f ( x t ) ∥ 2 + ( 1 − β ) 2 E t ∥ e t ∥ 2 ≤ β ∥ m t − 1 ∥ 2 + ( 1 − β ) ∥ ∇ f ( x t ) ∥ 2 + ( 1 − β ) 2 E t ∥ e t ∥ 2 . (82) \begin{aligned}
\mathbb{E}_t\lVert m_t\rVert^2
&=\lVert\beta m_{t-1}+(1-\beta)\nabla f(x_t)\rVert^2+(1-\beta)^2\mathbb{E}_t\lVert e_t\rVert^2\\
&\le\beta\lVert m_{t-1}\rVert^2+(1-\beta)\lVert\nabla f(x_t)\rVert^2+(1-\beta)^2\mathbb{E}_t\lVert e_t\rVert^2. \tag*{(82)}
\end{aligned} E t ∥ m t ∥ 2 = ∥ β m t − 1 + ( 1 − β ) ∇ f ( x t ) ∥ 2 + ( 1 − β ) 2 E t ∥ e t ∥ 2 ≤ β ∥ m t − 1 ∥ 2 + ( 1 − β ) ∥ ∇ f ( x t ) ∥ 2 + ( 1 − β ) 2 E t ∥ e t ∥ 2 . (82)
Take expectations and sum over t = 0 , … , T − 2 t=0,\ldots,T-2 t = 0 , … , T − 2 . The left side is ∑ t = 0 T − 1 E ∥ m t − 1 ∥ 2 \sum_{t=0}^{T-1}\mathbb{E}\lVert m_{t-1}\rVert^2 ∑ t = 0 T − 1 E ∥ m t − 1 ∥ 2 , since m − 1 = 0 m_{-1}=0 m − 1 = 0 ; the momentum sum on the right is at most this same sum multiplied by β \beta β . Moving it to the left, dividing by 1 − β 1-\beta 1 − β , and enlarging the remaining sums gives
∑ t = 0 T − 1 E ∥ m t − 1 ∥ 2 ≤ ∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 + ( 1 − β ) ∑ t = 0 T − 1 E ∥ e t ∥ 2 . (83) \sum_{t=0}^{T-1}\mathbb{E}\lVert m_{t-1}\rVert^2\le\sum_{t=0}^{T-1}\mathbb{E}\lVert\nabla f(x_t)\rVert^2+(1-\beta)\sum_{t=0}^{T-1}\mathbb{E}\lVert e_t\rVert^2. \tag*{(83)} t = 0 ∑ T − 1 E ∥ m t − 1 ∥ 2 ≤ t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 + ( 1 − β ) t = 0 ∑ T − 1 E ∥ e t ∥ 2 . (83)
For T = 1 T=1 T = 1 , the same inequality holds because the left side is zero. Next, we take total expectations in equation 81, sum over t = 0 , … , T − 1 t=0,\ldots,T-1 t = 0 , … , T − 1 , and use f ( x ~ T ) ≥ f inf f(\tilde{x}_T)\ge f^{\inf} f ( x ~ T ) ≥ f i n f with x ~ 0 = x 0 \tilde{x}_0=x_0 x ~ 0 = x 0 . Substituting equation 83 gives
( η 2 − L η 2 2 − A ) ∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ Δ + ( A ( 1 − β ) + L η 2 2 ) ∑ t = 0 T − 1 E ∥ e t ∥ 2 , (84) \left(\frac{\eta}{2}-\frac{L\eta^2}{2}-A\right)\sum_{t=0}^{T-1}\mathbb{E}\lVert\nabla f(x_t)\rVert^2\le\Delta+\left(A(1-\beta)+\frac{L\eta^2}{2}\right)\sum_{t=0}^{T-1}\mathbb{E}\lVert e_t\rVert^2, \tag*{(84)} ( 2 η − 2 L η 2 − A ) t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ Δ + ( A ( 1 − β ) + 2 L η 2 ) t = 0 ∑ T − 1 E ∥ e t ∥ 2 , (84)
where we have denoted A : = L 2 η 3 β 2 2 ( 1 − β ) 2 A:=\frac{L^2\eta^3\beta^2}{2(1-\beta)^2} A := 2 ( 1 − β ) 2 L 2 η 3 β 2 for convenience. Applying the restriction on the step size η ≤ ( 1 − β ) 2 / ( 2 L ) \eta\le(1-\beta)^2/(2L) η ≤ ( 1 − β ) 2 / ( 2 L ) , we get
L η 2 2 ≤ η 4 , A ≤ η β 2 ( 1 − β ) 2 8 ≤ η 8 , \frac{L\eta^2}{2}\le\frac{\eta}{4},\qquad A\le\frac{\eta\beta^2(1-\beta)^2}{8}\le\frac{\eta}{8}, 2 L η 2 ≤ 4 η , A ≤ 8 η β 2 ( 1 − β ) 2 ≤ 8 η ,
A ( 1 − β ) = L 2 η 3 β 2 2 ( 1 − β ) ≤ L η 2 β 2 2 η β 2 1 − β ≤ L η 2 2 . A(1-\beta)=\frac{L^2\eta^3\beta^2}{2(1-\beta)}\le\frac{L\eta^2\beta^2}{2}\frac{\eta\beta^2}{1-\beta}\le\frac{L\eta^2}{2}. A ( 1 − β ) = 2 ( 1 − β ) L 2 η 3 β 2 ≤ 2 L η 2 β 2 1 − β η β 2 ≤ 2 L η 2 .
Thus the coefficient on the left of equation 84 is at least η / 8 \eta/8 η /8 , whereas the coefficient of the error sum is at most L η 2 L\eta^2 L η 2 . Dividing and using equation 77 yields
∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ 8 Δ η + 8 L η T σ 2 c β . (85) \sum_{t=0}^{T-1}\mathbb{E}\lVert\nabla f(x_t)\rVert^2\le\frac{8\Delta}{\eta}+\frac{8L\eta T\sigma^2}{c_\beta}. \tag*{(85)} t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ η 8Δ + c β 8 L η T σ 2 . (85)
Finally, dividing by T T T and substituting equation (73)
1 T ∑ t = 0 T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ 8 Δ η T + 8 L η σ 2 c β ≤ ϵ 2 2 + ϵ 2 2 = ϵ 2 , \frac{1}{T}\sum_{t=0}^{T-1}\mathbb{E}\left\|\nabla f(x_t)\right\|^2 \le\frac{8\Delta}{\eta T}+\frac{8L\eta\sigma^2}{c_\beta}\le\frac{\epsilon^2}{2}+\frac{\epsilon^2}{2}=\epsilon^2, T 1 t = 0 ∑ T − 1 E ∥ ∇ f ( x t ) ∥ 2 ≤ η T 8Δ + c β 8 L η σ 2 ≤ 2 ϵ 2 + 2 ϵ 2 = ϵ 2 ,
which proves equation (75) .
Step 3: SFO computation. For 1 ≤ t ≤ T 1\le t\le T 1 ≤ t ≤ T , unrolling the momentum recursion and then summing the iterate updates gives
m j = ( 1 − β ) ∑ i = 0 j β j − i g i , m_j=(1-\beta)\sum_{i=0}^{j}\beta^{j-i}g_i, m j = ( 1 − β ) i = 0 ∑ j β j − i g i ,
x t − x 0 = − η ( 1 − β ) ∑ j = 0 t − 1 ∑ i = 0 j β j − i g i = − η ∑ i = 0 t − 1 ( 1 − β t − i ) g i . (86) x_t-x_0=-\eta(1-\beta)\sum_{j=0}^{t-1}\sum_{i=0}^{j}\beta^{j-i}g_i=-\eta\sum_{i=0}^{t-1}(1-\beta^{t-i})g_i. \tag*{(86)} x t − x 0 = − η ( 1 − β ) j = 0 ∑ t − 1 i = 0 ∑ j β j − i g i = − η i = 0 ∑ t − 1 ( 1 − β t − i ) g i . (86)
For fixed t t t , denote w t , i = 1 − β t − i ∈ [ 0 , 1 ] w_{t,i}=1-\beta^{t-i}\in[0,1] w t , i = 1 − β t − i ∈ [ 0 , 1 ] , which are deterministic constants. Hence, splitting g i = ∇ f ( x i ) + e i g_i=\nabla f(x_i)+e_i g i = ∇ f ( x i ) + e i gives
E ∥ x t − x 0 ∥ 2 ≤ 2 η 2 E ∥ ∑ i = 0 t − 1 w t , i ∇ f ( x i ) ∥ 2 + 2 η 2 E ∥ ∑ i = 0 t − 1 w t , i e i ∥ 2 . (87) \mathbb{E}\left\|x_t-x_0\right\|^2\le2\eta^2\mathbb{E}\left\|\sum_{i=0}^{t-1}w_{t,i}\nabla f(x_i)\right\|^2+2\eta^2\mathbb{E}\left\|\sum_{i=0}^{t-1}w_{t,i}e_i\right\|^2. \tag*{(87)} E ∥ x t − x 0 ∥ 2 ≤ 2 η 2 E i = 0 ∑ t − 1 w t , i ∇ f ( x i ) 2 + 2 η 2 E i = 0 ∑ t − 1 w t , i e i 2 . (87)
Cauchy–Schwarz bounds the first term inside its expectation by
E ∥ ∑ i = 0 t − 1 w t , i ∇ f ( x i ) ∥ 2 ≤ t ∑ i = 0 t − 1 E ∥ ∇ f ( x i ) ∥ 2 ≤ T ∑ i = 0 T − 1 E ∥ ∇ f ( x i ) ∥ 2 . \mathbb{E}\left\|\sum_{i=0}^{t-1}w_{t,i}\nabla f(x_i)\right\|^2\le t\sum_{i=0}^{t-1}\mathbb{E}\left\|\nabla f(x_i)\right\|^2\le T\sum_{i=0}^{T-1}\mathbb{E}\left\|\nabla f(x_i)\right\|^2. E i = 0 ∑ t − 1 w t , i ∇ f ( x i ) 2 ≤ t i = 0 ∑ t − 1 E ∥ ∇ f ( x i ) ∥ 2 ≤ T i = 0 ∑ T − 1 E ∥ ∇ f ( x i ) ∥ 2 .
For i < j i<j i < j , e i e_i e i is F j \mathcal{F}_j F j -measurable and
E ⟨ e i , e j ⟩ = E [ ⟨ e i , E [ e j ∣ F j ] ⟩ ] = 0. \mathbb{E}\langle e_i,e_j\rangle=\mathbb{E}\left[\langle e_i,\mathbb{E}[e_j\mid\mathcal{F}_j]\rangle\right]=0. E ⟨ e i , e j ⟩ = E [ ⟨ e i , E [ e j ∣ F j ]⟩ ] = 0.
The deterministic weights therefore preserve martingale orthogonality, and equation (77) gives
E ∥ ∑ i = 0 t − 1 w t , i e i ∥ 2 = ∑ i = 0 t − 1 w t , i 2 E ∥ e i ∥ 2 ≤ T σ 2 c β . \mathbb{E}\left\|\sum_{i=0}^{t-1}w_{t,i}e_i\right\|^2=\sum_{i=0}^{t-1}w_{t,i}^2\mathbb{E}\left\|e_i\right\|^2\le\frac{T\sigma^2}{c_\beta}. E i = 0 ∑ t − 1 w t , i e i 2 = i = 0 ∑ t − 1 w t , i 2 E ∥ e i ∥ 2 ≤ c β T σ 2 .
Substituting these bounds and equation (85) into equation (87) yields
E ∥ x t − x 0 ∥ 2 ≤ 2 η 2 T ( 8 Δ η + 8 L η T σ 2 c β ) + 2 η 2 T σ 2 c β = 16 η T Δ + 16 L η 3 T 2 σ 2 c β + 2 η 2 T σ 2 c β = : D T . (88) \begin{aligned}
\mathbb{E}\left\|x_t-x_0\right\|^2\le2\eta^2T\left(\frac{8\Delta}{\eta}+\frac{8L\eta T\sigma^2}{c_\beta}\right)+\frac{2\eta^2T\sigma^2}{c_\beta} \\
&=16\eta T\Delta+\frac{16L\eta^3T^2\sigma^2}{c_\beta}+\frac{2\eta^2T\sigma^2}{c_\beta}=:D_T. \tag*{(88)}
\end{aligned} E ∥ x t − x 0 ∥ 2 ≤ 2 η 2 T ( η 8Δ + c β 8 L η T σ 2 ) + c β 2 η 2 T σ 2 = 16 η T Δ + c β 16 L η 3 T 2 σ 2 + c β 2 η 2 T σ 2 =: D T . (88)
The same bound holds at t = 0 t=0 t = 0 because the displacement is zero.
Step 4: a power growth. For 0 ≤ a ≤ 2 0\le a\le2 0 ≤ a ≤ 2 , the map u ↦ u a / 2 u\mapsto u^{a/2} u ↦ u a /2 is concave on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) . Hence, Jensen’s inequality and equation (88) imply
E ∥ x t − x 0 ∥ a = E [ ( ∥ x t − x 0 ∥ 2 ) a / 2 ] ≤ ( E ∥ x t − x 0 ∥ 2 ) a / 2 ≤ D T a / 2 . (89) \mathbb{E}\left\|x_t-x_0\right\|^a=\mathbb{E}\left[\left(\left\|x_t-x_0\right\|^2\right)^{a/2}\right]\le\left(\mathbb{E}\left\|x_t-x_0\right\|^2\right)^{a/2}\le D_T^{a/2}. \tag*{(89)} E ∥ x t − x 0 ∥ a = E [ ( ∥ x t − x 0 ∥ 2 ) a /2 ] ≤ ( E ∥ x t − x 0 ∥ 2 ) a /2 ≤ D T a /2 . (89)
Using max { 1 , ∣ u ∣ } ≤ 1 + u \max\{1,|u|\}\le1+u max { 1 , ∣ u ∣ } ≤ 1 + u for u ≥ 0 u\ge0 u ≥ 0 , summing the batch sizes, and taking total expectation gives
E [ ∑ t = 0 T − 1 b t ] ≤ ∑ t = 0 T − 1 [ 1 + c β G 2 σ 2 + c β B 2 σ 2 E ∥ x t − x 0 ∥ a ] ≤ T ( 1 + c β G 2 σ 2 + c β B 2 σ 2 D T a / 2 ) . (90) \begin{aligned}
\mathbb{E}\left[\sum_{t=0}^{T-1}b_t\right]\le\sum_{t=0}^{T-1}\left[1+\frac{c_\beta G^2}{\sigma^2}+\frac{c_\beta B^2}{\sigma^2}\mathbb{E}\left\|x_t-x_0\right\|^a\right] \\
&\le T\left(1+\frac{c_\beta G^2}{\sigma^2}+\frac{c_\beta B^2}{\sigma^2}D_T^{a/2}\right). \tag*{(90)}
\end{aligned} E [ t = 0 ∑ T − 1 b t ] ≤ t = 0 ∑ T − 1 [ 1 + σ 2 c β G 2 + σ 2 c β B 2 E ∥ x t − x 0 ∥ a ] ≤ T ( 1 + σ 2 c β G 2 + σ 2 c β B 2 D T a /2 ) . (90)
Step 5: Substituting the explicit constants. The restriction ϵ 2 ≤ min { 8 σ 2 ( 1 − β 2 ) , L Δ } \epsilon^2\le\min\{8\sigma^2(1-\beta^2),L\Delta\} ϵ 2 ≤ min { 8 σ 2 ( 1 − β 2 ) , L Δ } that we set gives
c β ϵ 2 16 L σ 2 ≤ c β ( 1 − β 2 ) 2 L = ( 1 − β ) 2 2 L . \frac{c_\beta\epsilon^2}{16L\sigma^2}\le\frac{c_\beta(1-\beta^2)}{2L}=\frac{(1-\beta)^2}{2L}. 16 L σ 2 c β ϵ 2 ≤ 2 L c β ( 1 − β 2 ) = 2 L ( 1 − β ) 2 .
Hence η ≤ ( 1 − β ) 2 / ( 2 L ) \eta\le(1-\beta)^2/(2L) η ≤ ( 1 − β ) 2 / ( 2 L ) as
η = c β ϵ 2 16 L σ 2 , 16 Δ η ϵ 2 = 256 L σ 2 Δ c β ϵ 4 . \eta= \frac{c_\beta\epsilon^2}{16L\sigma^2}, \qquad\frac{16\Delta}{\eta\epsilon^2} = \frac{256L\sigma^2\Delta}{c_\beta\epsilon^4}. η = 16 L σ 2 c β ϵ 2 , η ϵ 2 16Δ = c β ϵ 4 256 L σ 2 Δ .
Since η ≤ 1 / ( 2 L ) \eta\le1/(2L) η ≤ 1/ ( 2 L ) and ϵ 2 ≤ L Δ \epsilon^2 \le L\Delta ϵ 2 ≤ L Δ , the expression inside the ceiling for T T T is at least 32, and hence at least 4. Applying ⌈ u ⌉ ≤ ( 5 / 4 ) u \lceil u\rceil\le(5/4)u ⌈ u ⌉ ≤ ( 5/4 ) u for u ≥ 4 u \ge4 u ≥ 4 yields
T ≤ 320 L σ 2 Δ c β ϵ 4 , η T ≤ 20 Δ ϵ 2 . (91) T \le\frac{320L\sigma^2\Delta}{c_\beta\epsilon^4}, \qquad\eta T \le\frac{20\Delta}{\epsilon^2}. \tag*{(91)} T ≤ c β ϵ 4 320 L σ 2 Δ , η T ≤ ϵ 2 20Δ . (91)
Next, we bound the three terms of D T D_T D T separately
16 η T Δ ≤ 320 Δ 2 ϵ 2 , (92) 16\eta T\Delta\le\frac{320\Delta^2}{\epsilon^2}, \tag*{(92)} 16 η T Δ ≤ ϵ 2 320 Δ 2 , (92)
16 L η 3 T 2 σ 2 c β = 16 L η σ 2 c β ( η T ) 2 ≤ ϵ 2 400 Δ 2 ϵ 4 = 400 Δ 2 ϵ 2 , (93) \frac{16L\eta^3T^2\sigma^2}{c_\beta} = \frac{16L\eta\sigma^2}{c_\beta}(\eta T)^2 \le\epsilon^2\frac{400\Delta^2}{\epsilon^4} = \frac{400\Delta^2}{\epsilon^2}, \tag*{(93)} c β 16 L η 3 T 2 σ 2 = c β 16 L η σ 2 ( η T ) 2 ≤ ϵ 2 ϵ 4 400 Δ 2 = ϵ 2 400 Δ 2 , (93)
2 η 2 T σ 2 c β = 2 η σ 2 c β ( η T ) ≤ ϵ 2 8 L 20 Δ ϵ 2 = 5 Δ 2 L ≤ 5 Δ 2 2 ϵ 2 . (94) \frac{2\eta^2T\sigma^2}{c_\beta} = \frac{2\eta\sigma^2}{c_\beta}(\eta T) \le\frac{\epsilon^2}{8L}\frac{20\Delta}{\epsilon^2} = \frac{5\Delta}{2L} \le\frac{5\Delta^2}{2\epsilon^2}. \tag*{(94)} c β 2 η 2 T σ 2 = c β 2 η σ 2 ( η T ) ≤ 8 L ϵ 2 ϵ 2 20Δ = 2 L 5Δ ≤ 2 ϵ 2 5 Δ 2 . (94)
The last inequality uses ϵ 2 ≤ L Δ \epsilon^2 \le L\Delta ϵ 2 ≤ L Δ . Therefore,
D T ≤ 725 Δ 2 ϵ 2 . (95) D_T \le\frac{725\Delta^2}{\epsilon^2}. \tag*{(95)} D T ≤ ϵ 2 725 Δ 2 . (95)
Combining equation (91) , equation (95) , and equation (90) yields
E [ S F O ] ≤ 320 L σ 2 Δ c β ϵ 4 [ 1 + c β G 2 σ 2 + c β B 2 σ 2 ( 725 Δ 2 ϵ 2 ) a / 2 ] = 320 L Δ [ ( σ 2 c β + G 2 ) ϵ − 4 + 725 a / 2 B 2 Δ a ϵ − ( 4 + a ) ] . \begin{aligned}
\mathbb{E}[\mathrm{SFO}] \le\frac{320L\sigma^2\Delta}{c_\beta\epsilon^4}\left[1+\frac{c_\beta G^2}{\sigma^2}+\frac{c_\beta B^2}{\sigma^2}\left(\frac{725\Delta^2}{\epsilon^2}\right)^{a/2}\right] \\
&= 320L\Delta\left[\left(\frac{\sigma^2}{c_\beta}+G^2\right)\epsilon^{-4}+725^{a/2}B^2\Delta^a\epsilon^{-(4+a)}\right].
\end{aligned} E [ SFO ] ≤ c β ϵ 4 320 L σ 2 Δ [ 1 + σ 2 c β G 2 + σ 2 c β B 2 ( ϵ 2 725 Δ 2 ) a /2 ] = 320 L Δ [ ( c β σ 2 + G 2 ) ϵ − 4 + 72 5 a /2 B 2 Δ a ϵ − ( 4 + a ) ] .
This proves equation (76) and completes the proof.
Interpretation of equation 76. For fixed β \beta β and σ 2 \sigma^2 σ 2 , the dependence on the distance exponent is
Table 9.
When β = 0 \beta=0 β = 0 , we get c β = 1 c_\beta=1 c β = 1 and m t = g t m_t=g_t m t = g t , so the update and batch rule reduce to SGD. When a = 2 a=2 a = 2 , we achieve the O ( ϵ − 6 ) O(\epsilon^{-6}) O ( ϵ − 6 ) rate from Fazla et al. [9 ] . When B = 0 B=0 B = 0 , the batch size is constant and the bound reduces to the classical O ( ϵ − 4 ) O(\epsilon^{-4}) O ( ϵ − 4 ) rate.
Momentum as a batch size and iteration tradeoff. The momentum coefficient β \beta β acts as a hyperparameter controlling the allocation of oracle calls between the batch size and the number of iterations T T T . Since c β = ( 1 − β ) / ( 1 + β ) c_\beta=(1-\beta)/(1+\beta) c β = ( 1 − β ) / ( 1 + β ) decreases as β \beta β increases, the batch rule in equation (73) prescribes a smaller batch at the same query point. This is observed in the proof, as the momentum filter reduces the noise second moment by the factor c β c_\beta c β , allowing the minibatch estimator to have variance at most σ 2 / c β \sigma^2/c_\beta σ 2 / c β while its filtered noise component has second moment at most σ 2 \sigma^2 σ 2 .
Under the theorem’s accuracy restriction, the learning rate and iteration budget satisfy
η = c β ϵ 2 16 L σ 2 , T = ⌈ 256 L σ 2 Δ c β ϵ 4 ⌉ . \eta=\frac{c_\beta\epsilon^2}{16L\sigma^2}, \qquad T=\left\lceil\frac{256L\sigma^2\Delta}{c_\beta\epsilon^4}\right\rceil. η = 16 L σ 2 c β ϵ 2 , T = ⌈ c β ϵ 4 256 L σ 2 Δ ⌉ .
Thus a larger β \beta β permits smaller prescribed batches but requires a smaller learning rate and more iterations. Relative to β = 0 \beta=0 β = 0 within this SGDM parameterization, the unrounded batch target is multiplied by c β c_\beta c β , whereas the expression inside the ceiling for T T T is multiplied by 1 / c β 1/c_\beta 1/ c β . batch comparison is at a common query point, since different momentum choices generally produce different trajectories. In equation (76) , these factors cancel in the B 2 B^2 B 2 and G 2 G^2 G 2 terms, while the minimum cost of one sample per iteration retains the factor 1 / c β 1/c_\beta 1/ c β . Hence β \beta β controls a batch size/iteration tradeoff while preserving the ϵ \epsilon ϵ exponent for fixed β \beta β and the bound does not provide a reduction in total SFO cost as momentum increases. Note that the accuracy restriction must also hold for the chosen β \beta β , and the expected SFO statement is restricted to 0 ≤ a ≤ 2 0 \le a \le2 0 ≤ a ≤ 2 .
Additional Experiments
LLM Experiments
We present the downstream accuracy scores on HellaSwag and CommonsenseQA for the three OLMo2 models (100M, 600M, 1B) in Table 2 . Each model is trained with 20 tokens per parameter, corresponding to 2B, 12B, and 20B training tokens, respectively. We observe that BG-a a a attains the highest mean accuracy on both benchmarks, with the clearest gains over small batch training at the larger model sizes, suggesting that the improvement in validation loss carries over to downstream tasks.
Vision Experiments
Here, we provide our experiments on image classification with the ResNet50 architecture on CIFAR-10, CIFAR-100 and ImageNet-1K. We first repeat the noise growth study of § 2 for these models, and then evaluate our adaptive batch size scheduler. Unlike LLM pretraining, these models are trained for multiple epochs over a fixed dataset, which allows us to examine how the optimization benefits of adaptive batching translate to train and test performances in the offline setting.
Gradient Noise Growth in Image Classification
We repeat the noise growth study of § 2 for ResNet50 on CIFAR-10, CIFAR-100, and ImageNet-1K. Unlike the language models, we set D = I D = I D = I for the vision models, so the perturbation direction u u u is uniformly distributed on the unit sphere. As in the language model study, we consider 50 logarithmically spaced radii and sample 10 independent directions at each radius. For CIFAR-10 and CIFAR-100, the reference batch contains 5000 images, and the estimate uses M = 16 M = 16 M = 16 stochastic batches, each containing b = 128 b = 128 b = 128 images. For ImageNet-1K, we use 1024 reference images and M = 32 M = 32 M = 32 stochastic batches of b = 16 b = 16 b = 16 images.
Figure 4 shows the variance measurements together with the fitted BG-a a a curves. The fitted exponents are approximately a = 1.25 a = 1.25 a = 1.25 for CIFAR-10, a = 1.19 a = 1.19 a = 1.19 for CIFAR-100, and a = 0.96 a = 0.96 a = 0.96 for ImageNet-1K. Similar to the language models, the variance grows subquadratically with the distance from initialization, and the BG-a a a model captures both the initial noise floor (G 2 G^2 G 2 term) and the distance-dependent growth (from B 2 B^2 B 2 term).
Figure 4. Empirical stochastic-gradient noise of ResNet50 as a function of displacement from initialization. For each radius r r r , we evaluate x = x 0 + r u x = x_0 + ru x = x 0 + r u along ten independently sampled, isotropic Gaussian directions and plot the corresponding minibatch variance estimates. The dashed red curve in each panel is the fitted BG-a a a model, ( B 2 ∥ x − x 0 ∥ a + G 2 ) (B^2 \lVert x - x_0\rVert^a + G^2) ( B 2 ∥ x − x 0 ∥ a + G 2 ) . The fitted parameters are: (a) CIFAR-10: B = 24.9 B = 24.9 B = 24.9 , G = 305 G = 305 G = 305 , a = 1.25 a = 1.25 a = 1.25 ; (b) CIFAR-100: B = 29 B = 29 B = 29 , G = 337 G = 337 G = 337 , a = 1.19 a = 1.19 a = 1.19 ; and (c) ImageNet-1K: B = 7.01 B = 7.01 B = 7.01 , G = 56.3 G = 56.3 G = 56.3 , a = 0.96 a = 0.96 a = 0.96 .
Experimental Results
We compare our adaptive batch size scheduler, denoted as BG-a a a , against a small and a large fixed batch baseline under the same number of training epochs. All runs use SGD with momentum, and the remaining training details are provided in Appendix § 12 . Figure 5 , Figure 6 and Figure 7 show the training loss curves, with the batch sizes selected by BG-a a a shown in the insets, together with the modeled variance ratio. We report the final training and test losses in Table 3 .
Figure 5. Results for ResNet50 trained on CIFAR-10. (a) Training loss for fixed batches b = 64 b = 64 b = 64 , b = 512 b = 512 b = 512 , and BG-a a a , with batch size across iterations shown in the inset. (b) Modeled variance ratio for BG-a a a , with parameters a = 1.25 a = 1.25 a = 1.25 , B = 24.9 B = 24.9 B = 24.9 , G = 305 G = 305 G = 305
Figure 6. Results for ResNet50 trained on CIFAR-100. (a) Training loss for fixed batches b = 64 b = 64 b = 64 , b = 512 b = 512 b = 512 , and BG-a a a , with batch size across iterations shown in the inset. (b) Modeled variance ratio for BG-a a a , with parameters a = 1.19 a = 1.19 a = 1.19 , B = 29 B = 29 B = 29 , G = 337 G = 337 G = 337
Table 3. Training and test performance of the ResNet50 model trained on CIFAR-10, CIFAR-100 and ImageNet-1K. Entries are loss, reported as mean± \pm ± std across 3 seeds. Iterations are averaged across seeds and given as total iterations and percentage relative to the small-batch baseline within each dataset.
Figure 7. Results for ResNet50 trained on ImageNet-1K. (a) Training loss for fixed batches b = 128 b = 128 b = 128 , b = 1024 b = 1024 b = 1024 , and BG-a a a , with batch size across iterations shown in the inset. (b) Modeled variance ratio for BG-a a a , with parameters a = 0.96 a = 0.96 a = 0.96 , B = 7.01 B = 7.01 B = 7.01 , G = 56.3 G = 56.3 G = 56.3
Across all three datasets, BG-a a a achieves a lower training loss than small batch training, while using only 14–16% of its iterations. Compared to large batch training, BG-a a a attains a lower training loss on CIFAR-10 and a slightly higher training loss on CIFAR-100 and ImageNet-1K, with a similar number of iterations. The improvement over small batch training is in line with our theoretical analysis: BG-a a a controls the variance growth as the iterates move away from initialization, whereas small batch training does not and attains the highest training loss in all three settings.
However, unlike in LLM pretraining, where each batch consists of previously unseen tokens and the validation loss directly reflects the optimized objective, a lower training loss does not directly translate into a lower test loss in image classification. On CIFAR-10 and CIFAR-100, small batch training attains the lowest test loss despite having the highest training loss, while BG-a a a improves upon large batch training in test loss on both datasets. This contrast is consistent with the distinction between offline and online learning discussed in Appendix § 7 . In multi-epoch training on small datasets such as CIFAR, the models nearly interpolate the training data, with training losses of order 10 − 4 10^{-4} 1 0 − 4 and 10 − 3 10^{-3} 1 0 − 3 , and the implicit regularization effect of small batches becomes the dominant factor for generalization (Keskar et al., 2017). In contrast, Vyas et al. (2024) show that this implicit bias advantage disappears in the online setting, where each sample is seen at most once and the benefit of small batches becomes purely computational. LLM pretraining falls into this online regime, where improving the training objective directly improves the validation loss, as observed in § 5 . ImageNet-1K lies between these two cases: its larger dataset closes the gap between training and test losses, small, and the ordering of test losses closely follows the ordering of training losses. We also note that, analysis of stochastic nonconvex optimization often assumes that each iteration draws fresh and independent samples, which holds in online learning (e.g., LLM pretraining) but not in multi-epoch training, where every sample is revisited after the first epoch, i.e., after only 0.5% of training on CIFAR and 1.1% on ImageNet-1K. The stochastic gradients are then no longer independent draws from the data distribution, and the noise model estimated at initialization need not describe the noise encountered later in training.
Experimental Details
Models and computational resources. For all vision experiments, we use the ResNet50 architecture (He et al., 2016). For ImageNet-1K (Deng et al., [8 ] ), we use the standard PyTorch implementation without architectural modifications. For CIFAR-10 and CIFAR-100 (Krizhevsky, 2009), we replace the initial 7 × 7 7 \times7 7 × 7 convolution with a 3 × 3 3 \times3 3 × 3 convolution to accommodate for their 32 × 32 32 \times32 32 × 32 image sizes. For language model pretraining, we use the OLMo2 family and the OLMo-core repository (Team OLMo et al., 2024) at commit 92870a3. Model architectures are reported in
Table 7 . Main vision experiments use four NVIDIA A100 GPUs, while main language modeling experiments use four NVIDIA H100 GPUs. We use distributed data parallelism (DDP) for all vision models and for OLMo2-100M and OLMo2-600M, and fully sharded data parallelism (FSDP) for OLMo2-1B.
Table 7. Architectural details of the OLMo2 models used in our experiments. All models use a decoder-only Transformer architecture with SwiGLU feed-forward layers, RMSNorm, QK-normalized attention, and rotary positional embeddings.
Vision training. We train ResNet50 for 200 epochs on CIFAR-10 and CIFAR-100 and for 90 epochs on ImageNet-1K, using standard data augmentation with random resized cropping. All runs use SGD with momentum 0.9 (SGDM) and weight decay 10 − 4 10^{-4} 1 0 − 4 . We select the base learning rate through a grid search at the small fixed batch size and scale it linearly for larger fixed batch sizes. The learning rate follows a linear warmup over the first five epochs, followed by cosine decay to zero. Table 4 reports the configurations and mean training times.
Table 4. Vision training configurations and mean wall-clock times, using four NVIDIA A100 GPUs. For BG-a a a , the batch size and base learning rate refer to the initial batch size and its associated base learning rate. (*) means that the given values are the initial starting values.
Language model pretraining. We pretrain OLMo2-100M, OLMo2-600M, and OLMo2-1B on C4 using Chinchilla optimal (Hoffmann et al., 2022) training budgets of approximately 20 tokens per parameter, corresponding to 2B, 12B, and 20B tokens, respectively. All runs use Adam with decoupled weight decay (AdamW), with β 1 = 0.9 \beta_1 = 0.9 β 1 = 0.9 , β 2 = 0.95 \beta_2 = 0.95 β 2 = 0.95 , and weight decay 0.1, following the repository defaults. We set the sequence length to 2048. We select the base learning rate through a grid search at the small fixed batch size and apply square root scaling for larger fixed batch sizes. The learning rate increases linearly to its base value over the first 5% of training and subsequently follows a cosine schedule to 10% of that value. Table 5 reports the learning rates used, including the initial base learning rates for BG-a a a .
Selection of the initial batch size and learning rate. For each setting, we tune the base learning rate through a grid search over { 0.005 , 0.01 , 0.025 , 0.05 , 0.1 } \{0.005, 0.01, 0.025, 0.05, 0.1\} { 0.005 , 0.01 , 0.025 , 0.05 , 0.1 } for vision models and { 0.0001 , 0.0005 , 0.001 , 0.0025 , 0.004 , 0.005 } \{0.0001, 0.0005, 0.001, 0.0025, 0.004, 0.005\} { 0.0001 , 0.0005 , 0.001 , 0.0025 , 0.004 , 0.005 } for language models, for each candidate small batch size in { 32 , 64 , 128 } \{32, 64, 128\} { 32 , 64 , 128 } for vision models and { 16 , 32 , 64 } \{16, 32, 64\} { 16 , 32 , 64 } for language models. We select the smallest batch size that trains stably and attains a competitive final loss. The selected batch size and its tuned learning rate are used both by the small batch baseline and as the initial batch size b 0 b_0 b 0 and base learning rate of BG-a a a . The large batch baseline uses the same base learning rate, scaled linearly for SGDM and with the square root rule for AdamW, without additional tuning. The resulting values are reported in Table 4 and Table 5 .
Adaptive batching and learning rate scaling. BG-a a a uses the noise parameters estimated by the procedure in § 2 , with fitted values reported in Figure 1 . Following Algorithm 1, the scheduler selects b t = k t b 0 b_t = k_t b_0 b t = k t b 0 , where k t k_t k t is the power-of-two multiplier defined in equation (12) . The warmup and cosine schedule defines η t \eta_t η t at the initial batch size b 0 b_0 b 0 . At each iteration, we apply the batch dependent adjustment in equation (13) , hence, the effective learning rate is k t η t k_t\eta_t k t η t for the vision experiments that utilize SGDM and k t η t \sqrt{k_t}\eta_t k t η t for language model pretraining which utilize AdamW. Thus, the learning rate schedule and the batch dependent scaling are applied jointly throughout training.
BG-a a a noise growth ablations. We perform the ablation studies using the same repositories as their corresponding training experiments. As described in § 2 , these studies evaluate stochastic gradient variance at randomly perturbed parameter states without performing training. Each study uses 50 logarithmically spaced radii and 10 independently sampled directions per radius. For language models, we multiply the Gaussian coordinates corresponding to the LM head by two, leave the remaining coordinates unchanged, and then normalize the full direction to unit Euclidean norm. For vision models, we normalize the unscaled Gaussian direction. In both cases, the perturbation radius equals the total Euclidean displacement from initialization. OLMo2-600M and OLMo2-1B ablations use four NVIDIA H100 GPUs, and all other ablations use one NVIDIA H100 GPU. Table 6 reports the wall-clock cost of each study.
Table 6. Computational resources and wall-clock times for the BG-a a a noise growth ablation studies.
Discussion
Our analysis concerns the optimization of the training objective, namely finding approximate stationary points, and our experiments support this view in both language modeling and image classification. Whether an optimization improvement carries over to the test performance depends on the training regime. In LLM pretraining, each token is seen at most once, so the training and validation losses estimate the same population loss, and the implicit bias advantage of small batches disappears (Vyas et al., 2024). Accordingly, adaptive batching attains a lower validation loss than both small and large batch training. In multi-epoch image classification, adaptive batching consistently achieves a lower training loss than small batch training under matched training budgets, but the models revisit the same samples many times, and small batches may attain a lower test loss despite their higher training loss, consistent with their implicit regularization effect (Keskar et al., 2017) (Appendix § 11 .§ 2 ). Hence, our results suggest that adaptive batching is particularly well suited for the online regime, which matches the setting of modern LLM pretraining.
Our measurements in § 2 show that the growth exponent a a a increases with model size, from a = 0.98 a = 0.98 a = 0.98 for OLMo2-100M to a = 1.49 a = 1.49 a = 1.49 for OLMo2-1B. Under our analysis, a faster variance growth increases the oracle complexity and makes controlling the variance growth more important, which is consistent with small batch training falling behind both large batch training and BG-a a a for OLMo2-600M and OLMo2-1B. Studying whether this trend continues at even larger scales, and how it relates to the critical batch size (Zhang et al., 2025; Merrill et al., 2026), is an interesting direction for future work. Furthermore, Zhang et al. (2025) empirically show that CBS grows primarily with the training data size. Since we train with 20 tokens per parameter, a larger model requires larger data. Our analysis and empirical results also suggest that larger models eventually require larger batch sizes during training, which is in accordance with the results of Zhang et al. (2025).
Our scheduler follows the batch size rule of our analysis, while also incorporating common practices of large scale training. In particular, the scheduler scales the learning rate with the batch size, whereas our theorems use a fixed step size, and our language model experiments use AdamW, whereas our analysis covers SGD and SGDM. Extending the BG-a a a analysis to adaptive methods and to include learning rate schedulers is a natural next step, and would further clarify the interaction between the batch size, the learning rate, and distance-dependent noise. Similarly, we select the initial batch size empirically, since the target noise level σ 2 \sigma^2 σ 2 is not known a priori, which is also a common practice for batch size schedulers based on GNS (McCandlish et al., 2018; Naganuma et al., 2026).
Limitations. Our experiments cover OLMo2 models of up to 1B parameters trained on C4 with Chinchilla optimal budgets. Evaluating the scheduler at larger scales and on other pretraining corpora would further clarify its practical benefits. In addition, estimating the noise parameters requires a one time measurement before training, whose cost we report in Table 6 . Since this measurement does not involve training and depends only on the model and dataset, it can be reused across training runs. Finally, our upper bounds are worst-case guarantees that hold for a ≤ 2 a \le2 a ≤ 2 , which covers all the exponents we observe in practice, while extending them to a > 2 a > 2 a > 2 requires controlling higher moments of the displacement, as discussed in Appendix § 9 .