Updates and Sensitivity
Two questions sit next to each other in computational linear algebra: how does a small change in change the things derived from it, and can a low-rank perturbation be folded into an existing factorization without redoing the work? The Sherman–Morrison–Woodbury identity answers the second cleanly; matrix calculus answers the first. They converge on the observation that typical large matrices have rapidly decreasing singular values, which is what makes the whole apparatus of low-rank approximation and updating effective.
The Sherman–Morrison–Woodbury formula
Section titled “The Sherman–Morrison–Woodbury formula”A rank- update of an invertible matrix has an inverse with the same kind of low-rank correction, never requiring a fresh inversion.
The point: inverting explicitly would cost . Once (or a factorization of ) is known, the formula needs only the inverse of the matrix , dropping the cost to . This is what enables recursive least squares and the Kalman filter (each new observation is a rank-one update of ), leave-one-out cross-validation (removing one data row is a rank-one update), and online linear regression in general.
Derivatives of matrix-valued functions
Section titled “Derivatives of matrix-valued functions”When depends on a parameter, derivatives of the quantities built from it follow simple rules.
For the inverse, differentiate :
This is the matrix analog of , the operator order is the only complication.
For a simple eigenvalue of with right eigenvector and left eigenvector (so and ), differentiating and projecting onto kills the unknown term and leaves
For a simple singular value with the associated left/right singular vectors , the analogous formula is
Both say the same thing: the rate of change of an eigen- or singular value is the directional derivative of in the rank-one direction picked out by its own eigen- or singular vectors. These are exactly the first-order perturbation formulas used in numerical stability analysis and in computing condition numbers of eigenproblems.
Why singular values decay
Section titled “Why singular values decay”Eckart–Young is only useful in practice if the discarded singular values are small. They almost always are, for structural reasons.
- Smoothness. Discretizing a smooth kernel to a matrix produces singular values that decay at least like in dimension , because smooth functions are well approximated by their first few Taylor or Fourier terms.
- Locality. Matrices that act locally (banded, sparse, or with quickly-decaying entries off the diagonal) approximate combinations of a few low-rank pieces plus a small remainder, and their singular values inherit the same decay.
- Statistical concentration. Data matrices whose rows are noisy samples of a low-dimensional signal split into a clean low-rank part plus high-rank noise of small magnitude; the first singular values capture the signal and the rest are at the noise level.
The contrast is sharp: a random Gaussian matrix has singular values bunched near with no useful decay, and there is nothing to compress. A discretized smooth kernel of comparable size has singular values plunging below machine precision within a few dozen terms.
This is the empirical fact that makes randomized SVD work, that explains why Sherman–Morrison–Woodbury updates are usually accurate (the discarded tail of is small), and that justifies modeling natural data with low-rank factorizations. The deeper theme of the next units, optimization and learning, is exactly that high-dimensional problems in practice live near low-dimensional manifolds, and the same linear-algebraic decay is what makes them tractable.