Robust Principal Component Analysis?
Emmanuel J. Candes, Xiaodong Li, Yi Ma, John Wright
Introduction
Suppose we are given a large data matrix , and know that it may be decomposed as
where has low-rank and is sparse; here, both components are of arbitrary magnitude. We do not know the low-dimensional column and row space of , not even their dimension. Similarly, we do not know the locations of the nonzero entries of , not even how many there are. Can we hope to recover the low-rank and sparse components both accurately (perhaps even exactly) and efficiently?
A provably correct and scalable solution to the above problem would presumably have an impact on today’s data-intensive scientific discovery.Data-intensive computing is advocated by Jim Gray as the fourth paradigm for scientific discovery . The recent explosion of massive amounts of high-dimensional data in science, engineering, and society presents a challenge as well as an opportunity to many areas such as image, video, multimedia processing, web relevancy data analysis, search, biomedical imaging and bioinformatics. In such application domains, data now routinely lie in thousands or even billions of dimensions, with a number of samples sometimes of the same order of magnitude.
To alleviate the curse of dimensionality and scale,We refer to either the complexity of algorithms that increases drastically as dimension increases, or to their performance that decreases sharply when scale goes up. we must leverage on the fact that such data have low intrinsic dimensionality, e.g. that they lie on some low-dimensional subspace , are sparse in some basis , or lie on some low-dimensional manifold . Perhaps the simplest and most useful assumption is that the data all lie near some low-dimensional subspace. More precisely, this says that if we stack all the data points as column vectors of a matrix , the matrix should have (approximately) low-rank: mathematically,
(Throughout the paper, denotes the -norm; that is, the largest singular value of .) This problem can be efficiently solved via the singular value decomposition (SVD) and enjoys a number of optimality properties when the noise is small and i.i.d. Gaussian.
PCA is arguably the most widely used statistical tool for data analysis and dimensionality reduction today. However, its brittleness with respect to grossly corrupted observations often puts its validity in jeopardy – a single grossly corrupted entry in could render the estimated arbitrarily far from the true . Unfortunately, gross errors are now ubiquitous in modern applications such as image processing, web data analysis, and bioinformatics, where some measurements may be arbitrarily corrupted (due to occlusions, malicious tampering, or sensor failures) or simply irrelevant to the low-dimensional structure we seek to identify. A number of natural approaches to robustifying PCA have been explored and proposed in the literature over several decades. The representative approaches include influence function techniques , multivariate trimming , alternating minimization , and random sampling techniques . Unfortunately, none of these existing approaches yields a polynomial-time algorithm with strong performance guarantees under broad conditionsRandom sampling approaches guarantee near-optimal estimates, but have complexity exponential in the rank of the matrix . Trimming algorithms have comparatively lower computational complexity, but guarantee only locally optimal solutions.. The new problem we consider here can be considered as an idealized version of Robust PCA, in which we aim to recover a low-rank matrix from highly corrupted measurements . Unlike the small noise term in classical PCA, the entries in can have arbitrarily large magnitude, and their support is assumed to be sparse but unknownThe unknown support of the errors makes the problem more difficult than the matrix completion problem that has been recently much studied..
Applications.
There are many important applications in which the data under study can naturally be modeled as a low-rank plus a sparse contribution. All the statistical applications, in which robust principal components are sought, of course fit our model. Below, we give examples inspired by contemporary challenges in computer science, and note that depending on the applications, either the low-rank component or the sparse component could be the object of interest:
Video Surveillance. Given a sequence of surveillance video frames, we often need to identify activities that stand out from the background. If we stack the video frames as columns of a matrix , then the low-rank component naturally corresponds to the stationary background and the sparse component captures the moving objects in the foreground. However, each image frame has thousands or tens of thousands of pixels, and each video fragment contains hundreds or thousands of frames. It would be impossible to decompose in such a way unless we have a truly scalable solution to this problem. In Section 4, we will show the results of our algorithm on video decomposition.
Face Recognition. It is well known that images of a convex, Lambertian surface under varying illuminations span a low-dimensional subspace . This fact has been a main reason why low-dimensional models are mostly effective for imagery data. In particular, images of a human’s face can be well-approximated by a low-dimensional subspace. Being able to correctly retrieve this subspace is crucial in many applications such as face recognition and alignment. However, realistic face images often suffer from self-shadowing, specularities, or saturations in brightness, which make this a difficult task and subsequently compromise the recognition performance. In Section 4, we will show how our method is able to effectively remove such defects in face images.
Latent Semantic Indexing. Web search engines often need to analyze and index the content of an enormous corpus of documents. A popular scheme is the Latent Semantic Indexing (LSI) . The basic idea is to gather a document-versus-term matrix whose entries typically encode the relevance of a term (or a word) to a document such as the frequency it appears in the document (e.g. the TF/IDF). PCA (or SVD) has traditionally been used to decompose the matrix as a low-rank part plus a residual, which is not necessarily sparse (as we would like). If we were able to decompose as a sum of a low-rank component and a sparse component , then could capture common words used in all the documents while captures the few key words that best distinguish each document from others.
Ranking and Collaborative Filtering. The problem of anticipating user tastes is gaining increasing importance in online commerce and advertisement. Companies now routinely collect user rankings for various products, e.g., movies, books, games, or web tools, among which the Netflix Prize for movie ranking is the best known . The problem is to use incomplete rankings provided by the users on some of the products to predict the preference of any given user on any of the products. This problem is typically cast as a low-rank matrix completion problem. However, as the data collection process often lacks control or is sometimes even ad hoc – a small portion of the available rankings could be noisy and even tampered with. The problem is more challenging since we need to simultaneously complete the matrix and correct the errors. That is, we need to infer a low-rank matrix from a set of incomplete and corrupted entries. In Section 1.6, we will see how our results can be extended to this situation.
Similar problems also arise in many other applications such as graphical model learning, linear system identification, and coherence decomposition in optical systems, as discussed in . All in all, the new applications we have listed above require solving the low-rank and sparse decomposition problem for matrices of extremely high dimension and under much broader conditions, a goal this paper aims to achieve.
2 A surprising message
exactly recovers the low-rank and the sparse . Theoretically, this is guaranteed to work even if the rank of grows almost linearly in the dimension of the matrix, and the errors in are up to a constant fraction of all entries. Algorithmically, we will see that the above problem can be solved by efficient and scalable algorithms, at a cost not so much higher than the classical PCA. Empirically, our simulations and experiments suggest this works under surprisingly broad conditions for many types of real data. In Section 1.5, we will comment on the similar approach taken in the paper , which was released during the preparation of this manuscript.
3 When does separation make sense?
where is the rank of the matrix, are the positive singular values, and , are the matrices of left- and right-singular vectors. Then the incoherence condition with parameter states that
Another identifiability issue arises if the sparse matrix has low-rank. This will occur if, say, all the nonzero entries of occur in a column or in a few columns. Suppose for instance, that the first column of is the opposite of that of , and that all the other columns of vanish. Then it is clear that we would not be able to recover and by any method whatsoever since would have a column space equal to, or included in that of . To avoid such meaningless situations, we will assume that the sparsity pattern of the sparse component is selected uniformly at random.
4 Main result
The surprise is that under these minimal assumptions, the simple PCP solution perfectly recovers the low-rank and the sparse components, provided of course that the rank of the low-rank component is not too large, and that the sparse component is reasonably sparse. Below, and .
Suppose is , obeys (1.2)–(1.3), and that the support set of is uniformly distributed among all sets of cardinality . Then there is a numerical constant such that with probability at least (over the choice of support of ), Principal Component Pursuit (1.1) with is exact, i.e. and , provided that
Above, and are positive numerical constants. In the general rectangular case where is , PCP with succeeds with probability at least , provided that and .
In other words, matrices whose singular vectors—or principal components—are reasonably spread can be recovered with probability nearly one from arbitrary and completely unknown corruption patterns (as long as these are randomly distributed). In fact, this works for large values of the rank, i.e. on the order of when is not too large. We would like to emphasize that the only ‘piece of randomness’ in our assumptions concerns the locations of the nonzero entries of ; everything else is deterministic. In particular, all we require about is that its singular vectors are not spiky. Also, we make no assumption about the magnitudes or signs of the nonzero entries of . To avoid any ambiguity, our model for is this: take an arbitrary matrix and set to zero its entries on the random set ; this gives .
A rather remarkable fact is that there is no tuning parameter in our algorithm. Under the assumption of the theorem, minimizing
always returns the correct answer. This is surprising because one might have expected that one would have to choose the right scalar to balance the two terms in appropriately (perhaps depending on their relative size). This is, however, clearly not the case. In this sense, the choice is universal. Further, it is not a priori very clear why is a correct choice no matter what and are. It is the mathematical analysis which reveals the correctness of this value. In fact, the proof of the theorem gives a whole range of correct values, and we have selected a sufficiently simple value in that range.
Another comment is that one can obtain results with larger probabilities of success, i.e. of the form (or ) for at the expense of reducing the value of .
5 Connections with prior work and innovations
The last year or two have seen the rapid development of a scientific literature concerned with the matrix completion problem introduced in , see also and the references therein. In a nutshell, the matrix completion problem is that of recovering a low-rank matrix from only a small fraction of its entries, and by extension, from a small number of linear functionals. Although other methods have been proposed , the method of choice is to use convex optimization : among all the matrices consistent with the data, simply find that with minimum nuclear norm. The papers cited above all prove the mathematical validity of this approach, and our mathematical analysis borrows ideas from this literature, and especially from those pioneered in . Our methods also much rely on the powerful ideas and elegant techniques introduced by David Gross in the context of quantum-state tomography . In particular, the clever golfing scheme plays a crucial role in our analysis, and we introduce two novel modifications to this scheme.
Despite these similarities, our ideas depart from the literature on matrix completion on several fronts. First, our results obviously are of a different nature. Second, we could think of our separation problem, and the recovery of the low-rank component, as a matrix completion problem. Indeed, instead of having a fraction of observed entries available and the other missing, we have a fraction available, but do not know which one, while the other is not missing but entirely corrupted altogether. Although, this is a harder problem, one way to think of our algorithm is that it simultaneously detects the corrupted entries, and perfectly fits the low-rank component to the remaining entries that are deemed reliable. In this sense, our methodology and results go beyond matrix completion. Third, we introduce a novel de-randomization argument that allows us to fix the signs of the nonzero entries of the sparse component. We believe that this technique will have many applications. One such application is in the area of compressive sensing, where assumptions about the randomness of the signs of a signal are common, and merely made out of convenience rather than necessity; this is important because assuming independent signal signs may not make much sense for many practical applications when the involved signals can all be non-negative (such as images).
One very appealing aspect of this condition is that it is completely deterministic: it does not depend on any random model for or . It yields a corollary that can be easily compared to our result: suppose for simplicity, and let be the smallest quantity satisfying (1.2), then correct recovery occurs whenever
Our analysis has one additional advantage, which is of significant practical importance: it identifies a simple, non-adaptive choice of the regularization parameter . In contrast, the conditions on the regularization parameter given by Chandrasekaran et al. depend on quantities which in practice are not known a-priori. The experimental section of suggests searching for the correct by solving many convex programs. Our result, on the other hand, demonstrates that the simple choice works with high probability for recovering any square incoherent matrix.
6 Implications for matrix completion from grossly corrupted data
We have seen that our main result asserts that it is possible to recover a low-rank matrix even though a significant fraction of its entries are corrupted. In some applications, however, some of the entries may be missing as well, and this section addresses this situation. Let be the orthogonal projection onto the linear space of matrices supported on ,
Then imagine we only have available a few entries of , which we conveniently write as
that is, we see only those entries . This models the following problem: we wish to recover but only see a few entries about , and among those a fraction happens to be corrupted, and we of course do not know which one. As is easily seen, this is a significant extension of the matrix completion problem, which seeks to recover from undersampled but otherwise perfect data .
We propose recovering by solving the following problem:
Suppose is , obeys the conditions (1.2)–(1.3), and that is uniformly distributed among all sets of cardinality obeying . Suppose for simplicity, that each observed entry is corrupted with probability independently of the others. Then there is a numerical constant such that with probability at least , Principal Component Pursuit (1.5) with is exact, i.e. , provided that
Above, and are positive numerical constants. For general rectangular matrices, PCP with succeeds from corrupted entries with probability at least , provided that .
In short, perfect recovery from incomplete and corrupted entries is possible by convex optimization.
On the one hand, this result extends our previous result in the following way. If all the entries are available, i.e. , then this is Theorem 1.1. On the other hand, it extends matrix completion results. Indeed, if , we have a pure matrix completion problem from about a fraction of the total number of entries, and our theorem guarantees perfect recovery as long as obeys (1.6), which for large values of , matches the strongest results available. We remark that the recovery is exact, however, via a different algorithm. To be sure, in matrix completion one typically minimizes the nuclear norm subject to the constraint . Here, our program would solve
and return , ! In this context, Theorem 1.2 proves that matrix completion is stable vis a vis gross errors.
We have stated Theorem 1.2 merely to explain how our ideas can easily be adapted to deal with low-rank matrix recovery problems from undersampled and possibly grossly corrupted data. In our statement, we have chosen to see 10% of the entries but, naturally, similar results hold for all other positive fractions provided that they are large enough. We would like to make it clear that a more careful study is likely to lead to a stronger version of Theorem 1.2. In particular, for very low rank matrices, we expect to see similar results holding with far fewer observations; that is, in the limit of large matrices, from a decreasing fraction of entries. In fact, our techniques would already establish such sharper results but we prefer not to dwell on such refinements at the moment, and leave this up for future work.
7 Notation
Further, we will also manipulate linear transformations which act on the space of matrices, and we will use calligraphic letters for these operators as in . We shall also abuse notation by also letting be the linear space of matrices supported on . Then denotes the projection onto the space of matrices supported on so that , where is the identity operator. We will consider a single norm for these, namely, the operator norm (the top singular value) denoted by , which we may want to think of as ; for instance, whenever .
8 Organization of the paper
The paper is organized as follows. In Section 2, we provide the key steps in the proof of Theorem 1.1. This proof depends upon on two critical properties of dual certificates, which are established in the separate Section 3. The reason why this is separate is that in a first reading, the reader might want to jump to Section 4, which presents applications to video surveillance, and computer vision. Section 5 introduces algorithmic ideas to find the Principal Component Pursuit solution when is of very large scale. We conclude the paper with a discussion about future research directions in Section 6. Finally, the proof of Theorem 1.2 is in the Appendix, Section 7, together with those of intermediate results.
Architecture of the Proof
where vanishes on , i.e. , and obeys .
where , and . Denote by the linear space of matrices
and by its orthogonal complement. It is not hard to see that taken together, and are equivalent to , where is the orthogonal projection onto . Another way to put this is . In passing, note that for any matrix , , where we recognize that is the projection onto the orthogonal complement of the linear space spanned by the columns of and likewise for . A consequence of this simple observation is that for any matrix , , a fact that we will use several times in the sequel. Another consequence is that for any matrix of the form ,
where we have assumed . Since , this gives
For rectangular matrices, the estimate is .
Finally, in the sequel we will write that an event holds with high or large probability whenever it holds with probability at least (with in place of for rectangular matrices).
We begin with a useful definition and an elementary result we shall use a few times.
We will say that is a trimmed version of if and whenever .
In words, a trimmed version of is obtained by setting some of the entries of to zero. Having said this, the following intuitive theorem asserts that if Principal Component Pursuit correctly recovers the low-rank and sparse components of , it also correctly recovers the components of a matrix where is a trimmed version of . This is intuitive since the problem is somehow easier as there are fewer things to recover.
Suppose the solution to (1.1) with input data is unique and exact, and consider , where is a trimmed version of . Then the solution to (1.1) with input is exact as well.
Proof Write for some and let be the solution of (1.1) with input . Then
Note that is feasible for the problem with input data , and since , we have
The right-hand side, however, is the optimal value, and by unicity of the optimal solution, we must have , and or . This proves the claim.
In Theorem 1.1, probability is taken with respect to the uniformly random subset of cardinality . In practice, it is a little more convenient to work with the Bernoulli model , where the ’s are i.i.d. variables Bernoulli taking value one with probability and zero with probability , so that the expected cardinality of is . From now on, we will write as a shorthand for is sampled from the Bernoulli model with parameter .
Since by Theorem 2.2, the success of the algorithm is monotone in , any guarantee proved for the Bernoulli model holds for the uniform model as well, and vice versa, if we allow for a vanishing shift in around . The arguments underlying this equivalence are standard, see , and may be found in the Appendix for completeness.
2 Derandomization
In Theorem 1.1, the values of the nonzero entries of are fixed. It turns out that it is easier to prove the theorem under a stronger assumption, which assumes that the signs of the nonzero entries are independent symmetric Bernoulli variables, i.e. take the value with probability (independently of the choice of the support set). The convenient theorem below shows that establishing the result for random signs is sufficient to claim a similar result for fixed signs.
Suppose obeys the conditions of Theorem 1.1 and that the locations of the nonzero entries of follow the Bernoulli model with parameter , and the signs of are i.i.d. as above (and independent from the locations). Then if the PCP solution is exact with high probability, then it is also exact with at least the same probability for the model in which the signs are fixed and the locations are sampled from the Bernoulli model with parameter .
This theorem is convenient because to prove our main result, we only need to show that it is true in the case where the signs of the sparse component are random.
Proof Consider the model in which the signs are fixed. In this model, it is convenient to think of as , for some fixed matrix , where is sampled from the Bernoulli model with parameter . Therefore, has independent components distributed as
Consider now a random sign matrix with i.i.d. entries distributed as
and an “elimination” matrix with entries defined by
Note that the entries of are independent since they are functions of independent variables.
Consider now , where denotes the Hadamard or componentwise product so that, . Then we claim that and have the same distribution. To see why this is true, it suffices by independence to check that the marginals match. For , we have
This construction allows to prove the theorem. Indeed, now obeys the random sign model, and by assumption, PCP recovers with high probability. By the elimination theorem, this program also recovers . Since and have the same distribution, the theorem follows.
3 Dual certificates
We introduce a simple condition for the pair to be the unique optimal solution to Principal Component Pursuit. These conditions are stated in terms of a dual vector, the existence of which certifies optimality. (Recall that is the space of matrices with the same support as the sparse component , and that is the space defined via the the column and row spaces of the low-rank component (2.1).)
Assume that . With the standard notations, is the unique solution if there is a pair obeying
with , , and .
Note that the condition is equivalent to saying that .
Now pick such that and such that .For instance, is such a matrix. Also, by duality between the nuclear and the operator norm, there is a matrix obeying such that , and we just take . We have
for and, thus,
Since by assumption, , we have unless .
Hence, we see that to prove exact recovery, it is sufficient to produce a ‘dual certificate’ obeying
Our method, however, will produce with high probability a slightly different certificate. The idea is to slightly relax the constraint , a relaxation that has been introduced by David Gross in in a different context. We prove the following lemma.
Assume and . Then with the same notation, is the unique solution if there is a pair obeying
with and , and , and .
Proof Following the proof of Lemma 2.4, we have
and the term between parenthesis is strictly positive when .
As a consequence of Lemma 2.5, it now suffices to produce a dual certificate obeying
Further, we would like to note that the existing literature on matrix completion gives good bounds on , see Theorem 2.6 in Section 2.5.
4 Dual certification via the golfing scheme
In the papers , Gross introduces a new scheme, termed the golfing scheme, to construct a dual certificate for the matrix completion problem, i.e. the problem of reconstructing a low-rank matrix from a subset of its entries. In this section, we will adapt this clever golfing scheme, with two important modifications, to our separation problem.
Before we introduce our construction, our model assumes that , or equivalently that . Now the distribution of is the same as that of , where each follows the Bernoulli model with parameter , which has an explicit expression. To see this, observe that by independence, we just need to make sure that any entry is selected with the right probability. We have
hence justifying our assertion. Note that because of overlaps between the ’s, .
We now propose constructing a dual certificate
Construction of via the golfing scheme. Fix an integer whose value shall be discussed later, and let , , be defined as above so that . Then starting with , inductively define
This is a variation on the golfing scheme discussed in , which assumes that the ’s are sampled with replacement, and does not use the projector but something more complicated taking into account the number of times a specific entry has been sampled.
Construction of via the method of least squares. Assume that . Then and, thus, the operator mapping onto itself is invertible; we denote its inverse by . We then set
Clearly, an equivalent definition is via the convergent Neumann series
Note that . With this, the construction has a natural interpretation: one can verify that among all matrices obeying , is that with minimum Frobenius norm.
Since both and belong to and , we will establish that is a valid dual certificate if it obeys
5 Key lemmas
We now state three lemmas, which taken collectively, establish our main theorem. The first may be found in .
[8, Theorem 4.1] Suppose is sampled from the Bernoulli model with parameter . Then with high probability,
provided that for some numerical constant ( is the incoherence parameter). For rectangular matrices, we need .
Among other things, this lemma is important because it shows that , provided is not too large. Indeed, if , we have
with the proviso that . Note, however, that since ,
and, therefore, by the triangular inequality
Since , we have established the following:
Assume that , then , provided that , where is as in Theorem 2.6. For rectangular matrices, the modification is as in Theorem 2.6.
Assume that with parameter for some . Set (use for rectangular matrices). Then under the other assumptions of Theorem 1.1, the matrix (2.5) obeys
,
.
Since with large probability, is well defined and the following holds.
Assume that is supported on a set sampled as in Lemma 2.8, and that the signs of are i.i.d. symmetric (and independent of ). Then under the other assumptions of Theorem 1.1, the matrix (2.6) obeys
.
The proof is also in Section 3. Clearly, and obey (2.8), hence certifying that Principal Component Pursuit correctly recovers the low-rank and sparse components with high probability when the signs of are random. The earlier “derandomization” argument then establishes Theorem 1.1.
Proofs of Dual Certification
This section proves the two crucial estimates, namely, Lemma 2.8 and Lemma 2.9.
We begin by recording two results which shall be useful in proving Lemma 2.8. While Theorem 2.6 asserts that with large probability,
for all , the next lemma shows that for a fixed , the sup-norm of also does not increase (also with large probability).
Suppose is a fixed matrix, and . Then with high probability,
provided that (for rectangular matrices, ) for some numerical constant .
The proof is an application of Bernstein’s inequality and may be found in the Appendix. A similar but somewhat different version of (3.1) appears in .
[8, Theorem 6.3] Suppose is fixed, and . Then with high probability,
for some small numerical constant provided that (or for rectangular matrices in which case replaces in (3.2)).
As a remark, Lemmas 3.1 and 3.2, and Theorem 2.6 all hold with probability at least , , if is replaced by for some numerical constant .
2 Proof of Lemma 2.8
We begin by introducing a piece of notation and set obeying
Obviously for all . First, note that when
(for rectangular matrices, take ), we have
by Lemma 3.1. (This holds with high probability because and are independent, and this is why the golfing scheme is easy to use.) In particular, this gives that with high probability
by Theorem 2.6. In particular, this gives that with high probability
Below, we will assume .
We prove the first part of the lemma and the argument parallels that in , see also . From
The fourth step follows from Lemma 3.2 and the fifth from (3.5). Since , this gives
for some numerical constant whenever obeys (3.3).
Proof of (b).
Since and , and this proves the claim.
Proof of (c).
We have and know that is supported on . Therefore, since , it suffices to show that . We have
Since , this gives
for some numerical constant whenever obeys (3.3). Since , if
Summary.
We have seen that (a) and (b) are satisfied if is sufficiently small and . For (c), we can take on the order of , which will be sufficiently small as well provided that in (1.4) is sufficiently small. Note that everything is consistent since . This concludes the proof of Lemma 2.8.
3 Proof of Lemma 2.9
It is convenient to introduce the sign matrix distributed as
We shall be interested in the event which holds with large probability when , see Corollary 2.7. In particular, for any , holds with high probability provided is sufficiently small.
For the first term, we have . Then standard arguments about the norm of a matrix with i.i.d. entries give
with large probability. Since , this gives . When the matrix is rectangular, we have
with high probability. Since in this case, as well.
For a fixed pair of unit-normed vectors in , define the random variable
Conditional on , the signs of are i.i.d. symmetric and Hoeffding’s inequality gives
Now since , the matrix obeys and, therefore,
On the event ,
with large probability, provided that , or equivalently , is small enough.
Proof of (b).
Now for , , and we have
where is the matrix . Conditional on , the signs of are i.i.d. symmetric, and Hoeffding’s inequality gives
on the event . On the same event, and, therefore,
This proves the claim when and is sufficiently small.
Numerical Experiments and Applications
In this section, we perform numerical experiments corroborating our main results and suggesting their many applications in image and video analysis. We first investigate Principal Component Pursuit’s ability to correctly recover matrices of various rank from errors of various density. We then sketch applications in background modeling from video and removing shadows and specularities from face images.
While the exact recovery guarantee provided by Theorem 1.1 is independent of the particular algorithm used to solve Principal Component Pursuit, its applicability to large scale problems depends on the availability of scalable algorithms for nonsmooth convex optimization. For the experiments in this section, we use the an augmented Lagrange multiplier algorithm introduced in .Both have posted a version of their code online. In Section 5, we describe this algorithm in more detail, and explain why it is our algorithm of choice for sparse and low-rank separation.
One important implementation detail in our approach is the choice of . Our analysis identifies one choice, , which works well for incoherent matrices. In order to illustrate the theory, throughout this section we will always choose . For practical problems, however, it is often possible to improve performance by choosing according to prior knowledge about the solution. For example, if we know that is very sparse, increasing will allow us to recover matrices of larger rank. For practical problems, we recommend as a good rule of thumb, which can then be adjusted slightly to obtain the best possible result.
We first verify the correct recovery phenomenon of Theorem 1.1 on randomly generated problems. We consider square matrices of varying dimension . We generate a rank- matrix as a product where and are matrices with entries independently sampled from a distribution. is generated by choosing a support set of size uniformly at random, and setting , where is a matrix with independent Bernoulli entries.
The last two columns of Table 1 give the number of partial singular value decompositions computed in the course of the optimization ( SVD) as well as the total computation time. This experiment was performed in Matlab on a Mac Pro with dual quad-core 2.66 GHz Intel Xenon processors and 16 GB RAM. As we will discuss in Section 5 the dominant cost in solving the convex program comes from computing one partial SVD per iteration. Strikingly, in Table 1, the number of SVD computations is nearly constant regardless of dimension, and in all cases less than 17.One might reasonably ask whether this near constant number of iterations is due to the fact that random problems are in some sense well-conditioned. There is some validity to this concern, as we will see in our real data examples. suggests a continuation strategy (there termed “Inexact ALM”) that produces qualitatively similar solutions with a similarly small number of iterations. However, to the best of our knowledge its convergence is not guaranteed. This suggests that in addition to being theoretically well-founded, the recovery procedure advocated in this paper is also reasonably practical.
2 Phase transition in rank and sparsity
Theorem 1.1 shows that convex programming correctly recovers an incoherent low-rank matrix from a constant fraction of errors. We next empirically investigate the algorithm’s ability to recover matrices of varying rank from errors of varying sparsity. We consider square matrices of dimension . We generate low-rank matrices with and independently chosen matrices with i.i.d. Gaussian entries of mean zero and variance . For our first experiment, we assume a Bernoulli model for the support of the sparse term , with random signs: each entry of takes on value with probability , and values each with probability . For each pair, we generate random problems, each of which is solved via the algorithm of Section 5. We declare a trial to be successful if the recovered satisfies . Figure 1 (left) plots the fraction of correct recoveries for each pair . Notice that there is a large region in which the recovery is exact. This highlights an interesting aspect of our result: the recovery is correct even though in some cases (e.g., for , is times larger!). This is to be expected from Lemma 2.4: the existence (or non-existence) of a dual certificate depends only on the signs and support of and the orientation of the singular spaces of .
Finally, inspired by the connection between matrix completion and robust PCA, we compare the breakdown point for the low-rank and sparse separation problem to the breakdown behavior of the nuclear-norm heuristic for matrix completion. By comparing the two heuristics, we can begin to answer the question how much is gained by knowing the location of the corrupted entries? Here, we again generate as a product of Gaussian matrices. However, we now provide the algorithm with only an incomplete subset of its entries. Each is included in independently with probability , so rather than a probability of error, here, stands for the probability that an entry is omitted. We solve the nuclear norm minimization problem
3 Application sketch: background modeling from surveillance video
Video is a natural candidate for low-rank modeling, due to the correlation between frames. One of the most basic algorithmic tasks in video surveillance is to estimate a good model for the background variations in a scene. This task is complicated by the presence of foreground objects: in busy scenes, every frame may contain some anomaly. Moreover, the background model needs to be flexible enough to accommodate changes in the scene, for example due to varying illumination. In such situations, it is natural to model the background variations as approximately low rank. Foreground objects, such as cars or pedestrians, generally occupy only a fraction of the image pixels and hence can be treated as sparse errors.
We investigate whether convex optimization can separate these sparse errors from the low-rank background. Here, it is important to note that the error support may not be well-modeled as Bernoulli: errors tend to be spatially coherent, and more complicated models such as Markov random fields may be more appropriate . Hence, our theorems do not necessarily guarantee the algorithm will succeed with high probability. Nevertheless, as we will see, Principal Component Pursuit still gives visually appealing solutions to this practical low-rank and sparse separation problem, without using any additional information about the spatial structure of the error.
Convex optimization (this work) Alternating minimization
Convex optimization (this work) Alternating minimization
Figure 2 (d) and (e) compares the result obtained by Principal Component Pursuit to a state-of-the-art technique from the computer vision literature, .We use the code package downloaded from http://www.salleurl.edu/~ftorre/papers/rpca/rpca.zip, modified to choose the rank of the approximation as suggested in . That approach also aims at robustly recovering a good low-rank approximation, but uses a more complicated, nonconvex -estimator, which incorporates a local scale estimate that implicitly exploits the spatial characteristics of natural images. This leads to a highly nonconvex optimization, which is solved locally via alternating minimization. Interestingly, despite using more prior information about the signal to be recovered, this approach does not perform as well as the convex programming heuristic: notice the large artifacts in the top and bottom rows of Figure 2 (d).
In Figure 3, we consider frames of a sequence with several drastic illumination changes. Here, the resolution is , and so is a matrix. For simplicity, and to illustrate the theoretical results obtained above, we again choose .For this example, slightly more appealing results can actually be obtained by choosing larger (say, ). For this example, on the same 2.66 GHz Core 2 Duo machine, the algorithm requires a total of 561 iterations and 36 minutes to converge.
Figure 3 (a) shows three frames taken from the original video, while (b) and (c) show the recovered low-rank and sparse components, respectively. Notice that the low-rank component correctly identifies the main illuminations as background, while the sparse part corresponds to the motion in the scene. On the other hand, the result produced by the algorithm of treats some of the first illumination as foreground. PCP again outperforms the competing approach, despite using less prior information. These results suggest the potential power for convex programming as a tool for video analysis.
Notice that the number of iterations for the real data is typically higher than that of the simulations with random matrices given in Table 1. The reason for this discrepancy might be that the structures of real data could slightly deviate from the idealistic low-rank and sparse model. Nevertheless, it is important to realize that practical applications such as video surveillance often provide additional information about the signals of interest, e.g. the support of the sparse foreground is spatially piecewise contiguous, or even impose additional requirements, e.g. the recovered background needs to be non-negative etc. We note that the simplicity of our objective and solution suggests that one can easily incorporate additional constraints and more accurate models of the signals so as to obtain much more efficient and accurate solutions in the future.
4 Application sketch: removing shadows and specularities from face images
Face recognition is another problem domain in computer vision where low-dimensional linear models have received a great deal of attention. This is mostly due to the work of Basri and Jacobs, who showed that for convex, Lambertian objects, images taken under distant illumination lie near an approximately nine-dimensional linear subspace known as the harmonic plane . However, since faces are neither perfectly convex nor Lambertian, real face images often violate this low-rank model, due to cast shadows and specularities. These errors are large in magnitude, but sparse in the spatial domain. It is reasonable to believe that if we have enough images of the same face, Principal Component Pursuit will be able to remove these errors. As with the previous example, some caveats apply: the theoretical result suggests the performance should be good, but does not guarantee it, since again the error support does not follow a Bernoulli model. Nevertheless, as we will see, the results are visually striking.
Figure 4 plots the low rank term and the magnitude of the sparse term obtained as the solution to the convex program. The sparse term compensates for cast shadows and specular regions. In one example (bottom row of Figure 4 left), this term also compensates for errors in image acquisition. These results may be useful for conditioning the training data for face recognition, as well as face alignment and tracking under illumination variations.
Algorithms
For small problem sizes, Principal Component Pursuit
can be performed using off-the-shelf tools such as interior point methods . This was suggested for rank minimization in and for low-rank and sparse decomposition (see also ). However, despite their superior convergence rates, interior point methods are typically limited to small problems, say , due to the complexity of computing a step direction.
The ALM method operates on the augmented Lagrangian
A generic Lagrange multiplier algorithm would solve PCP by repeatedly setting , and then updating the Lagrange multiplier matrix via .
Similarly, for matrices , let denote the singular value thresholding operator given by , where is any singular value decomposition. It is not difficult to show that
Thus, a more practical strategy is to first minimize with respect to (fixing ), then minimize with respect to (fixing ), and then finally update the Lagrange multiplier matrix based on the residual , a strategy that is summarized as Algorithm 1 below.
Very similar ideas can be used to develop simple and effective augmented Lagrange multiplier algorithms for matrix completion , and for the robust matrix completion problem (1.5) discussed in Section 1.6, with similarly good performance. In the preceding section, all simulations and experiments are therefore conducted using ALM-based algorithms. For a more thorough discussion, implementation details and comparisons with other algorithms, please see .
Discussion
This paper delivers some rather surprising news: one can disentangle the low-rank and sparse components exactly by convex programming, and this provably works under very broad conditions that are much broader than those provided by the best known results. Further, our analysis has revealed rather close relationships between matrix completion and matrix recovery (from sparse errors) and our results even generalize to the case when there are both incomplete and corrupted entries (i.e. Theorem 1.2). In addition, Principal Component Pursuit does not have any free parameter and can be solved by simple optimization algorithms with remarkable efficiency and accuracy. More importantly, our results may point to a very wide spectrum of new theoretical and algorithmic issues together with new practical applications that can now be studied systematically.
Our study so far is limited to the low-rank component being exactly low-rank, and the sparse component being exactly sparse. It would be interesting to investigate when either or both these assumptions are relaxed. One way to think of this is via the new observation model , where is a dense, small perturbation accounting for the fact that the low-rank component is only approximately low-rank and that small errors can be added to all the entries (in some sense, this model unifies the classical PCA and the robust PCA by combining both sparse gross errors and dense small noise). The ideas developed in in connection with the stability of matrix completion under small perturbations may be useful here. Even more generally, the problems of sparse signal recovery, low-rank matrix completion, classical PCA, and robust PCA can all be considered as special cases of a general measurement model of the form
where are known linear maps. An ambitious goal might be to understand exactly under what conditions, one can effectively retrieve or decompose and from such noisy linear measurements via convex programming.
The remarkable ability of convex optimizations in recovering low-rank matrices and sparse signals in high-dimensional spaces suggest that they will be a powerful tool for processing massive data sets that arise in image/video processing, web data analysis, and bioinformatics. Such data are often of millions or even billions of dimensions so the computational and memory cost can be far beyond that of a typical PC. Thus, one important direction for future investigation is to develop algorithms that have even better scalability, and can be easily implemented on the emerging parallel and distributed computing infrastructures.
Appendix
2 Proof of Lemma 3.1
where is the sum of the variances, .
Define via where is an independent sequence of Bernoulli variables with parameter . With this notation, is given by
so that is a sum of independent random variables,
where the last inequality holds because of (2.2). Also, it follows from (1.2) that so that . Then Bernstein’s inequality gives
If is as in Lemma 3.1, the union bound proves the claim.
3 Proof of Theorem 1.2
This section presents a proof of Theorem 1.2, which resembles that of Theorem 1.1. Here and below, so that the available data are of the form . We make three observations.
If PCP correctly recovers from the input data (note that this means that and ), then it must correctly recover from , where is a trimmed version of . The proof is identical to that of our elimination result, namely, Theorem 2.2. The derandomization argument then applies and it suffices to consider the case where the signs of are i.i.d. symmetric Bernoulli variables.
It is of course sufficient to prove the theorem when each entry in is revealed with probability , i.e. when .
We establish the theorem in the case where as slight modifications would give the general case.
Further, there are now three index sets of interest:
are those locations where data are available.
are those locations where data are available and clean; that is, .
are those locations where data are available but totally unreliable.
The matrix is thus supported on . If , then by definition, .
We begin with two lemmas concerning dual certification.
Assume . Then is the unique solution if there is a pair obeying
with , , and .
The proof is about the same as that of Lemma 2.4, and is discussed in very brief terms. The idea is to consider a feasible perturbation of the form obeying , and show that this increases the objective functional unless . Then a sequence of steps similar to that in the proof of Lemma 2.4 establishes
where . Finally, vanishes if and only if .
Assume that for any matrix , and take . Then is the unique solution if there is a pair obeying
with , , and , and .
Note that implies , or equivalently . Indeed if , while , and thus .
Proof It follows from (7.2) together with the same argument as in the proof of Lemma 7.2 that
Using both and , we obtain
The claim follows from .
Under the assumptions of Theorem 1.2, the assumption of Lemma 7.2 is satisfied with high probability. That is, for all .
Proof Set and . Since , Theorem 2.6 gives with high probability. Further, because , we have
In conclusion, , and the claim follows since .
Thus far, our analysis shows that to establish our theorem, it suffices to construct a pair obeying
Indeed, by definition, obeys
where is as in Lemma 7.2, and it can also be expressed as
where and are as in this lemma as well.
We use the golfing scheme to construct . Think of with as , where the sets are independent, and obeys . Here, we take , and observe that as before. Then starting with , inductively define
By construction, . Now just as in Section (3.2), because is sufficiently large, and , both inequality holding with large probability. The proof is now identical to that in (2.5). First, the same steps show that
Whenever for a sufficiently large value of the constant (which is possible provided that in (1.6) is sufficiently small), this terms obeys as required. Second,
Now it suffices to bound the right-hand side by . This is automatic when whenever is sufficiently large and, thus, the situation is as before. In conclusion, we have established that obeys (7.3) with high probability.
We first establish that with high probability,
where is a continuous function of approaching zero when approaches zero. In other words, the parameter may become arbitrary small constant by selecting small enough. This claim is a straight application of Corollary 2.7. We also have
with high probability. This second claim uses the identity
This is well defined since the restriction of to is invertible. Indeed, Theorem 2.6 gives and, therefore, . Hence,
Setting , this allows to define via
where , and with . The operator is self-adjoint and obeys with high probability. By construction, and . It remains to check that both events and hold with high probability.
Control of . For the first term, we have . Because the entries of are i.i.d. and take the value each with probability , and the value with probability , standard arguments give
with large probability. Since , with high probability, provided is small enough.
For the second term, , and the same covering argument as before gives
Since this shows that with high probability, since one can always choose , or equivalently , sufficiently small.
Control of . For , we have
It remains to control the Frobenius norm of . To do this, we use the identity
with high probability. This follows from the fact that and as we have already seen. Since we also have with high probability,
This shows that if , or equivalently , is sufficiently small.
Acknowledgements
E. C. is supported by ONR grants N00014-09-1-0469 and N00014-08-1-0749 and by the Waterman Award from NSF. Y. M. is partially supported by the grants NSF IIS 08-49292, NSF ECCS 07-01676, and ONR N00014-09-1-0230. E. C. would like to thank Deanna Needell for comments on an earlier version of this manuscript. We would also like to thank Zhouchen Lin (MSRA) for his help with the ALM algorithm, and Hossein Mobahi (UIUC) for his help with some of the simulations.