Linear Algebra
9.148 min read

Truncated SVD

The truncated SVD keeps only the kk largest singular values: Ak=UkΣkVk=i=1kσiuivi.A_k = U_k \Sigma_k V_k^\top = \sum_{i=1}^k \sigma_i \mathbf{u}_i \mathbf{v}_i^\top. It is the best rank-kk approximation of AA in the Frobenius norm. Error: AAkF2=σk+12++σr2\|A - A_k\|_F^2 = \sigma_{k+1}^2 + \cdots + \sigma_r^2.

As kk increases, error decreases and Ar=AA_r = A (exactly) for r=rank(A)r = \text{rank}(A). The storage cost of AkA_k is (m+n+1)k(m + n + 1)k numbers vs mnmn for the full matrix — a saving when kmin(m,n)k \ll \min(m,n).

Formal View

Definition 9.4 — Truncated SVD
The rank-$k$ truncated SVD: Ak=UkΣkVk=i=1kσiuiviA_k = U_k \Sigma_k V_k^\top = \sum_{i=1}^k \sigma_i \mathbf{u}_i \mathbf{v}_i^\top where Uk,VkU_k, V_k contain the first kk singular vectors and Σk=diag(σ1,,σk)\Sigma_k = \operatorname{diag}(\sigma_1, \ldots, \sigma_k).

Interactive Visualization

Low-Rank Approximation

Why This Matters

Truncated SVD is the workhorse of data compression, dimensionality reduction, and noise filtering.

  • Image compression: store (m+k+n)k(m + k + n)k numbers instead of mnmn.
  • Latent semantic analysis: kk-truncated SVD finds topic structure in term-document matrices.
  • Denoising: small singular values capture noise; truncating cleans the signal.

Quiz

Question 1

AkA_k is the best rank-kk approximation in what sense?

Question 2

The rank of Ak=UkΣkVkA_k = U_k \Sigma_k V_k^\top is exactly kk (assuming all kk singular values are nonzero).

Common Mistakes

  • Thinking larger kk always better — it reduces error but increases storage and computation.
  • Confusing truncated (keeps largest) with deflated (removes largest) SVD.