Rosetta Stone · 28 of 30
Norm (length of a vector)
Operator: it does something
In plain English
The size of a vector. The usual (L2, Euclidean) norm is Pythagoras extended to any number of dimensions: . A subscript changes the recipe: sums absolute values; takes the largest entry. Norms appear in regularisation (penalising large weights), in normalisation layers, and in distances between points.
As code
const norm = (x) => Math.sqrt(x.reduce((a, xi) => a + xi * xi, 0));
norm([3, 4]); // 5See it
What it means, field by field
L1, L2, L∞ norms; distance ‖x − y‖; matrix norms.
Weight decay λ‖θ‖²; gradient clipping by norm; L1 sparsity penalties in sparse autoencoders.
Magnitude of a force or velocity; normalisation of a quantum state, ‖ψ‖ = 1.
In a research paper
Reconstruct the activation x faithfully, but pay a penalty proportional to how many features f are active.
Common misreadings
Confusing ‖x‖ (norm) with |x| (absolute value of a number or determinant of a matrix).
Ignoring the subscript. L1 and L2 penalties have very different effects (L1 encourages exact zeros).