Vectors and matrices

∥A∥F\|A\|_F Frobenius norm

The size of a matrix: the square root of the sum of the squares of all its entries.

In ML papers

∥A∥F=∑i,jAij2\|A\|_F = \sqrt{\sum_{i,j} A_{ij}^2}: treat the matrix as one long vector and take its Euclidean length. It measures how far apart two matrices are, ∥W−W′∥F\|W - W'\|_F, as in low-rank approximation (the SVD gives the best rank-rr approximation in this norm) and weight regularization.

How to type it

LaTeXShows
\|A\|_F∥A∥F\|A\|_F

A worked example

∥(1224)∥F=1+4+4+16=5\left\| \begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix} \right\|_F = \sqrt{1 + 4 + 4 + 16} = 5

Common confusions

Related

∥x∥2\|\mathbf{x}\|_2NormW∈Rm×n\mathbf{W} \in \mathbb{R}^{m \times n}Bold uppercase (matrix)tr⁡(A)\operatorname{tr}(A)Trace

Decode this example →