arXiv:2611.05191cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05191

Stepsize modulation for cross entropy from local quadratic optimization

Bruno Bauwens, Viacheslav Krivodub, Bingyu Zhang

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

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 η\eta by linearising the softmax values and minimizing the squared error 12∣∣y−q−ηq′∣∣F2\frac{1}{2}||y - q - \eta q'||_F^2, where qq is the matrix representing the softmax values of the minibatch and yy 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)+12η2L′′(0)L(0) + \eta L'(0) + \frac{1}{2}\eta^2 L''(0). Here, the derivatives L′L' and L′′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 η\eta.

Finally, these estimated η\eta 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.¹

1 Introduction

The selection of the learning rate is a very consequential decision when training neural nets. Despite much research in automatically selecting step sizes, typical training with convolutional nets is done with some fixed schedule for which maximum learning rate and weight decays are tuned. In this paper, we ask whether one can modulate the standard cosine schedule using batch dependant stepsizes to improve training. More precisely, can we inspect certain properties of a minibatch and use it to decide whether a bigger or smaller stepsize should be used compared to the scheduled value of the epoch. Can this speed up training and increase test accuracy?

References (31)