Singular Value Decomposition (SVD) is a matrix factorization method that decomposes any real or complex matrix (A) (of dimensions (m \times n)) into three constituent matrices: (A = U \Sigma V^T). Here, (U) and (V) are orthogonal (or unitary) matrices containing the left and right singular vectors, and (\Sigma) is a diagonal matrix holding the non-negative singular values in descending order. This decomposition reveals the intrinsic geometric structure of the matrix, where the singular values quantify the importance or "energy" of corresponding vector directions.
Glossary
Singular Value Decomposition (SVD)

What is Singular Value Decomposition (SVD)?
Singular Value Decomposition (SVD) is a foundational matrix factorization technique in linear algebra and machine learning, central to data compression, dimensionality reduction, and low-rank approximation.
In machine learning and model compression, SVD is used for low-rank approximation by truncating the smallest singular values, creating a compressed representation (A_k = U_k \Sigma_k V_k^T). This reduces the parameter count and computational cost of large weight matrices in neural networks. The Eckart–Young theorem guarantees this truncated SVD is the optimal rank-k approximation under the Frobenius norm, making it essential for techniques like Principal Component Analysis (PCA) and efficient on-device inference.
Key Properties of SVD
Singular Value Decomposition (SVD) is a fundamental matrix factorization with unique mathematical properties that underpin its utility in compression, dimensionality reduction, and data analysis.
Existence and Uniqueness
The SVD is a universal factorization that exists for any real or complex matrix, regardless of its shape, rank, or condition. For any matrix A of dimensions m × n, there exists a decomposition A = U Σ V^T (or A = U Σ V^H for complex matrices), where:
- U is an m × m orthogonal/unitary matrix.
- Σ is an m × n rectangular diagonal matrix with non-negative real entries (the singular values).
- V^T is the transpose of an n × n orthogonal/unitary matrix V.
While the singular values themselves are uniquely determined for a given matrix, the singular vectors in U and V are unique only up to sign flips for non-degenerate singular values, and up to unitary transformations within subspaces corresponding to repeated singular values.
Optimal Low-Rank Approximation (Eckart–Young Theorem)
The Eckart–Young–Mirsky theorem establishes SVD's optimality for low-rank approximation. For a given matrix A and target rank k, the best rank-k approximation A_k in both the Frobenius norm and the spectral norm is obtained by the truncated SVD. This is done by:
- Taking the full SVD: A = U Σ V^T.
- Keeping only the k largest singular values in Σ, setting the rest to zero to form Σ_k.
- Forming the approximation: A_k = U Σ_k V^T.
This property is foundational for lossy compression and denoising, as it guarantees that discarding smaller singular values minimizes the reconstruction error. The approximation error is precisely the square root of the sum of squares of the discarded singular values for the Frobenius norm.
Reveals Fundamental Matrix Subspaces
SVD explicitly constructs the four fundamental subspaces of a matrix, providing deep geometric insight:
- Column Space (Range): Spanned by the first r columns of U, where r is the rank of A. These are the left singular vectors corresponding to non-zero singular values.
- Null Space (Kernel): Spanned by the last (n - r) columns of V. These are the right singular vectors corresponding to zero singular values.
- Row Space: Spanned by the first r columns of V.
- Left Null Space: Spanned by the last (m - r) columns of U.
The singular values quantify the energy or importance of each direction in these subspaces. This property is crucial for solving linear systems, understanding system controllability/observability, and performing tasks like latent semantic analysis (LSA) in NLP, where the column space of a term-document matrix represents concepts.
Stability and Condition Number
The SVD provides the most reliable numerical tool for diagnosing the stability and invertibility of a matrix. The condition number of a matrix A, denoted κ(A), is defined as the ratio of its largest to smallest singular value: κ(A) = σ_max / σ_min.
- A large condition number (e.g., > 10^12) indicates the matrix is ill-conditioned. Small perturbations in the input can cause large, unstable variations in the output, making problems like linear regression numerically challenging.
- A condition number near 1 indicates well-conditioning.
- Rank deficiency is revealed by singular values that are exactly zero (or, in practice, smaller than a numerical tolerance). This property is essential for ridge regression (Tikhonov regularization), which directly adds a constant to the singular values to improve condition number and solution stability.
Orthonormal Bases and Invariance
SVD produces orthonormal bases for the row and column spaces, which have desirable invariance properties:
- Unitary Invariance: The singular values of a matrix are invariant under unitary (orthogonal) transformations. For any unitary matrices P and Q, the matrix P A Q^H has the same singular values as A. This makes SVD robust to rotations and reflections.
- Scale Invariance (of subspaces): While singular values scale with the matrix norm, the relative directions of the principal components (the columns of U and V) are invariant to uniform scaling of the data.
- Connection to Eigen-decomposition: For a symmetric positive semi-definite matrix A, the SVD and eigen-decomposition coincide: U = V and Σ contains the eigenvalues. More generally, the squares of the singular values of A are the eigenvalues of A^T A and A A^T. These properties make SVD the preferred method over eigen-decomposition for general rectangular matrices and for applications like the PCA of a covariance matrix.
Computational and Compression Utility
The structure of SVD enables significant computational savings and parameter reduction, which is the core of its application in model compression:
- Parameter Count: A dense m × n weight matrix has m × n parameters. Its rank-k approximation via SVD stores U (m × k), Σ (k values), and V^T (k × n), totaling k(m + n + 1) parameters. For k << min(m, n), this represents massive compression.
- Computational Complexity: Matrix-vector multiplication A x costs O(mn). Using the factorized form (U (Σ (V^T x))) costs O(k(m + n)), which is far cheaper for low-rank matrices.
- Progressive Reconstruction: The truncated SVD offers a graceful trade-off between fidelity and compression. Each additional singular value/vector pair incrementally improves the approximation, allowing precise control over the compression-accuracy Pareto frontier. This makes SVD a cornerstone technique for compressing fully-connected and convolutional layers (via reshaping filters) in neural networks for on-device deployment.
SVD vs. Related Matrix Factorization Methods
A technical comparison of Singular Value Decomposition (SVD) against other core matrix and tensor factorization techniques used for dimensionality reduction, compression, and feature extraction in machine learning.
| Feature / Property | Singular Value Decomposition (SVD) | Principal Component Analysis (PCA) | Non-Negative Matrix Factorization (NMF) | Canonical Polyadic Decomposition (CPD) |
|---|---|---|---|---|
Primary Mathematical Operation | Matrix factorization: A = UΣVᵀ | Eigendecomposition of covariance matrix | Constrained matrix factorization (A ≈ WH) | Tensor factorization as sum of rank-one tensors |
Input Data Structure | Any real or complex matrix | Centered data matrix (mean-subtracted) | Non-negative matrix (e.g., pixel intensities, word counts) | Multi-way array (tensor) |
Output Factors | Orthogonal matrices U, V and diagonal Σ | Orthogonal eigenvectors (principal components) | Non-negative factor matrices W, H | Factor matrices for each tensor mode |
Factorization Uniqueness (Exact) | Always exists and is unique up to sign | Unique up to sign for distinct eigenvalues | Generally not unique; local minima exist | Essentially unique under mild conditions |
Rank Constraint Enforcement | Truncation of singular values (Truncated SVD) | Selection of top-k eigenvectors | Low-rank factorization via constraint on W, H dimensions | Specification of the CP rank (number of components) |
Interpretability of Factors | Mathematical; singular vectors may lack semantic meaning | Statistical; components are directions of max variance | High; enforces parts-based, additive representations | High; each component corresponds to a latent factor |
Common Use Case in ML/Compression | Low-rank approximation, collaborative filtering, image compression | Dimensionality reduction, data whitening, feature extraction | Topic modeling, source separation, image analysis | Tensor completion, multi-relational data, chemometrics |
Handling of Missing Data | Requires imputation or specialized algorithms (e.g., SVD-based completion) | Requires complete data or imputation | Algorithms exist for missing data (e.g., weighted NMF) | Core strength; many algorithms designed for tensor completion |
Frequently Asked Questions
Singular Value Decomposition (SVD) is a cornerstone linear algebra technique for matrix factorization and low-rank approximation. These FAQs address its core mechanics, applications in machine learning, and its role in model compression.
Singular Value Decomposition (SVD) is a fundamental matrix factorization method that decomposes any real or complex matrix into three constituent matrices, revealing its intrinsic geometric structure. For an m-by-n matrix A, the SVD is defined as A = UΣV^T, where U is an m-by-m orthogonal matrix whose columns are the left singular vectors, Σ (Sigma) is an m-by-n rectangular diagonal matrix containing the non-negative singular values in descending order, and V^T is the transpose of an n-by-n orthogonal matrix whose columns are the right singular vectors. The singular values represent the magnitude or "importance" of the corresponding singular vector directions. This decomposition exists for any matrix, making it exceptionally powerful for revealing rank, column space, row space, and null space properties. In geometric terms, any linear transformation can be decomposed into a rotation (V^T), a scaling (Σ), and another rotation (U).
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Singular Value Decomposition is the foundational linear algebra technique for low-rank approximation. These related concepts extend its principles to tensors, alternative algorithms, and specific applications in model compression.
Truncated SVD
Truncated SVD is the practical application of SVD for low-rank approximation and model compression. It retains only the top-k largest singular values and their corresponding singular vectors, discarding the rest. This directly creates a rank-k approximation of the original weight matrix.
- Mechanism: Given a matrix A with SVD A = UΣVᵀ, the truncated version is Aₖ = Uₖ Σₖ Vₖᵀ, where only the first k columns of U and V and the first k singular values in Σ are kept.
- Purpose: Drastically reduces the parameter count and computational cost for matrix-vector multiplications in neural network layers.
- Trade-off: Introduces an approximation error bounded by the Eckart–Young theorem, which states this is the optimal rank-k approximation under the Frobenius and spectral norms.
Principal Component Analysis (PCA)
Principal Component Analysis (PCA) is a closely related dimensionality reduction technique. For a centered data matrix X, PCA is performed via the eigenvalue decomposition of the covariance matrix XᵀX or via the SVD of X itself.
- Mathematical Link: The principal components are the right singular vectors (V) from the SVD of the centered data matrix X = UΣVᵀ. The eigenvalues of the covariance matrix are the squares of the singular values (σ²).
- Key Difference: While SVD is a general matrix factorization, PCA is a specific application of SVD (or eigen-decomposition) for finding orthogonal directions of maximum variance in data. In model compression, PCA principles inspire low-rank approximations of weight matrices.
Eckart–Young Theorem
The Eckart–Young–Mirsky theorem provides the theoretical foundation for using Truncated SVD in compression. It formally guarantees that the best low-rank approximation of a matrix is given by its truncated SVD.
- Formal Statement: For a matrix A and any matrix B of rank at most k, the minimum approximation error ||A - B|| (in either the Frobenius norm or spectral norm) is achieved by B = Aₖ, the truncated SVD retaining the k largest singular values.
- Implication for ML: This theorem justifies SVD as the optimal linear method for compressing weight matrices when measured by these norms. It sets a benchmark for other low-rank factorization techniques.
Nuclear Norm
The nuclear norm (or trace norm) is the sum of a matrix's singular values (||A||_* = Σ σ_i). It serves as a convex surrogate for the non-convex matrix rank function, enabling efficient optimization for low-rank solutions.
- Role in Optimization: In problems like low-rank matrix completion or robust PCA, the rank constraint is replaced with nuclear norm minimization, which can be solved via convex optimization techniques.
- Connection to SVD: The proximal operator for the nuclear norm is singular value thresholding, which applies soft-thresholding to the singular values from an SVD. This makes SVD a core subroutine in algorithms solving nuclear norm regularized problems.
Randomized SVD
Randomized SVD is a class of algorithms that compute an approximate truncated SVD for very large matrices more efficiently than classical methods. It is essential for applying low-rank techniques to massive weight matrices in modern LLMs.
- Core Idea: Uses random projection to identify a subspace that captures the matrix's range. A small matrix is formed by projecting the original onto this random subspace, and a standard SVD is computed on this smaller matrix.
- Advantage: Offers significant computational savings and reduced memory footprint, especially when only a modest number of singular values/vectors are needed. The error is probabilistic but controllable.
- Use Case: Enables feasible low-rank approximation of layers in billion-parameter models where full SVD is computationally prohibitive.
Tucker & Tensor-Train Decomposition
Tucker decomposition and Tensor-Train (TT) decomposition are higher-order generalizations of SVD for compressing tensors (multi-dimensional arrays), which naturally represent the weights of convolutional or multi-layer perceptron networks.
- Tucker Decomposition: Generalizes SVD by factorizing a tensor into a core tensor multiplied by a factor matrix along each mode. The multilinear rank is controlled by the size of this core. Higher-Order SVD (HOSVD) is a common algorithm to compute it.
- Tensor-Train Decomposition: Represents a high-dimensional tensor as a chain of interconnected low-rank core tensors. It mitigates the "curse of dimensionality" for parameter storage.
- Application: Directly used for neural network compression by applying these decompositions to the 4D weight tensors of convolutional layers, achieving high compression rates.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us