Skip to content

Stepsize Modulation for Cross Entropy: CIFAR-10 vs CIFAR-100

THE ARGUMENT

What these methods actually deliver is optimization efficiency, not generalization; the flat CIFAR-100 accuracy is the counterexample whenever someone sells them as an accuracy upgrade.

On this page

A team holds 2 CIFAR results and a tuned cosine schedule, but 1 number decides whether an adaptive stepsize module is worth buying. The setup is concrete: every epoch uses a fixed update magnitude, the training curve looks fine, and convergence is simply slower than the team wants. A vendor then offers a small add-on that inspects each minibatch — the hundred-odd samples drawn for one parameter update — and picks the step size for that update, promising to reach the same loss sooner and improve the final score. The usual advice is to refuse: the update magnitude is a global hyperparameter, hand-tuned schedules are enough, and per-batch stepsize rules have a long history of blowing up early in training. This paper tests that advice directly [1].

The Default Judgment: Schedules Are Enough, Per-Batch Rules Are Not

Put the target on the table first. Most convolutional training today runs a hand-tuned schedule — cosine decay, a tuned maximum learning rate, a tuned weight decay — from start to finish, for a simple reason: changing the update magnitude changes the whole optimization trajectory, and letting each minibatch choose its own step size has a poor reputation.

That reputation has a specific origin. Polyak's 1969 rule extrapolates linearly along the negative gradient and solves for the step that walks the loss to zero, which is the loss value divided by the squared gradient norm [1]. It converges exponentially on smooth strongly convex functions, achieves O(1/√t) on general convex ones, and its stochastic version reaches O(1/t) under star-convexity. The assumption is the problem: cross-entropy loss has a floor it never reaches, and on any single minibatch the curve is locally convex, so walking to zero always overshoots. Early in training, when the loss is large and gradients are small, the overshoot is worst and the step spikes. The paper's verdict on that family is that it is very unstable.

Two Ways to Estimate a Stepsize From One Probe

Both proposed methods share one cheap probe. Before each update, the method takes a fixed probe stepsize (5×10⁻⁵ in every experiment), actually walks that small step in parameter space as one extra forward pass, and records the post-probe outputs. Subtracting before from after and dividing by the probe stepsize estimates the derivative of the output with respect to the step size. Once derivatives exist, the rest is a quadratic problem.

MethodMinimisesQuantities usedEngineering implication
so-dz (second-order outer approximation)Quadratic Taylor expansion L(0)+ηL′(0)+½η²L″(0) along the step directionDifferences of output preactivations, dropping their own second derivativesNeeds logits before the softmax, not just probabilities
cs-dq (closest softmax)½‖y−q−ηq′‖², pulling the linearised softmax toward the one-hot labelsDifferences of softmax probabilities onlySimpler to implement, works from probability outputs

The paper's own observation is that these two routes, derived from different philosophies, land on very similar stepsizes. On CIFAR-10 with ResNet18 under standard SGD (maximum learning rate 0.02, momentum 0.9, weight decay 0.005) and a cosine schedule, one run puts so-dz, cs-dq, the Polyak stepsize and cosine decay on the same plot: once the Polyak stepsize is halved, the curves sit close together through the middle of training [1]. The expensive second-order derivation and the cheap softmax-distance minimisation are, in practice, nearly the same number.

What CIFAR-10 and CIFAR-100 Actually Show

Evaluation trains ResNets on CIFAR-10 and CIFAR-100, with the perturbed original cosine schedule as the baseline. Read the result on two levels: the training process, and the final accuracy.

  • Training loss: both methods decrease it faster than the schedule they perturb.
  • Monotonicity: the loss curve is more monotone, with fewer segments that fall and then bounce back.
  • CIFAR-10: a small improvement in test accuracy.
  • CIFAR-100: test accuracy stays the same as the baseline.

The honest reading separates optimization efficiency from generalization. In an unchanged budget structure, per-minibatch information does move the model faster to the same loss, and does so more smoothly. It does not make the model generalize better: CIFAR-100 accuracy does not move at all, so there is no stable channel from faster training-loss descent to higher test accuracy. Sold as a generalization trick, this method is contradicted by its own CIFAR-100 number.

The 33% Runtime Bill and Three Practical Patches

The extra forward pass is not free. The paper estimates that a backward pass costs about twice a forward pass, so one training batch goes from 3 shares of time to 4, roughly 33% more runtime [1]. By the same accounting, methods that fit a quadratic through three evaluation points need two extra forward passes and are 66% slower.

  • Fixed probe stepsize: 5×10⁻⁵ in all experiments, never adapted during training.
  • Outlier removal: each sample in the minibatch gets a cosine similarity measuring whether the probe moved its softmax toward the label; below 1/4, the sample is dropped from the stepsize estimate. The paper concedes the effect is small, because few points satisfy the condition.
  • Subsampling: the second experiment series draws 20 random samples from the remaining minibatch (128 elements before pruning) to keep this cost down.

Read together, the patches tell a slightly awkward story. A method that computes a fresh stepsize for every batch ends up relying on a fixed probe stepsize, an outlier filter and a 20-sample subsample to produce one number that merely nudges a schedule. The engineering, not the formula, is what makes it usable.

Where the Method Stops Working

First boundary: data and accuracy target. CIFAR-100 accuracy is unchanged, so the claim that adaptive stepsizes buy accuracy is limited to an easier task; no larger dataset or larger network reports test error. Second, the compute bill: the 33% per-step overhead has to be repaid by fewer steps, and the paper demonstrates faster loss descent, not higher accuracy in the same wall-clock time. Third, the comparison object: the baseline is the original cosine schedule, not a tuned Polyak variant or another mature adaptive scheduler, so this is a perturbation study, not a head-to-head.

One more boundary is structural. Both derivations assume the output preactivation is linear in the step size, meaning the preactivation's own second derivative is dropped (outer Hessian approximation). That holds on wide hidden layers, supported by neural-tangent-kernel work, but when the network narrows or the last layer couples strongly to earlier features, the approximation fails and the paper reports no experiment for that case.

References

  1. Stepsize modulation for cross entropy from local quadratic optimization

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…