L1 norm: sum of absolute values of components. L2 norm: square root of the sum of squares (the usual length). Frobenius norm: the L2 norm of a matrix's entries.
Penalizing the L1 norm of weights (Lasso) promotes sparsity; penalizing the squared L2 norm (Ridge, weight decay) shrinks weights evenly.
Geometrically, the L1 ball has corners on the axes (so solutions land on sparse points), while the L2 ball is round.
Gradient clipping and normalization layers also use norms.
Loading…