Rank-Sparsity Incoherence for Matrix Decomposition
Venkat Chandrasekaran, Sujay Sanghavi, Pablo A. Parrilo, Alan S. Willsky
Introduction
Complex systems and models arise in a variety of problems in science and engineering. In many applications such complex systems and models are often composed of multiple simpler systems and models. Therefore, in order to better understand the behavior and properties of a complex system a natural approach is to decompose the system into its simpler components. In this paper we consider matrix representations of systems and statistical models in which our matrices are formed by adding together sparse and low-rank matrices. We study the problem of recovering the sparse and low-rank components given no prior knowledge about the sparsity pattern of the sparse matrix, or the rank of the low-rank matrix. We propose a tractable convex program to recover these components, and provide sufficient conditions under which our procedure recovers the sparse and low-rank matrices exactly.
Such a decomposition problem arises in a number of settings, with the sparse and low-rank matrices having different interpretations depending on the application. In a statistical model selection setting, the sparse matrix can correspond to a Gaussian graphical model and the low-rank matrix can summarize the effect of latent, unobserved variables. Decomposing a given model into these simpler components is useful for developing efficient estimation and inference algorithms. In computational complexity, the notion of matrix rigidity captures the smallest number of entries of a matrix that must be changed in order to reduce the rank of the matrix below a specified level (the changes can be of arbitrary magnitude). Bounds on the rigidity of a matrix have several implications in complexity theory . Similarly, in a system identification setting the low-rank matrix represents a system with a small model order while the sparse matrix represents a system with a sparse impulse response. Decomposing a system into such simpler components can be used to provide a simpler, more efficient description.
Formally the decomposition problem we are interested can be defined as follows:
Given where is an unknown sparse matrix and is an unknown low-rank matrix, recover and from using no additional information on the sparsity pattern and/or the rank of the components.
In the absence of any further assumptions, this decomposition problem is fundamentally ill-posed. Indeed, there are a number of scenarios in which a unique splitting of into “low-rank” and “sparse” parts may not exist; for example, the low-rank matrix may itself be very sparse leading to identifiability issues. In order to characterize when such a decomposition is possible we develop a notion of rank-sparsity incoherence, an uncertainty principle between the sparsity pattern of a matrix and its row/column spaces. This condition is based on quantities involving the tangent spaces to the algebraic variety of sparse matrices and the algebraic variety of low-rank matrices .
Here is the spectral norm (i.e., the largest singular value), and denotes the largest entry in magnitude. Thus being small implies that (appropriately scaled) elements of the tangent space are “diffuse”, i.e., these elements are not too sparse; as a result cannot be very sparse. As shown in Proposition 4 (see Section 4.3) a low-rank matrix with row/column spaces that are not closely aligned with the coordinate axes has small .
The quantity being small for a matrix implies that the spectrum of any element of the tangent space is “diffuse”, i.e., the singular values of these elements are not too large. We show in Proposition 3 (see Section 4.3) that a sparse matrix with “bounded degree” (a small number of non-zeros per row/column) has small .
For a given matrix , it is impossible for both quantities and to be simultaneously small. Indeed, we prove that for any matrix we must have that (see Theorem 1 in Section 3.3). Thus, this uncertainty principle asserts that there is no non-zero matrix with all elements in being diffuse and all elements in having diffuse spectra. As we describe later, the quantities and are also used to characterize fundamental identifiability in the decomposition problem.
and the nuclear norm, which is the sum of the singular values, is given by
Here is a parameter that provides a trade-off between the low-rank and sparse components. This optimization problem is convex, and can in fact be rewritten as a semidefinite program (SDP) (see Appendix A).
In the sequel we discuss concrete classes of sparse and low-rank matrices that have small and respectively. We also show that when the sparse and low-rank matrices and are drawn from certain natural random ensembles, then the sufficient conditions of Theorem 2 are satisfied with high probability; consequently, (3) provides exact recovery with high probability for such matrices.
2 Previous work using incoherence
3 Outline
In Section 2 we elaborate on the applications mentioned previously, and discuss the implications of our results for each of these applications. Section 3 formally describes conditions for fundamental identifiability in the decomposition problem based on the quantities and defined in (1) and (2). We also provide a proof of the rank-sparsity uncertainty principle of Theorem 1. We prove Theorem 2 in Section 4, and also provide concrete classes of sparse and low-rank matrices that satisfy the sufficient conditions of Theorem 2. Section 5 describes the results of simulations of our approach applied to synthetic matrix decomposition problems. We conclude with a discussion in Section 6. The Appendix provides additional details and proofs.
Applications
In this section we describe several applications that involve decomposing a matrix into sparse and low-rank components.
We begin with a problem in statistical model selection. In many applications large covariance matrices are approximated as low-rank matrices based on the assumption that a small number of latent factors explain most of the observed statistics (e.g., principal component analysis). Another well-studied class of models are those described by graphical models in which the inverse of the covariance matrix (also called the precision or concentration or information matrix) is assumed to be sparse (typically this sparsity is with respect to some graph). We describe a model selection problem involving graphical models with latent variables. Let the covariance matrix of a collection of jointly Gaussian variables be denoted by , where represents observed variables and represents unobserved, hidden variables. The marginal statistics corresponding to the observed variables are given by the marginal covariance matrix , which is simply a submatrix of the full covariance matrix . Suppose, however, that we parameterize our model by the information matrix given by (such a parameterization reveals the connection to graphical models). In such a parameterization, the marginal information matrix corresponding to the inverse is given by the Schur complement with respect to the block :
Thus if we only observe the variables , we only have access to (or ). A simple explanation of the statistical structure underlying these variables involves recognizing the presence of the latent, unobserved variables . However (4) has the interesting structure that is often sparse due to graphical structure amongst the observed variables , while has low-rank if the number of latent, unobserved variables is small relative to the number of observed variables (the rank is equal to the number of latent variables ). Therefore, decomposing into these sparse and low-rank components reveals the graphical structure in the observed variables as well as the effect due to (and the number of) the unobserved latent variables. We discuss this application in more detail in a separate report .
2 Matrix rigidity
3 Composite system identification
A decomposition problem can also be posed in the system identification setting. Linear time-invariant (LTI) systems can be represented by Hankel matrices, where the matrix represents the input-output relationship of the system . Thus, a sparse Hankel matrix corresponds to an LTI system with a sparse impulse response. A low-rank Hankel matrix corresponds to a system with small model order, and provides a minimal realization for a system . Given an LTI system as follows
where is sparse and is low-rank, obtaining a simple description of requires decomposing it into its simpler sparse and low-rank components. One can obtain these components by solving our rank-sparsity decomposition problem. Note that in practice one can impose in (3) the additional constraint that the sparse and low-rank matrices have Hankel structure.
4 Partially coherent decomposition in optical systems
We outline an optics application that is described in greater detail in . Optical imaging systems are commonly modeled using the Hopkins integral , which gives the output intensity at a point as a function of the input transmission via a quadratic form. In many applications the operator in this quadratic form can be well-approximated by a (finite) positive semi-definite matrix. Optical systems described by a low-pass filter are called coherent imaging systems, and the corresponding system matrices have small rank. For systems that are not perfectly coherent various methods have been proposed to find an optimal coherent decomposition , and these essentially identify the best approximation of the system matrix by a matrix of lower rank. At the other end are incoherent optical systems that allow some high frequencies, and are characterized by system matrices that are diagonal. As most real-world imaging systems are some combination of coherent and incoherent, it was suggested in that optical systems are better described by a sum of coherent and incoherent systems rather than by the best coherent (i.e., low-rank) approximation as in . Thus, decomposing an imaging system into coherent and incoherent components involves splitting the optical system matrix into low-rank and diagonal components. Identifying these simpler components has important applications in tasks such as optical microlithography .
Rank-Sparsity Incoherence
Throughout this paper, we restrict ourselves to square matrices to avoid cluttered notation. All our analysis extends to rectangular matrices, if we simply replace by .
As described in the introduction, the matrix decomposition problem can be fundamentally ill-posed. We describe two situations in which identifiability issues arise. These examples suggest the kinds of additional conditions that are required in order to ensure that there exists a unique decomposition into sparse and low-rank matrices.
First, let be any sparse matrix and let , where represents the -th standard basis vector. In this case, the low-rank matrix is also very sparse, and a valid sparse-plus-low-rank decomposition might be and . Thus, we need conditions that ensure that the low-rank matrix is not too sparse. One way to accomplish this is to require that the quantity be small. As will be discussed in Section 4.3), if the row and column spaces of are “incoherent” with respect to the standard basis, i.e., the row/column spaces are not aligned closely with any of the coordinate axes, then is small.
2 Tangent-space identifiability
We begin by describing the sets of sparse and low-rank matrices. These sets can be considered either as differentiable manifolds (away from their singularities) or as algebraic varieties; we emphasize the latter viewpoint here. Recall that an algebraic variety is defined as the zero set of a system of polynomial equations . The variety of rank-constrained matrices is defined as:
Next we consider the set of all matrices that are constrained by the size of their support. Such sparse matrices can also be viewed as algebraic varieties:
Before analyzing whether can be recovered in general (for example, using the SDP (3)), we ask a simpler question. Suppose that we had prior information about the tangent spaces and , in addition to being given . Can we then uniquely recover from ? Assuming such prior knowledge of the tangent spaces is unrealistic in practice; however, we obtain useful insight into the kinds of conditions required on sparse and low-rank matrices for exact decomposition. Given this knowledge of the tangent spaces, a necessary and sufficient condition for unique recovery is that the tangent spaces and intersect transversally:
That is, the subspaces and have a trivial intersection. The sufficiency of this condition for unique decomposition is easily seen. For the necessity part, suppose for the sake of a contradiction that a non-zero matrix belongs to ; one can add and subtract from and respectively while still having a valid decomposition, which violates the uniqueness requirement. The following proposition, proved in Appendix B, provides a simple condition in terms of the quantities and for the tangent spaces and to intersect transversally.
Given any two matrices and , we have that
where and are defined in (1) and (2), and the tangent spaces and are defined in (8) and (6).
Thus, both and being small implies that the tangent spaces and intersect transversally; consequently, we can exactly recover given and . As we shall see, the condition required in Theorem 2 (see Section 4.2) for exact recovery using the convex program (3) will be simply a mild tightening of the condition required above for unique decomposition given the tangent spaces.
3 Rank-sparsity uncertainty principle
Another important consequence of Proposition 1 is that we have an elementary proof of the following rank-sparsity uncertainty principle.
where and are as defined in (1) and (2) respectively.
Proof: Given any it is clear that , i.e., is an element of both tangent spaces. However would imply from Proposition 1 that , which is a contradiction. Consequently, we must have that .
Hence, for any matrix both and cannot be simultaneously small. Note that Proposition 1 is an assertion involving and for (in general) different matrices, while Theorem 1 is a statement about and for the same matrix. Essentially the uncertainty principle asserts that no matrix can be too sparse while having “diffuse” row and column spaces. An extreme example is the matrix , which has the property that .
Exact Decomposition Using Semidefinite Programming
We begin this section by studying the optimality conditions of the convex program (3), after which we provide a proof of Theorem 2 with simple conditions that guarantee exact decomposition. Next we discuss concrete classes of sparse and low-rank matrices that satisfy the conditions of Theorem 2, and can thus be uniquely decomposed using (3).
Similarly the orthogonal projection onto the space is denoted . Letting be the SVD of , we have the following explicit relation for :
Here and . The space orthogonal to is denoted , and the corresponding projection is denoted . The space consists of matrices with row-space orthogonal to the row-space of and column-space orthogonal to the column-space of . We have that
where is the identity matrix.
Following standard notation in convex analysis , we denote the subgradient of a convex function at a point in its domain by . The subgradient consists of all such that
Note that these are necessary and sufficient conditions for to be an optimum of (3). The following proposition provides sufficient conditions for to be the unique optimum of (3), and it involves a slight tightening of the conditions (11), (12), and (13).
Suppose that . Then is the unique optimizer of (3) if the following conditions are satisfied:
.
The proof of the proposition can be found in Appendix B. Figure 1 provides a visual representation of these conditions. In particular, we see that the spaces and intersect transversely (part of Proposition 2). One can also intuitively see that guaranteeing the existence of a dual with the requisite conditions (part of Proposition 2) is perhaps easier if the intersection between and is more transverse. Note that condition of this proposition essentially requires identifiability with respect to the tangent spaces, as discussed in Section 3.2.
Next we provide simple sufficient conditions on and that guarantee the existence of an appropriate dual (as required by Proposition 2). Given matrices and with , we have from Proposition 1 that , i.e., condition of Proposition 2 is satisfied. We prove that if a slightly stronger condition holds, there exists a dual that satisfies the requirements of condition of Proposition 2.
the unique optimum of (3) is for the following range of :
Specifically is always inside the above range, and thus guarantees exact recovery of .
One consequence of Theorem 2 is that if , then there exists no other such that with . We consider this implication locally around . Recall that the quantities and are defined with respect to the tangent spaces and . Suppose is slightly perturbed along the variety of rank-constrained matrices to some . This ensures that the tangent space varies smoothly from to , and consequently that . However, compensating for this by changing to moves outside the variety of sparse matrices. This is because is not sparse. Thus the dimension of the tangent space is much greater than that of the tangent space , as a result of which ; therefore we have that . The same reasoning holds in the opposite scenario. Consider perturbing slightly along the variety of sparse matrices to some . While this ensures that , changing to moves outside the variety of rank-constrained matrices. Therefore the dimension of the tangent space is greater than that of , resulting in ; consequently we have that .
We discuss concrete classes of sparse and low-rank matrices that satisfy the sufficient condition of Theorem 2 for exact decomposition. We begin by showing that sparse matrices with “bounded degree”, i.e., bounded number of non-zeros per row/column, have small .
then the unique optimum of the convex program (3) is for a range of values of :
We emphasize that this is a result with deterministic sufficient conditions on exact decomposability.
4 Decomposing random sparse and low-rank matrices
Next we show that sparse and low-rank matrices drawn from certain natural random ensembles satisfy the sufficient conditions of Corollary 3 with high probability. We first consider random sparse matrices with a fixed number of non-zero entries.
The proof of this lemma follows from a standard balls and bins argument, and can be found in several references (see for example ).
Next we consider low-rank matrices in which the singular vectors are chosen uniformly at random from the set of all partial isometries. Such a model was considered in recent work on the matrix completion problem , which aims to recover a low-rank matrix given observations of a subset of entries of the matrix.
Random orthogonal model [4]
As shown in , low-rank matrices drawn from such a model have incoherent row/column spaces.
Applying these two results in conjunction with Corollary 3, we have that sparse and low-rank matrices drawn from the random sparsity model and the random orthogonal model can be uniquely decomposed with high probability.
Thus, for matrices with rank smaller than the SDP (3) yields exact recovery with high probability even when the size of the support of is super-linear in . During final preparation of this manuscript we learned of related contemporaneous work that specifically studies the problem of decomposing random sparse and low-rank matrices. In addition to the assumptions of our random sparsity and random orthogonal models, also requires that the non-zero entries of have independently chosen signs that are with equal probability, while the left and right singular vectors of are chosen independent of each other. For this particular specialization of our more general framework, the results in improve upon our bound in Corollary 4.
Implications for the matrix rigidity problem
which satisfies the sufficient condition of Corollary 4 for exact recovery. Therefore, while the rigidity of a matrix is NP-hard to compute in general , for such low-rigidity matrices one can compute the rigidity ; in fact the SDP (3) provides a certificate of the sparse and low-rank matrices that form the low rigidity matrix .
Simulation Results
We confirm the theoretical predictions in this paper with some simple experimental results. We also present a heuristic to choose the trade-off parameter . All our simulations were performed using YALMIP and the SDPT3 software for solving SDPs.
Next we consider the problem of choosing the trade-off parameter . Based on Theorem 2 we know that exact recovery is possible for a range of . Therefore, one can simply check the stability of the solution as is varied without knowing the appropriate range for in advance. To formalize this scheme we consider the following SDP for , which is a slightly modified version of (3):
There is a one-to-one correspondence between (3) and (18) given by . The benefit in looking at (18) is that the range of valid parameters is compact, i.e., , as opposed to the situation in (3) where . We compute the difference between solutions for some and as follows:
Discussion
We have studied the problem of exactly decomposing a given matrix into its sparse and low-rank components and . This problem arises in a number of applications in model selection, system identification, complexity theory, and optics. We characterized fundamental identifiability in the decomposition problem based on a notion of rank-sparsity incoherence, which relates the sparsity pattern of a matrix and its row/column spaces via an uncertainty principle. As the general decomposition problem is NP-hard we propose a natural SDP relaxation (3) to solve the problem, and provide sufficient conditions on sparse and low-rank matrices so that the SDP exactly recovers such matrices. Our sufficient conditions are deterministic in nature; they essentially require that the sparse matrix must have support that is not too concentrated in any row/column, while the low-rank matrix must have row/column spaces that are not closely aligned with the coordinate axes. Our analysis centers around studying the tangent spaces with respect to the algebraic varieties of sparse and low-rank matrices. Indeed the sufficient conditions for identifiability and for exact recovery using the SDP can also be viewed as requiring that certain tangent spaces have a transverse intersection. We also demonstrated the implications of our results for the matrix rigidity problem.
An interesting problem for further research is the development of special-purpose algorithms that take advantage of structure in (3) to provide a more efficient solution than a general-purpose SDP solver. Another question that arises in applications such as model selection (due to noise or finite sample effects) is to approximately decompose a matrix into sparse and low-rank components.
Acknowledgments
The authors would like to thank Dr. Benjamin Recht and Prof. Maryam Fazel for helpful discussions.
Appendix A SDP formulation
The problem (3) can be recast as a semidefinite program (SDP). We appeal to the fact that the spectral norm is the dual norm of the nuclear norm :
Further, the spectral norm admits a simple semidefinite characterization :
From duality, we can obtain the following SDP characterization of the nuclear norm:
Putting these facts together, (3) can be rewritten as
Appendix B Proofs
where denotes the projection onto the space . Assume for the sake of a contradiction that this assertion is not true. Thus, there exists such that . Scale appropriately such that . Thus with , but we also have that as . This leads to a contradiction.
which would allow us to conclude the proof of this proposition. We have the following sequence of inequalities
Here the first inequality follows from the definition (2) of as , the second inequality is due to the fact that , and the final inequality follows from the definition (1) of .
Proof of Proposition 2
We first show that is an optimum of (3), before moving on to showing uniqueness. Based on subgradient optimality conditions applied at , there must exist a dual such that
The second condition in this proposition guarantees the existence of a dual that satisfies both these subgradient conditions simultaneously (see (12) and (13)). Therefore, we have that is an optimum. Next we show that under the conditions specified in the lemma, is also a unique optimum. To avoid cluttered notation, in the rest of this proof we let , , , and .
Suppose that there is another feasible solution that is also a minimizer. We must have that because . Applying the subgradient property at , we have that for any subgradient of the function (at )
Since is a subgradient of the function at , we must have from (12) and (13) that
, with .
Using these conditions we rewrite and . Based on the existence of the dual as described in the lemma, we have that
where we have used the fact that . Putting (24) and (25) together, we have that
In the second equality, we used the fact that .
Since and , we have that is strictly positive unless and . (Note that if then .) However, we have that . If , then . In other words, . This can only be possible if (as ), which implies that . Therefore, unless .
Proof of Theorem 2
As with the previous proof, we avoid cluttered notation by letting , , , and . One can check that
Thus, we show that if then there exists a range of for which a dual with the requisite properties exists. Also note that plugging in in the above range gives the smaller range for ; the geometric mean of the extreme values gives , which is always within the above range.
Next, we obtain the following bound on :
where we obtain the second inequality based on the definition of (since ). Similarly, we can obtain the following bound on
By definition of and using (28),
where the second inequality is obtained because . Similarly, by definition of and using (29)
Similarly, putting (33) in (32), we have that
We now show that . Combining (35) and (31),
since by assumption.
Finally, we show that . Combining (34) and (30),
Here, we used the fact that in the second inequality.
Proof of Proposition 3
Based on the Perron-Frobenius theorem , one can conclude that if . Thus, we need only consider the matrix that has in every location in the support set and everywhere else. Based on the definition of the spectral norm, we can re-write as follows:
Without loss of generality we restrict our attention to optima that are achieved by element-wise non-negative vectors .
Since the reformulation of above involves the maximization of a continuous function over a compact set, the maximum is achieved at some point in the constraint set. Therefore, we have that any optimal must satisfy the following necessary optimality conditions: There exist Lagrange multipliers such that
This reduces to the following system of equations:
Multiplying the first system of equations (37) element-wise by and then summing, we have that
Similarly, we have that , which implies that the Lagrange multipliers are equal to each other and to one-half of the optimal value attained
We recall here that the optimal points are element-wise non-negative. Let denote the element-wise sum of the optimal points :
Summing over all in (37) and all in (38), we have that
Lower bound
Here we set with representing the all-ones vector, as candidates in the optimization problem (36).
Proof of Proposition 4
For the second inequality, we have used the fact that the maximum of a convex function over a convex set is achieved at one of the extreme points of the constraint set. The unitary matrices are the extreme points of the set of contractions (i.e., matrices with spectral norm ). We have used from (9) in the last inequality, where and denote the projections onto the spaces spanned by and respectively.
We have the following simple bound for with unitary:
Here we used the Cauchy-Schwartz inequality in the second line, and the definition of from (14) in the last line.
Lower bound
Next we prove a lower bound on . Recall the definition of the tangent space from (6). We restrict our attention to elements of the tangent space of the form for unitary (an analogous argument follows for elements of the form for unitary). One can check that
Thus, we only need to show that the inequality in line of (39) is achieved by some unitary matrix in order to conclude that . Define the “most aligned” basis vector with the subspace as follows:
Let be any unitary matrix with one of its columns equal to , i.e., a normalized version of the projection onto of the most aligned basis vector. One can check that such a unitary matrix achieves equality in line of (39). Consequently, we have that
By a similar argument with respect to , we have the lower bound as claimed in the proposition.