Stepsize modulation for cross entropy from local quadratic optimization
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 is the matrix representing the softmax values of the minibatch and 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.
Create a lesson
Related papers
When High Capacity Becomes Undeployable: Pore-Filling Constraints for Multi-Objective Optimization of Direct Air Capture Sorbents
Shared title terminologycs.LGYujie Liu, Xuehua Shen, Zuotai Zhang
CARROT: Competitive Adaptive Graph Clustering via Semi-Relaxed Optimal Transport
Shared title terminologycs.LGChing Fan Chiang, Jia-Yu Pan, Wen-Chieh Lin
BReD: Block Replay Dithering for Stable Low-Bit EMA Optimizer States
Shared title terminologycs.LGHeshen Zhan, Youhan Huang, Yunke Peng et al.
Don't Waste the Population: Post-Anneal Refinement for Combinatorial Optimization
Shared title terminologycs.LGYuma Ichikawa
Differentially Private Policy Optimization in Linear MDPs with Adversarial Rewards
Shared title terminologycs.LGYi He
Understanding Failure Patterns in LLM-Based Mathematical Optimization Modeling
Shared title terminologycs.LGRyoichi Takase, Xian Yeow Lee, Hikaru Tomonari et al.