A Simpler Approach to Matrix Completion
Benjamin Recht
Introduction
Recovering a low rank matrix from a given subset of its entries is a recurring problem in collaborative filtering , dimensionality reduction , and multi-class learning . While a variety of heuristics have been developed across many disciplines, the general problem of finding the lowest rank matrix satisfying equality constraints is NP-hard. All known algorithms which can compute the lowest rank solution for all instances require time at least exponential in the dimensions of the matrix in both theory and practice .
Nuclear norm minimization had long been observed to produce very low-rank solutions in practice (see, for example ), but only very recently was there any theoretical basis for when it produced the minimum rank solution. The first paper to provide such foundations was , where Recht, Fazel, and Parrilo developed probabilistic techniques to study average case behavior and showed that the nuclear norm heuristic could solve most instances of the rank minimization problem assuming the number of linear constraints was sufficiently large. The results in inspired a groundswell of interest in theoretical guarantees for rank minimization, and these results lay the foundation for . Candès and Recht’s bounds were subsequently improved by Candès and Tao and Keshavan, Montanari, and Oh to show that one could, in special cases, reconstruct a low-rank matrix by observing a set of entries of size at most a polylogarithmic factor larger than the intrinsic dimension of the variety of rank matrices.
This paper sharpens the results in to provide a bound on the number of entries required to reconstruct a low rank matrix which is optimal up to a small numerical constant and one logarithmic factor. The main theorem makes minimal assumptions about the low rank matrix of interest. Moreover, the proof is very short and relies on mostly elementary analysis.
In order to precisely state the main result, we need one definition. Candès and Recht observed that it is impossible to recover a matrix which is equal to zero in nearly all of its entries unless all of the entries of the matrix are observed (consider, for example, the rank one matrix which is equal to in one entry and zeros everywhere else). In other words, the matrix cannot be mostly equal to zero on the observed entries. This motivated the following definition
Note that for any subspace, the smallest can be is , achieved, for example, if is spanned by vectors whose entries all have magnitude . The largest possible value for is which would correspond to any subspace that contains a standard basis element. If a matrix has row and column spaces with low coherence, then each entry can be expected to provide about the same amount of information.
Recall that the nuclear norm of an matrix is the sum of the singular values of , , where, here and below, denotes the th largest singular value of . The main result of this paper is the following
Let be an matrix of rank with singular value decomposition . Without loss of generality, impose the conventions , is , is and is . Assume that
The row and column spaces have coherences bounded above by some positive .
The matrix has a maximum entry bounded by in absolute value for some positive .
Suppose entries of are observed with locations sampled uniformly at random. Then if
for some , the minimizer to the problem
is unique and equal to with probability at least .
The assumptions and were introduced in . Both and may depend on , , or . Moreover, note that by the Cauchy-Schwarz inequality. As shown in , both subspaces selected from the uniform distribution and spaces constructed as the span of singular vectors with bounded entries are not only incoherent with the standard basis, but also obey A1 with high probability for values of at most logarithmic in and/or . Applying this theorem to the models studied in Section 2 of , we find that there is a numerical constant such that entries are sufficient to reconstruct a rank matrix whose row and column spaces are sampled from the Haar measure on the Grassmann manifold. If , the number of entries can be reduced to . Similarly, there is a numerical constant such that entries are sufficient to recover a matrix of arbitrary rank whose singular vectors have entries with magnitudes bounded by .
Theorem 1.1 greatly improves upon prior results. First of all, it has the weakest assumptions on the matrix to be recovered. In addition to assumption A1, Candès and Tao require a “strong incoherence condition” (see ) which is considerably more restrictive than the assumption A0 in Theorem 1.1. Many of their results also require restrictions on the rank of , and their bounds depend superlinearly on . Keshavan et al require the matrix rank to be no more than , and require bounds on the maximum magnitude of the entries in and the ratios and . Theorem 1.1 makes no such assumptions about the rank, aspect ratio, nor condition number of . Moreover, (1.2) has a smaller log factor than , and features numerical constants that are both explicit and small.
Also note that there is not much room for improvement in the bound for . It is a consequence of the coupon collector’s problem that at least uniformly sampled entries are necessary just to guarantee that at least one entry in every row and column is observed with high probability. In addition, rank matrices have parameters, a fact that can be verified by counting the number of degrees of freedom in the singular value decomposition. Interestingly, Candès and Tao showed that entries were necessary for completion when the entries are sampled uniformly at random . Hence, (1.2) is optimal up to a small numerical constant times .
Most importantly, the proof of Theorem 1.1 is short and straightforward. Candès and Recht employed sophisticated tools from the study of random variables on Banach spaces including decoupling tools and powerful moment inequalities for the norms of random matrices. Candès and Tao rely on intricate moment calculations spanning over pages. The present work only uses basic matrix analysis, elementary large deviation bounds, and a noncommutative version of Bernstein’s Inequality proven here in the Appendix.
The proof of Theorem 1.1 is inspired by a recent paper in quanutm information which considered the problem of reconstructing the density matrix of a quantum ensemble using as few measurements as possible . Their work adapted results from and to the quantum regime by using special algebraic properties of quantum measurements. Their proof followed a methodology analogous to the approach of Candès and Recht but had two main differences: they used a sampling with replacement model as a proxy for uniform sampling, and they deployed a powerful noncommutative Chernoff bound developed by Ahlswede and Winter for use in quantum information theory . In this paper, I adapt these two strategies from to the matrix completion problem. In section 3 I show how the sampling with replacement model bounds probabilities in the uniform sampling model, and present very short proofs of some of the main results in . Surprisingly, this yields a simple proof of Theorem 1.1, provided in Section 4, which has the least restrictive assumptions of any assertion proven thus far.
Preliminaries and notation
Before continuing, let us survey the notations used throughout the paper. I closely follow the conventions established in , and invite the reader to consult this reference for a more thorough discussion of the matrix completion problem and the associated convex geometry. A thorough introduction to the necessary matrix analysis used in this paper can be found in .
Linear transformations that act on matrices will be denoted by calligraphic letters. In particular, the identity operator will be denoted by . The spectral norm (the top singular value) of such an operator will be denoted by .
The orthogonal projection onto is given by
where and are the orthogonal projections onto and respectively. Note here that while and are matrices, is a linear operator mapping matrices to matrices. The orthogonal projection onto is given by
where denotes the identity matrix. It follows from the definition (2.1) of that
Since and ,
I will make frequent use of this calculation throughout the sequel.
Sampling with Replacement
As discussed above, the main contribution of this work is an analysis of uniformly sampled sets of entries via the study of a sampling with replacement model. All of the previous work studied a Bernoulli sampling model as a proxy for uniform sampling. There, each entry was revealed independently with probability equal to . In all of these results, the theorem statements concerned sampling sets of entries uniformly, but it was shown that probability of failure under Bernoulli sampling with closely approximated the probability of failure under uniform sampling. The present work will analyze the situation where each entry index is sampled independently from the uniform distribution on . This modification of the sampling model gives rise to all of the simplifications below.
It would appear that sampling with replacement is not suitable for analyzing matrix completion as one might encounter duplicate entries. However, just as is the case with Bernoulli sampling, bounding the likelihood of error when sampling with replacement allows us to bound the probability of the nuclear norm heuristic failing under uniform sampling.
The probability that the nuclear norm heuristic fails when the set of observed entries is sampled uniformly from the collection of sets of size is less than or equal to the probability that the heuristic fails when entries are sampled independently with replacement.
Proof The proof follows the argument in Section II.C of . Let be a collection of entries, each sampled independently from the uniform distribution on . Let denote a set of entries of size sampled uniformly from all collections of entries of size . It follows that
Where the inequality follows because if . That is, the probability decreases as the number of entries revealed is increased.
Surprisingly, changing the sampling model makes most of the theorems from simple consequences of a noncommutative variant of Bernstein’s Inequality.
Note that in the case that , this is precisely the two sided version of the standard Bernstein Inequality. When the are diagonal, this bound is the same as applying the standard Bernstein Inequality and a union bound to the diagonal of the matrix summation. Furthermore, observe that the right hand side is less than as long as . This condensed form of the inequality will be used exclusively throughout. Theorem 3.2 is a corollary of an Chernoff bound for finite dimensional operators developed by Ahlswede and Winter . A similar inequality for symmetric i.i.d. matrices is proposed in . The proof is provided in the Appendix.
Let us now record two theorems, proven for the Bernoulli model in , that admit very simple proofs in the sampling with replacement model. The theorem statements requires some additional notation. Let be a collection of indices sampled uniformly with replacement. Set to be the operator
Note that the th component of is zero unless . For , is equal to times the multiplicity of . Unlike in previous work on matrix completion, is not a projection operator if there are duplicates in . Nonetheless, this does not adversely affect the argument, and if and only if for all . Moreover, we can show that the maximum duplication of any entry is always less than with very high probability.
With probability at least , the maximum number of repetitions of any entry in is less than for and .
Proof This assertion can be proven by applying a standard Chernoff bound for the Bernoulli distribution. Note that for a fixed entry, the probability it is sampled more than times is equal to the probability of more than heads occurring in a sequence of tosses where the probability of a head is . This probability can be upper bounded by
(see , for example). Applying the union bound over all of the entries and the fact that , we have
This application of the Chernoff bound is very crude, and much tighter bounds can be derived using more careful analysis. For example in , the maximum oversampling is shown to be bounded by . For our purposes here, the loose upper bound provided by Proposition 3.3 will be more than sufficient.
In addition to this bound on the norm of , the following theorem asserts that the operator is also very close to an isometry on if the number of sampled entries is sufficiently large. This result is analgous to the Theorem 4.1 in for the Bernoulli model, whose proof uses several powerful theorems from the study of probability in Banach spaces. Here, one only needs to compute a few low order moments and then apply Theorem 3.2.
Suppose is a set of entries of size sampled independently and uniformly with replacement. Then for all ,
with probability at least provided that .
Proof Decompose any matrix as so that
For sample from uniformly with replacement. Then which gives
Now the fact that the operator does not deviate from its expected value
in the spectral norm can be proven using the Noncommutative Bernstein Inequality.
Observe that if and are positive semidefinite, we have . Using this fact, we can compute the bound
where the final inequality follows from (2.2). We also have
The theorem now follows by applying the Noncommutative Bernstein Inequality.
The next theorem is an analog of Theorem 6.3 in or Lemma 3.2 in . This theorem asserts that for a fixed matrix, if one sets all of the entries not in to zero it remains close to a multiple of the original matrix in the operator norm.
Suppose is a set of entries of size sampled independently and uniformly with replacement and let be a fixed matrix. Assume without loss of generality that , Then for all ,
with probability at least provided that .
Proof First observe that the operator norm can be upper bounded by a multiple of the matrix infinity norm
Note that . This is a sum of zero-mean random matrices, and for . We also have
where we again use the fact that for positive semidefinite and . A similar calculation holds for . The theorem now follows by the Noncommutative Bernstein Inequality.
Finally, the following Lemma is required to prove Theorem 1.1. Succinctly, it says that for a fixed matrix in , the operator does not increase the matrix infinity norm.
Suppose is a set of entries of size sampled independently and uniformly with replacement and let be a fixed matrix. Assume without loss of generality that . Then for all ,
with probability at least provided that .
Since the entry of is identically distributed to , where are i.i.d. copies of , we have by Bernstein’s Inequality and the union bound:
Proof of Theorem 1.1
The proof follows the program developed in which itself adapted the strategy proposed in . The main idea is to approximate a dual feasible solution of (1.3) which certifies that is the unique minimum nuclear norm solution. In such a certificate was constructed via an infinite series using a construction developed in the compressed sensing literature . The terms in this series were then analyzed individually using the decoupling inequalities of de la Peña and Montgomery-Smith . Truncating the infinite series after terms gave their result. In , the authors bounded the contribution of terms in this series using intensive combinatorial analysis of each term. The insight in was that, when sampling observations with replacement, a dual feasible solution could be closely approximated by a modified series where each term involved the product of independent random variables. This change in the sampling model allows one to avoid decoupling inequalities and gives rise to the dramatic simplification here.
To proceed, recall again that by Proposition 3.1 it suffices to consider the scenario when the entries are sampled independently and uniformly with replacement. I will first develop the main argument of the proof assuming many conditions hold with high probability. The proof is completed by subsequently bounding probability that all of these events hold. Suppose that
Also suppose there exists a in the range of such that
If (4.1) holds, then for any , cannot be too large. Indeed, we have
and . Collecting these facts gives that for any ,
Now recall that . For , pick and such that and are unitary matrices and that . Then it follows that
The first inequality holds from the variational characterization of the nuclear norm. We also used the fact that for all . Thus, if a exists obeying (4.2), we have that for any obeying , . That is, any if has for all , has strictly larger nuclear norm than , and hence is the unique minimizer of (1.3). The remainder of the proof shows that such a exists with high probability.
To this end, partition into partitions of size . By assumption, we may choose
Let denote the set of indices corresponding to the th partition. Note that each of these partitions are independent of one another when the indices are sampled with replacement. Assume that
for all . Define and set , for . Then
and it follows that . Since , then will satisfy the first inequality of (4.2). Also suppose that
To see that when (4.4) and (4.5) hold, observe , and it follows that
since . The first inequality follows from the triangle inequality. The second line follows because for all . The third line follows because, for any ,
The fourth line applies (4.5). The next line follows from (4.4). The final line follows from the assumption A1.
All that remains is to bound the probability that all of the invoked events hold. With satisfying the bound in the main theorem statement, the first inequality in (4.1) fails to hold with probability at most by Theorem 3.4, and the second inequality fails to hold with probability at most by Proposition 3.3. For all , (4.3) fails to hold with probability at most , (4.4) fails to hold with probability at most , and (4.5) fails to hold with probability at most . Summing these all together, all of the events hold with probability at least
by the union bound. This completes the proof.
Discussion and Conclusions
The results proven here are nearly optimal, but small improvements can possibly be made. The numerical constant in the statement of the theorem may be reducible by more clever bookkeeping, and it may be possible to derive a linear dependence on the logarithm of the matrix dimensions. But further reduction is not possible because of the necessary conditions provided by Candès and Tao. One minor improvement that could be made would be to remove the assumption A1. For instance, while is known to be small in most of the models of low rank matrices that have been analyzed, no one has shown that an assumption of the form A1 is necessary for completion. Nonetheless, all prior results on matrix completion have imposed an assumption like A1 , and it would be interesting to see if it can be removed as a requirement, or if it is somehow necessary.
Surprisingly, the simplicity of the argument presented here mostly arises from the abandonment of Bernoulli sampling in favor of sampling with replacement. It would be of interest to review results investigating noise robustness of matrix completion or deconvolution of sparse and low rank matrices to see if results can be improved by appealing to sampling with replacement. Furthermore, since much of the work on rank minimization and matrix completion borrows tools from the compressed sensing community, it is of interest to revisit this related body of work and to see if proofs can be simplified or bounds can be improved there as well. The noncommutative versions of Chernoff and Bernstein’ s Inequalities may be useful throughout machine learning and statistical signal processing, and a fruitful line of inquiry would examine how to apply these tools from quantum information to the study of classical signals and systems.
B.R. would like to thank Aram Harrow for introducing him to the operator Chernoff bound and many helpful clarifying conversations, Silvia Gandy for pointing out several typos in the original version of this manuscript, and Rob Nowak, Ali Rahimi, and Stephen Wright for many fruitful discussions about this paper.
References
Appendix A Operator Chernoff Bounds
In this section, I present a proof of 3.2, and also provide new proofs of some probability bounds from quantum information theory. To review, a symmetric matrix is positive semidefinite if all of its eigenvalues are nonnegative. If and are positive semidefinite matrices, means is positive semidefinite. For square matrices , the matrix exponential will be denoted and is given by the power series
The following theorem is a generalization of Markov’s inequality originally proven in . My proof closely follows the standard proof of the traditional Markov inequality, and does not rely on discrete summations.
Let be a random positive semidefinite matrix and a fixed positive definite matrix. Then
Proof Note that if , then , and hence . Let denote the indicator of the event . Then as the right hand side is always nonnegative, and, if the left hand side equals , the trace of the right hand side must exceed the norm of the right hand side which is greater than . Thus we have
where the last equality follows from the linearity and cyclic properties of the trace.
Next I will derive a noncommutative version of the Chernoff bound. This was also proven in for i.i.d. matrices. The version stated here is more general in that the random matrices need not be identically distributed, but the proof is essentially the same.
Proof The proof relies on an estimate from statistical physics which is stated here without proof.
For any symmetric matrices and ,
Much like the proof of the standard Chernoff bound, the theorem now follows from a long chain of inequalities.
Here, the first three lines follow from standard properties of the semidefinite ordering. The fourth line invokes the Operator Markov Inequality. The sixth line follows from the Golden-Thompson inequality. The seventh line follows from independence of the . The eighth line follows because for positive definite matrices . This is just another statement of the duality between the nuclear and operator norms. The ninth line iteratively repeats the previous two steps. The final line follows because for a positive definite matrix , is the sum of the eigenvalues of , and all of the eigenvalues are at most .
Let us now turn to proving the Noncommutative Bernstein Inequality presented in Section 3. The authors in proposed a similar inequality for symmetric i.i.d. random matrices with a slightly worse constant. The proof here is more general and follows the standard derivation of Bernstein’s inequality.
Then are symmetric random variables, and for all
Moreover, the maximum singular value of is equal to the maximum eigenvalue of . By Theorem A.2, we have for all
For each , let be an eigenvalue decomposition, where is the diagonal matrix of the eigenvalues of . In turn, it follows that for
This final expression is now just a real number, and only has to be minimized as a function of . The theorem now follows by algebraic manipulation: the right hand side is minimized by setting , then basic approximations can be employed to complete the argument (see, for example , lectures 4 and 5).