Lesson 1.3core3 h 30 min⚡ live demo

Eigen-things, SVD and low rank

The directions a matrix keeps, and the few that matter

Eigenvectors are the directions a transformation only stretches, and singular values are the stretch factors of any matrix at all. They explain why gradients vanish or explode through deep networks (6.4 Recurrent neural networks and BPTT), why gradient descent zigzags in narrow valleys (1.10 Optimization: from gradient descent to Adam), what PCA computes (3.12 Dimensionality reduction: PCA, t-SNE and UMAP), why a Gaussian's covariance is an ellipse (1.7 Probability II: Bayes, independence, MLE and MAP), and why LoRA can fine-tune a billion-parameter model by learning a rank-8 update (8.2 Fine-tuning and PEFT). Low rank is the single most reused idea in modern ML engineering.

You'll be able to

  • Compute eigenvalues and eigenvectors of a 2×2 matrix by hand and interpret them geometrically
  • Use diagonalization to reason about repeated multiplication, power iteration and vanishing/exploding gradients
  • State the spectral theorem for symmetric matrices and connect PSD matrices to quadratic forms, covariances and Hessians
  • Explain the SVD as rotate–stretch–rotate, compute it for a small matrix, and use Eckart–Young to justify low-rank approximation

Key ideas

  1. Av = λv: eigenvectors are directions that are only scaled; find λ from det(A − λI) = 0, then solve (A − λI)v = 0.
  2. Diagonalization A = VΛV⁻¹ turns powers into Aᵏ = VΛᵏV⁻¹; the largest |λ| dominates repeated multiplication — the root of vanishing/exploding gradients.
  3. Checks: Σλᵢ = trace A and Πλᵢ = det A.
Show 4 more key ideas
  1. Symmetric matrices have real eigenvalues and orthonormal eigenvectors (A = QΛQᵀ); PSD ⇔ all λ ≥ 0 ⇔ xᵀAx ≥ 0; covariances and Hessians at minima are PSD.
  2. SVD A = UΣVᵀ works for any matrix: rotate, stretch by σᵢ, rotate; σᵢ² are the eigenvalues of AᵀA; rank = number of nonzero σᵢ.
  3. Eckart–Young: the top-k SVD terms give the best rank-k approximation with error √(Σᵢ>ₖ σᵢ²); storage falls from mn to k(m+n).
  4. Condition number κ = σmax/σmin measures uneven stretching and error amplification; normal equations square it.

Suggested path through this lesson