NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Stepsize modulation for cross entropy from local quadratic optimization

Bruno Bauwens, Viacheslav Krivodub, Bingyu ZhangarXiv 2026

TL;DR

This paper introduces two novel methods to dynamically modulate learning rate schedules by performing a local quadratic optimization for each minibatch. By adding a single extra forward pass to estimate the loss curvature, these methods speed up convergence and improve the monotonicity of training for ResNets on image classification tasks.

What Problem Does This Paper Address?

Selecting the right learning rate (LR) is arguably the most critical hyperparameter decision in deep learning. While researchers have developed sophisticated global schedules like cosine decay, these schedules are "blind" to the specific characteristics of the data in a given minibatch.

Existing adaptive methods like the Stochastic Polyak Stepsize (SPS) attempt to solve this by using local loss information. However, SPS is notoriously unstable; it often produces massive "spikes" in the learning rate, especially early in training when the loss is high but gradients are small. As illustrated in Figure 1, linear approximations of convex, strictly positive functions (like cross-entropy) tend to significantly overestimate the optimal step size.

Figure 1: The Polyak stepsize over estimates on convex strictly positive functions

The authors ask: Can we inspect a minibatch's properties to decide if we should nudge the scheduled learning rate up or down to improve training speed and final accuracy?

Methods

The authors propose two distinct philosophies for estimating the ideal local stepsize ($\eta$):

  1. Second-Order Outer Approximated Stepsize (so-dz): This method uses a quadratic Taylor approximation of the minibatch loss. To make this computationally feasible, it employs an "outer approximation" of the Hessian, focusing on the derivatives of the logits (preactivations) while neglecting their second derivatives.
  2. Closest Softmax Stepsize (cs-dq): This approach linearizes the softmax values and selects a stepsize that minimizes the Euclidean distance between the predicted probabilities and the target one-hot labels.

Crucially, both methods use a "test point" strategy. They perform a small "probe" update with a fixed learning rate to see how the model's outputs change. This allows them to estimate the necessary derivatives with just one extra forward pass.

Rather than replacing the learning rate schedule entirely, the authors use these local estimates to modulate an existing schedule (like cosine decay). They average the local estimates over a window of 50 batches and use an arctan function to smoothly perturb the reference learning rate, ensuring the changes aren't too drastic.

Datasets

The methods were evaluated using the following standard benchmarks:

  • CIFAR-10: A dataset of 60,000 32x32 color images in 10 classes.
  • CIFAR-100: Similar to CIFAR-10, but with 100 classes.
  • Models: The experiments primarily utilized ResNet-18 and ResNet-34 architectures.

Key Insights and Ideas

  • Convergent Results: Despite being derived from different mathematical starting points—one focusing on loss minimization and the other on softmax probability distance—both so-dz and cs-dq produce remarkably similar stepsize values throughout training (see Figure 2).
  • Stability through Averaging: By modulating a reference schedule and using a moving average of local estimates, the authors avoid the instability and "spiking" issues that plague traditional Polyak stepsizes.
  • Outlier Removal: The authors found that training is stabilized by ignoring "outlier" samples in a minibatch where the softmax values do not seem to improve during the probe step.
Figure 2: comparison between stepsizes: so-dz (red), cs-dq (green), Polyak (orange), cosine decay (blue).

Key Results

  • Faster Convergence: The proposed modulations significantly speed up the reduction of training loss, particularly during the middle phase of the training process.
  • Improved Monotonicity: The training curves are noticeably smoother and more monotonic compared to standard SGD or the Lookahead optimizer.
  • Accuracy Gains: On CIFAR-10, the methods provided a small but consistent boost in test accuracy. For example, ResNet-18 with so-dz reached 95.399% accuracy compared to 95.256% for standard SGD.
  • Computational Overhead: The extra forward pass increases runtime by about 33%. However, the authors demonstrated that by subsampling only 20 inputs from the minibatch for the probe step, this overhead can be reduced to approximately 21% without sacrificing performance.
Figure 4: Loss and test error per epoch. Experiment with CIFAR100 and ResNet18, 50 epochs, lookahead.

Limitations and Future Work

  • CIFAR-100 Performance: While the methods excelled on CIFAR-10, the improvements on CIFAR-100 were less clear, with the authors noting that results there "look random" or provide no reliable improvement in test accuracy.
  • Compute Cost: Even with subsampling, a 21% increase in compute is a trade-off that might not be acceptable for all practitioners, especially when training massive models.
  • Scalability: The paper focuses on ResNets and smaller image datasets. Whether these local quadratic modulations translate effectively to Large Language Models (LLMs) or transformer architectures remains an open question for future research.

Summary updated

Abstract

Two methods are presented that perturb a given learning rate schedule in stochastic gradient descent with cross entropy loss. Both methods use an extra forward pass to estimate various derivatives of the minibatch loss. The first method selects a value $η$ by linearising the softmax values and minimizing the squared error $\tfrac 1 2 ||y - q - ηq'||_F^2$, where $q$ is the matrix representing the softmax values of the minibatch and $y$ is the matrix with one-hot encodings of the labels. The second method considers a quadratic Taylor approximation of the minibatch loss under the outer approximation of the Hessian. Thus, it minimizes $L(0) + ηL'(0) + \tfrac 1 2 η^2 L''(0)$. Here, the derivatives $L'$ and $L''$ are computed from the derivatives of the logits (using the outer approximation of the Hessian of the loss). We observe that both methods give very similar values of $η$. Finally, these estimated $η$ are used to slightly increase or decrease the learning rate of an existing schedule. The method is evaluated on Cifar10 and Cifar100 datasets for training Resnets, where they decrease the loss faster than the schedule that is perturbed and increase monotonicity. For Cifar10 it also leads to a small improvement of test accuracy, but in Cifar100 test accuracy remains the same.
BibTeX
@misc{bauwens2026stepsize,
  author = {Bruno Bauwens and Viacheslav Krivodub and Bingyu Zhang},
  title = {{Stepsize modulation for cross entropy from local quadratic optimization}},
  year = {2026},
  eprint = {2611.05191},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.05191},
}
Figure