Singular Value Decomposition (SVD)

1 min read

Every matrix MM (any shape) can be decomposed as M=UΣVM = U\Sigma V^\top:

  • UU — orthogonal matrix of left singular vectors (column space directions)
  • Σ\Sigma — diagonal matrix of singular values σ1σ20\sigma_1 \geq \sigma_2 \geq \dots \geq 0
  • VV^\top — orthogonal matrix of right singular vectors (row space directions)

Intuition: any linear transformation = rotate (VV^\top) → scale (Σ\Sigma) → rotate (UU).

Low-rank approximation: keep only the top kk singular values → best rank-kk approximation in Frobenius norm (Eckart-Young theorem). This is the mathematical foundation of:

  • Dimensionality reduction
  • Image compression
  • LoRA — adds low-rank updates ΔW=BA\Delta W = BA where BRd×r,ARr×dB \in \mathbb{R}^{d \times r}, A \in \mathbb{R}^{r \times d}, rdr \ll d

Relation to eigendecomposition:

  • Singular values of MM = square roots of eigenvalues of MMM^\top M
  • SVD works for any matrix; Eigendecomposition requires square (and ideally diagonalizable) matrices

PCA connection: Principal Component Analysis (PCA) via SVD of the centered data matrix gives principal components without forming the covariance matrix explicitly.

See also: Rank and Null Space

Linked from