Norm
The length (size) of a vector. With subscript 2 or none, the Euclidean length √(Σxᵢ²).
In ML papers
is the size of . With no subscript, or subscript 2, it is usually the Euclidean (L2) norm, . The squared norm drops the square root; it is the L2 penalty in weight decay and the squared error in . is the distance between two points. Other subscripts pick other norms: L1 norm, Frobenius norm, and (Infinity).
How to type it
| LaTeX | Shows |
|---|---|
\|\mathbf{x}\| | |
\lVert \mathbf{x} \rVert cleaner spacing | |
\|\mathbf{x}\|_2^2 squared L2 |
A worked example
Common confusions
- and differ by a square root; papers sometimes drop the 2 in the exponent or the subscript.
- For a matrix with no subscript, a paper may mean the Frobenius or the spectral norm. Check.
- A single between two distributions, as in , is a separator (KL divergence).