Algorithm Search⌘K

Problemadvanced

Low-rank matrix completion

Also called matrix completion.

Recover a low-rank matrix from a small random subset of its entries, the model problem behind rating prediction.

Low-rank matrix completion asks for the missing entries of a matrix when only some entries are known and the whole matrix is known, or assumed, to have low rank. A table of ratings with one row per user and one column per item is the standard example: most entries are missing, and the hope is that a few hidden factors explain the ratings, so that the table is close to low rank. Without a rank bound the problem has no answer, since any values fit the missing entries. With a rank bound and an arbitrary pattern of known entries it is NP-hard. With random known entries and a spread-out matrix, the exact matrix completion theorem says that a convex program recovers the matrix exactly from about r(n1+n2)log⁡2n2r (n_1 + n_2) \log^2 n_2 entries.

In plain words

You have a big table with most cells empty. You believe the table is simple: every row is a mix of a few basic rows. Fill in the empty cells so that the table stays that simple. If the cells you see are scattered at random, and the table does not hide its content in a few rows or columns, a small fraction of the cells is enough to fill in the rest exactly. For real rating data the table is only close to simple and the cells you see are not random, so the filled-in values are estimates, and how good they are is measured, not proved.

Definition

Input. Dimensions n1≤n2n_1 \le n_2, a set Ω⊆{1,…,n1}×{1,…,n2}\Omega \subseteq \{1, \dots, n_1\} \times \{1, \dots, n_2\} of mm observed positions, and the values MijM_{ij} for (i,j)∈Ω(i, j) \in \Omega of an unknown matrix MM.

Exact version. Given a rank bound rr, find a matrix XX of rank at most rr with Xij=MijX_{ij} = M_{ij} for all (i,j)∈Ω(i, j) \in \Omega, or the matrix of least rank with that property:

minimize rank⁡(X)subject to Xij=Mij, (i,j)∈Ω.\text{minimize } \operatorname{rank}(X) \quad \text{subject to } X_{ij} = M_{ij}, \ (i, j) \in \Omega .

The recovery question is whether the answer is unique and equal to MM.

Noisy version. The observed values are Mij+εijM_{ij} + \varepsilon_{ij}. Find XX of rank at most rr that minimizes ∑(i,j)∈Ω(Xij−Mij−εij)2\sum_{(i,j) \in \Omega} (X_{ij} - M_{ij} - \varepsilon_{ij})^2, or a penalized form of it.

Sampling model. Most results assume that Ω\Omega is a uniformly random set of mm positions, or that each position is observed independently with probability p=m/(n1n2)p = m / (n_1 n_2) (the Bernoulli model). Candès and Tao (2010, Section 1) note that results for one model carry over to the other with minor changes.

Incoherence. Write M=UΣV∗M = U \Sigma V^* for its singular value decomposition. The coherence of the column space is μ(U)=(n1/r)max⁡i∥PUei∥2\mu(U) = (n_1 / r) \max_i \lVert P_U e_i \rVert^2, between 1 and n1/rn_1 / r, and the same for the row space (Recht 2011, Definition 1). Recovery from random entries needs low coherence, because a matrix such as e1e1∗e_1 e_1^* is zero almost everywhere and cannot be found unless its one nonzero entry is observed.

Variants

  • Noisy completion. The observations have noise, and the aim is a small error rather than exact recovery.
  • Weighted low-rank approximation. Each entry has a weight and the aim is a rank-rr matrix that minimizes the weighted squared error. Missing entries are entries of weight 0. This is the problem that Gillis and Glineur (2011) show NP-hard.
  • Completion from general linear measurements. The known values are ⟨Ak,M⟩\langle A_k, M \rangle for given matrices AkA_k, not single entries. Entries are the case Ak=eiej∗A_k = e_i e_j^*. Gross (2011) treats measurements in any orthonormal basis of matrices.
  • One-class completion. Only positive entries are observed, as with clicks and purchases, and the missing entries are a mix of unknown and negative. See implicit feedback.
  • Completion with side information. Features of the rows and columns are also known; factorization machines are one model for this.

Examples

A 2×22 \times 2 matrix of rank 1 with entries M11=2M_{11} = 2, M12=4M_{12} = 4, M21=3M_{21} = 3 known and M22M_{22} missing. Rank 1 means the rows are proportional. The first row is (2,4)(2, 4), so the second row is (3,6)(3, 6) and M22=6M_{22} = 6. Here three entries fix the fourth, and the rank bound is what makes the answer unique.

Remove instead M12M_{12} and M22M_{22}, so that the whole second column is missing. Then (2,t)(2, t) and (3,1.5t)(3, 1.5 t) have rank 1 for every tt, and no method can recover the column. This is why random sampling needs about nlog⁡nn \log n entries at least: with fewer, some row or column is likely to have no observed entry at all (Candès and Tao 2010 call this a coupon collector effect).

