Singular Value Decomposition (SVD)

1 min read

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

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

Intuition: any linear transformation = rotate (V⊤V^\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 B∈Rd×r,A∈Rr×dB \in \mathbb{R}^{d \times r}, A \in \mathbb{R}^{r \times d}, r≪dr \ll d

Relation to eigendecomposition:

  • Singular values of MM = square roots of eigenvalues of M⊤MM^\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