Skip to content

Updates and Sensitivity

Two questions sit next to each other in computational linear algebra: how does a small change in A\Av 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.

A rank-kk update of an invertible matrix has an inverse with the same kind of low-rank correction, never requiring a fresh n×nn \times n inversion.

The point: inverting A+UVT\Av + \Uv\Vv^{\rm T} explicitly would cost O(n3)O(n^3). Once A1\Av^{-1} (or a factorization of A\Av) is known, the formula needs only the inverse of the k×kk \times k matrix M\Mv, dropping the cost to O(n2k)O(n^2 k). This is what enables recursive least squares and the Kalman filter (each new observation is a rank-one update of ATA\Av^{\rm T}\Av), leave-one-out cross-validation (removing one data row is a rank-one update), and online linear regression in general.

When A(t)\Av(t) depends on a parameter, derivatives of the quantities built from it follow simple rules.

For the inverse, differentiate A(t)A(t)1=I\Av(t)\,\Av(t)^{-1} = \Iv:

A˙A1+Addt(A1)=0        ddtA1  =  A1A˙A1.\dot\Av\,\Av^{-1} + \Av\,\frac{d}{dt}(\Av^{-1}) = 0 \;\;\Longrightarrow\;\; \frac{d}{dt}\Av^{-1} \;=\; -\Av^{-1}\,\dot\Av\,\Av^{-1}.

This is the matrix analog of (1/x)=x/x2(1/x)' = -x'/x^2, the operator order is the only complication.

For a simple eigenvalue λ(t)\lambda(t) of A(t)\Av(t) with right eigenvector v\vv and left eigenvector uT\uv^{\rm T} (so Av=λv\Av\vv = \lambda\vv and uTA=λuT\uv^{\rm T}\Av = \lambda\uv^{\rm T}), differentiating Av=λv\Av\vv = \lambda\vv and projecting onto uT\uv^{\rm T} kills the unknown v˙\dot\vv term and leaves

λ˙  =  uTA˙vuTv.\dot\lambda \;=\; \frac{\uv^{\rm T}\,\dot\Av\,\vv}{\uv^{\rm T}\vv}.

For a simple singular value σ(t)\sigma(t) with the associated left/right singular vectors u,v\uv, \vv, the analogous formula is

σ˙  =  uTA˙v.\dot\sigma \;=\; \uv^{\rm T}\,\dot\Av\,\vv.

Both say the same thing: the rate of change of an eigen- or singular value is the directional derivative of A\Av 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.

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 K(s,t)K(s,t) to a matrix Kij=K(si,tj)K_{ij} = K(s_i, t_j) produces singular values that decay at least like eck1/de^{-c k^{1/d}} in dimension dd, 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 rr 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 n\sqrt{n} 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 σi\sigma_i 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.