Matrix Completion Theory
Nuclear norms, incoherence and how many entries you need.
A matrix of rank 10 has a hundred million entries but only about 200,000 degrees of freedom. Can you recover it exactly from a small random fraction of its entries? Under two conditions, yes: the information must be spread out across the matrix, and the sample must touch every row and column. Then the number of entries needed is the number of degrees of freedom times logarithmic factors. This lesson proves it by convex relaxation and a dual certificate, and surveys the fast nonconvex algorithms that now have guarantees of their own.
What you’ll learn
- Explain why completion needs incoherence and at least order random entries, from a coherent counterexample and the coupon-collector argument.
- Formulate nuclear-norm minimization, prove the variational formula that ties it to regularized factorization, and state the exact-recovery theorem with its constants.
- Prove the dual-certificate condition for exact recovery, and sketch how the golfing scheme builds the certificate.
- Derive singular value thresholding as the proximal operator of the nuclear norm, and summarize guarantees for noisy completion and for nonconvex algorithms.
When is completion possible?
Let have rank and thin SVD , and write . You observe , where is a set of positions drawn uniformly at random and zeroes every entry outside . Matrix completion asks for . A rank- matrix has degrees of freedom, so must be at least that; two further obstructions push the requirement up.
Coherence. If , a single 1 in the corner, then unless that entry is sampled, is indistinguishable from the zero matrix, which has even lower rank. The information must be spread across rows and columns. Candès & Recht (2009) measured this by the coherence of a subspace of of dimension :
It equals 1 when every coordinate carries an equal share of the subspace, and when the subspace contains a standard basis vector.
Sampling. Given the row space, each row has free coefficients, so every row and every column must be observed at least times, and certainly at least once. With uniform samples in an matrix, a given row is missed with probability , so the expected number of unobserved rows, , stays above 1 unless : the coupon collector's problem.
Take , rank and . What percentage of the entries is ?
Show the answer
0.92 %
, about 0.92% of . The degrees of freedom, , are 0.2%: the logarithm costs a factor of about 4.6 here, the price of reaching every row and column by chance.
Consider the rank-1 matrix with . For which is completion from a few percent of random entries hopeless?
- with random entries
- with independent Gaussian entries, normalized
Show the answer
C.
For the coherence is , the maximum: the matrix is zero except at one entry, which a few percent of samples almost surely misses. The flat vectors have coherence 1, and a random Gaussian direction has coherence of order , both easy cases.
Nuclear-norm minimization
Finding the lowest-rank matrix that agrees with the observations is NP-hard in general. The convex relaxation replaces rank by the nuclear norm , the norm of the singular values, just as the lasso replaces a count of nonzeros by the norm. On the spectral-norm unit ball, the nuclear norm is the convex envelope of the rank, the largest convex function below it (Recht, Fazel & Parrilo, 2010). The program is a semidefinite program:
By duality, with the spectral norm. For any factorization and any , Cauchy–Schwarz and the arithmetic–geometric mean inequality give
The bound is attained: with , take and , padded with zero columns up to .
So the ridge-penalized factorization of the Descent lesson, , has the same optimal value as the convex problem restricted to rank at most ; once is at least the rank of the convex solution, the restriction costs nothing. The nonconvex objective everyone uses is a convex problem in disguise, at least at its global minima.
This bound took three steps. Candès & Recht (2009) proved exact recovery of most rank- matrices from about entries when the rank is small ( for any rank); Candès & Tao (2010) reached times a polylogarithm under a stronger incoherence condition; Gross (2011) and Recht (2011) obtained the form above with a short proof. Against the lower bound , it is optimal up to a constant and one factor of . Since , condition (A1) can be dropped at the cost of a factor , and Chen (2015) showed it is not needed at all, giving order .
Why it works: dual certificates
Write for the tangent space at to the set of rank- matrices, with orthogonal projections
The subdifferential of the nuclear norm at is . A point is optimal for the convex program when some subgradient is orthogonal to every feasible direction, and a dual certificate is a witness of exactly that.
Any other feasible point is with . From the SVD of , whose singular vectors lie in the complements of and , pick with and . Then is a subgradient at :
Use the certificate. because lives on and vanishes there, and . The spectral and nuclear norms are dual, so
Combine the two. The objective strictly increases unless ; but then with , so by injectivity.
Injectivity comes from concentration. Sampling with replacement, which can only make recovery harder, is an average of independent random operators with mean , and a matrix Bernstein inequality keeps it within of in operator norm once (Recht, 2011). Incoherence is what makes each sampled entry's contribution small enough for the concentration to work.
The certificate is built by the golfing scheme of Gross (2011). Split the samples into independent batches of size and correct the error batch by batch:
Since , each batch halves with high probability, so , while incoherence keeps . The certificate is only approximate, so the condition above is used in a slightly robust form, which injectivity with a margin supplies. Each batch needs about samples and about batches are needed: that is where the comes from. The technique was developed for quantum state tomography (Gross et al., 2010), where the low-rank matrix to recover is a quantum density matrix.
Algorithms and nonconvex guarantees
By von Neumann's trace inequality, , with equality when shares 's singular vectors. Expanding the square therefore gives a lower bound that depends only on singular values:
The bound separates into scalar problems , each solved by , and it is attained by the matrix with 's singular vectors and those singular values.
This step drives the convex solvers. Soft-Impute (Mazumder, Hastie & Tibshirani, 2010) minimizes by proximal gradient descent with unit step, which reads: fill in the missing entries with the current guess, then soft-threshold the singular values,
Singular value thresholding (Cai, Candès & Shen, 2010) attacks the equality-constrained problem through its dual. Each iteration needs only a partial SVD, which is cheap when the iterates have low rank and is sparse.
Noise. With noisy entries, exact recovery gives way to error bounds. For entries bounded by and noise level , a nuclear-norm penalized estimator reaches, with high probability, a mean squared error per entry of order , degrees of freedom over samples times the noise and a logarithm, and this is minimax optimal up to logarithmic factors (Koltchinskii, Lounici & Tsybakov, 2011).
Nonconvex methods. Practice factorizes with columns and runs alternating least squares or gradient descent, and theory caught up in the 2010s. OptSpace (Keshavan, Montanari & Oh, 2010) trims over-represented rows and columns, takes a rank- SVD of the rescaled observations and refines it on the Grassmann manifold: for bounded rank it recovers exactly from entries, and from entries its relative error is at most of order . Alternating minimization from a spectral start converges geometrically to under incoherence (Jain, Netrapalli & Sanghavi, 2013), with a sample size that grows polynomially in the rank and the condition number.
No spurious local minima. For positive semidefinite completion, Ge, Lee & Ma (2016) showed that the commonly used nonconvex objective , plus a regularizer that penalizes rows of that grow too large, has no spurious local minima: with enough samples (a polynomial in the rank, the incoherence and the condition number, times ), every local minimum is global with high probability, so gradient methods succeed from an arbitrary start. Ge, Jin & Zheng (2017) extended this to rectangular matrices.
| Approach | Idea | Guarantee |
|---|---|---|
| Nuclear-norm minimization | convex program, solved by SVT or proximal methods | exact recovery from order samples |
| Soft-Impute | proximal gradient on the penalized problem | global optimum of a convex objective; with noise, related nuclear-norm estimators are minimax-optimal up to logarithms |
| OptSpace | trimmed spectral start, manifold refinement | exact from entries when |
| Alternating minimization | least squares on each factor in turn, from a spectral start | geometric convergence; samples polynomial in rank and condition number |
| Gradient descent on factors | optimize directly | no spurious local minima, with a row-norm regularizer and enough samples (positive semidefinite case first, then rectangular) |
Key takeaways
- Completion needs incoherence (the coherence must be small) and at least order random entries: the coupon-collector bound holds for every method.
- Nuclear-norm minimization recovers exactly from uniform samples with high probability, which is optimal up to a constant and one .
- : ridge-penalized factorization is nuclear-norm regularization in disguise.
- Exact recovery follows from injectivity of on the tangent space plus a dual certificate on with and ; the golfing scheme builds it in about batches, which is where comes from.
- The proximal operator of soft-thresholds singular values, powering SVT and Soft-Impute. Nonconvex methods (spectral initialization, alternating minimization, gradient descent on factors) now have guarantees, though with worse dependence on rank and condition number than experiments suggest.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Why do even rank-1 matrices need at least about uniformly sampled entries?
- Because the nuclear norm is only an approximation to the rank
- Because every row and column must be observed at least once, and by the coupon-collector argument that takes about random samples
- Because a rank-1 matrix has degrees of freedom
- Because the SVD costs
Show the answer
B. Because every row and column must be observed at least once, and by the coupon-collector argument that takes about random samples
An unobserved row of leaves its coefficient completely undetermined. With samples the expected number of unobserved rows is about , which falls below 1 only when . This bound holds for every method, convex or not.
What is , where ?
- , shifting every singular value down by
- , keeping only the singular values above unchanged
- , shrinking all entries proportionally
- , soft-thresholding the singular values
Show the answer
D. , soft-thresholding the singular values
By von Neumann's trace inequality the minimizer shares 's singular vectors, and the problem splits into scalar problems , solved by . It is the matrix version of the lasso's soft thresholding.
In the dual-certificate proof of exact recovery, what does the condition buy?
- It shows that the certificate equals
- It makes the nuclear norm grow strictly in every feasible direction leaving the tangent space , so the only feasible direction left is inside , where injectivity of forbids it
- It guarantees that the semidefinite program can be solved in polynomial time
- It ensures the observed entries are sampled uniformly
Show the answer
B. It makes the nuclear norm grow strictly in every feasible direction leaving the tangent space , so the only feasible direction left is inside , where injectivity of forbids it
For feasible , the proof gives . A strict margin below 1 makes any component outside costly, and injectivity on rules out the rest.
The penalized factorization , with inner dimension large enough, has the same optimal value as which convex problem?
- None: a nonconvex problem cannot match a convex one
Show the answer
A.
Minimizing over all factorizations of a fixed gives by the variational formula. Once is at least the rank of the convex solution, the two problems have the same optimal value, and a convex solution factors into an optimal .
Further reading
- E. J. Candès & B. Recht, "Exact matrix completion via convex optimization," Foundations of Computational Mathematics 9(6), 717–772 (2009).
- E. J. Candès & T. Tao, "The power of convex relaxation: near-optimal matrix completion," IEEE Transactions on Information Theory 56(5), 2053–2080 (2010).
- B. Recht, "A simpler approach to matrix completion," Journal of Machine Learning Research 12, 3413–3430 (2011).
- D. Gross, "Recovering low-rank matrices from few coefficients in any basis," IEEE Transactions on Information Theory 57(3), 1548–1566 (2011).
- Y. Chi, Y. M. Lu & Y. Chen, "Nonconvex optimization meets low-rank matrix factorization: an overview," IEEE Transactions on Signal Processing 67(20), 5239–5269 (2019).