Supriya Ghosh (Editor)

Matrix completion

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Matrix completion

Matrix completion is the task of filling in the missing entries of a partially observed matrix. A wide range of datasets are naturally organized in matrix form. One example is the movie-ratings matrix, as appears in the Netflix problem: Given a ratings matrix in which each entry ( i , j ) represents the rating of movie j by customer i if customer i has watched movie j and is otherwise missing, we would like to predict the remaining entries in order to make good recommendations to customers on what to watch next. Another example is the term-document matrix: The frequencies of words used in a collection of documents can be represented as a matrix, where each entry corresponds to the number of times the associated term appears in the indicated document.

Contents

Without any restrictions on the number of degrees of freedom in the completed matrix this problem is underdetermined since the hidden entries could be assigned arbitrary values. Thus matrix completion often seeks to find the lowest rank matrix or, if the rank of the completed matrix is known, a matrix of rank r that matches the known entries. The illustration shows that a partially revealed rank-1 matrix (on the left) can be completed with zero-error (on the right) since all the rows with missing entries should be the same as the third row. In the case of the Netflix problem the ratings matrix is expected to be low-rank since user preferences can often be described by a few factors, such as the movie genre and time of release. Other applications include computer vision, where missing pixels in images need to be reconstructed, detecting the global positioning of sensors in a network from partial distance information, and multiclass learning. The matrix completion problem is in general NP-hard, but there are tractable algorithms that achieve exact reconstruction with high probability.

In statistical learning point of view, the matrix completion problem is an application of matrix regularization which is a generalization of vector regularization. For example, in the low-rank matrix completion problem one may apply the regularization penalty taking the form of a nuclear norm R ( X ) = λ X

Low rank matrix completion

One of the variants of the matrix completion problem is to find the lowest rank matrix X which matches the matrix M , which we wish to recover, for all entries in the set E of observed entries.The mathematical formulation of this problem is as follows:

min X rank ( X ) subject to X i j = M i j i , j E

Candès and Recht proved that with assumptions on the sampling of the observed entries and sufficiently many sampled entries this problem has a unique solution with high probability.

An equivalent formulation, given that the matrix M to be recovered is known to be of rank r , is to solve for X where X i j = M i j i , j E

Assumptions

A number of assumptions on the sampling of the observed entries and the number of sampled entries are frequently made to simplify the analysis and to ensure the problem is not underdetermined.

Uniform sampling of observed entries

To make the analysis tractable, it is often assumed that the set E of observed entries and fixed cardinality is sampled uniformly at random from the collection of all subsets of entries of cardinality | E | . To further simplify the analysis, it is instead assumed that E is constructed by Bernoulli sampling, i.e. that each entry is observed with probability p . If p is set to N m n where N is the desired expected cardinality of E , and m , n are the dimensions of the matrix (let m < n without loss of generality), | E | is within O ( n log n ) of N with high probability, thus Bernoulli sampling is a good approximation for uniform sampling. Another simplification is to assume that entries are sampled independently and with replacement.

Lower bound on number of observed entries

Suppose the m by n matrix M (with m < n ) we are trying to recover has rank r . There is an information theoretic lower bound on how many entries must be observed before M can be uniquely reconstructed. Firstly, the number of degrees of freedom of a matrix of rank r is 2 n r r 2 . This can be shown by looking at the Singular Value Decomposition of the matrix and counting the degrees of freedom. Then at least 2 n r r 2 entries must be observed for matrix completion to have a unique solution.

Secondly, there must be at least one observed entry per row and column of M . The Singular Value Decomposition of M is given by U Σ V . If row i is unobserved, it is easy to see the i th right singular vector of M , v i , can be changed to some arbitrary value and still yield a matrix matching M over the set of observed entries. Similarly, if column j is unobserved, the j th left singular vector of M , u i can be arbitrary. If we assume Bernoulli sampling of the set of observed entries, the Coupon collector effect implies that entries on the order of O ( n log n ) must be observed to ensure that there is an observation from each row and column with high probability.

Combining the necessary conditions and assuming that r m , n (a valid assumption for many practical applications), the lower bound on the number of observed entries required to prevent the problem of matrix completion from being underdetermined is on the order of n r log n .

