Skip to content
aiqbench takeMachine Learning

aiqbench analysis

This paper is squarely about machine learning: it proposes two methods for adaptively perturbing a learning rate schedule in SGD with cross-entropy loss, using an extra forward pass and local quadratic approximations. The authors report that both estimators yield similar step sizes and show faster loss decrease and smoother training curves on CIFAR-10 and CIFAR-100 with ResNets, though test accuracy gains are small and absent on CIFAR-100. For practitioners, the practical value hinges on whether the extra forward pass cost is justified by these modest gains across larger models and datasets.
Sources coveringarXiv, Quantum Computing Report, Quantum Zeitgeist, AMD

Stepsize modulation for cross entropy from local quadratic optimization

arXiv3 min read

arXiv:2611.05191v1 Announce Type: new 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 $\tfrac 1 2 ||y - q - \eta 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) + \eta L'(0) + \tfrac 1 2 \eta^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 $\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.

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 $\tfrac 1 2 ||y - q - \eta 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) + \eta L'(0) + \tfrac 1 2 \eta^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 $\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.

Machine Learning (cs.LG)

arXiv:2611.05191 [cs.LG]

(or arXiv:2611.05191v1 [cs.LG] for this version)

https://doi.org/10.48550/arXiv.2611.05191 Focus to learn more arXiv-issued DOI via DataCite (pending registration)

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Full text under the publisher's open licence · 309 words

Related coverage