Singular Value Decomposition

Singular value decomposition decomposes any matrix into input directions, output directions, and scaling factors.

For :

where:

  • contains left singular vectors.
  • contains right singular vectors.
  • is diagonal or rectangular-diagonal with nonnegative singular values.

Interpretation

The matrix first rotates or reflects by , scales by , then rotates or reflects by .

For an input vector :

Large singular values identify directions preserved or amplified by the transformation.

Low-Rank Approximation

The rank- approximation keeps the largest singular values:

This is the best rank- approximation under the Frobenius norm.

More explicitly:

The approximation error is:

where are singular values sorted in descending order.

Relation to Eigenvalues

SVD is connected to eigen-decomposition:

The squared singular values are eigenvalues of :

This is why singular values measure how strongly a linear map stretches directions, even when is not square.

Spectral Norm and Conditioning

The largest singular value is the spectral norm:

For a full-rank square matrix, the condition number is:

A large condition number means some directions are amplified much more than others. This can make optimization, linear solves, and representation inversion numerically fragile.

PCA Connection

For centered data matrix :

The covariance matrix is:

Thus PCA directions are right singular vectors of centered data, and explained variances are:

Representation Diagnostics

For an embedding matrix , singular values can reveal whether information is spread across dimensions:

A rapid collapse of may indicate redundant dimensions or representation collapse. This is a diagnostic, not proof by itself.

Why It Matters

  • PCA can be implemented with SVD on centered data.
  • Embedding matrices can be inspected through singular values.
  • Low-rank adapters and factorized layers use similar structure.
  • Representation collapse can appear as a sharp drop in singular values.

Checks

  • Is the matrix centered or normalized before applying SVD?
  • Are singular values used for compression, diagnostics, PCA, or numerical stability?
  • Does a low-rank approximation preserve the task-relevant signal?
  • Are small singular values numerical noise or meaningful low-variance directions?
  • Is the matrix raw, centered, normalized, whitened, or batched?
  • Is the conclusion based on singular values alone or validated by downstream behavior?