Chip Foundry Services Request Assessment

Loss Scaling

Loss scaling multiplies a model's loss value by a large constant factor before backpropagation, then divides the resulting gradients by that same factor before the optimizer actually applies them, specifically to keep small gradient values from underflowing to zero in FP16's narrower numeric range during the backward pass. This scale-up-then-scale-down technique is a practical numerical workaround specifically needed for FP16 training, since FP16's limited dynamic range would otherwise lose small but meaningful gradient values to underflow well before they could reach the optimizer, a problem BF16's wider dynamic range makes less necessary to address this same way.