arXiv:2610.02355cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02355

Why Does Adaptive Batching Help LLM Pretraining? A Perspective from Unbounded Variance

Arda Fazla, Antesh Upadhyay, Ege C. Kaya, M. Berk Sahin, Abolfazl Hashemi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Increasing the batch size during training is a common practice in large language model (LLM) pretraining, yet the theoretical justification behind its success is not well understood. Analyses of stochastic optimization often assume uniformly bounded stochastic gradient variance, yet recent evidence suggests that this assumption fails in many practical nonconvex problems. The Blum–Gladyshev (BG-0) noise model relaxes this assumption by allowing the variance to grow quadratically with the distance from initialization, suggesting that batch size schedulers can help by controlling the variance growth during training. However, this growth can be overly conservative in practice. We empirically investigate variance growth in LLM pretraining and observe that a generalized BG model with a tunable growth exponent provides a tighter description of practical noise behavior. Motivated by this observation, we introduce the generalized BG-a noise model, which interpolates between bounded variance (a = 0) and BG-0 noise (a = 2). Under L-smoothness, we derive an information-theoretic lower bound with growth-dependent oracle complexity Ω(ϵ−(4+a))\Omega(\epsilon^{-(4+a)}) and establish a matching upper bound in ϵ\epsilon-dependence by increasing the batch size as the iterates move away from initialization. Finally, we propose an adaptive batch scheduler that controls variance growth through dynamic batch size adjustments during training. In pretraining OLMo2 models of up to 1B parameters 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.

1 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., 2020). 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 that 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-smoothness of the objective with a uniformly bounded variance assumption on the stochastic gradient oracle (Bach & Moulines, 2011; Shamir &

(a) OLMo2-100M on C4

(b) OLMo2-600M on C4

Figure

(c) OLMo2-1B on C4

Figure 1: Empirical stochastic-gradient noise of OLMo2 models on C4 as a function of displacement from initialization. For each radius rr, we evaluate x=x0+rux = x_0 + ru 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 model, (B2∥x−x0∥a+G2)(B^2 \|x - x_0\|^a + G^2). The fitted parameters are: (a) OLMo2-100M: B=0.379B = 0.379, G=5.41G = 5.41, a=0.98a = 0.98; (b) OLMo2-600M: B=0.132B = 0.132, G=8.64G = 8.64, a=1.38a = 1.38; and (c) OLMo2-1B: B=0.0916B = 0.0916, G=9.77G = 9.77, a=1.49a = 1.49. Across all three model sizes, the fitted curve captures both the initial noise floor governed by (G2)(G^2) and the distance-dependent growth governed by B2∥x−x0∥aB^2 \|x - x_0\|^a, with the fitted exponent aa increasing with model size. The corresponding results for the vision models are provided in Appendix E.2.1.

Zhang, 2013; Ghadimi & Lan, 2013). For an unbiased estimator g(x,ξ)g(x, \xi) of ∇f(x)\nabla f(x), this assumption requires Eξ∥g(x,ξ)−∇f(x)∥2≤σ2\mathbb{E}_{\xi} \| g(x, \xi) - \nabla f(x) \|^2 \leq \sigma^2 for every xx, 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 (Alacaoglu et al., 2025; Fazla et al., 2026; 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 (Blum, 1954; Gladyshev, 1965) which accommodates this behavior by allowing Eξ∥g(x,ξ)−∇f(x)∥2≤B2∥x−x0∥2+G2\mathbb{E}_{\xi} \| g(x, \xi) - \nabla f(x) \|^2 \leq B^2 \| x - x_0 \|^2 + G^2, where x0x_0 is a fixed reference point, and BB, GG are problem dependent constants. For smooth nonconvex optimization under this unbounded variance oracle, Fazla et al. (2026) establish an Ω(ϵ−6)\Omega(\epsilon^{-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}) (Arjevani et al., 2023).

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] 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 noise model, Eξ∥g(x,ξ)−∇f(x)∥2≤B2∥x−x0∥a+G2\mathbb{E}_{\xi} \| g(x, \xi) - \nabla f(x) \|^2 \leq B^2 \| x - x_0 \|^a + G^2, which interpolates between uniformly bounded variance at a=0a = 0 and classical quadratic BG noise ( a=2a = 2, denoted as BG-0 in prior works (Fazla et al., 2026; Upadhyay et al., 2026)). For LL-smooth nonconvex objectives, we establish matching lower and upper bounds with Θ(ϵ−(4+a))\Theta(\epsilon^{-(4+a)}) dependence for finding an ϵ\epsilon-stationary point for a∈[0,2]a \in [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.

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. (2026) use dynamic batching to control the minibatch variance under BG-0 noise, which we extend to the BG-a model, where the corresponding batch size requirement scales with B2∥xt−x0∥a+G2B^2 \| x_t - x_0 \|^a + G^2. We show that this dynamic batching strategy under the BG-a model yields a matching O(ϵ−(4+a))\mathcal{O}(\epsilon^{-(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 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))\mathcal{O}(\epsilon^{-(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 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 E.2.

References (31)