Known algorithms

  • Nuclear norm minimization. Replace the rank by the nuclear norm ∥X∥∗=∑kσk(X)\lVert X \rVert_* = \sum_k \sigma_k(X), its convex relaxation (the best convex lower bound of the rank on matrices with all singular values at most 1, Recht 2011, Section 1), and solve the resulting semidefinite program (Recht 2011, Section 1). Under incoherence and uniform sampling this recovers MM exactly with high probability; see the exact matrix completion theorem. General interior-point methods are too slow for large matrices, so first-order methods such as singular value thresholding and soft-impute, which apply a shrinkage step to the singular values, are used instead.
  • Factored nonconvex methods. Write X=WH⊤X = W H^\top with WW of size n1×rn_1 \times r and HH of size n2×rn_2 \times r, and minimize the squared error on Ω\Omega plus a penalty, by alternating least squares or by stochastic gradient descent. This is matrix factorization for recommendation, and probabilistic matrix factorization gives it a Bayesian reading. The objective is not convex, so these methods may stop at a local minimum.
  • Spectral methods. Take the top rr singular vectors of the rescaled matrix of observed entries, with zeros elsewhere, and refine them. Keshavan, Montanari and Oh (2010) analyze an algorithm of this kind.

Bounds

  • Upper bound for nuclear norm minimization. Recht (2011, Theorem 2): under coherence bounds μ0\mu_0 and μ1\mu_1, m≥32max⁡{μ12,μ0}r(n1+n2)βlog⁡2(2n2)m \ge 32 \max\{\mu_1^2, \mu_0\} r (n_1 + n_2) \beta \log^2(2 n_2) uniformly random entries suffice for exact recovery with probability at least 1−6log⁡(n2)(n1+n2)2−2β−n22−2β1/21 - 6 \log(n_2) (n_1 + n_2)^{2 - 2\beta} - n_2^{2 - 2\beta^{1/2}}. Earlier bounds were of order n5/4rlog⁡nn^{5/4} r \log n, or n6/5rlog⁡nn^{6/5} r \log n when r≤n1/5r \le n^{1/5}, for most matrices (Candès and Recht 2009) and μ2nrlog⁡6n\mu^2 n r \log^6 n under a stronger incoherence condition (Candès and Tao 2010, Theorem 1.2).
  • Lower bound for any method. Candès and Tao (2010, Theorem 1.7 and Equation 1.21): in the Bernoulli model, recovering every rank-rr matrix of coherence μ0\mu_0 with probability at least 1−δ1 - \delta needs about μ0nrlog⁡(n/(2δ))\mu_0 n r \log(n / (2\delta)) entries. So when the coherences are bounded by constants, the upper bound is tight up to a constant and one factor of log⁡n\log n.
  • Counting. A rank-rr matrix of size n×nn \times n has r(2n−r)r (2n - r) degrees of freedom, so fewer entries than that cannot determine it.
  • Hardness. With an arbitrary pattern of known entries, finding the lowest rank completion is NP-hard (Recht 2011, Section 1), and low-rank approximation with missing data is NP-hard already for rank one (Gillis and Glineur 2011). The positive results above depend on the random sampling.

Reductions

  • Rank minimization to a semidefinite program. The nuclear norm bound ∥X∥∗≤t\lVert X \rVert_* \le t holds exactly when there are symmetric AA and BB with tr⁡A+tr⁡B≤2t\operatorname{tr} A + \operatorname{tr} B \le 2t and (AXX⊤B)⪰0\begin{pmatrix} A & X \\ X^\top & B \end{pmatrix} \succeq 0. So nuclear norm minimization under linear constraints is a semidefinite program.
  • From compressed sensing. A diagonal matrix has rank equal to its number of nonzero diagonal entries and nuclear norm equal to the ℓ1\ell_1 norm of its diagonal. So rank minimization contains sparse recovery, and nuclear norm minimization contains basis pursuit. The analogy guides the theory of compressed sensing for matrices, but entry sampling does not have the restricted isometry property, and incoherence takes its place.

Applications

  • Rating prediction. The rating matrix of a recommender is treated as a noisy, partly observed low-rank matrix, and its completion gives predicted ratings. This is the reading behind collaborative filtering by matrix factorization. Rating data are not missing at random, since users choose what to rate, so the recovery theorems describe an ideal case; the quality of predicted ratings is measured on held-out data, never proved.
  • Other areas. Candès and Tao (2010, Section 1.1) list structure from motion in computer vision, system identification in control, multi-class learning, sensor positions from partial distances, and covariance estimation from partial correlations. Recht (2011, Section 1) adds dimensionality reduction and embedding problems, and his proof comes from quantum state tomography (Gross et al. 2010).

References

  1. Emmanuel J. Candès and Benjamin Recht, Exact matrix completion via convex optimization, Foundations of Computational Mathematics 9(6), 717-772, 2009, Abstract and Section 1 (the problem, the nuclear norm program, the assumptions A0 and A1, and the first bounds, of order n^(5/4) r log n for most matrices and n^(6/5) r log n when r <= n^(1/5))
  2. Benjamin Recht, A simpler approach to matrix completion, Journal of Machine Learning Research 12, 3413-3430, 2011, Section 1 (the problem, lowest rank completion is NP-hard, the nuclear norm as a semidefinite program) and Theorem 2 (the bound of order r (n1 + n2) log^2 n2)
  3. Emmanuel J. Candès and Terence Tao, The power of convex relaxation, near-optimal matrix completion, IEEE Transactions on Information Theory 56(5), 2053-2080, 2010, Section 1.1 (applications), Theorem 1.7 and Equation 1.21 (the lower bound of order mu0 n r log n for any method, in the Bernoulli model)
  4. Nicolas Gillis and François Glineur, Low-rank matrix approximation with weights or missing data is NP-hard, SIAM Journal on Matrix Analysis and Applications 32(4), 1149-1165, 2011, Abstract and main result (the approximation problem with missing data is NP-hard, already for rank one)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a known algorithm
  • a contract.yaml