Eigenvalues, SVD, and High-Dimensional Vector Spaces in Machine Learning
Singular Value Decomposition (SVD) forms the mathematical backbone of modern representation learning, latent semantic analysis, and vector retrieval engines.
Spectral Theorem & Low-Rank Approximation
For any arbitrary matrix , there exists an orthogonal factorization:
Where and are orthonormal matrices containing the left and right singular vectors, and is diagonal with singular values .
Eckart-Young-Mirsky Theorem
The optimal rank- approximation minimizing the Frobenius norm error:
import numpy as np
def truncated_svd_embedding(X: np.ndarray, k: int) -> np.ndarray:
U, S, Vt = np.linalg.svd(X, full_matrices=False)
# Project high-dimensional token co-occurrence matrix into k-dimensional space
return U[:, :k] * np.sqrt(S[:k])Dimensionality Reduction Dynamics
In -dimensional Euclidean space, the volume of a hypersphere of radius scales according to:
As , virtually all mass in a Gaussian distribution concentrates within a thin spherical shell at radius , creating the curse of dimensionality in vector search.