Rank
The number of independent rows (or columns) of a matrix: how many dimensions it really uses.
In ML papers
is the number of linearly independent columns of , which always equals the number of independent rows. An matrix has rank at most ; if it reaches that, it is full rank.
Low rank is the idea behind LoRA (Hu et al. 2021): the update with and has rank at most , so it needs numbers instead of . A square matrix is invertible exactly when it has full rank.
Other meanings, by context
- Ranking and retrieval. The position of an item in a sorted list, as in mean reciprocal rank (MRR).
- Tensors in code. In NumPy-style talk, a tensor's "rank" is its number of axes (ndim), not the linear-algebra rank.
How to type it
| LaTeX | Shows |
|---|---|
\operatorname{rank}(A) | |
\mathrm{rank}(A) |
A worked example
The second row is twice the first, so only one row is independent.
Common confusions
- A matrix can have rank 1: size and rank are different things.