# matrix Completion with Noise

## Introduction

In many modern problems, we may face a situation where a only few entries of a data matrix are observed, but our task is highly dependent on the accurate recovery of the original matrix. We are curious to find out if this accurate recovery is possible and, if so, the accuracy at which it can be performed.

In the current paper <ref name="self"> E. J. Candès and Y. Plan. Matrix completion with noise. Proceedings of the IEEE,2009. </ref>, Candes and Plan discuss these questions. They review the novel literature about recovery of a low-rank matrix with an almost minimal set of entries by solving a simple nuclear-norm minimization problem.

They also present results indicating that matrix completion and the original unknown matrix recovery are provably accurate even when small amount of noise is present and corrupts the few observed entries. The error of the recovery task is proportional to the noise level when the number of noisy samples is about $nr\log^{2}{n}$, in which $n$ and $r$ are the matrix dimension and rank, respectively.

## Notation

In this section, the notation used for the whole paper is introduced. Three norms of a matrix $X \in \mathbb{R}^{n_1\times n_2}$ with singular values $\,\{ \sigma_k \}$ are used frequently - spectral, Frobenius, and nuclear; they are denoted by $\parallel X \parallel$, $\parallel X \parallel_F$, and $\parallel X \parallel_* := \Sigma_k \sigma_k$, respectively. It is interesting to note that $\parallel X \parallel = \|\mathbf{\sigma}\|_{\infty}$, $\parallel X \parallel_F = \|\mathbf{\sigma}\|_{2}$, and $\parallel X \parallel_* = \|\mathbf{\sigma}\|_{1}$ where $\,\mathbf{\sigma}$ is the vector of singular values.

Also, the operators for linear transformation on $\mathbb{R}^{n_1 \times n_2}$ are denoted by calligraphic letters, for instance, the identity operator on this space is shown by $\mathcal{I}: \mathbb{R}^{n_1 \times n_2} \to \mathbb{R}^{n_1 \times n_2}$

## Exact Matrix Completion

Given a subset of the complete set of Matrix $M$ entries $(M \in \mathbb{R}^{n_1 \times n_2})$, we intend to recover this matrix as accurately as possible. The available information about $M$ is shown by $\mathcal{P}_\Omega(M)$.