Incoherence

The concept of incoherence arose in compressed sensing. It is introduced in the context of matrix completion to ensure the singular vectors of M are not too "sparse" in the sense that all coordinates of each singular vector are of comparable magnitude instead of just a few coordinates having significantly larger magnitudes. The standard basis vectors are then undesirable as singular vectors, and the vector 1 n [ 1 1 1 ] in R n is desirable. As an example of what could go wrong if the singular vectors are sufficiently "sparse", consider the m by n matrix [ 1 0 0 0 0 0 0 ] with singular value decomposition I m [ 1 0 0 0 0 0 0 ] I n . Almost all the entries of M must be sampled before it can be reconstructed.

Candès and Recht define the coherence of a matrix U with column space an r dimensional subspace of R n as μ ( U ) = n r max i < n P U e i 2 , where P U is the orthogonal projection onto U . Incoherence then asserts that given the singular value decomposition U Σ V of the m by n matrix M ,

  1. μ ( U ) , μ ( V ) μ 0
  2. The entries of k u k v k have magnitudes upper bounded by μ 1 r m n

for some μ 0 , μ 1 .

Low rank matrix completion with noise

In real world application, one often observe only a few entries corrupted at least by a small amount of noise. For example, in the Netflix problem, the ratings are uncertain. Candès and Plan showed that it is possible to fill in the many missing entries of large low-rank matrices from just a few noisy samples by nuclear norm minimization. The noisy model assumes that we observe

Y i j = M i j + Z i j , ( i , j ) Ω ,

where Z i j : ( i , j ) Ω is a noise term. Note that the noise can be either stochastic or deterministic. Alternatively the model can be expressed as

P Ω ( Y ) = P Ω ( M ) + P Ω ( Z ) ,

where Z is an n × n matrix with entries Z i j for ( i , j ) Ω assuming that P Ω ( Z ) F δ for some δ > 0 .To recover the incomplete matrix, we try to solve the following optimization problem:

min X X subject to P Ω ( X Y ) F δ

Among all matrices consistent with the data, find the one with minimum nuclear norm. Candès and Plan have shown that this reconstruction is accurate. They have proved that when perfect noiseless recovery occurs, then matrix completion is stable vis a vis perturbations. The error is proportional to the noise level δ . Therefore when the noise level is small, the error is small. Here the matrix completion problem does not obey the restricted isometry property (RIP). For matrices, the RIP would assume that the sampling operator obeys

( 1 δ ) X F 2 1 p P Ω ( X ) F 2 ( 1 + δ ) X F 2

for all matrices X with sufficiently small rank and δ < 1 sufficiently small. The methods are also applicable to sparse signal recovery problems in which the RIP does not hold.

High rank matrix completion

The high rank matrix completion in general is NP-Hard. However, with certain assumptions, some incomplete high rank even full rank matrix can be completed.

Eriksson, Balzano and Nowak have considered the problem of completing a matrix with the assumption that the columns of the matrix belong to a union of multiple low-rank subspaces. Since the columns belong to a union of subspaces, the problem may be viewed as a missing-data version of the subspace clustering problem. Let X be an n × N matrix whose (complete) columns lie in a union of at most k subspaces, each of r a n k r < n , and assume N k n . Eriksson, Balzano and Nowak showed that under mild assumptions each column of X can be perfectly recovered with high probability from an incomplete version so long as at least C r N log 2 ( n ) entries of X are observed uniformly at random, with C > 1 a constant depending on the usual incoherence conditions, the geometrical arrangement of subspaces, and the distribution of columns over the subspaces.

The algorithm involves several steps : (1) local neighborhoods; (2) local subspaces; (3) subspace refinement; (4) full matrix completion. This method can be applied to Internet distance matrix completion and topology identification.

Convex relaxation

