- Introduced by
- Emmanuel Candès & Benjamin Recht
- Year
- 2009
- Type
- Convex low-rank recovery
- Family
- Missing data
What does it do?
Matrix completion is a technique for recovering a low-rank matrix from a small subset of its entries.
Candès and Recht (2009) gave an exact-recovery guarantee for it: the matrix is found by nuclear norm minimization, a convex surrogate for rank minimization. When the observed entries are sampled uniformly at random and enough of them are seen, most low-rank matrices can be recovered exactly with very high probability.
The intuition behind the method
Imagine a partially filled spreadsheet of user-movie ratings where most cells are blank. If the underlying data has a simple structure — say, taste is explained by just a few latent factors like genre preference and era — then knowing even a small fraction of ratings is enough to fill in the rest with confidence. Matrix completion exploits this hidden low-dimensional structure, much like completing a jigsaw puzzle when you know the picture has only a few distinct shapes.
History
Matrix completion is connected to the compressed sensing literature, and Candès and Recht (2009) established an exact recovery result for it via nuclear norm minimization, extending it to arbitrary rectangular matrices. The problem itself arose earlier in collaborative filtering. Its use in recommender systems and other settings followed, and the method is now often discussed in that context.
When to use it
Use matrix completion when the data can be arranged as a matrix with missing entries, the missingness is plausibly random with respect to the values, and the complete matrix is believed to be approximately low rank, as in recommender systems, genomics, or image recovery. It is a poor choice when missingness is systematic, for example when users rate only the items they liked, because the sampling model behind the guarantees no longer holds. It is also unsuitable when the matrix is close to full rank. When observations are noisy, do not use the exact-equality program; prefer a noise-tolerant formulation, such as a nuclear norm penalty added to a least-squares fit on the observed entries, or a nuclear norm program with a bound on the residual. For general missing data without low-rank structure, MICE imputation is a more natural alternative, and NMF is the related choice when non-negativity of the factors is required.
Limitations and considerations
- Solving the nuclear norm program with general semidefinite solvers becomes expensive as the matrix dimensions grow, which motivates factored or first-order alternatives
- The incoherence assumption may fail in real datasets with structured missingness or concentrated singular vectors, and the recovery guarantee then no longer applies
- The stated sample bound assumes the rank is not too large; when the rank is large relative to the dimensions, the sampling requirement becomes unfavourable and recovery can fail
- The exact-equality formulation is sensitive to noise, because it forces the solution to match noisy observations; noise-tolerant variants (penalized or residual-constrained nuclear norm programs) are needed and add a parameter to tune
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- For most low-rank matrices sampled uniformly at random, the nuclear norm program recovers the matrix exactly, and this is proved rather than only observed empirically
- Because the sample requirement is governed by the rank, a genuinely low-rank matrix can be recovered from a small fraction of its entries
- No prior knowledge of the rank is required as an input; the nuclear norm objective favours low-rank solutions without the user specifying the rank
- The exact-recovery theory gives a formal basis for when the method should work, not only empirical evidence for particular datasets
Applications
- Collaborative filtering and recommender systems (predicting user-item ratings)
- Genomics and bioinformatics (recovering gene expression matrices with missing measurements)
- Computer vision (image inpainting and video background subtraction)
- Sensor network localization (recovering position matrices from partial distance measurements)
- Neuroscience (completing functional connectivity matrices from partial fMRI observations)
How it works
How it works
The algorithm begins with a matrix M whose entries are observed only on an index set Omega. These observed values form the constraints for the recovery problem. The observed positions are assumed to be selected uniformly at random, which is the sampling model under which the exact-recovery result is proved.
Formula
\text{Given } M \in \mathbb{R}^{n_1 \times n_2},\; \text{observe entries } \{M_{ij}\}_{(i,j)\in\Omega}Minimizing the rank of a matrix directly is computationally intractable in general, so Candès and Recht minimize the nuclear norm, the sum of singular values, as a convex relaxation. The program finds the matrix with minimum nuclear norm that fits the observed data. The nuclear norm plays a role for matrices similar to that of the L1 norm for vectors in compressed sensing: it favours low-rank solutions while keeping the problem convex.
Formula
\min_{X} \|X\|_* \quad \text{subject to} \quad X_{ij} = M_{ij},\; \forall (i,j)\in\OmegaRecovery from randomly sampled entries is only possible if the singular vectors of the true matrix are not too aligned with the standard basis. This is quantified by an incoherence parameter mu. The full analysis of Candès and Recht relies on a condition of this type; the abstract cited here does not state it, so consult the paper for the exact form before relying on it. Matrices whose singular vectors are spread across many coordinates are incoherent. Matrices that concentrate their energy in a few rows or columns are coherent: much of their information sits in a small set of entries, and if those are unobserved, recovery from a random sample can fail.
Formula
\max_{i} \|U^\top e_i\|^2 \leq \frac{\mu r}{n_1},\quad \max_{j} \|V^\top e_j\|^2 \leq \frac{\mu r}{n_2}For an n×n matrix of rank r, the cited abstract proves that if the number m of uniformly sampled entries satisfies m ≥ C n^1.2 r log n, then with very high probability most such matrices are recovered exactly by nuclear norm minimization. This condition assumes the rank is not too large; replacing the exponent 1.2 by 1.25 makes the result hold for all ranks. Similar results hold for rectangular matrices. The guarantee describes most matrices in the class, not every matrix of a given rank.
Formula
\text{For } n\times n \text{ rank-}r\; M:\; \text{if } m \ge C\, n^{1.2}\, r \log n \text{ entries are sampled uniformly (}n^{1.25}\text{ for all ranks), then } \hat{X}=M \text{ with very high probability}Common pitfalls
- Assuming uniform random missingness when real observations are user-selected or biased (e.g., only highly rated items are rated), which violates the theoretical sampling model
- Neglecting to check the incoherence condition, leading to poor recovery even when the number of observed entries seems sufficient
- Imposing exact equality constraints on noisy observations, as the basic nuclear norm formulation does, can force noise into the solution; a noise-tolerant formulation is needed in that setting
- Conflating matrix completion with matrix factorization heuristics: alternating least squares may converge to local minima and lacks the recovery guarantees of nuclear norm minimization
Frequently asked questions
Is nuclear norm minimization the only way to solve matrix completion?
No. Alternating least squares (ALS) and gradient descent on factored forms (e.g., SGD on U and V such that M ≈ UV^T) are widely used in practice for scalability. However, these non-convex approaches lack the exact recovery guarantees of nuclear norm minimization and may converge to local minima without careful initialization.
How much data is needed for exact recovery?
The cited result requires m ≥ C n^1.2 r log n uniformly sampled entries for an n×n matrix of rank r (with exponent 1.25 the result holds for all ranks), where C is a numerical constant. For low-rank matrices this is far below the total number of entries. The intrinsic degrees of freedom of an n×n rank-r matrix are r(2n−r), which is the natural scale for comparison.
What is the incoherence condition and why does it matter?
Incoherence measures how spread out the singular vectors are across the coordinate basis. A matrix with concentrated singular vectors, such as a rank-1 matrix that is nonzero only in one row, stores most of its information in a small set of entries. If those entries happen to be unobserved, recovery is impossible regardless of how many other entries are known.
Related methods
Sources
Candès, E. J., & Recht, B. (2009). Exact matrix completion via convex optimization. Foundations of Computational Mathematics, 9(6), 717–772.
Open DOI reference