The Affine Divergence: Aligning Activation Updates Beyond Normalisation
George Bird
TL;DR
The paper identifies an affine divergence between the ideal activation gradient and the actual gradient propagated through parameters during gradient descent, showing that the effective activation update scales as $||x||^2+1$. It derives two correction families—norm-like normalisers and a novel affine-like correction—and introduces PatchNorm for convolution to restore alignment to first order, with additional gradient-only learning-rate adjustments. Empirical results on CIFAR-10 demonstrate that the affine-like correction often outperforms traditional normalisers across several architectures, while batch-size analyses reveal a counterintuitive negative correlation for the structural corrections, supporting the misalignment mechanism. Overall, the work reframes normalization as a principled outcome of aligning ideal and effective updates, and it points to broader implications for activation-function design and architecture choices, including potential extensions to residuals and attention.
Abstract
A systematic mismatch exists between mathematically ideal and effective activation updates during gradient descent. As intended, parameters update in their direction of steepest descent. However, activations are argued to constitute a more directly impactful quantity to prioritise in optimisation, as they are closer to the loss in the computational graph and carry sample-dependent information through the network. Yet their propagated updates do not take the optimal steepest-descent step. These quantities exhibit non-ideal sample-wise scaling across affine, convolutional, and attention layers. Solutions to correct for this are trivial and, entirely incidentally, derive normalisation from first principles despite motivational independence. Consequently, such considerations offer a fresh and conceptual reframe of normalisation's action, with auxiliary experiments bolstering this mechanistically. Moreover, this analysis makes clear a second possibility: a solution that is functionally distinct from modern normalisations, without scale-invariance, yet remains empirically successful, outperforming conventional normalisers across several tests. This is presented as an alternative to the affine map. This generalises to convolution via a new functional form, "PatchNorm", a compositionally inseparable normaliser. Together, these provide an alternative mechanistic framework that adds to, and counters some of, the discussion of normalisation. Further, it is argued that normalisers are better decomposed into activation-function-like maps with parameterised scaling, thereby aiding the prioritisation of representations during optimisation. Overall, this constitutes a theoretical-principled approach that yields several new functions that are empirically validated and raises questions about the affine + nonlinear approach to model creation.