The rank minimization problem is NP-hard. One approach, proposed by Candès and Recht, is to form a convex relaxation of the problem and minimize the nuclear norm M (which gives the sum of the singular values of M instead of rank ( M ) (which counts the number of non zero singular values of M ). This is analogous to minimizing the L1-norm rather than the L0-norm for vectors. The convex relaxation can be solved using semidefinite programming (SDP) by noticing that the optimization problem is equivalent to

min W 1 , W 2 trace ( W 1 ) + trace ( W 2 ) subject to X i j = M i j i , j E [ W 1 X X W 2 ] 0

The complexity of using SDP to solve the convex relaxation is O ( max ( m , n ) 4 ) . State of the art solvers like SDP3 can only handle matrices of size up to 100 by 100 An alternative first order method that approximately solves the convex relaxation is the Singular Value Thresholding Algorithm introduced by Cai, Candès and Shen.

Candès and Recht show, using the study of random variables on Banach spaces, that if the number of observed entries is on the order of max { μ 1 2 , μ 0 μ 1 , μ 0 n 0.25 } n r log n (assume without loss of generality m < n ), the rank minimization problem has a unique solution which also happens to be the solution of its convex relaxation with probability 1 c n 3 for some constant c . If the rank of M is small ( r n 0.2 μ 0 ), the size of the set of observations reduces to the order of μ 0 n 1.2 r log n . These results are near optimal, since the minimum number of entries that must be observed for the matrix completion problem to not be underdetermined is on the order of n r log n .

This result has been improved by Candès and Tao. They achieve bounds that differ from the optimal bounds only by polylogarithmic factors by strengthening the assumptions. Instead of the incoherence property, they assume the strong incoherence property with parameter μ 3 . This property states that:

  1. | e a , P U e a r m 1 a = a | μ 3 r m for a , a m and | e b , P U e b r n 1 b = b | μ 3 r n for b , b n
  2. The entries of i u i v i are bounded in magnitude by μ 3 r m n

Intuitively, strong incoherence of a matrix U asserts that the orthogonal projections of standard basis vectors to U has magnitudes that have high likelihood if the singular vectors were distributed randomly.

Candès and Tao find that when r is O ( 1 ) and the number of observed entries is on the order of μ 3 4 n ( log n ) 2 , the rank minimization problem has a unique solution which also happens to be the solution of its convex relaxation with probability 1 c n 3 for some constant c . For arbitrary r , the number of observed entries sufficient for this assertion hold true is on the order of μ 3 2 n r ( log n ) 6

Gradient descent

Keshavan, Montanari and Oh consider a variant of matrix completion where the rank of the m by n matrix M , which is to be recovered, is known to be r . They assume Bernoulli sampling of entries, constant aspect ratio m n , bounded magnitude of entries of M (let the upper bound be M max ), and constant condition number σ 1 σ r (where σ 1 and σ r are the largest and smallest singular values of M respectively). Further, they assume the two incoherence conditions are satisfied with μ 0 and μ 1 σ 1 σ r where μ 0 and μ 1 are constants. Let M E be a matrix that matches M on the set E of observed entries and is 0 elsewhere. They then propose the following algorithm:

  1. Trim M E by removing all observations from columns with degree larger than 2 | E | n by setting the entries in the columns to 0. Similarly remove all observations from rows with degree larger than 2 | E | n .
  2. Project M E onto its first r principal components. Call the resulting matrix Tr ( M E ) .
  3. Solve min X , Y min S R r × r 1 2 i , j E ( M i j ( X S Y ) i j ) 2 + ρ G ( X , Y ) where G ( X , Y ) is some regularization function by gradient descent with line search. Initialize X , Y at X 0 , Y 0 where Tr ( M E ) = X 0 S 0 Y 0 . Set G ( X , Y ) as some function forcing X , Y to remain incoherent throughout gradient descent if X 0 and Y 0 are incoherent.
  4. Return the matrix X S Y .

Steps 1 and 2 of the algorithm yield a matrix Tr ( M E ) very close to the true matrix M (as measured by the root mean square error (RMSE) with high probability. In particular, with probability 1 1 n 3 , 1 m n M max 2 M Tr ( M E ) F 2 C r m | E | m n for some constant C . F denotes the Frobenius norm. Note that the full suite of assumptions is not needed for this result to hold. The incoherence condition, for example, only comes into play in exact reconstruction. Finally, although trimming may seem counter intuitive as it involves throwing out information, it ensures projecting M E onto its first r principal components gives more information about the underlying matrix M than about the observed entries.

In Step 3, the space of candidate matrices X , Y can be reduced by noticing that the inner minimization problem has the same solution for ( X , Y ) as for ( X Q , Y R ) where Q and R are orthonormal r by r matrices. Then gradient descent can be performed over the cross product of two Grassman manifolds. If r m , n and the observed entry set is in the order of n r log n , the matrix returned by Step 3 is exactly M . Then the algorithm is order optimal, since we know that for the matrix completion problem to not be underdetermined the number of entries must be in the order of n r log n .

Alternating least squares minimization

Alternating minimization represents a widely applicable and empirically successful approach for finding low-rank matrices that best fit the given data. For example, for the problem of low-rank matrix completion, this method is believed to be one of the most accurate and efficient, and formed a major component of the winning entry in the Netflix problem. In the alternating minimization approach, the low-rank target matrix is written in a bilinear form:

X = U V ;

the algorithm then alternates between finding the best U and the best V . While the overall problem is non-convex, each sub-problem is typically convex and can be solved efficiently. Jain, Netrapalli and Sanghavi have given one of the first guarantees for performance of alternating minimization for both matrix completion and matrix sensing.

The alternating minimization algorithm can be viewed as an approximate way to solve the following non-convex problem:

min U , V R n × k P Ω ( U V ) P Ω ( M ) F 2

The AltMinComplete Algorithm proposed by Jain, Netrapalli and Sanghavi is listed here:

  1. Input: observed set Ω , values P Ω ( M )
  2. Partition Ω into 2 T + 1 subsets Ω 0 , , Ω 2 T with each element of Ω belonging to one of the Ω t with equal probability (sampling with replacement)
  3. U ^ 0 = S V D ( 1 p P Ω 0 ( M ) , k ) i.e., top- k left singular vectors of 1 p P Ω 0 ( M )
  4. Clipping: Set all elements of U ^ 0 that have magnitude greater than 2 μ k n to zero and orthonormalize the columns of U ^ 0
  5. for t = 0 , , T 1 do
  6. V ^ t + 1 argmin V R n × k P Ω t + 1 ( U ^ V M ) F 2
  7. U ^ t + 1 argmin U R m × k P Ω T + t + 1 ( U ( V ^ t + 1 ) M ) F 2
  8. end for
  9. Return X = U ^ T ( V ^ T )

They showed that by observing | Ω | = O ( ( σ 1 σ k ) 6 k 7 log n log ( k M F / ϵ ) ) random entries of an incoherent matrix M , AltMinComplete algorithm can recover M in O ( log ( 1 / ϵ ) ) steps. In terms of sample complexity ( | Ω | ), theoretically, Alternating Minimization may require a bigger Ω than Convex Relaxation. However empirically it seems not the case which implies that the sample complexity bounds can be further tightened. In terms of time complexity, they showed that AltMinComplete needs time

O ( | Ω | k 2 log ( 1 / ϵ ) ) .

It is worth noting that, although convex relaxation based methods have rigorous analysis, alternating minimization based algorithms are more successful in practice.

Applications

Several applications of matrix completion are summarized by Candès and Plan as follows:

Collaborative filtering

Collaborative filtering is the task of making automatic predictions about the interests of a user by collecting taste information from many users. Companies like Apple, Amazon, Barnes and Noble, and Netflix are trying to predict their user preferences from partial knowledge. In these kind of matrix completion problem, the unknown full matrix is often considered low rank because only a few factors typically contribute to an individual's tastes or preference.

System identification

In control, one would like to fit a discrete-time linear time-invariant state-space model

x ( t + 1 ) = A x ( t ) + B u ( t ) y ( t ) = C x ( t ) + D u ( t )

to a sequence of inputs u ( t ) R m and outputs y ( t ) R p , t = 0 , , N . The vector x ( t ) R n is the state of the system at time t and n is the order of the system model. From the input/output pair, one would like to recover the matrices A , B , C , D and the initial state x ( 0 ) . This problem can also be view as a low-rank matrix completion problem.

Global positioning

The global positioning problem emerges naturally in sensor networks. The problem is to recover the global positioning of points in Euclidean space from a local or partial set of pairwise distances. Thus it is a matrix completion problem with rank two if the sensors are located in a 2-D plane and three if they are in a 3-D space.

References

Matrix completion Wikipedia