Matrix Approximation
Matrix Decompositions
Given a matrix A of rank r, the best rank-k approximation (for k < r) is the matrix A_k that minimizes \|A - A_k\| among all rank-k matrices. The answer is a celebrated result: the Eckart–Young theorem says A_k = sum_{i=1}^k sigma_i mathbf{u}_i mathbf{v}_i^top — just keep the top k singular values a
The best rank- approximation is given by the top- SVD terms (Eckart–Young).
Given a matrix of rank , the best rank-$k$ approximation (for ) is the matrix that minimizes among all rank- matrices. The answer is a celebrated result: the Eckart–Young theorem says — just keep the top singular values and corresponding singular vectors from the full SVD.
This is optimal under both the Frobenius norm and the spectral norm . The approximation error is directly controlled by the discarded singular values — if they are small, you have compressed without losing much, and if they decay quickly, you can use small very effectively.
This is the most useful theorem in data compression. An matrix requires numbers; its rank- approximation requires only numbers (store , , ). For images, recommendation matrices, or learned weight matrices, the singular values often decay exponentially, so gives nearly lossless compression.
Principal Component Analysis is the application to data. Given a centered data matrix , the rank- SVD approximation gives the best -dimensional affine reconstruction. The principal components are the top- right singular vectors; projecting onto them yields the low-dimensional representation.
Worked example — compression savings: An image matrix requires numbers. A rank-10 SVD approximation requires only numbers — a 50× compression. If the singular values decay quickly (as in most natural images), the visual quality loss is minimal.
Worked example — LoRA parameter count: A transformer attention layer with has a weight matrix: M parameters. A LoRA update with rank : , totaling parameters — 250× fewer trainable weights, which is why LoRA makes fine-tuning cheap.
In modern deep learning, Low-Rank Adaptation (LoRA) freezes a large pretrained weight matrix and learns a low-rank update with skinny. This is the same rank- parameterization, used as a *cheap fine-tuning* strategy: millions of parameters become thousands, with minimal loss in quality. Matrix approximation is the quiet backbone of efficient AI.
Exercises
Put your understanding to the test. Score + streak + speed all count.
Confirm you've got it
3 quick questions. Get 2 right to mark this lesson complete.