The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

Analytic batch-size schedules cut training compute costs by a consistent margin: dynamic batch-size rules derived from convex-optimization theory deliver predictable variance reduction and improve compute efficiency by roughly 6–15% compared with fixed batches across several LLM families.

Towards joint scaling laws with optimal batch size schedules
Jiaxiang Li, Zhiqi Bu, Shiyun Xu · July 30, 2026
arxiv theoretical medium evidence 7/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Jiaxiang Li unresolved corpus identity
  2. Zhiqi Bu unresolved corpus identity
  3. Shiyun Xu unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Jiaxiang Li provider ID
  2. Zhiqi Bu provider ID
  3. Shiyun Xu provider ID
The paper derives closed-form optimal batch-size schedules tied to learning-rate shapes and shows that these dynamic schedules reduce gradient-variance and yield 6–15% compute-efficiency improvements over static batch sizes across several LLM families and optimizers up to 7B parameters.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

Modern deep learning typically keeps the batch size static throughout training, thus overlooking the joint effect of learning rate and batch size on the training dynamics. In this paper, we study the deep learning dynamics through the lens of convex optimization and derive a joint characterization of loss in terms of both schedules, applicable to general optimizers and model architectures. This characterization yields a closed-form optimal batch size schedule for any prescribed learning rate schedule, and further leads to joint scaling laws that consistently outperform static batch size baselines, highlighting the significance of dynamic batch size schedule in large language model training.

Summary

Main Finding

The paper derives a sequence-to-sequence characterization of training loss as a function of both the learning-rate schedule {ηt} and the batch-size schedule {Bt}, and uses it to produce a closed-form, data- or compute-constrained optimal batch-size schedule. The optimal schedule depends only on the shape of the learning-rate schedule (not its peak), is scale-free in model size, preserves universal training dynamics, and yields consistent compute-efficiency gains (reported 6–15%) versus static batch baselines with negligible runtime overhead.

