Proposition 1I.8.P0128 of 100 in the corpus
Regularisation does not improve the fit; it decides which fit you get.
A penalty, a random mask and an early checkpoint express different preferences. Each can improve prediction on new data, and each can suppress a real signal.
The training loss cannot choose for you
Two predictors can agree on every training example and disagree on the next one. An optimiser sees the agreement. It has no evidence about the disagreement until we supply more data or a preference.
The figure is a schematic of that choice, not a theorem that the smoother curve wins. If the true function oscillates, suppressing its oscillations costs accuracy. Regularisation is useful precisely when its preference suits the problem.
An explicit regulariser changes the quantity being minimised:
The fit and the preference are separate terms.
Here contains the weights we choose to penalise, not automatically every parameter in the model. Biases and normalisation scales are separate choices. A soft penalty does not remove functions from the hypothesis class; it makes some of them more expensive.
L2 and weight decay coincide in one particular update
Differentiating the penalty in (I.8.5) gives . Plain gradient descent therefore takes the step
The same plain-gradient step can be read as a gradient plus shrinkage.
For , the first term shrinks the old weights without reversing their sign. This is the algebra behind the familiar equivalence between an L2 penalty and weight decay.
Keep the qualifier: plain gradient descent. With Adam, adding to the gradient changes the first and second moments. AdamW forms those moments from the data gradient and applies the shrinkage separately:
The operations do not commute. Even momentum without adaptive scaling can break the equivalence when the penalty enters its accumulator but decoupled decay does not. The comparison in (I.8.6) is not a licence to copy a coefficient between arbitrary optimiser implementations.
Small weights also do not guarantee a smooth predictor independently of architecture. In a multilayer network, sensitivities involve products of weights and activation derivatives. A rescaling of one layer may be cancelled by another. The penalty is a preference in a chosen parameterisation.
A case where the preference can be solved exactly
For a linear model, take . Setting the derivative of (I.8.5) to zero gives
Positive lambda supplies curvature in directions the data do not identify.
For any nonzero , the quadratic form of the matrix on the left is when . It is invertible even when the columns of are dependent.
In an eigendirection with curvature and right-hand component , least squares gives while ridge gives . The ratio is . Weakly identified directions shrink most. That is the whole mechanism, including its cost: a genuine component in a weak direction is shrunk too.
Equation (I.8.7) uses an averaged data loss. Replacing it with a summed loss while leaving unchanged makes the penalty relatively weaker as the dataset grows.
Dropout changes the training problem by adding noise
Let be a fixed activation and let be an independent Bernoulli mask, equal to one with keep probability . Inverted dropout uses
Surviving activations are enlarged to compensate for the missing ones.
There are only two outcomes: zero with probability , and with probability . Multiplying each by its probability proves the mean in (I.8.8); doing the same for the squares gives , from which the variance follows.
Training minimises an expected loss over masks as well as examples. This discourages a representation from depending too heavily on a particular activation being present. At inference inverted dropout is the identity. There is no second multiplication by .
Preserving the mean is a smaller promise than reproducing the masked networks’ average prediction. If a later operation squares the activation, the two results differ by the variance term above. The exact counterexample is I.8.B05.
Stopping is also a preference
On one quadratic eigendirection, , start at zero and apply gradient descent. The recurrence sums to
Finite training time acts as a direction-dependent filter.
For , the bracket grows from zero towards one. Directions with smaller curvature grow more slowly. Stopping early therefore suppresses them, much as ridge does, but its filter in (I.8.9) is not ridge’s . A single generally cannot match all directions. For a non-convex network this calculation is an analogy with a specified boundary, not an identity.
Choose the checkpoint on validation data. Keep the test set for the final evaluation. Looking at test loss every epoch and selecting its minimum is training a selection rule on the test set, even if no gradient passes through it.
Augmentation spends domain knowledge
A label-preserving transformation states something stronger than a generic penalty: these two inputs ought to receive the same target. The statement can be wrong. Rotating a digit can change which digit it is; cropping an image can remove the object whose class was retained.
Neither the regularisation strength nor the augmentation policy comes with a guarantee. Compare them on held-out data, keep the evaluation protocol fixed, and report the preference that was actually tested.
Sources
Depends on
Used by
Problems using this
- I.8.B05 — A mean-preserving mask does not preserve a predictionprobability▲▲△
- I.8.X03 — Ridge shrinks the weak direction mostsymbolic▲▲△
- I.8.X04 — An adaptive denominator changes a penaltycounterexample▲▲△
- I.8.X07 — A mask can keep the right fraction and still be biasedlimit▲▲△
- I.8.X09 — An augmentation that makes perfect classification impossiblecounterexample▲▲△
- I.8.X10 — One stopping time is not one ridge coefficientsymbolic▲▲▲