Adaptive Batch Size and Learning Rate Scheduler for Stochastic Gradient Descent Based on Minimization of Stochastic First-order Oracle Complexity

Hikaru Umeda, Hideaki IidukaarXiv 2025 · DOI

Abstract

Hyperparameter tuning in Stochastic Gradient Descent (SGD), specifically the selection of batch size (BS) and learning rate (LR), remains a significant challenge in training deep neural networks. This paper proposes a principled approach to automate these selections by minimizing the Stochastic First-order Oracle (SFO) complexity. We introduce an adaptive scheduler that dynamically adjusts BS and LR based on the full gradient norm. Theoretical analysis reveals that the optimal batch size scales quadratically with the inverse of the target precision ($O(1/\epsilon^2)$). Empirical evaluations on CIFAR-10 and CIFAR-100 benchmarks demonstrate that our joint exponential scaling of BS and LR achieves faster convergence and higher accuracy compared to traditional fixed or periodic schedulers.

Introduction

Stochastic Gradient Descent (SGD) is the foundational optimizer for deep learning, yet its efficiency is highly dependent on the delicate interplay between batch size and learning rate. While larger batches provide more accurate gradient estimates and allow for higher learning rates, they also increase the computational cost per iteration. Theoretical research has identified a "Critical Batch Size" (CBS) that represents the optimal point for minimizing total gradient evaluations. However, most current training regimes rely on manual tuning or heuristic-based schedules (e.g., cosine annealing) that do not account for the model's actual progress. This work addresses this gap by proposing a reactive, signal-driven scheduling mechanism.

Methodology

The core of the proposed method is a transition strategy governed by the full gradient norm—the norm of the gradient calculated over the entire dataset. This signal serves as a proxy for the model's proximity to a local minimum.

Adaptive Schedulers

The authors introduce two primary adaptive strategies:

  1. Linearly Increasing BS and Constant LR: The batch size grows linearly at each stage while the learning rate remains fixed.
  2. Exponentially Increasing BS and LR (Joint Scheduler): Both parameters are scaled exponentially in tandem. This joint approach leverages the theoretical insight that larger batches can mitigate the instability typically introduced by higher learning rates.

The $1/\epsilon^2$ Scaling Law

The algorithm operates in stages. When the full gradient norm drops below a predefined threshold ($\epsilon_m$), the scheduler "levels up" to the next stage. The paper provides a theoretical foundation showing that to minimize SFO complexity as the target precision $\epsilon$ becomes more stringent, the batch size must grow at a rate of $O(1/\epsilon^2)$. This ensures that the reduction in variance matches the progress of the optimization.

Experimental Setup

The proposed schedulers were evaluated using standard computer vision tasks:

  • CIFAR-10: Training a ResNet-18 architecture.
  • CIFAR-100: Training a DenseNet architecture.

These models were compared against several baselines, including fixed BS/LR configurations, cosine annealing, and periodic update rules where parameters change at fixed epoch intervals regardless of the gradient signal.

Results and Discussion

Efficiency and Convergence

In experiments with ResNet-18 on CIFAR-10, the adaptive joint scheduler significantly outperformed fixed-interval and cosine annealing schedulers. By reacting to the gradient norm rather than a fixed clock, the algorithm avoids premature or delayed parameter updates, leading to a faster reduction in both empirical loss and the full gradient norm.

Accuracy Gains

The joint exponential scheduler reached higher test accuracy earlier in the training process. Specifically, in the CIFAR-100/DenseNet experiments, the adaptive method exhibited a smoother and more rapid ascent in accuracy compared to periodic updates, which often suffer from volatility when the learning rate is adjusted without a corresponding increase in batch size.

Validation of Critical Batch Size

The empirical results confirmed the existence of a Critical Batch Size (approximately $2^4 = 16$ for the tested ResNet-18 setup). Beyond this point, increasing the batch size yielded diminishing returns in terms of SFO complexity, validating the paper's theoretical framework for optimal scaling.

Conclusion and Future Work

This research demonstrates that an adaptive, signal-driven approach to scaling batch size and learning rate can significantly improve the efficiency of SGD. By grounding the scheduler in the minimization of SFO complexity, the authors provide a more principled alternative to heuristic schedules.

However, limitations remain. Calculating the full gradient norm is computationally expensive for large-scale datasets. Future work will focus on utilizing high-quality stochastic estimates of the gradient norm to reduce overhead. Additionally, the authors plan to extend this adaptive logic to popular adaptive optimizers such as Adam and RMSProp, and investigate ways to automate the selection of the initial threshold ($\epsilon_0$) and the number of training stages.

Summary updated

BibTeX
@misc{umeda2025adaptive,
  author = {Hikaru Umeda and Hideaki Iiduka},
  title = {{Adaptive Batch Size and Learning Rate Scheduler for Stochastic Gradient Descent Based on Minimization of Stochastic First-order Oracle Complexity}},
  year = {2025},
  eprint = {2508.05302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.05302},
}
Figure