$[\mathcal{P}_\Omega(X)]_{ij} = \left\{ \begin{array}{lr} X_{ij} & : (i,j) \in \Omega\\ 0 & : \text{ otherwise} \end{array} \right.$

The problem discussed in this paper is whether the matrix can be recovered based on the given information.

It is worth noting that the cases in which a whole row or column is missing should be avoided. So, the entries are assumed to be sampled at random without replacements. Also, if the singular vectors of the given matrix are too sparse, there is no hope to recover the original matrix accurately.

The authors impose some simple conditions to avoid these cases, and guarantee that the singular vectors of the matrix are sufficiently dense. Assume the SVD of matrix $M =\sum_{k =1}^r \sigma_k u_k v^{*}_{k}$, where the $\,\sigma_{i}$ are singular values, and $\,u_{i} \in \mathbb{R}^{n_1}$ and $v_{i} \in \mathbb{R}^{n_2}$ are singular vectors. They assume that $\parallel u_k \parallel_{l_{\infty}} \leq \sqrt{\mu_B / n_1}$ and $\parallel v_k \parallel_{l_{\infty}} \leq \sqrt{\mu_B / n_2}$, where $\mu \geq 1$ and is small. To see that this assumption guarantees dense vectors, consider the case where $\,\mu_B = 1$ and $\parallel u_k \parallel_{l_{\infty}} = \sqrt{\mu_B / n_1}= \sqrt{1 / n_1}$. In this case, because $\|u_k\|_{l_2}^2 = \sum_{j=1}^{n_1}u_{kj}^2$ must equal 1, if the largest entry of $\,u_k$ is equal to $\,\sqrt{1 / n_1}$ then the largest term in the summation is $\,1/n_1$. This implies that each entry of $\,u_k$ must equal $\,1/n_1$ in order for the $\,l_2$ norm of $\,u_k$ to sum to 1 and every entry of the singular vector $\,u_k$ is non-zero. With sufficiently spread singular vectors, we hope to find a unique low-rank matrix satisfying the data constraints.

The recovery is performed by solving the following optimization problem.

$\textrm{minimize}\; \textrm{rank(X)} \;$

$\textrm{s.t.} \; \mathcal{P}_\Omega(X)= \mathcal{P}_\Omega(M)$

Nuclear norm minimization is the tightest convex relaxation for the rank minimization problem (above) which is NP-hard.

$\textrm{minimize}\; \parallel X \parallel_* \;$

$\textrm{s.t.} \; \mathcal{P}_\Omega(X)= \mathcal{P}_\Omega(M)$

Noting the fact that the spectral norm is dual to the nuclear norm, and comparing the LP characterization of the $l_1$ norm and then SDP characterization of the nuclear norm, the authors conclude that the above optimization problem is an SDP. It is shown by Candes and Tao <ref name="ref12">E. J. Candès and T. Tao. The power of convex relaxation: Near-optimal matrix completion. IEEE Trans. Inform. Theory, 56(5), 2053-2080. </ref> that this minimization problem can perform the recovery if it is possible by any other method.

The authors mention a theorem (from <ref name="ref12"> </ref>): If the matrix $\,M$ is of rank $\,r=O(1)$ and $\,m$ entries are observed, there is a positive constant $\,C$ such that if $\,m \geq C \mu^{4}_{B} n \log^{2}n$, then $\,M$ is the unique solution of the optimization problem mentioned above with a high probability. As a side remark, one can obtain a probability of success at least $\,1-n^{-\beta}$ for $\,\beta$ by taking $\,C$ in the previous inequality of the form $\,C'\beta$ for some universal constant $\,C'$.

In order to obtain similar results for other values of rank, instead of the conditions mentioned before (for guaranteeing the singular vectors are spread across all coordinates), Candes and Tao <ref name="ref12"> </ref> present the strong incoherence property (see also <ref name="ref8"> E. J. Candès and B. Recht. Exact matrix completion via convex optimization. Found. of Comput. Math., 9 717-772. </ref>). It is shown that an incoherent matrix can be recovered from a minimal set of entries, while having a small strong incoherence parameter $\,\mu$.

Consequently, Theorem 2 by Candes and Tao states that under the same conditions as in Theorem 1, there is a constant $\,C$ such that if $m \geq C\mu^{2}nr\log^{6}n$, then with high probability $\,M$ is the unique solution to the norm minimization problem mentioned above.

## Stable Matrix Completion

In real world problems, the existence of noise often corrupts the data, so that the above model is unsuitable. This part of the paper investigates if reasonably accurate matrix completion is possible in the presence of noisy entries. The novelty of the paper comes from the results shown in this section. The noisy model can be expressed as:

$\mathcal{P}_{\Omega}(Y) = \mathcal{P}_{\Omega}(M) + \mathcal{P}_{\Omega}(Z),$

where $\,Z_{(n \times n)}$ is a noise term with $\{ Z_{ij}:(i,j) \in \Omega \}$. We assume that $\parallel \mathcal{P}_{\Omega}(Z) \parallel_{F} \leq \delta$ for some $\,\delta \gt 0$. To recover the unknown matrix, this optimization problem should be solved:

$\textrm{minimize}\; \parallel (X) \parallel_* \;$

$\textrm{s.t.} \; \|\mathcal{P}_\Omega(X-Y) \|_F\leq \delta$

and could be rewritten as:

$\textrm{minimize}\; \parallel (X) \parallel_* \;$

$\textrm{s.t.} \; \mathcal{P}_\Omega(X)= \mathcal{P}_\Omega(M)$

This is a SDP problem, and assuming $\,\hat{M}$ is the solution, the authors show that the reconstruction is accurate.

Definition (Dual certificate): $\,\Lambda$ is a dual certificate if we have

• $\Lambda=\mathcal{P}_\Omega(\Lambda)$ (i.e. $\,\Lambda$ is supported on $\,\Omega),$
• $\mathcal{P}_T(\Lambda)=E,$
• $\parallel \mathcal{P}_{T^\perp}(\Lambda) \parallel \leq 1.$

Theorem 7: Under the assumptions of either Theorems 1 or 2, suppose a dual certificate exists which obeys $\parallel \mathcal{P}_{T^{\perp}}(\Lambda) \parallel \leq 1/2$ and also $\mathcal{P}_T \mathcal{P}_{\Omega} \mathcal{P}_T \succeq \frac{p}2 \mathcal{I}$. Then $\hat{M}$ obeys:

$\parallel M-\hat{M}\parallel_F \leq 4 \sqrt{ \frac{C_p \min(n_1,n_2)} {p} \delta } + 2\delta$

where $\,C_p = 2+p$, $\,p$ is the fraction of the observed entries and $\,T$ is the linear space spanned by the elements of $\,u_kx^*$ and $yv_k^*$ (recall the SVD of matrix $\,M$), where $k \in [r]$. Also, $T^{\perp}$ is the orthogonal complement to $\,T$, and $\,E$ is a "sign matrix".

The theorem roughly states that when perfect noiseless recovery is performed, then the matrix completion is stable in presence of perturbations. The error is proportional to $\,\delta$ (noise level).

### Comparison with an Oracle

A question the remains to be answered is what is the best obtainable recovery accuracy. Assume that $\,n_1=n_2=n$, and there is an oracle informing about $\,T$. One can conclude that $\,M$ is in a linear space of dimension $\,2nr-r^2$, and the optimization problem can be solved by means of the least squares method which results in finding the matrix in $\,T$.

$\textrm{minimize}\; \parallel \mathcal{P}_\Omega(X)-\mathcal{P}_\Omega(Y) \parallel_F \;$

$\textrm{s.t.} \; X \in T$

If $\mathcal{A}: T \to \Omega$, and $\mathcal{A}:= \mathcal{P}_\Omega \mathcal{P}_T$ where $\,\Omega$ is the range of $\mathcal{P}_\Omega$. Also, assume that $\mathcal{A}^* \mathcal{A} = \mathcal{P}_T \mathcal{P}_\Omega \mathcal{P}_T$ is an invertible operator. By solving the least-squares problem, we have:

$\parallel M^{Oracle}-M \parallel_F = \parallel(\mathcal{A}^*\mathcal{A})^{-1} \mathcal{A}^* (Z)\parallel_F$

Assume that the minimum eigenvalue of $\mathcal{A}^*\mathcal{A}$ is $\, \lambda_{min}$, and $Z= \delta \lambda^{-1/2}_{min} \mathcal{A}(Z^')$, where $\,Z^'$ is the minimal eigenvector of $\mathcal{A}^*\mathcal{A}$. Also, assume $p/2\leq$ (all of the eigenvalues of $\mathcal{A}^*\mathcal{A})\leq 3p/2$, and $\parallel Z \parallel_F = \delta$, then:

$\parallel (\mathcal{A}^* \mathcal{A})^{-1} \mathcal{A}^* (Z) \parallel_F = \lambda^{-1/2}_{min}\delta \gtrsim p^{-1/2} \delta$

and

$\parallel M^{Oracle}-M \parallel_F \approx p^{-1/2}\delta$

Then authors show that the above analysis also applies in the case of a stronger oracle which informs about the row space (and the rank) of the unknown matrix, and thus the achieved error is about $],p^{-1/2}\delta$. Thus, it can be concluded that when the only known fact is $\parallel \mathcal{P}_\Omega(Z)\parallel_F \leq \delta$, a root-mean squared error better than $\,p^{-1/2}\delta$ can not be achieved.

## Experiments

A series of experiments have been conducted in order to indicate the stability of matrix completion in the presence of noise. The scenario is as follows: The unknown $n \times n$ rank-$\,r$ matrix is $\,M$ ($M=M_LM^*_R$). The matrices $\,M_L$ and $\,M_R$ are in $\mathbb{R}^{n \times r}$ and the entries are iid $N(0, \sigma^2_n := 20 / \sqrt{n})$.

The sampled set is $\,\Omega$ which includes $\,m$ entries picked uniformly at random. So, the fraction of the observed entries is $\,p=m/n^2$. The noise $\,(\{Z_{ij}\})$ is iid $\,N(0,\sigma^2)$ where $\,\sigma = 1$. Experiments have been performed for several values of $\,n$, $\,r$ and $\,p$.

In particular, we can look at the average over 20 repetitions on a rank-2, $n\times n$ matrix in which 20% of the values are known. The table below<ref name="self"></ref> indicates the measured root-mean square error per entry of the matrix.

n 100 200 500 1000
RMSE 0.99 0.61 0.34 0.24

To understand the significance of this, suppose we were given a 1000 x 1000 matrix $\,Y = M+Z$, which was the true matrix with some noise. If we simply accepted $\,Y$ without question as our true matrix and our noise had variance 1 then the expected RMSE would be 1. If, instead, we used only 20% of the matrix the RMSE is $\,0.24^2 = 0.0576$<ref name="self"></ref>. This reduction in error is due to the algorithm removing noise from known entries in addition to attempting to find unknown ones.

### Real-World Example: Daily Weather

The paper takes a matrix that looks at daily temperatures from 1472 worldwide locations over the year (366 days, as 2008 was a leap year) giving a 366 x 1472 matrix<ref name="self"></ref>. It was verified through SVD that, as expected, the matrix is low rank. They sampled 30% of the matrix and tried to recover it giving a relative error of 0.166 (versus an error of 0.121 for the best rank-2 approximation with exact knowledge).