Key Points

  • Loss characterization (sequence-to-sequence): under a stochastic convex-optimization approximation and a simple gradient-noise model E||g_t||^2 ≤ G^2 + X/B_t, the paper shows the last-iterate loss can be written (empirically tightly) as a functional of ηt and Bt (Eq. 2.5/2.6).
  • Closed-form optimal batch schedule (Theorem 3): for a fixed total data budget K = ∫ Bt dt (or compute proportional to K), the optimal continuous-time solution is B_opt(t) ∝ b(t), where b(t) = η(t) / sqrt( ∫_t^T η(s) ds ). In normalized form: B_opt(t) = K · b(t) / ∫_0^T b(s) ds. Crucially, B_opt depends on the shape of η(t) but not on peak η.
  • Variance-reduction interpretation: optimizing Bt minimizes the contribution of gradient-noise (the X/B term) and always leads to L_dynamic ≤ L_static (Jensen/Cauchy-Schwarz).
  • Joint scaling laws (Section 4): recommend 1/√T scaling for peak learning rate and weight decay when changing horizon T, combined with the above optimal batch schedule. Under these scalings, last-iterate loss decays as O(1/√T).
  • Generalization beyond data budget: they extend to general resource costs f(B) (e.g., wall-clock cost) and produce an implicit closed-form via Lemma 4 (solve for a multiplier λ and invert g(x)=x^2 f'(x)).
  • Empirical claims: dynamic batch schedules outperform static-B baselines across architectures (dense Llama3, MoE Qwen3), optimizers (AdamW, Muon/NSGD), tasks (pretraining/fine-tuning and downstream evals) up to 7B parameters, producing consistent improvements in loss and downstream metrics. Reported numbers include 6–15% compute-efficiency improvement and nontrivial downstream gains (examples: relative perplexity improvements and validation-loss improvements across LR schedules; see paper tables/figures).

Data & Methods

  • Theory:
    • Start from SGD/SGD-with-weight-decay under convex-loss assumptions to derive Theorem 1 and extend to include batch-size noise (Theorem 2).
    • Use the model E||g_t||^2 ≤ G^2 + X/B_t to separate deterministic and stochastic contributions to the loss sequence.
    • Move to a continuous-time integral approximation for analytic tractability to solve the constrained minimization over Bt (Theorem 3).
    • Derive corollaries for variance reduction and scaling-law consequences; extend to general cost functions (Lemma 4).
  • Empirical validation:
    • Fit the linear form L ≈ L* + D^2 x1 + G^2 x2 + X x3 (Eq. 2.4) on real training runs to validate the sequence-to-sequence representation and to estimate constants.
    • Experiments on pretraining and fine-tuning: Llama3 (dense) and Qwen3 (MoE) models from ~0.1B to 7B parameters; datasets include Fineweb-edu for some plots; evaluations include lm-evaluation-harness and downstream tasks (LAMBADA, HellaSwag, ARC, etc.).
    • Optimizers tested: SGD-family (Muon-NSGD) and AdamW; LR schedules: cosine, linear, WSD (warmup + steep decay), constant.
    • Compare static-B baselines (tuned peak η via small-scale tuning and 1/√T scaling) vs. the derived dynamic-B schedule using the same LR/weight-decay choices.
    • Metrics reported: last-iterate loss, perplexity, downstream task accuracies, and compute-efficiency measured under fixed FLOP budgets. Visualized convergence traces and fitted scaling-law curves for model-size vs. loss.

Limitations and empirical scope: - Theoretical derivations assume convexity and the specific gradient-noise form; the paper argues the approximation becomes accurate after initial transients and validates empirically on nonconvex deep nets but formal guarantees are limited to convex theory. - Experiments presented up to 7B parameters; strong empirical but not necessarily exhaustive across all model sizes or all system constraints. - Practical systems considerations (e.g., memory footprint, I/O, communication tradeoffs when varying batch sizes dynamically) are acknowledged conceptually; authors claim zero computational overhead in their reported gains but real-world engineering integration may require attention.

Implications for AI Economics

  • Reduced hyperparameter search cost and better transferability:
    • Because B_opt depends only on LR shape (not peak η) and the paper shows LR/weight-decay scale as 1/√T across horizon changes, practitioners can tune LR on small models and derive batch schedules for larger runs—reducing expensive large-scale hyperparameter sweeps and associated cloud costs.
  • Direct compute (and dollar) savings:
    • Reported 6–15% improvements in compute efficiency translate into material savings at LLM-training scale. For multi-million- to billion-dollar training investments, single-digit percentage savings are economically significant and reduce resource allocation and carbon footprint.
  • Better data and compute budgeting:
    • The formulation allows optimizing batch schedules under either fixed data budgets (maximizing learning from limited data) or compute/wall-clock constraints. This helps organizations decide how to allocate scarce tokens, compute hours, or purchasing of compute time more optimally.
  • Operational considerations:
    • Dynamic batch schedules are implementable with no extra algorithmic training overhead per the authors, but they may require engineering effort (dynamic batching strategies, memory management, load balancing). The expected gains must be weighed against integration costs; however, the one-time integration cost is likely small relative to repeated savings on many training runs.
  • Modeling and forecasting training costs:
    • Joint scaling laws (η ∝ 1/√T, κ ∝ 1/√T, plus B_opt) give a principled way to extrapolate hyperparameters across horizons and model sizes, improving forecasting of compute needs and enabling more accurate cost modeling when planning new training projects or negotiating cloud contracts.
  • Risk & limitations for economic adoption:
    • The theory relies on approximations; real-world gains may vary by architecture, dataset, and specific system-level scaling behavior (e.g., GPU utilization vs. batch size). Organizations should validate on representative smaller-scale runs before rolling out widely.

Practical takeaway for decision-makers and resource planners: - Use small-scale tuning of LR/weight-decay with 1/√T scaling for larger horizons. - Compute B_opt from the LR shape via B_opt(t) ∝ η(t)/sqrt(∫_t^T η(s) ds) and impose resource constraints (total data or cost) to normalize. - Expect ~single-digit to low-double-digit percent compute savings and improved final loss/performance with modest implementation effort; validate on your stack (memory, throughput) before large deployments.

Assessment

Paper Typetheoretical Evidence Strengthmedium — The paper provides rigorous theoretical derivations (closed-form optimal batch schedules under convex assumptions) and controlled empirical evaluations showing consistent 6–15% compute-efficiency gains across several model families and optimizers up to 7B parameters; however, the main theoretical results rely on convexity and simplifying assumptions (e.g., variance bound (2.2), continuous approximations) and empirical validation is limited to mid-scale models, datasets, and a handful of optimizers, leaving open questions about generality at frontier scales, tasks, and system constraints. Methods Rigorhigh — Theoretical arguments are formalized with stated assumptions and proofs; the optimization problem is derived and solved analytically; empirical validation includes multiple model families (dense and MoE), optimizers (AdamW, Muon-NSGD), and ablations comparing dynamic vs static batch schedules under controlled compute/data budgets, though some approximations (convex surrogate for nonconvex training, integral approximations) and experimental scope limit conclusiveness. SampleExperiments on Llama3 (dense) and Qwen3 (Mixture-of-Experts) families and vision-language models up to 7B parameters; datasets include 'Fineweb-edu' (pretraining/fine-tuning regimes) and standard LM evaluation tasks (LAMBADA, HellaSwag, ARC, WinoGrande, PIQA, OpenBookQA, BoolQ); optimizers include AdamW and Muon-NSGD; compute budgets up to ~1e21 FLOPs and tokens/time-per-parameter (TPP) experiments; comparisons between static and derived dynamic batch-size schedules under fixed compute/data budgets. Themesproductivity adoption GeneralizabilityTheoretical derivations assume convex loss or rely on convex-dominance approximations that may not fully capture nonconvex deep networks' edge behavior., Empirical tests are limited to models up to 7B parameters; results may differ at frontier scales (tens/hundreds of billions) where system bottlenecks (memory, IO, parallelism) and optimization dynamics change., Datasets and tasks are limited (pretraining/fine-tuning and LM evals); robustness to other modalities, reinforcement learning, or highly domain-specific corpora is untested., Practical constraints (hardware memory limits, communication/IO overheads, distributed training inefficiencies, and scheduling/throughput trade-offs) may reduce realized wall-clock or cost gains in production systems., Assumes availability of flexible batch-size adjustments at runtime; some training infrastructures or library implementations may make dynamic resizing expensive or infeasible.

Claims (11)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Under convex loss and SGD, the paper derives an upper bound on the expected loss at any iteration that depends jointly on the learning-rate sequence and the batch-size sequence. Output Quality mixed Expected training loss
Reading fidelity high
Study strength medium
not reported
0.12
In Llama3-1B experiments, the sequence-to-sequence loss characterization becomes precise after an initial transient phase for both dynamic learning-rate schedules and dynamic batch-size schedules. Output Quality positive Training loss prediction accuracy
Reading fidelity high
Study strength medium
n=1
0.12
For a fixed total data or compute budget and a prescribed learning-rate schedule, the theoretically optimal batch-size schedule is proportional to η_t divided by the square root of the remaining cumulative learning rate. Output Quality positive Last-iterate training loss under a fixed data or compute budget
Reading fidelity high
Study strength medium
not reported
0.12
The theoretically optimal batch-size schedule depends on the shape of the learning-rate schedule but not on the peak learning rate. Task Allocation null_result Dependence of the optimal batch-size schedule on peak learning rate
Reading fidelity high
Study strength medium
not reported
0.12
Under the paper's loss characterization and a fixed total data budget, the optimal dynamic batch-size schedule has no higher predicted loss than a static batch-size schedule. Output Quality positive Predicted last-iterate loss
Reading fidelity high
Study strength high
L_dynamic(T) − L_static(T) ≤ 0
0.2
When learning-rate-to-batch-size trajectories are matched, implementing the trajectory through the learning rate performs better than implementing it through the batch size, indicating that η_t/B_t is not a sufficient statistic for training dynamics. Output Quality positive Validation loss
Reading fidelity high
Study strength medium
+0.017 to +0.743 validation loss
0.12
On Llama3-1B trained on Fineweb-edu with Muon-NSGD, dynamic batch-size schedules improve best perplexity relative to static batch size by 0.8% for cosine learning rates, 2.5% for WSD learning rates, and 14.6% for constant learning rates. Output Quality positive Best validation perplexity
Reading fidelity high
Study strength medium
n=1
0.8%, 2.5%, and 14.6% relative improvement
0.12
The joint scaling-law recipe using dynamic batch size improves compute efficiency by approximately 6% to 15% relative to static batch size baselines. Organizational Efficiency positive Compute efficiency at a given validation loss
Reading fidelity high
Study strength medium
n=2
6% to 15% improvement
0.12
For Llama3 and Qwen3 MoE model families spanning approximately 0.1B to 7B parameters, the dynamic batch-size schedule significantly outperforms static batch size across the tested model sizes and compute budgets. Output Quality positive Validation loss and compute efficiency
Reading fidelity high
Study strength medium
n=2
15% improvement for Llama3; 6% improvement for Qwen3 MoE
0.12
Under the stated convexity, bounded-parameter, and gradient-moment assumptions, scaling peak learning rate and weight decay as 1/sqrt(T) yields O(1/sqrt(T)) last-iterate loss convergence for both static and optimal dynamic batch-size schedules. Output Quality positive Asymptotic last-iterate excess loss convergence rate
Reading fidelity high
Study strength medium
O(1/√T)
0.12
In the reported Llama3 and Qwen3 language-model evaluations, dynamic batch size generally produces higher scores than static batch size on most listed downstream benchmarks. Output Quality positive Downstream benchmark scores
Reading fidelity high
Study strength medium
n=2
0.12

Notes