Fast matrix completion without the condition number
Moritz Hardt, Mary Wootters
Introduction
Matrix Completion is the problem of recovering an unknown real-valued low-rank matrix from a possibly noisy subsample of its entries. The problem has received a tremendous amount of attention in signal processing and machine learning partly due to its wide applicability to recommender systems. A beautiful line of work showed that a particular convex program—known as nuclear norm minimization—achieves strong recovery guarantees under certain reasonable feasibility assumptions [CR09, CT10, RFP10, Rec11]. Nuclear norm minimization boils down to solving a semidefinite program and therefore can be solved in polynomial time in the dimension of the matrix. Unfortunately, the approach is not immediately practical due to the large polynomial dependence on the dimension of the matrix. An ongoing research effort aims to design large-scale algorithms for nuclear norm minimization [JY09, MHT10, JS10, AKKS12, HO14]. Such fast solvers, generally speaking, involve heuristics that improve empirical performance but may no longer preserve the strong theoretical guarantees of the nuclear norm approach.
A successful scalable algorithmic alternative to Nuclear Norm Minimization is based on Alternating Minimization [BK07, HH09, KBV09]. Alternating Minimization aims to recover the unknown low-rank matrix by alternatingly optimizing over one of two factors in a purported low-rank decomposition. Each update is a simple least squares regression problem that can be solved very efficiently. As pointed out in [HO14], even state of the art nuclear norm solvers often cannot compete with Alternating Minimization with regards to scalability. A shortcoming of Alternating Minimization is that formal guarantees are less developed than for Nuclear Norm Minimization. Only recently has there been progress in this direction [Kes12, JNS13, GAGG13, Har13a].
Unfortunately, despite this recent progress all known convergence bounds for Alternating Minimization have at least a quadratic dependence on the condition number of the matrix. Here, the condition number refers to the ratio of the first to the -th singular value of the matrix, where is the target rank of the decomposition. This dependence on the condition number can be a serious shortcoming. After all, Matrix Completion rests on the assumption that the unknown matrix is approximately low-rank and hence we should expect its singular values to decay rapidly. Indeed, strongly decaying singular values are a typical feature of large real-world matrices.
The dependence on the condition number in Alternating Minimization is not a mere artifact of the analysis. It arises naturally with the use of the Singular Value Decomposition (SVD). Alternating Minimization is typically intialized with a decomposition based on a truncated SVD of the partial input matrix. Such an approach must incur a polynomial dependence on the condition number. Many other approaches also crucially rely on the SVD as a sub-routine, e.g., [JMD10, KMO10a, KMO10b], as well as most fast solvers for the nuclear norm. In fact, there appears to be a kind of dichotomy in the current literature on Matrix Completion: either the algorithm is not fast and has at least a quadratic dependence on the dimension of the matrix in its running time, or it is not well-conditioned and has at least a quadratic dependence on the condition number in the sample complexity. We emphasize that here we focus on formal guarantees rather than observed empirical performance which may be better on certain instances. This situation leads us to the following problem.
Main Problem: Is there a sub-quadratic time algorithm for Matrix Completion
with a sub-linear dependence on the condition number?
In fact, eliminating the polynomial dependence on the condition number was posed explicitly as an open problem in the context of Alternating Minimization by Jain, Netrapalli and Sanghavi [JNS13].
In this work, we resolve the question in the affirmative. Specifically, we design a new variant of Alternating Minimization that achieves a logarithmic dependence on the condition number while retaining the fast running time of the standard Alternating Minimization framework. This is an exponential improvement in the condition number compared with all subquadratic time algorithms for Matrix Completion that we are aware of. Our algorithm works even in the noisy Matrix Completion setting and under standard assumptions—specifically, the same assumptions that support theoretical results for the nuclear norm. That is, we assume that the first singular vector of the matrix span an incoherent subspace and that each entry of the matrix is revealed independently with a certain probability. While strong, these assumptions led to an interesting theory of Matrix Completion and have become a de facto standard when comparing theoretical guarantees.
For the sake of exposition we begin by explaining our results in the exact Matrix Completion setting, even though our results here are a direct consequence of our theorem for the noisy case. In the exact problem the goal is to recover an unknown rank matrix from a subsample of its entries where each entry is included independently with probability We assume that the unknown matrix is a symmetric matrix with nonzero singular values Following [Har13a], our result generalizes straightforwardly to rectangular matrices. To state our result we need to define the coherence of the subspace spanned by Intuitively, the coherence controls how large the projection is of any standard basis vector onto the space spanned by Formally, for a matrix with orthonormal columns, we define the coherence of to be
We show that our algorithm outputs a low-rank factorization such that with high probability provided that the expected size of satisfies
Here, the exponent is bounded by an absolute constant. While we did not focus on minimizing the exponent, our results imply that the value of can be chosen smaller if the singular values of are well-separated. The formal statement follows from \hyperref[thm:main]Theorem 1. A notable advantage of our algorithm compared to several fast algorithms for Matrix Completion is that the dependence on the error is only poly-logarithmic. This linear convergence rate makes near exact recovery feasible with a small number of steps.
We now discuss our more general result that applies to the noisy or robust Matrix Completion problem. Here, the unknown matrix is only close to low-rank, typically in Frobenius norm. Our results apply to any matrix of the form
where is a matrix of rank as before and is the part of not captured by the dominant singular vectors. We note that can be an arbitrary deterministic matrix. The assumption that we will make is that satisfies the following incoherence conditions:
Recall that denotes the -th standard basis vector so that is the Euclidean norm of the -th row of The conditions state no entry of should be too large compared to the norm of the corresponding row in and no row of should be too large compared to Our bounds will be in terms of a combined coherence parameter satisfying
We show that our algorithm outputs a rank factorization such that with high probability
where denotes the spectral norm. It follows from our argument that we can have the same guaranteee in Frobenius norm as well. To achieve the above bound we show that it is sufficient to have an expected sample size
For an extended discussion of related work see \hyperref[sec:related]Section 2.2. We proceed in the next section with a detailed proof overview and a description of our notation.
Preliminaries
In this section, we will give an overview of our proof, give a more in-depth survey of previous work, and set notation.
As the proof of our main theorem is somewhat complex we will begin with an extensive informal overview of the argument. In order to understand our main algorithm, it is necessary to understand the basic Alternating Minimization algorithm first.
A natural idea ot fix these problems is the so-called deflation approach. If it so happens that then there must be an such that In this case, we can try to first run Alternating Minimization with vectors instead of vectors. This results in a rank factorization We then subtract this matrix off of the original matrix and continue with This approach was in particular suggested by Jain et al. [JNS13] to eliminate the condition number dependence. Unfortunately, as we will see next, this approach runs into serious issues.
Given any algorithm NoisyMC for noisy matrix completion, whose performance depends on the condition number of , we may hope to use NoisyMC in a black-box way to obtain a deflation-based algorithm which does not depend on the condition number, as follows. Suppose that we know that the spectrum of comes in blocks,
and so on. We could imagine running NoisyMC on with target rank , to obtain an estimate . Then we may run NoisyMC again on with target rank , to obtain , and so on. At the end of the day, we would hope to approximate . Because we are focusing only on a given “flat" part of the spectrum at a time, the dependence of NoisyMC on the condition number should not matter. A major problem with this approach is that the error builds up rather quickly. More precisely, any matrix completion algorithm run on with target rank must have error on the order of since this is the spectral norm of the “noise part” that prevents the algorithm from converging further. Therefore, the matrix might now have problematic singular vectors corresponding to relatively large singular values, namely those vectors arising from the residuals of the first singular vectors, as well as those arising from the approximation error. This multiplicative blow-up makes it difficult to ensure convergence.
The above intuition may make a “deflation”-based argument seem hopeless. We instead use an approach that looks similar to deflation but makes an important departure from it. Intuitively, our algorithm is a single execution of Alternating Minimization. However, we dynamically grow the number of vectors that Alternating Minimization maintains until we’ve reached vectors. At that point we let the algorithm run to convergence. More precisely, the algorithm proceeds in at most epochs. Each epoch roughly proceeds as follows:
At the beginning of epoch the algorithm has a rank factorization that has converged to within error At this point, the -th singular vector prevents further convergence.
What can we say about the matrix at this point? We know that the first singular vectors of are removed from the top of the spectrum of Moreover, each of the remaining singular vectors in is preserverd so long as the corresponding singular value is greater than This follows from perturbation bounds and we ignore a polynomial loss in at this point. Importantly, the top of the spectrum of corresponds is correlated with the next block of singular vectors in This motivates the next step in epoch which is to compute the top singular vectors of up to an approximation error of Among these singular vectors we now identify a gap in singular values, that is we look for a number such that
We call this algorithm SoftDeflate. The crucial difference to the deflation approach is that we always run Alternating Minimization on a subsampling of the original matrix . We only ever compute a deflated matrix for the purpose of initializing the next epoch of the algorithm. This prevents the error accumulation present in the basic deflation approach.
This simple description glosses over many details and there are a few challenges to be overcome in order to make the idea work. For example, we have not said how to determine the appropriate “gaps" . This requires a little bit of care. Indeed, these gaps might be quite small: if the (additive) gap between and is on the order of, say, , for all , then the condition number of the matrix may be super-polynomial in , a price we are not willing to pay. Thus, we need to be able to identify gaps between and which are on the order of . To do this, we must make sure that our estimates of the singular values of are sufficiently precise.
Another major issue that such an algorithm faces is that of coherence. As mentioned above, incoherence is a standard (and necessary) requirement of matrix completion algorithms, and so in order to pursue the strategy outlined above, we need to be sure that the estimates stay incoherent. For our first “rough estimation" step, our algorithm carefully truncates (entrywise) its estimates, in order to preserve the incoherence conditions, without introducing too much error. In particular, we cannot reuse the truncation analysis of Jain et al. [JNS13] which incurred a dependence on the condition number. Coherence in the Alternating Minimization step is handled by the algorithm and analysis of [Har13a], upon which we build. Specifically, Hardt used a form of regularization by noise addition called SmoothQR, as well as an extra step which involves taking medians, which ensures that various iterates of Alternating Minimization remain incoherent.
2 Further Discussion of Related Work
Our work is most closely related to recent works on convergence bound for Alternating Minimization [Kes12, JNS13, GAGG13, Har13b]. Our bounds are in general incomparable. We achieve an exponential improvement in the condition number compared to all previous works, while losing polynomial factors in . Our algorithm and analysis crucially builds on [Har13a]. In particular we use the version and analysis of Alternating Minimization derived in that work more or less as a black box. We note that the analyses of Alternating Minimization in other previous works would not be sufficiently strong to be used in our algorithm. In particular, the use of noise addition to ensure coherence already gets rid of one source of the condition number that all previous papers incur.
We are not aware of a fast nuclear norm solver that has theoretical guarantees that do not depend polynomially on the condition number. The work of Keshavan et al. [KMO10a, KMO10b] gives another alternative to nuclear norm minimization that has theoretical guarantees. However, these bounds have a quartic dependence on the condition number. We are not aware of any fast nuclear norm solver with theoretical guarantees that do not depend polynomially on the condition number. The work of Keshavan et al. [KMO10a, KMO10b] gives another alternative to nuclear norm minimization that has theoretical guarantees. However, these bounds have a quartic dependence on the condition number. There are a number of fast algorithms for matrix completion: for example, based on (Stochastic) Gradient Descent [RR13]; (Online) Frank-Wolfe [JS10, HK12]; or CoSAMP [LB10]. However, the theoretical guarantees for these algorithms are typically in terms of the error on the observed entries, rather than on the error between the recovered matrix and the unknown matrix itself. For the matrix completion problem, convergence on observations does not imply convergence on the entire matrix. For some matrix recovery problems—in particular, those where the observations obey a rank-restricted isometry property—convergence on the observations is enough to imply convergence on the entire matrix. However, for matrix completion, the relevant operator does not satisfy this condition [CR09]. Further, these algorithms typically have polynomial, rather than logarithmic, dependence on the accuracy parameter . Since setting is required in order to accurately recover the first singular vectors of , a polynomial dependence in implies a polynomial dependence on the condition number.
3 Notation
to the be matrix , restricted to the entries indexed by and renormalized.
Our algorithm, and its proof, will involve choosing a sequence of integers , which will mark the significant “gaps” in the spectrum of . Given such a sequence, we will decompose as
where has the spectral decomposition and contains the eigenvalues corresponding to singular values . We may decompose as the sum of for where each has the spectral decomposition corresponding to the singular values . Similarly, the matrix may be written as and contains the singular values . Eventually, our algorithm will stop at some maximum , for which , and we will have as in (2). We will use the notation to denote the concatenation
For an index , we quantify the gap between and by
By definition, we always have ; for some matrices , it may be much larger, and this will lead to improved bounds. Our analysis will also depend on the “final" gap quantified by , whether or not it is larger than . To this end, we define
Algorithms and Results
In Algorithm 1 we present our main algorithm SoftDeflate. It uses several subroutines that are presented in \hyperref[sec:subroutines]Section 3.1.
In the Matrix Completion literature, the most common assumption on the distribution of the set of observed entries is that each index is included independently with some probability . Call this distribution . In order for our results to be comparable with existing results, this is the model we adopt as well. However, for our analysis, it is much more convenient to imagine that is the union of several subsets , so that the themselves follow the distribution (for some probability , where ), and so that all of the are independent. Algorithmically, the easiest thing to do to obtain subsets from is to partition into random subsets of equal size. However, if we do this, the subsets will not follow the right distribution; in particular they will not be independent. For theoretical completeness, we show in Appendix A (Algorithm 6) how to split up the set in the correct way. More precisely, given and so that , we show how to break into (possibly overlapping) subsets , so that the are independent and each .
SoftDeflate uses a number of subroutines that we outline here before explicitly presenting them:
S-M-AltLS (Algorithm 2) is the main Alternating Least Squares procedure that was given and analyzed in [Har13a]. We use this algorithm and its analysis. S-M-AltLS by itself has a quadratic dependence on the condition number which is why we can only use it as a subroutine.
SmoothQR (Algorithm 3) is a subroutine of S-M-AltLS which is used to control the coherence of intermediate solutions arising in S-M-AltLS. Again, we reuse the analysis of SmoothQR from [Har13a]. SmoothQR orthonormalizes its input matrix after adding a Gaussian noise matrix. This step allows tight control of the coherence of the resulting matrix. We defer the description of SmoothQR to Section 6 where we need it for the first time.
SubsIt is a standard textbook version of the Subspace Iteration algorithm (Power Method). We use this algorithm as a fast way to approximate the top singular vectors of a matrix arising in SoftDeflate. We use only standard properties of SubsIt in our analysis. For this reason we defer the description and analysis of SubsIt to \hyperref[sec:subsit]Section B.3.
2 Statement of the main theorem
satisfies (4) and
and
There is a choice of (given in the proof below) so that
Suppose that each element of is included in independently with probability . Then the matrices returned by SoftDeflate satisfy with probability at least
The guarantee of is what naturally falls out of our analysis: the natural value for the term is polynomially small in . It is not hard to see in the proof that we may make this term as small as we like, say, , by paying a logarithmic penalty in the choice of . It is also not hard to see that we may have a similar conclusion for the Frobenius norm.
As written, then algorithm requires the user to know several parameters which depend on the unknown matrix . For some parameters, these requirements are innocuous. For example, to obtain or (whose values are given in Section 4.1), the user is required to have a bound on . Clearly, a bound on the condition number of will suffice, but more importantly, the estimates which appear in Algorithm 1 may be used as proxies for , and so the parameters can actually be determined relatively precisely on the fly. For other parameters, like or , we assume that the user has a good estimate from other sources. While this is standard in the Matrix Completion literature, we acknowledge that these values may be difficult to come by.
3 Running Time
The running time of SoftDeflate is linear in , polynomial in , and logarithmic in the condition number of . Indeed, the outer loop performs at most epochs, and the nontrivial operations in each epoch are S-M-AltLS, QR, and SubsIt. All of the other operations (truncation, concatenation) are done on matrices which are either (requiring at most operations) or on the subsampled matrices , requiring on the order of operations.
Running SubsIt requires iterations; each iteration includes multiplication by a sparse matrix, followed by QR. The matrix multiplication takes time on the order of
where the hides logarithmic factors in .
Proof of Main Theorem
In this section, we prove Theorem 1. The proof proceeds by maintaining a few inductive hypotheses, given below, at each epoch. When the algorithm terminates, we will show that the fact that these hypotheses still hold imply the desired results. Suppose that at the beginning of step of Algorithm 1, we have identified some indices , and recovered estimates which capture the singular values and the corresponding singular vectors. The goals of the current step of Algorithm 1 are then to (a) identify the next index which exhibits a large “gap" in the spectrum, and (b) estimate the singular values and the corresponding singular vectors.
Letting be the index obtained by Algorithm 1, we will decompose as in (6). To help keep the notation straight, we include a diagram below, which indicates which singular values of are included in which matrix.
We will maintain the following inductive hypotheses. At the beginning of epoch of SoftDeflate, we assert
for some sufficiently large constant determined by the proof. We also maintain that the current estimate is incoherent:
for a constant . Above, equation (H3) defines . Observe that when , everything in sight is zero and the hypotheses (H1), (H2),(H3) are satisfied. Finally, we assume that the estimate of is good.
where we used the incoherence bounds (33) and (34) in the appendix to bound and . Thus, as long as
Now, suppose that the inductive hypotheses (H1), (H2), (H3), and (H4) hold. We break up the inner loop of SoftDeflate into two main steps. In the first step, lines 1 to 1 in Algorithm 1, the goal is to obtain an estimate of the next “gap," as well as an estimate of the subspace . We analyze this step in Lemma 2 below.
There exists a constants so that the following holds. Suppose that
where Further assume that the inductive hypotheses (H1), (H2), (H3), and (H4) hold. Then with probability at least over the choice of and the randomness in SubsIt, one of the following statements must hold:
Algorithm 1 terminates at line 1, and returns so that ; or
Algorithm 1 does not terminate at line 1, and the following conditions hold:
The error level has not yet been reached:
The matrix has orthonormal columns, and satisfies
The proof of Lemma 2 is given in Section 5. In the second part of SoftDeflate, lines 1 to 1 in Algorithm 1, we run S-M-AltLS, initialized with the subspace returned by the first part of the algorithm. Lemma 3 below shows that S-M-AltLS improves the estimate to the desired accuracy, so that we may move on to the next iteration of SoftDeflate.
Assume that the conclusion (b) of Lemma 2 holds, as well as the inductive hypotheses (H1), (H2), (H3), and (H4) . There is a constant so that the following holds. Let be as in (10). Suppose that
Then after steps of S-M-AltLS with the initial matrix , and parameters , the following hold with probability at least , over the choice of .
The inductive hypothesis (H1) holds for the next round:
The inductive hypothesis (H2) holds for the next round:
The inductive hypothesis (H3) holds for the next round:
The proof of Lemma 3 is addressed in Section 6.
Theorem 1 now follows using 2 and 3. First, we choose as in the statement of Theorem 1. Because for all , this implies that satisfies the requirements of Lemma 3. Then, the hypotheses of Lemma 3 are implied by the conclusions of the favorable case of Lemma 2. Now, a union bound over at most epochs of SoftDeflate ensures that with probability at least , the conclusions of both lemmas hold every round that their hypotheses hold.
If SoftDeflate terminates with the guarantees (a) of Lemma 2, then On the other hand, if (b) holds, then Lemma 2 implies (H4) and the hypotheses of Lemma 3, and then Lemma 3 implies that with probability , the remaining inductive hypotheses (H1), (H2), and (H3) for the next round.
Thus, if the situation (a) above never occurs, then the hypotheses of Lemma 3 hold until SoftDeflate terminates because . In this case, Lemma 3 implies that
Finally, we tally up the number of samples. The base case (11) required
For Lemma 3, we required, for a sufficiently large constant ,
From the definition of (in (H3)), we may bound for all by
for some constant . Summing over gives the result.
Proof of Lemma 2
In this section, we prove Lemma 2, which shows that either Algorithm 1 hits the precision parameter and returns, or else produces an estimate for that is close enough to run S-M-AltLS on. There are several rounds of approximations between the beginning of iteration and the output . For the reader’s convenience, we include an informal synopsis of the notation in Figure 1.
We will first argue that the matrix is close to the truncated, subsampled, noisy estimate .
Let be as in Algorithm 1, and choose any constant . Suppose that the inductive hypotheses (H2) and (H4) hold. Suppose that is as in the statement of Lemma 2. Then, for a sufficiently large choice of in the hypothesis (H2) (depending only on ), with probability at least ,
Let denote the Truncate operator. As in Algorithm 1, consider
where as in Line 1, Above, use used that the sampling operation and the truncate operator commute after adjusting for the normalization factor in the definition of . Because is incoherent, each of its entries is small. More precisely, by the incoherence implication (35) along with the guarantee (H4) on , we have
Thus, each entry of is the sum of something smaller than from , and an error term from , and so truncating entrywise to can only remove mass from the contribution of . This implies that for all ,
by (H4). Thus, our choice of implies that
The choice of and a sufficient choice of (depending only on ) completes the proof. ∎
Suppose for the rest of the proof that the conclusion of Lemma 4 holds. The first thing SoftDeflate does after computing is to obtain estimates and for the top singular values and vectors of . These estimates are recovered by SubsIt in Line 1 of Algorithm 1. We first wish to show that the estimated singular values are close to the actual singular values of . For this, we will invoke Theorem 16 in the appendix, which implies that as long as the number of iterations of SubsIt satisfies
Above, we took a union bound over all . Again, we condition on this event occuring. Thus, with our choice of , the estimates are indeed close to the singular values , which by Lemma 4 are with high probability close to the singular values of itself.
Before we consider the next step (to ) in Figure 1, consider the case when Algorithm 1 returns at line 1. Then , and so using (17) above we find that Then by Lemma 4,
Thus, for sufficiently large , we conclude . In this case, we are done:
and case (a) of the conclusion holds, as long as Lemma 4 does.
On the other hand, suppose that Algorithm 1 does not return at line 1 (and continue to assume that Lemma 4 holds). As above, (17) implies that since , we must have
This establishes the conclusion (12). With (18), Lemma 4 and (17) together imply that
Above, we use Lemma 13 in the appendix in the first inequality.
We now show that the choice of in Line 1 of Algorithm 1 accurately identifies a “gap" in the spectrum.
Suppose that the hypotheses and conclusions of Lemma 4 hold, and in particular that (19) holds. Then the value obtained in Line 1 of Algorithm 1 satisfies:
Let be the “correct" choice of ; that is, be the smallest positive integer so that
or let if such an index does not exist. Write . By definition, because is the smallest such (or smaller than any such in the case that ), we have
Suppose that, for some , we have
assuming is sufficiently large. In Algorithm 1, we choose in Line 1 so that there is no with
Thus, if there were a big gap, the algorithm would have found it: more precisely, using the definition of , we have
This establishes the first conclusion of the lemma. Now, a similar analysis as above shows that if for any we have
assuming is sufficiently large. That is, our algorithm will always find a small gap, if it exists. In particular, if , we have
and hence . On the other hand, if , then we must have . In either case, and so
Now, we are in a position to verify the inductive hypothesis (H4) for the next round, in the favorable case that Lemma 4 holds. By definition, we have , and (19), followed by Lemma 5 implies that
Suppose that the conclusions of Lemma 4 and Lemma 5 hold, and that (18) holds. Then
We will use a theorem (Theorem 14, due to Wedin, in the appendix) to control the perturbation of the subspaces. Theorem 14 implies
Now, we show that is close to .
Suppose that the conclusions of Lemma 4 and Lemma 5 hold, and that (18) holds. Then with probability ,
By (17), Lemma 4, and Lemma 5, a similar computation as in the proof of Lemma 6 shows that
Together, Lemmas 6 and 7 imply that, when Lemma 4 and the favorable case for SubsIt hold,
and using the fact that and have rank at most , we have that
As in Algorithm 1, let be a random orthogonal matrix, and let be the truncation
The reason for the random rotation is that while is reasonably incoherent (because is), is, with high probability, even more incoherent. More precisely, as in [Har13a], we have
where we define to be the projection of onto . Because is close to , and is close to , is close to . More precisely,
Further, the Gram-Schmidt process gives a decomposition
where the triangular matrix has the same spectrum as . In particular,
where above we used that . Next,
where we have used the definition of , the incoherence of , and the computations above in the final line. Thus,
for some constant . Thus, when the conclusions of Lemma 4 hold, is both close to and incoherent. By induction, the same is true for . Indeed, if , then , and we are done. If , then we have
Then, the inductive hypothesis (H1) and our conclusion (25) imply that
for suitably large . Finally, (26), along with the inductive hypothesis (H3) implies that
We remark that this last computation is the only reason we need , rather than bounded by ; eventually, we will iterate and have
and we need that is bounded by a constant (rather than exponential in ).
Finally, we have shown that with probability (that is, in the case that Lemma 4 holds and SubsIt works), all of the conclusions of Lemma 2 hold as well. This completes the proof of Lemma 2.
Proof of Lemma 3
In the proof of Lemma 3 we will need an explicit description of the subroutine SmoothQR that we include in Algorithm 3.
We will maintain the following inductive hypothesis:
Above, the tangent of the principal angle obeys
To establish the base case of (J1) for , we have
by conclusion (14) of Lemma 2, and hence by (27),
If , then , and we are done with the base case for (J1); if , then for , we have
Thus, for , (J1) is implied by (27) again, along with the fact that
which is the (outer) inductive hypothesis (H1), followed by the conclusions (12) and (13) from Lemma 2. This establishes the base case for (J1). The base case for (J2) follows from the conclusion (14) of Lemma 2 directly.
The proof of Lemma 9 is similar to the analysis in [Har13a]. For completeness, we include the proof in Appendix C. Using the inductive hypothesis (J1), and the fact that ,
for a constant to be chosen sufficiently large. Observe that with this choice of , the requirement on in Lemma 9 is implied by the requirement on in the statement in Lemma 3. Then the choice of implies
Then, for every satisfying , we have with probability at least that the algorithm SmoothQR terminates in iterations, and the output satisfies . Further, the final noise matrix added by SmoothQR satisfies .
Suppose that . There is a constant so that the following holds. Suppose that
by the inductive hypothesis (J1) for .
Next, we compute the parameters that show up in Lemma 10. From Lemma 9, we have
where we have used the inductive hypothesis (J1) in the final line. Then, the requirement of Lemma 10 on reads
We may simplify and bound the requirement on as
for some constant , which was the requirement in the statement of the lemma. Thus, as long as the hypotheses of the current lemma hold, Lemma 10 implies that with probability at least ,
using (30) in the final inequality. Now, we wish to apply Theorem 8. The hypothesis (J1), along with the conclusion (12) from Lemma 2, immediately implies that
for all and so in particular the first requirement of Theorem 8 is satisfied. To satisfy the second requirement of Theorem 8, we must show that
provided is suitably large. A union bound over all establishes (J1) for the next iteration of S-M-AltLS. After another union bound over
steps of S-M-AltLS, for some constant depending on , we conclude that with probability at least , for all ,
To establish the second conclusion, we note that we have already conditioned on the event that (30) holds, and so we have
using (13) in the final inequality. Finally, the third conclusion, that (H3) holds, follows from the definition of SmoothQR.
Simulations
In this section, we compare the performance of SoftDeflate to that of other fast algorithms for matrix completion. In particular, we investigate the performance of SoftDeflate compared to the Frank-Wolfe (FW) algorithm analyzed in [JS10], and also compared to the naive algorithm which simply takes the SVD of the subsampled matrix . All of the code that generated the results in this section can be found online at \urlhttp://sites.google.com/site/marywootters.
We implemented SoftDeflate, as described in Algorithm 1, fixing observations per iteration; to increase the number of measurements, we increased the parameters (which were the same for all ). For simplicity, we used a version of S-M-AltLS which did not implement the smoothing in SmoothQR or the median. We implemented the Frank-Wolfe algorithm as per the pseudocode in Algorithm 5, with accuracy parameter . We remark that decreasing the accuracy parameter did improve the performance of the algorithm (at the cost of increasing the running time), but did not change its qualitative dependence on , the number of observations. We implemented SVD via subspace iteration, as in Algorithm 8, with .
The error was measured in two ways: the Frobenius error , and the error between the recovered subspaces, . The results are shown in Figure 2.
The experiments show that SoftDeflate significantly outperforms the other “fast" algorithms in both metrics. In particular, of the three algorithms, SoftDeflate is the only one which converges enough to reliably capture the singular vector associated with the eigenvalue; none of the algorithms converge enough to find the eigenvalue with the number of measurements allowed. The other two algorithms show basically no progress for these small values of . To illustrate what happens when FW and SVD do converge, we repeated the same experiment for and ; for this smaller value of , we can let the number of measurements to get quite large compared to . We find that even though FW and SVD do begin to converge eventually, they are still outperformed by SoftDeflate. The results of these smaller tests are shown in Figure 3.
2 Further comments on the Frank-Wolfe algorithm
As algorithms like Frank-Wolfe are often cited as viable fast algorithms for the Matrix Completion problem, the reader may be surprised by the performance of FW depicted in Figures 2 and 3. There are two reasons for this. The first reason, noted in Section 2.2, is that while FW is guaranteed to converge on the sampled entries, it may not converge so well on the actual matrix; the errors plotted above are with respect to the entire matrix. To illustrate this point, we include in Figure 4 the results of an experiment showing the convergence of Frank-Wolfe (Algorithm 5), both on the samples and off the samples. As above, we considered random matrices with a pre-specified spectrum. We fixed the number of observations at , and ran the Frank-Wolfe algorithm for 40 iterations, plotting its progress both on the observed entries and on the entire matrix. While the error on the observed entries does converge as predicted, the matrix itself does not converge so quickly.
Acknowledgements
We thank the Simons Institute for Theoretical Computer Science at Berkeley, where part of this work was done.
References
Appendix A Dividing up ΩΩ\Omega
In this section, we show how to take a set , so that each index is included in with probability , and return subsets which follow a distribution more convenient for our analysis. Algorithm 6 has the details. Observe that the first thing that Algorithm 6 does is throw away samples from . Thus, while this step is convenient for the analysis, and we include it for theoretical completeness, in practice it may be uneccessary—especially if the assumption on the distribution of is an approximation to begin with.
The correctness of Algorithm 6 follows from the following lemma, about the properties of Algorithm 7.
Next, we observe that for any fixed , the events are independent under the distribution induced by Algorithm 7. This follows from the fact that in all of the random steps (including the generation of and within Algorithm 7), the are treated independently. Notice that these events are also independent under by definition.
Now, for any instantiation of the random variables , consider the event
Thus the probability of any outcome is the same under and under Algorithm 7, and this completes the proof of the lemma. ∎
Appendix B Useful statements
In this appendix, we collect a few useful statements upon which we rely.
First, we record some consequences of the bound (4) on the coherence of . We always have
It will also be useful to notice that since (4) implies that for all ,
B.2 Perturbation statements
Next, we will use the following lemma about perturbations of singular values, due to Weyl.
In order to compare the singular vectors of a matrix with those of a perturbed version , we will find the following theorem helpful. We recall that for subspaces , refers to the sine of the principal angle between and . (See [SS90] for more on principal angles).
Suppose that has the singular value decomposition
and let be a perturbed matrix with SVD
Suppose there are numbers so that and Then,
We will also use the fact that if the angle between (the subspaces spanned by) two matrices is small, then there is some unitary transformation so that the two matrices are close.
We have Since , we have and Thus, we can write where The claim follows from the triangle inequality. ∎
B.3 Subspace Iteration
Our algorithm uses the following standard version of the well-known Subspace Iteration algorithm—also known as Power Method.
We have the following theorem about the convergence of SubsIt.
Here, can be made any constant by increasing and is an absolute constant. Fix and let denote the column of . Suppose that . Then, the estimates satisfy
By definition, as there are no significant gaps between and , we have
and so this completes the proof after collecting terms. ∎
B.4 Matrix concentration inequalities
We will repeatedly use the Matrix Bernstein and Matrix Chernoff inequalities; we use the versions from [Tro12]:
[Matrix Bernstein [Tro12]] Consider a finite sequence of independent, random, matrices. Assume that each matrix satisfies
One corollary of Lemma 17 is the following lemma about the concentration of the matrix .
Let be independent Bernoulli- random variables, which are if and otherwise.
which is a sum of independent random matrices. Using the Matrix Bernstein inequality, Lemma 17, we conclude that
almost surely. This concludes the proof. ∎
Finally, we will use the Matrix Chernoff inequality.
[Matrix Chernoff [Tro12]] Consider a finite sequence of independent, self-adjoint, matrices. Assume that each satisfies
B.5 Medians of vectors
Suppose that , for are i.i.d. random vectors, so that for all ,
Let be the set of so that By a Chernoff bound,
Suppose that the likely event occurs, so . For , let
Because , we have . Then
Appendix C Proof of Lemma 9
First, we observe that with very high probability, is close to the identity.
There is a constant so that the following holds. Suppose that . Then
where is with probability and otherwise. We apply the Matrix Chernoff bound (Lemma 19); we have
The claim follows from the choice of . ∎
There is a constant so that the following holds. Suppose that . Then for each ,
Along with Markov’s inequality, this completes the proof. ∎
There is a constant so that the following holds. Suppose that for a constant . Then for each ,
We have already bounded with high probability in Claim 22, when the bound on holds, and so we now bound and with decent probability. As we did in Claim 23, we compute the expectation of and use Markov’s inequality.
Next, we turn our attention to the second term . We have
By Claim 22, we established that with probability , , with our choice of . Thus, with probability at least ,
Altogether, we conclude that with probability at least , we have
as long as . This proves the claim. ∎
Putting Claims 22, 23 and 24 together, along with the choice of , we conclude that, for each and for any ,
is small with exponentially large probability. Indeed, by Lemma 20,
for some constant . By the choice of , the failure probability is at most , and a union bound over all shows that, with probability at least ,
This was the second claim in Lemma 9. Now, we show that in the favorable case that (38) holds, so does the first claim of Lemma 9, and this will complete the proof of the lemma. Suppose that (38) holds. Then
Notice that, for any real numbers , , and for any real number , , we have
Thus, we may bound the second term above by
Altogether, we conclude that, in the favorable case the (38) holds,
as desired. This completes the proof of Lemma 9.