Iterative Collaborative Filtering for Sparse Matrix Estimation

Christian Borgs, Jennifer Chayes, Devavrat Shah, Christina Lee Yu

Introduction

As a prototype for such a problem, consider a noisy observation of a social network where observed interactions are signals of true underlying connections. We might want to predict the probability that two users would choose to connect if recommended by the platform, e.g. LinkedIn. As a second example, consider a recommendation system where we observe movie ratings provided by users, and we may want to predict the probability distribution over ratings for specific movie-user pairs. A popular collaborative filtering approach suggests using “similarities” between pairs of users to estimate the probability that a connection is formed or the probability a user likes a particular movie. Traditionally, the similarities between pair of users in a social network is computed by comparing the set of their friends, or in the context of movie recommendation, by comparing commonly rated movies. In the sparse setting, most pairs of users have no common friends, or most pairs of users have no commonly rated movies; thus there is insufficient data to compute the traditional similarity metrics.

In this work, the primary interest is to provide a principled way to extend the simple, intuitive approach of computing similarities between pair of users or items in order to perform sparse matrix estimation via nearest neighbor collaborative filtering. We propose to do so by incorporating information within a larger radius neighborhood of the data graph rather than restricting only to immediate neighbors. This variation of collaborative filtering and its analysis in this work can be viewed as a natural extension of the work by in the context of stochastic block model and for traditional collaborative filtering.

The primary contribution of this work is an analysis of an iterative collaborative filtering algorithm in the sparse regime. We consider the setting of a latent variable model where the matrix F=[F(u,v)]F=[F(u,v)] can be described by a latent function ff evaluated over latent variables associated to the coordinates. In particular, we assume that F(u,v)=f(θu,θv)F(u,v)=f(\theta_{u},\theta_{v}) where ff is a piece-wise Lipschitz function, and θu,θv∈\theta_{u},\theta_{v}\in are coordinate latent variables sampled uniformly at random. Details of the model are described in Section 2.

Algorithmically and methodologically, our work builds on , which estimates clusters of the stochastic block model by computing distances from local neighborhoods around vertices. We improve upon their algorithm and analysis to provide bounds on the maximum entrywise estimation error for the general latent variable model with finite spectrum. This includes a larger class of generative models such as mixed membership stochastic block models, in contrast to their work which focuses on the stochastic block model with non-overlapping communities. We note that the algorithm considered in this work, uses the knowledge of which entries are observed and which are not, in line with the literature on matrix estimation. In the setting of clustering cf. , such a knowledge is absent from the purview of the algorithm.

Withthe exception of a few recent results, by and large the literature on matrix estimation has focused on providing estimation error bounds with respect to the normalized Frobenius norm. In contrast, we provide bounds on the max entry-wise estimation error which is a lot more challenging. Our bounds are restricted to the latent variable model, while the traditional matrix estimation literature considers the underlying matrix to be an arbitrary instance from the family of (approximately) low-rank matrices with ‘incoherence’-like conditions. Indeed, understanding the relationship between these two seemingly different model classes remains an important direction for future work.

A weaker version of this result was published in the NeurIPS conference as . In contrast, this paper provides sharper bounds for both the MSE and max-norm error that improves the exponent in the convergence rates. We have also included a perturbation analysis of the algorithm that shows under “adversarial” bounded noise, the error scales gracefully with the bound on the noise. This enables analysis of our work for the approximately low-rank setting. We have also included a modified algorithm that achieves the same rates with a reduced computational complexity, and we have shown extensions of our results to relaxed modeling assumptions on the latent variable model. We have added empirical evaluation of our method compared with state-of-art methods.

2 Related Work

The related work includes that of matrix estimation or completion, collaborative filtering, and graphon estimation arising from the asymptotic theory of graphs. We provide a brief overview of prior works for each of these topics.

In the context of matrix estimation or completion, there has been much progress under the low-rank assumption and additive noise model. Most theoretically founded methods are based on spectral decompositions or minimizing a loss function with respect to spectral constraints, c.f. . In a nutshell, this collection of works establishes that if the underlying matrix has rank rr, then it can be estimated so that the estimator has normalized Mean Squared Error (MSE) going to as n→∞n\to\infty as long as p=Ω(rn−1log⁡n)p=\Omega(rn^{-1}\log n). Furthermore, showed that ω(rn−1)\omega(rn^{-1}) samples are necessarily required for such a guarantee. These near optimal sample complexity results hold when the noise in each entry of the matrix is independent and identically distributed. For the setting of generic noise and the general latent variable model where the latent function is analytic, provide an estimator for which the MSE decays to as n→∞n\to\infty as long as p=Ω(n−1poly(log⁡n))p=\Omega(n^{-1}{\sf poly}(\log n)).

The guarantee with respect to MSE does not necessarily guarantee recovery of all entries accurately. Indeed, bounding max entrywise error provides such a guarantee as established by our result. In parallel with our work, there has been recent progress on developing matrix estimation methods that provide max entrywise bounds for matrices with rank rr. In particular, for sufficiently ‘nice’ rank rr matrices, establish that a simple spectral algorithm can recover the matrix with max entrywise error decaying to as long as p=Ω(log⁡n/n)p=\Omega(\log n/n). Indeed, improving such max entrywise guarantee has been actively pursued over the past few years witnessed in the growing body of works, cf. , , , and .

The collaborative filtering method has been successfully employed across industry applications (Netflix, Amazon, Youtube) due to its simplicity and scalability, c.f. ; however the theoretical results have been relatively sparse. We call special attention to the recent works by which provide a non-parametric statistical perspective for the traditional collaborative filtering method. In particular, they suggest that the practical success of these methods across a variety of applications may be due to its ability to capture local structure like the classical nearest neighbor or kernel regression method. They establish that as long as the latent function ff is Lipschitz, the MSE of the resulting estimator decays to as n→∞n\to\infty as long as p=ω(n−12)p=\omega(n^{-\frac{1}{2}}). A key limitation of this approach is that it requires a dense dataset with sufficient entries in order to compute similarity metrics, requiring that each pair of rows or columns has a growing number of overlapped observed entries, which does not hold when p=o(n−1/2)p=o(n^{-1/2}).

Graphons emerged as the limiting object of a sequence of large dense graphs, c.f. , with recent work extending the theory to sparse graphs, c.f. . In the graphon estimation problem, one observes a single instance of a random graph sampled from an underlying latent variable model, and the goal is to estimate the function that governs the edge probabilities of the graph. provide minimax optimal rates for graphon estimation; however a majority of the proposed estimators are not computable in polynomial time, since they require optimizing over an exponentially large space (e.g. least squares or maximum likelihood), c.f. . provides a polynomial time method based on degree sorting in the special case when the expected degree function is monotonic. analyzes universal singular value thresholding (USVT) for graphon estimation in settings that the spectrum decays quickly, showing convergence rates which matches the minimax optimal rate for low dimensional smooth functions.

Stochastic block model (SBM) parameter estimation is an instance of graphon estimation, where the underlying function has a specific structure. Under the SBM, each vertex is associated to one of rr community types, and the probability of an edge is a function of the community types of both endpoints. This implies that the edge probability function is block constant. Estimating the n×nn\times n parameter matrix becomes an instance of matrix estimation with a technical distinction – all entries are fully observed, i.e. each edge is present (1) or absent (0). In SBM, the expected matrix is at most rank rr due to its block structure. Precise thresholds for cluster detection (better than random) and estimation have been established by . As mentioned before, our work, both algorithmically and methodically is closely related to their work. The mixed membership stochastic block model (MMSBM) allows each vertex to be associated to a length rr vector, which represents its weighted membership in each of the rr communities. The probability of an edge is a function of the weighted community memberships vectors of both endpoints, resulting in an expected matrix with rank at most rr. Recent work by provides an algorithm for weak detection for MMSBM with sample complexity r2nr^{2}n, when the community membership vectors are sparse and evenly weighted. They provide partial results to support a conjecture that r2nr^{2}n is a computational lower bound, separated by a gap of rr from the information theoretic lower bound of rnrn. This gap was first shown in the simpler context of the stochastic block model . proposed a spectral clustering method for inferring the edge label distribution for a network sampled from a generalized stochastic block model. When the expected function has a finite spectrum decomposition, i.e. low rank, then they provide a consistent estimator for the sparse data regime, with Ω(nlog⁡n)\Omega(n\log n) samples.

In the above discussion, we have focused primarily on the sample complexity required for consistent estimation, i.e. the scaling of the number of samples required (pnpn) such that the normalized estimation error such as the MSE or max-norm goes to . When consistent estimation is feasible, we can further consider the rate of decay of the error guarantees. To that end, we provide a brief overview of the minimax scaling with respect to boudns on the MSE. identifies a minimax lower bound on the scaling of the MSE for a generic matrix estimation task characterized by the nuclear norm of the target matrix. In particular, for symmetric matrices with nuclear norm bounded by δ\delta, the minimax MSE scaling is lower bounded by \min\big{(}\frac{\delta}{\sqrt{n^{3}p}},\frac{\delta^{2}}{n^{2}},1\big{)}; furthermore argues that the universal singular value thresholding achieves this scaling. This bound holds even in the scenario where observed entries are noiseless. This characterization however is loose for the setting of low-rank matrices. Observe that for rank rr symmetric matrices with entries bounded in $,thenuclearnormcanscaleas, the nuclear norm can scale asn\sqrt{r};resultinginaboundof; resulting in a bound of\sqrt{\frac{r}{np}}(forsmallenough(for small enoughp).Forthesettingofrank) . For the setting of rankrmatriceswithnoiselessobservations,provideanestimatorwithMSEscalingasmatrices with noiseless observations, provide an estimator with MSE scaling as\frac{r}{np}forforp=\Omega(1/n).Thispointstothefactthattheclassofmatriceswithboundednuclearnormismorecomplexthantheclassofrank. This points to the fact that the class of matrices with bounded nuclear norm is more complex than the class of rankrmatriceswithboundedentries.Inthesettingoflowrankgraphonestimation(i.e.binaryobservations),showaminimaxlowerboundontheMSEscalingasmatrices with bounded entries. In the setting of low rank graphon estimation (i.e. binary observations), show a minimax lower bound on the MSE scaling as\frac{\log r}{pn}forsmallenoughfor small enoughp=\Omega(\log r/n)$; however the existence of a computationally efficient estimator that achieves this lower bound under the more general noise setting of graphon estimation is still an open research direction.

Setup

Assume that each u∈[n]u\in[n] is associated to a latent feature variable θu∼U\theta_{u}\sim U, which is drawn independently across indices [n][n] uniformly on the unit interval. We assume that the expected data matrix can be described by the latent function ff, i.e. F(u,v)=f(θu,θv)F(u,v)=f(\theta_{u},\theta_{v}), where f:2→f:^{2}\to is a symmetric bounded function. The symmetry assumption can be easily relaxed but is assumed for ease of notation in the analysis. The latent function ff is assumed to be fixed and independent of the dimension nn. We additionally impose local neighborhood properties that are primarily used in the nearest neighbor portion of the analysis. We will assume that ff is Lipschitz, but this assumption can be relaxed as discussed in Section 2.2.

Low Rank.

We assume that the latent function ff has finite spectrum with rank rr when regarded as an integral operator, i.e. for any θu,θv∈\theta_{u},\theta_{v}\in,

The finite spectrum assumption also implies that the model can be represented by latent variables in the rr dimensional Euclidean space, where the latent variable for node ii would be the vector (q1(θi),…qr(θi))(q_{1}(\theta_{i}),\dots q_{r}(\theta_{i})), and the latent function would be bilinear, having the form

This condition also implies that the expected matrix FF is low rank, which includes scenarios such as the mixed membership stochastic block model and finite degree polynomials. The function ff is fixed with respect to nn, the rank rr is assumed to be finite in the low rank setting.

Approximately Low Rank.

More generally, we shall consider approximately low-rank ff cf. . Specifically, for a given ε>0\varepsilon>0, a symmetric function ff is said to have ε\varepsilon-approximate rank rr if

2 Discussion on Latent Variable Model

The latent variable model assumes a random generative model on the underlying matrix FF, as opposed to the typical deterministic incoherence style conditions found in the literature. The generative model assuming i.i.d. sampled latent variables and boundedness of the eigenfunctions of ff guarantee similar properties as incoherence with high probability, as any single row or column will not dominate the signal in a way that deviates too much from the typical values of ff. The i.i.d. sampling assumption on the latent variables is used in analyzing the local neighborhoods of the observation graph, however this assumption can likely be replaced by regularity assumptions over the empirical distribution of the latent factors for large nn, e.g. if the latent factors are close to a typical sample set from a well-behaved underlying distribution.

The Lipschitzness assumption of ff together with the assumption that θu∼U\theta_{u}\sim U, guarantees that for any given u∈[n]u\in[n] there are sufficiently many other coordinates v∈[n]v\in[n] such that the observed entries are similar across both rows or columns. These assumptions can be relaxed as long as the key property of “sufficiently many similarly behaving coordinates” is maintained. As examples, a piecewise Lipschitz function ff or a setting with finite latent types would also satisfy the needed local neighborhood properties. Similarly, the scalar assumption on the latent variables and the uniform distribution UU are not crucial and can be relaxed to i.i.d. sampled random latent vectors from a larger class of distributions. The critical conditions to maintain are the finite spectrum of ff, boundedness of eigenfunctions, and local neighborhood properties. The local measure needs to be concentrated enough relative to the rate of change in the function ff so that when nn points are sampled from the space, there are sufficently many “nearby neighbors” for whom the function behaves similarly for any given point we would want to estimate. This primarily affects the nearest neighbor portion of the algorithm and analysis. also provides a formal discussion and results for extending the nearest neighbor analysis to accommodate settings beyond scalar Lipschitz functions. Our model can also be extended to asymmetric matrix settings and categorical data. Section 6 discuss how our theorem extend to some of these model variations.

3 Goal

The goal is to produce F^\hat{F}, an estimate of FF, using observation matrix MM and knowledge of E\mathcal{E}. We measure the estimation error through the maximum entry-wise error and the mean squared error. The maximum entry-wise error or ∞\infty-norm of the error matrix F^−F\hat{F}-F is defined as

We will provide bounds on this that hold with high probability, that is, with probability converging to 11 as n→∞n\to\infty. The mean squared error (MSE) is defined as

In measuring error either with high probability or in expectation, the randomness is considered over the data generation process.

Algorithm

We propose and analyze a variation of the similarity based collaborative filtering algorithm. At its core, the collaborative filtering algorithm attempts to produce the estimate F^(u,v)\hat{F}(u,v) by averaging over observed entries F(u′,v′)F(u^{\prime},v^{\prime}) for a subset of tuples (u′,v′)(u^{\prime},v^{\prime}) such that u′u^{\prime} is “similar” to uu and v′v^{\prime} is “similar” to vv.

Noisy Nearest Neighbor Algorithm. We consider the following noisy nearest neighbor algorithm described below, followed by three different subroutines to compute distances depending on the sparsity regime of the dataset. (1) Compute distances d^(u,v)\hat{d}(u,v) between pairs of coordinates u,v∈[n]2u,v\in[n]^{2} using M′M^{\prime} and M′′M^{\prime\prime}. (2) For each u,v∈[n]2u,v\in[n]^{2}, produce an estimate

where Euv′′′={(a,b)∈E′′′ : d^(u,a)<η,d^(v,b)<η}\mathcal{E}^{\prime\prime\prime}_{uv}=\{(a,b)\in\mathcal{E}^{\prime\prime\prime}~{}:~{}\hat{d}(u,a)<\eta,\hat{d}(v,b)<\eta\} for some small enough η>0\eta>0.

We will choose the threshold η=η(n)\eta=\eta(n) depending on the local geometry of the latent feature space with respect to d^(u,v)\hat{d}(u,v), in order to guarantee that η(n)\eta(n) is small enough to drive the bias to zero, yet large enough to ensure ∣Euv′′′∣|\mathcal{E}^{\prime\prime\prime}_{uv}| diverges so that the variance due to observation noise is small. The key part of the algorithm is determining how to estimate the distances d^(u,v)\hat{d}(u,v). In what follows, we describe three variations depending upon the observation density, pp.

Dense Regime. When p=ω(n−12)p=\omega(n^{-\frac{1}{2}}), it is feasible to compute distances by simply looking at the overlapping entries; this is popularly done in practice as well as analyzed theoretically in the recent works . For any (u,a)∈[n]2(u,a)\in[n]^{2},

where Oua={y∈[n]:(u,y),(a,y)∈E′}\mathcal{O}_{ua}=\{y\in[n]:(u,y),(a,y)\in\mathcal{E}^{\prime}\}. This is a finite sample approximation of ∫01(f(θu,y)−f(θv,y))2 dy\int_{0}^{1}(f(\theta_{u},y)-f(\theta_{v},y))^{2}~{}dy. When p=ω(n−12)p=\omega(n^{-\frac{1}{2}}), it follows that ∣Oua∣=ω(1)|\mathcal{O}_{ua}|=\omega(1) for all u,a∈[n]2u,a\in[n]^{2} with high probability, so that d^(u,a)≈∫01(f(θu,y)−f(θv,y))2 dy\hat{d}(u,a)\approx\int_{0}^{1}(f(\theta_{u},y)-f(\theta_{v},y))^{2}~{}dy. subsequently prove that for any Lipschitz latent function ff the MSE decays to as n→∞n\to\infty as long as p=ω(n−12)p=\omega(n^{-\frac{1}{2}}). The arguments of can be adapted to show that the maximum entry-wise error decays to with high probability as well. However, for p=o(n−12)p=o(n^{-\frac{1}{2}}), for most u,a∈[n]2u,a\in[n]^{2}, Oua=∅\mathcal{O}_{ua}=\emptyset with high probability and hence a different approach is needed – overcoming the sparse regime is the primary interest of this work.

Sparse Regime. Consider the sparse regime where p=n−1+κp=n^{-1+\kappa} for any κ∈(0,12)\kappa\in(0,\frac{1}{2}); in this regime the overlap is small and thus new distance estimates are required. Recall that the function ff has finite spectrum, i.e. f(θu,θv)=∑kλk=1rqk(θu)qk(θv)f(\theta_{u},\theta_{v})=\sum_{k}\lambda_{k=1}^{r}q_{k}(\theta_{u})q_{k}(\theta_{v}). We propose an estimator which approximates d(u,v)=∥ΛtQ(eu−ev)∥22d(u,v)=\|\Lambda^{t}Q(e_{u}-e_{v})\|_{2}^{2} by comparing depth tt neighborhoods of uu and vv in the data graph G=([n],E′){\cal G}=([n],\mathcal{E}^{\prime}). Specifically, let the weight of an edge (a,b)∈E′(a,b)\in\mathcal{E}^{\prime} in graph G\mathcal{G} be the observed value M(a,b)M(a,b) (=M′(a,b)=M^{\prime}(a,b)). By assumption, in expectation this weight equals F(a,b)=f(θa,θb)F(a,b)=f(\theta_{a},\theta_{b}). Therefore, the product of weights along a path from uu to yy, of length tt, denoted as (u,x1,…,xt−1,y)(u,x_{1},\dots,x_{t-1},y) with (u,x1),(x1,x2),…,(xt−1,y)∈E′(u,x_{1}),(x_{1},x_{2}),\dots,(x_{t-1},y)\in\mathcal{E}^{\prime}, in expectation equals

Therefore, the product of weights along the path connecting uu to yy is a good proxy of quantity euTQTΛtQeye_{u}^{T}Q^{T}\Lambda^{t}Qe_{y}. Recall that each entry is observed independently with probability pp due to our assumed Bernoulli sampling model. Therefore, for any u∈[n]u\in[n], the number of neighbors of uu in G\mathcal{G} scale as pn=nκpn=n^{\kappa}. More generally, for 1≤t≤1/κ1\leq t\leq 1/\kappa, the number of nodes at distance tt from uu scale as nκtn^{\kappa t}. We choose tt large enough to guarantee that for any two nodes uu and vv, there is a sufficient overlap between the two subset of nodes at distance yy from nodes uu and vv respectively. This suggests that we choose tt so that nκt≈n12n^{\kappa t}\approx n^{\frac{1}{2}}, which in effect aggregates enough data in the sparse regime to match the expected number of observations per row in the dense regime. We formalize this intuition in the following construction of the distance estimates.

Let Su,s\mathcal{S}_{u,s} denote the set of vertices which are at distance ss from vertex uu in the graph defined by edge set E′\mathcal{E}^{\prime}. Specifically, i∈Su,si\in\mathcal{S}_{u,s} if the shortest path in G=([n],E′)\mathcal{G}=([n],\mathcal{E}^{\prime}) from uu to ii has a length of ss. Let Tu\mathcal{T}_{u} denote a breadth-first tree in G\mathcal{G} rooted at vertex uu. The breadth-first property ensures that the length of the path from uu to ii within Tu\mathcal{T}_{u} is equal to the length of the shortest path from uu to ii in G\mathcal{G}. Let Tut⊂Tu\mathcal{T}_{u}^{t}\subset\mathcal{T}_{u} denote the sub-tree containing all nodes and edges in Tu\mathcal{T}_{u} up to and including depth tt. If there is more than one valid breadth-first tree rooted at uu, choose one uniformly at random. Let Nu,t∈nN_{u,t}\in^{n} denote the following vector with support on the boundary of the depth-tt neighborhood of vertex uu (we also call Nu,tN_{u,t} the neighborhood boundary):

2 Reducing computation by subsampling vertices

The pairwise distances can only be estimated up to a limited precision depending on the sparsity of the data and amount of noise in the observations, and furthermore we tune the nearest neighbor threshold to tradeoff between bias and variance. As a result, the performance of the algorithm can be maintained with reduced computation by clustering the coordinates so that not all n2n^{2} pairwise distances need to be computed. This would involve adding an extra step at the beginning of the algorithm that samples sufficiently many “anchor” vertices K⊂[n]\mathcal{K}\subset[n] that cover the space well. ∣K∣|\mathcal{K}| should be chosen large enough such that for any vertex u∈[n]u\in[n], there exists some anchor vertex i∈Ki\in\mathcal{K} which is “close” to uu in the sense that ∥ΛQ(eu−ei)∥22\|\Lambda Q(e_{u}-e_{i})\|_{2}^{2} is small. For all nn vertices, we only compute the distances to each of the ∣K∣|\mathcal{K}| anchor vertices, and we let π:[n]→K\pi:[n]\to\mathcal{K} be a mapping from each vertex to the anchor vertex that minimizes the estimated distance d^\hat{d} as computed in the original algorithm statement, π(u)=arg min⁡i∈Kd^(u,i)\pi(u)=\operatorname*{arg\,min}_{i\in\mathcal{K}}\hat{d}(u,i). The final estimate then is given by

where Eπ(u)π(v)\mathcal{E}_{\pi(u)\pi(v)} denotes the set of undirected edges (a,b)(a,b) such that (a,b)∈E3(a,b)\in\mathcal{E}_{3} and both d^(π(u),a)\hat{d}(\pi(u),a) and d^(π(v),b)\hat{d}(\pi(v),b) are less than some threshold η\eta. We can compute Eπ(u)π(v)\mathcal{E}_{\pi(u)\pi(v)} by the clustering assignments and distances of all vertices to the anchor vertices.

3 Computational Complexity

To analyze the computational complexity of the algorithm, we consider each step. Growing local neighborhoods around each vertex costs at most n∣E∣n|\mathcal{E}|, since there are nn vertices and the BFS trees visit each edge at most once. Computing the inner product for all pairs of vertices given the local neighborhood vectors costs at most n2∣E∣n^{2}|\mathcal{E}|, since there are n2n^{2} vertex pairs and ∣E∣|\mathcal{E}| entries in the data matrix MM. The final nearest neighbor estimator involves a (weighted) average of the datapoints, which costs at most n2∣E∣n^{2}|\mathcal{E}|, as there are n2n^{2} entries in the matrix to estimate, and at worst the estimate would involve averaging over ∣E∣|\mathcal{E}| datapoints. This extremely crude bound leads to a computational complexity of O(pn4)O(pn^{4}). The bottleneck of the algorithm is the final nearest neighbor estimate, which may be reduced by using approximate nearest neighbor methods.

If we instead used the modified algorithm that subsamples ∣K∣|\mathcal{K}| anchor vertices at random and treats them as “cluster centers”, there are only (∣K∣2+n∣K∣)(|\mathcal{K}|^{2}+n|\mathcal{K}|) pairwise distances computed, for a computational cost of (∣K∣2+n∣K∣)∣E∣(|\mathcal{K}|^{2}+n|\mathcal{K}|)|\mathcal{E}| instead of n2∣E∣n^{2}|\mathcal{E}|. Once we cluster the vertices, the final estimate is only computed for the pairwise cluster blocks, as the final estimate is a block constant matrix with only ∣K∣2|\mathcal{K}|^{2} distinct valued estimates. This results in ∣K∣2∣E∣|\mathcal{K}|^{2}|\mathcal{E}| computation for the final step of the estimation. The computational complexity reduces from O(n2∣E∣)O(n^{2}|\mathcal{E}|) to O((∣K∣2+n∣K∣)∣E∣)O((|\mathcal{K}|^{2}+n|\mathcal{K}|)|\mathcal{E}|). The choice of ∣K∣|\mathcal{K}| depends on the distribution of latent variables, the shape of the latent function, and the error tolerance. In a setting with finitely many latent types, then ∣K∣|\mathcal{K}| would be roughly linear in the number of latent types.

A practical benefit of our algorithm is that it is amenable to a distributed and parallelized implementation. The key computational step of our algorithm involves comparing the expanded local neighborhoods of pairs of vertices to find the “nearest neighbors”. As the algorithm is inherently local with respect to the data graph, it can be easily implemented for large scale datasets where the data may be stored in a distributed fashion optimized for local graph computations. The local neighborhoods can be computed in parallel, as they are independent computations. Using approximate nearest neighbor techniques and subsampling vertices to cluster will additionally reduce the computation.

4 Discussion

In practice, we may not know the model parameters, and we would use cross validation to tune the BFS tree depth tt and nearest neighbor threshold η\eta. If the depth tt is either too small or too large, then the vector Nu,tN_{u,t} will be too sparse, and will not optimally aggregate the datapoints. The threshold η\eta trades off between bias and variance of the final estimate. When the sampled observations are not uniform across entries, the algorithm may require more modifications to properly normalize for high degree hub vertices, as the optimal choice of depth tt may differ depending on the local sparsity.

In our algorithm, we assumed that we observed the edge set E\mathcal{E}. Specifically, this means that we are able to distinguish between entries of the matrix that have value zero because they are not observed, i.e. (i,j)∉E(i,j)\notin\mathcal{E}, or if the entry was observed to be value zero, i.e. (i,j)∈E(i,j)\in\mathcal{E} and M(i,j)=Z(i,j)=0M(i,j)=Z(i,j)=0. This fits well for applications such as recommendations, where the system does know the information of which entries are observed or not. Some social network applications contain this information (e.g. facebook would know if they have recommended a link which was then ignored) but other network information may lack this information, e.g. we do not know if link does not exist because observations are sparse, or because observations are dense but the probability of an edge is small. The absence of this knowledge would primarily affect the normalization of the neighborhood vectors as well as the normalization in the final averaging step.

The idea of comparing vertices by looking at larger radius neighborhoods was introduced in , and has connections to belief propagation and the non-backtracking operator . The non-backtracking operator was introduced to overcome the issue of sparsity. For sparse graphs, vertices with high-degree dominate the spectrum, such that the informative components of the spectrum get hidden behind the high degree vertices. The non-backtracking operator avoids paths that immediately return to the previously visited vertex in a similar manner as belief propagation, and its spectrum has been shown to be more well-behaved, perhaps adjusting for the high degree vertices, which get visited very often by paths in the graph. In our algorithm, the neighborhood paths are defined by first selecting a rooted tree at each vertex, thus enforcing that each vertex along a path in the tree is unique. This is important in our analysis, as it guarantees that the distribution of vertices at the boundary of each subsequent depth of the neighborhood is unbiased, since the sampled vertices are freshly visited.

Results

In all of the results below, we assume the latent variable model assumptions laid out in Section 2. As a reminder, we assume uniform Bernoulli sampling with density pp, independent bounded observation noise, and a generative latent variable model where coordinates are associated to i.i.d. sampled latent variables and the underlying matrix behaves according to a bounded latent function ff that is Lipschitz and low rank (or approximately low rank) with bounded eigenfunctions.

We first provide theoretical bounds for the estimation error in both sparse regimes mentioned above when ff has finite spectrum with rank rr.

Sparse Regime. Theorem 4.1 shows that the maximum entrywise error of the collaborative filtering algorithm using distance function (7) converges to zero in the sparse regime when p=n−1+κp=n^{-1+\kappa} for some κ∈(0,12)\kappa\in(0,\frac{1}{2}).

Let ff have rank rr, p=n−1+κp=n^{-1+\kappa} for some κ∈(0,12)\kappa\in(0,\frac{1}{2}) so that 1/κ1/\kappa is not an integer. Consider the estimates produced by the nearest neighbor algorithm using the distance defined in (7) for t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor and selecting the nearest neighbor distance threshold to satisfy η=Θ(n−12(κ−ρ))\eta=\Theta(n^{-\frac{1}{2}(\kappa-\rho)}) for any ρ∈(0,κ)\rho\in(0,\kappa). Let Cf=∣λ1∣/∣λr∣C_{f}=|\lambda_{1}|/|\lambda_{r}| denote the condition number of the latent function ff. With probability 1−o(1)1-o(1),

Sparser Regime. Theorem 4.2 shows that the maximum entrywise error of the collaborative filtering algorithm using distance function (8) converges to zero in the sparser regime when p=n−1ln⁡1+κnp=n^{-1}\ln^{1+\kappa}n for some κ>0\kappa>0.

Let ff have rank rr, p=n−1ln⁡1+κnp=n^{-1}\ln^{1+\kappa}n for some κ>0\kappa>0. Consider the estimates produced by the nearest neighbor algorithm using the distance defined in (8) for t=⌈ln⁡(0.08/p)ln⁡(0.275np)−r′⌉t=\lceil\frac{\ln(0.08/p)}{\ln(0.275np)}-r^{\prime}\rceil and selecting the nearest neighbor distance threshold to satisfy \eta=\Theta\Big{(}(\ln n)^{-\frac{1}{2}(\kappa-\rho)}\Big{)} for any ρ∈(0,κ)\rho\in(0,\kappa). With probability 1−o(1)1-o(1),

Theorems 4.1 and 4.2 show that for symmetric sparse matrix estimation, as long as the fraction of entries observed at random scale as log⁡1+κ(n)n\frac{\log^{1+\kappa}(n)}{n} for any fixed κ>0\kappa>0, the estimation error of our proposed iterative variant of the classical collaborative filtering algorithm with respect to the max⁡\max-norm decays to as n→∞n\to\infty assuming the underlying matrix of interest has constant rank rr.

2 f𝑓f has ε𝜀\varepsilon-approximate rank r𝑟r

We extend the above stated result to the setting when the latent function ff has ε\varepsilon-approximate rank rr; this captures settings where ff may have infinite but quickly decaying spectrum. We formally state the extension in the sparse regime (p=n−1+κp=n^{-1+\kappa}), but we believe that a similar result is likely to hold for the sparser regime (p=n−1log⁡1+κ(n)p=n^{-1}\log^{1+\kappa}(n)) as well, which we omit for simplicity of presentation.

Let ff have ε\varepsilon-approximate rank rr for some ε>0\varepsilon>0, p=n−1+κp=n^{-1+\kappa} for some κ∈(0,12)\kappa\in(0,\frac{1}{2}) so that 1/κ1/\kappa is not an integer. Consider the estimates produced by the nearest neighbor algorithm using the distance defined in (7) for t=⌊ln⁡(1/p)ln⁡(np)⌋<1κ−1t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor<\frac{1}{\kappa}-1 and selecting the nearest neighbor distance threshold to satisfy η=Θ(n−12(κ−ρ))\eta=\Theta(n^{-\frac{1}{2}(\kappa-\rho)}) for any ρ∈(0,κ)\rho\in(0,\kappa). Let Cf,r=∣λ1∣/∣λr∣C_{f,r}=|\lambda_{1}|/|\lambda_{r}| denote the condition number of the rank rr approximation to the latent function ff. With probability 1−o(1)1-o(1),

As we assume the function values are bounded in $,wecanassumethat, we can assume that\varepsilon\in,suchthatthedominatingtermsin(13)are, such that the dominating terms in (13) areO\Big{(}rC_{f,r}^{1/\kappa}n^{-\frac{1}{4}(\kappa-\rho)}\Big{)}+O\Big{(}\sqrt{\varepsilon r|\lambda_{r}|^{-\frac{2}{\kappa}}\kappa^{-1}}\Big{)},andthedominatingtermsin(14)are, and the dominating terms in (14) areO\Big{(}r^{2}C_{f,r}^{2/\kappa}n^{-\frac{1}{2}(\kappa-\rho)}\Big{)}+O\Big{(}\varepsilon r|\lambda_{r}|^{-\frac{2}{\kappa}}\kappa^{-1}\Big{)}.Whileweassumethefunction. While we assume the functionfisfixedwithrespecttois fixed with respect ton,whenthefunction, when the functionfhasinfinitespectrum,wecanchoosehas infinite spectrum, we can choose\varepsilontodecreasewithto decrease withninordertotradeoffbetweenthetwotermsintheerrorbound.Notethattheapproximaterankin order to tradeoff between the two terms in the error bound. Note that the approximate rankrandtheapproximateconditionnumberand the approximate condition numberC_{f,r}alsodependonthechoiceofalso depend on the choice of\varepsilon.Inparticulartherelationshipbetween. In particular the relationship between\varepsilon,,r,and, andC_{f,r}willdependonthespectrumofwill depend on the spectrum offandhowquicklythetaildecaystozero.Choosingalargervalueofand how quickly the tail decays to zero. Choosing a larger value ofrwillincreasetheconditionnumberaswill increase the condition number as|\lambda_{r}|willbesmaller,anditwilldecreasetheapproximationerrorwill be smaller, and it will decrease the approximation error\varepsilon$. Below we present a specific example as a consequence of Theorem 4.3.

Let p=n−1+κp=n^{-1+\kappa} for some κ∈(0,12)\kappa\in(0,\frac{1}{2}) so that 1/κ1/\kappa is not an integer. Consider ff such that for any r≥1r\geq 1, it has εr\varepsilon_{r}-approximate rank rr with ∣λr∣|\lambda_{r}| corresponding to rank rr approximation with Cf,r=∣λ1∣/∣λr∣C_{f,r}=|\lambda_{1}|/|\lambda_{r}| being the condition number such that ∣λ1∣=O(1)|\lambda_{1}|=O(1) and

Then, for any δ>0\delta>0, for all nn large enough, with probability 1−o(1)1-o(1), \|\hat{F}-F\|_{\max}=O\Big{(}\sqrt{\delta}\Big{)}. Further, \text{MSE}(\hat{F})=O\Big{(}\delta\Big{)}.

For any δ>0\delta>0, by (15), there exists large enough r=r(δ)r=r(\delta) such that εr∣λr∣−2/κr≤δ\varepsilon_{r}|\lambda_{r}|^{-2/\kappa}r\leq\delta. Due to ∣λ1∣=O(1)|\lambda_{1}|=O(1), Cf,r=O(∣λr∣−1)C_{f,r}=O(|\lambda_{r}|^{-1}). Given choice of r=r(δ)r=r(\delta), for nn large enough we have rCf,r1/κn−14(κ−ρ)≤δrC_{f,r}^{1/\kappa}n^{-\frac{1}{4}(\kappa-\rho)}\leq\sqrt{\delta}. By (13) of Theorem 4.3 it follows that ∥F^−F∥max⁡=O(δ)\|\hat{F}-F\|_{\max}=O(\sqrt{\delta}) with probability at least 1−o(1)1-o(1). By (14) of Theorem 4.3, it follows that MSE(F^)=O(δ)\text{MSE}(\hat{F})=O(\delta). □\square

From Corollary 4.4, it follows that ∥F^−F∥max⁡=o(1)\|\hat{F}-F\|_{\max}=o(1) with probability 1−o(1)1-o(1) and MSE(F^)=o(1)\text{MSE}(\hat{F})=o(1) when the spectrum decays in such a way that lim⁡r→∞εr∣λr∣−2/κr=0.\lim_{r\to\infty}\varepsilon_{r}|\lambda_{r}|^{-2/\kappa}r=0.

3 Discussion

In our latent variable model, the latent function ff is fixed with respect to nn, so the max norm of the truth matrix is constant ∥F∥max⁡=Θ(1)\|F\|_{\max}=\Theta(1), and the Frobenius norm of the truth matrix scales linear with the matrix dimension so that 1n2∥F∥Fr2=Θ(1)\frac{1}{n^{2}}\|F\|_{Fr}^{2}=\Theta(1). As a result the above stated results also show the convergence rates with respect to the relative errors of the max norm and normalized Frobenius norm.

The overall proof sketch can be split into two parts. First we prove that the estimated pairwise distances concentrate to a metric computed with respect to the true latent function ff. Second we prove that given well behaved estimated distances, the nearest neighbor estimate with properly chosen thresholds to balance mean and variance will converge at the above stated rate. This second part of the proof is straightforward and follows the standard proof for any nearest neighbor style algorithm. The crux of the proof is arguing that in sparse settings the computed distances concentrate well. This relies on the uniform sampling assumption, independence of the observation noise, regularity of the latent feature variables, and the finite spectrum assumption of the latent function. The assumptions on the specific distribution of the latent variables and the Lipschitzness of the latent function are in fact primarily used for the second nearest neighbor portion of the proof, and thus can be relaxed. The key property needed is that there are sufficiently many “nearest neighbor” coordinates; the precise distribution of the latent variables and shape of the latent function will affect the tuning of the threshold parameter to tradeoff between bias and variance. We provide formal statements for a few variations of the model in Section 6.

In addition to providing bounds on the MSE, our theorem also provides bounds on the maximum entrywise error of the estimate. The rate of our maximum entrywise error is the square root of the MSE rate, which suggests that the error is uniformly spread across all entries. This is a stronger guarantee that the typical MSE bounds found in the literature, and it can be useful for downstream results that use the estimates for decision making such as ranking and recommendations.

Thus far, we have focused on finding conditions on pp that allow for consistent estimation with respect to both the MSE and max entrywise error. Our results also provide the rate at which the error decays. Specifically, our bound for the mean squared error (MSE) scales as O((pn)−1/2+ρ)O((pn)^{-1/2+\rho}) for any arbitrarily small constant ρ>0\rho>0, and our bound for the max entrywise error is O((pn)−1/4+ρ)O((pn)^{-1/4+\rho}) for any small ρ\rho.

Proof Sketch for Analyzing Noisy Nearest Neighbors

As the algorithm uses a fixed radius nearest neighbor estimate, the analysis boils down to arguing that the distance functions as defined in (7) and (8) have certain desired properties that enable the classical nearest neighbor algorithm to be effective. In this section we characterize the needed properties for the convergence of noisy nearest neighbors.

Our algorithm estimates F(u,v)F(u,v), i.e. f(θu,θv)f(\theta_{u},\theta_{v}), according to (4), which simply averages over datapoints M(u′,v′)M(u^{\prime},v^{\prime}) corresponding to tuples (u′,v′)(u^{\prime},v^{\prime}) for which u′u^{\prime} is close to uu and v′v^{\prime} is close to vv according to the estimated distance function d^\hat{d}. This simple nearest neighbor averaging estimator suggests that the last step of the analysis involves choosing the threshold η\eta to tradeoff between bias and variance.

Property 5.1 follows from choosing an appropriate ideal distance function dd. In particular we will choose dd with respect to the spectral representation of ff, and the desired property and the expression for bias(η)\text{{bias}}(\eta) will follow from the low rank assumption as well as the boundedness of the eigenfunctions.

Showing property 5.2 is the crux of the proof and follows from the design of the algorithm along with the assumptions of uniform sampling and the latent variable model. It essentially uses all the model assumptions except for Lipschitzness of ff.

Property 5.3 is only used for the final step of the nearest neighbor analysis. In particular, as the estimate averages datapoints within an estimated nearby region of the target coordinates, there is a bias variance tradeoff that depends on how the datapoints are locally distributed. In particular, we need to guarantee that for any (a,b)∈[n]2(a,b)\in[n]^{2}, there exists sufficiently many observed pairs (u,v)∈[n]2(u,v)\in[n]^{2} such that the function behaves similarly, i.e. f(a,b)f(a,b) is close to f(u,v)f(u,v). This property follows from our assumption that the latent variables are sampled i.i.d. from UU, and that the function ff is LL-Lipschitz. As discussed in section 2, these assumptions can be relaxed, but alternative assumptions would need to guarantee property 5.3 for some reasonable local measure function meas(η)\text{{meas}}(\eta).

Given the above three properties, we can then prove Lemma 5.1, which characterizes the error of the noisy nearest neighbor algorithm as a function of the bias function, meas function, and estimation error Δ\Delta. Section 8 uses Lemma 5.1 to establish Theorems 4.1, 4.2, and 4.3 by simply showing the three properties for suitable choices of bias,meas,\text{{bias}},\text{{meas}}, and Δ\Delta, and tuning η\eta accordingly to balance between different terms of the error. Proving that the distance estimates concentrate well, i.e. property 5.2, is the most involved part of the analysis, which we defer to sections 9 and 10. Property 5.1 follows from the low rank assumption and property 5.3 arises from the latent variable model assumptions, in particular the distribution of the latent variables and shape of the latent function.

Assume that properties 5.1-5.3 hold with probability 1−α1-\alpha for some η,Δ,\eta,\Delta, and η′=η−Δ\eta^{\prime}=\eta-\Delta; in particular dd is a bias-good distance function, d^\hat{d} as estimated from M′M^{\prime} and M′′M^{\prime\prime} is a Δ\Delta-good distance estimate for dd, and {θu}u∈[n]\{\theta_{u}\}_{u\in[n]} is meas-represented. The noisy nearest neighbor estimate F^\hat{F} computed according to (4) satisfies

for any δ∈(0,1)\delta\in(0,1). Furthermore, for any δ′∈(0,1)\delta^{\prime}\in(0,1),

Inequality (a)(a) follows from Properties 5.1-5.2: ∣d(u,a)−d^(u,a)∣≤Δ|d(u,a)-\hat{d}(u,a)|\leq\Delta and d^(u,a)≤η  ⟹  d(u,a)≤η+Δ\hat{d}(u,a)\leq\eta\implies d(u,a)\leq\eta+\Delta. By definition M(a,b)∈M(a,b)\in for all (a,b)(a,b), which implies Var[M(a,b)]≤1\text{Var}[M(a,b)]\leq 1 for all (a,b)∈E′′′(a,b)\in\mathcal{E}^{\prime\prime\prime}. Define Vuv={(a,b)∈[n]2 :d(u,a)<η−Δ, d(v,b)<η−Δ}{\mathcal{V}}_{uv}=\{(a,b)\in[n]^{2}~{}:{d}(u,a)<\eta-\Delta,~{}{d}(v,b)<\eta-\Delta\}. Assuming property 5.3,

By the Bernoulli sampling model and sample splitting process, each tuple (a,b)∈[n]2(a,b)\in[n]^{2} belongs to E′′′\mathcal{E}^{\prime\prime\prime} with probability p/2p/2 independently. By a straightforward application of Chernoff’s bound, it follows that for any δ∈(0,1)\delta\in(0,1),

Therefore, by assuming property 5.2, it follows that with probability at least 1−exp⁡(−δ2p(meas(η−Δ)n)24)1-\exp\left(-\frac{\delta^{2}p\left(\text{{meas}}(\eta-\Delta)n\right)^{2}}{4}\right),

We add an additional α\alpha in the final MSE bound to account for the probability that properties 5.1-5.3 are violated.

This completes the proof of Lemma 5.1. □\square

Extensions

As mentioned in Section 3.2, we can reduce the computational complexity of the algorithm by subsampling a set of anchor vertices K\mathcal{K} and only computing pairwise distances relative to the anchor vertices, equivalent to computing a clustering amongst vertices and using that to estimate. For pairs of anchor vertices (a,b)∈K2(a,b)\in\mathcal{K}^{2} which we also refer to as cluster centers, the algorithm estimates F^(a,b)\hat{F}(a,b) according to the original stated algorithm with no modifications. For u∉Ku\notin\mathcal{K}, we denote π(u)=arg min⁡i∈Kd^(u,i)\pi(u)=\operatorname*{arg\,min}_{i\in\mathcal{K}}\hat{d}(u,i) to be a clustering that maps from uu to the closest anchor vertex in K\mathcal{K}. The final estimate for (u,v)∉K2(u,v)\notin\mathcal{K}^{2} is then given by the estimate of the associated anchor vertices, which act as cluster centers, F^(u,v)=F^(π(u),π(v))\hat{F}(u,v)=\hat{F}(\pi(u),\pi(v)).

The original argument provides high probability bounds on ∣F^(u,v)−F(u,v)∣|\hat{F}(u,v)-F(u,v)| for cluster centers (u,b)∈K2(u,b)\in\mathcal{K}^{2}, as nothing changed in the algorithm for the cluster centers. The only additional part of the proof is to bound the additional bias for non cluster centers, as ∣F^(u,v)−F(u,v)∣≤∣F^(π(u),π(v))−F(π(u),π(v))∣+∣F(π(u),π(v))−F(u,v)∣|\hat{F}(u,v)-F(u,v)|\leq|\hat{F}(\pi(u),\pi(v))-F(\pi(u),\pi(v))|+|F(\pi(u),\pi(v))-F(u,v)|. The first term is directly bounded by the current analysis, and the bias from the second term will depend on the size of ∣K∣|\mathcal{K}|. Recall our latent variable model assumption that each vertex uu is associated to a latent variable θu∑U\theta_{u}\sum U such that F(u,v)=f(θu,θv)F(u,v)=f(\theta_{u},\theta_{v}) and ff is LL-Lipschitz with respect to the latent variables. For ∣K∣=2δlog⁡(1δ)|\mathcal{K}|=\frac{2}{\delta}\log(\frac{1}{\delta}), with probability at least 1−δ1-\delta, each interval [(i−1)δ,iδ][(i-1)\delta,i\delta] for i∈[1/δ]i\in[1/\delta] contains at least one anchor point in K\mathcal{K}, as the latent variables of these anchor points are chosen at random. Under this good event, then max⁡u∈[n]min⁡i∈K∣θu−θi∣≤δ\max_{u\in[n]}\min_{i\in\mathcal{K}}|\theta_{u}-\theta_{i}|\leq\delta.

We discuss the results and analysis for the sparse setting when p=n−1+κp=n^{-1+\kappa} for some κ∈(0,12)\kappa\in(0,\frac{1}{2}), however a similar argument applies for the sparser setting of p=n−1ln⁡1+κnp=n^{-1}\ln^{1+\kappa}n as well. Equation (20) will show that d(θu,θv)≤∣λ1∣2tL2∣θu−θv∣2d(\theta_{u},\theta_{v})\leq|\lambda_{1}|^{2t}L^{2}|\theta_{u}-\theta_{v}|^{2}, so that for some u∈[n]u\in[n], the closest anchor point a∈Ka\in\mathcal{K} with respect to the latent representation will also satisfy d(θu,θa)≤∣λ1∣2tL2δ2d(\theta_{u},\theta_{a})\leq|\lambda_{1}|^{2t}L^{2}\delta^{2}. As Property 5.2 guarantees ∣d(θu,θa)−d^(u,a)∣≤Δ|d(\theta_{u},\theta_{a})-\hat{d}(u,a)|\leq\Delta for all estimated distances, it follows that d(θu,θπ(u))≤∣λ1∣2tL2δ2+2Δd(\theta_{u},\theta_{\pi(u)})\leq|\lambda_{1}|^{2t}L^{2}\delta^{2}+2\Delta for all u∈[n]u\in[n]. By Property 5.1, ∣F(π(u),π(v))−F(u,v)∣≤bias(∣λ1∣2tL2δ2+2Δ)|F(\pi(u),\pi(v))-F(u,v)|\leq\text{{bias}}(|\lambda_{1}|^{2t}L^{2}\delta^{2}+2\Delta). We choose ∣K∣|\mathcal{K}| so that δ=ΔL∣λ1∣t\delta=\frac{\sqrt{\Delta}}{L|\lambda_{1}|^{t}}, and we plug in the choice of Δ\Delta and tt from Theorem 4.1, resulting in δ=Br∣λ1∣(κ+1)/κL−1n−14(κ−ρ)=o(1)\delta=Br|\lambda_{1}|^{(\kappa+1)/\kappa}L^{-1}n^{-\frac{1}{4}(\kappa-\rho)}=o(1) so that ∣K∣=Θ(n14(κ−ρ))|\mathcal{K}|=\Theta(n^{\frac{1}{4}(\kappa-\rho)}). This choice of ∣K∣|\mathcal{K}| will guarantee that the extra added bias does not change the existing guarantees in Theorem 4.1 by more than a constant.

2 Local Geometry

We can generalize the latent variable model beyond scalar valued latent variables and Lipschitz latent functions. These assumptions only affect the function meas in Property 5.3, and thus it only changes the last portion of the nearest neighbor proof in which we tune the threshold η\eta to tradeoff between the bias and variance terms. We present two examples of extending our results to a different local geometry, illustrating the modifications for the sparse setting when p=n−1+κp=n^{-1+\kappa} for some κ∈(0,12)\kappa\in(0,\frac{1}{2}).

Next we discuss a higher dimensional setting. Assume the latent variables are sampled uniformly over a mm-dimensional hypercube such that θu∼U(m)\theta_{u}\sim U(^{m}) and the latent function ff is LL-Lipschitz with respect to an underlying metric dmd_{m}, such that the measure of a ball with radius δ\delta is Θ(δm)\Theta(\delta^{m}). Property 5.3 would instead hold for meas(η′)=Θ((η′λtL)m)\text{{meas}}(\eta^{\prime})=\Theta((\frac{\sqrt{\eta^{\prime}}}{\lambda^{t}L})^{m}), resulting in a different choice of threshold η\eta to balance between bias and variance. If m≤(κ+2)/κm\leq(\kappa+2)/\kappa, then the current bias(Δ)\text{{bias}}(\Delta) term dominates such that we would choose η=Θ(Δ)\eta=\Theta(\Delta), and the error convergence rate will be the same as that stated in Theorem 4.1. For high dimension m>(κ+2)/κm>(\kappa+2)/\kappa, we choose the threshold η=Θ((pn2)−1/(m+1))\eta=\Theta((pn^{2})^{-1/(m+1)}) such that the MSE bound will scale as Θ((pn2)−1/(m+1))=Θ(n−(1+κ)/(m+1))\Theta((pn^{2})^{-1/(m+1)})=\Theta(n^{-(1+\kappa)/(m+1)}) and the max entrywise error bound will scale as Θ(n−(1+κ)/2(m+1))\Theta(n^{-(1+\kappa)/2(m+1)}).

3 Asymmetric Matrix

Even though our stated results are for symmetric models, we can transform an asymmetric latent variable model to a symmetric model as long as the row and column dimensions grow proportionally to one another. Consider an n×mn\times m matrix FF which we would like to learn, where F(u,v)=f(αu,βv)∈F(u,v)=f(\alpha_{u},\beta_{v})\in, and ff has finite spectrum. We can construct a (n+m)×(n+m)(n+m)\times(n+m) matrix where FF is placed on the off-diagonal blocks and the diagonal n×nn\times n and m×mm\times m blocks are set to zero. We can argue that this constructed matrix is sampled form a symmetric latent model, so that we can apply our algorithm and analysis directly.

4 Categorical Valued Data

5 Non-Uniform Sampling

We assumed a uniform sampling model, where each entry is observed independently with probability pp. However, in reality the probability that entries are observed may not be uniform across all pairs (i,j)(i,j). Our results can be extended to a setting where the sampling probability is instead a function of the latent variable, i.e. entry (i,j)(i,j) is observed with probability cng(θi,θj)c_{n}g(\theta_{i},\theta_{j}) where gg is a Lipschitz low rank function independent of nn and cnc_{n} is a scaling factor governing the density. The observed data M(i,j)M(i,j) would then be sampled according to

We can essentially then apply our algorithm twice, first using data matrix MM to estimate the product g(θi,θj)f(θi,θj)g(\theta_{i},\theta_{j})f(\theta_{i},\theta_{j}) up to a scaling factor. Second we apply our algorithm to the binary adjacency matrix representing the sparsity of the observation set Ω\Omega in order to estimate g(θi,θj)g(\theta_{i},\theta_{j}) up to scaling factor. The one nuance one would have to handle is that since the set of observed entries is not uniformly sampled, the constructed BFS trees will grow non-uniformly, which will affect the normalization and scaling terms. As the model is only recoverable up to scaling, this is the best we can do. If we had data from a two-step sampling process in which we first observe binary edges sampled uniformly with probability cnc_{n}, and then subsequently observed datapoints sampled with an additional probability g(θi,θj)g(\theta_{i},\theta_{j}), then the model would exactly fall into our assumptions and the results could directly be applied to estimating g(θi,θj)g(\theta_{i},\theta_{j}) and the product g(θi,θj)f(θi,θj)g(\theta_{i},\theta_{j})f(\theta_{i},\theta_{j}).

Experiments

We show results on synthetic data to illustrate the performance of our algorithm. We did not do sample splitting as it is primarily introduced for the purpose of the analysis. We computed distances according to equation (7) (but again without sample splitting) for fixed radius parameters of t∈{0,1,2,3,4}t\in\{0,1,2,3,4\}. Note that the depth for expanding the BFS tree is until t+1t+1. We did not specifically tune the nearest neighbor threshold η\eta, but simply chose it to be the 70th percentile amongst all estimated distances. As a result, the expected number of entries used to compute the final weighted average estimate is 0.49pn20.49pn^{2}. We compare against a naive baseline which predicts using the column-wise mean. And we compare against the softimpute implementation in python’s fancyimpute package and alternating least squares with rank 2 from parafac algorithm in the python tensorly package (higher rank performed more poorly in the sparse setting as it overfit to noise). Nuclear norm minimization was too slow for the size of instances that we show and thus was omitted.

For a κ∈(0,1]\kappa\in(0,1], the density is chosen to be p=n−1+κp=n^{-1+\kappa}, and each entry is observed (and thus included in sample set Ω\Omega) with probability pp independently of all other entries. For each observed entry (u,v)∈Ω(u,v)\in\Omega, there is an added independent Gaussian noise M(u,v)=F(u,v)+ε(u,v)M(u,v)=F(u,v)+\varepsilon(u,v), where ε(u,v)∼N(0,σ2)\varepsilon(u,v)\sim N(0,\sigma^{2}) where σ\sigma is chosen to be the 40th percentile of the magnitude of entries in FF. We show results for n=500,1000,n=500,1000, and 50005000.

We compute an adjusted mean squared error (MSE), limited to the error in predicting missing entries, and we normalize by the squared error of predicting with zeros. When the adjusted MSE is larger than 1, it means the estimate is worse than predicting all zeros.

Figure 1 shows the adjusted MSE of the algorithms with respect to the sampling probability pp. When pp is very small, then our algorithm with the optimal choice of the depth parameter tt performs better than ALS and SoftImpute, however when it is too sparse than either the simple mean estimate or predicting with all zeros is best. Note that we did not do any tuning of the nearest neighbor parameter η\eta, and thus there may be additional gains possible for our algorithm. If we consider the minimum density for which the algorithm performs better than the simple mean, SoftImpute requires the most dense observation. The minimum density required for our algorithm depends on optimally choosing the depth parameter tt, but for an optimal choice of tt, our algorithm requires less data than ALS before it performance better than the simple mean.

Figure 2 shows the adjusted MSE of the algorithms with respect to the exponent of the density parameter κ\kappa where p=n−1+κp=n^{-1+\kappa}. This rescales the xx-axis so that the small values of pp are more visible. We plot only up to κ=0.6\kappa=0.6 as we are focusing on the sparse regime with little overlaps in entries between pairs of rows and columns. Notice the dependence on the performance of our algorithm with respect to the radius parameter tt as illustrated best in Figure LABEL:fig:5000_mse_kappa. For too small values of tt the alg is suboptimal as it does not aggregate data sufficiently, but for too large values of tt the algorithm again is suboptimal as it simply estimates zeros due to the BFS trees running out of vertices.

Figure 3 shows the time each of the algorithms took to run. We can see that our proposed algorithm is faster than SoftImpute, and this gap in speed is amplified with large nn. Alternating Least Squares (ALS) is very fast, nearly as fast as the simple mean. Nuclear norm minimization was too slow to run on the size of instances in our example and thus was not included.

Proofs for Theorems 4.1, 4.2, and 4.3

In this section, we use the noisy nearest neighbor lemma 5.1 along with to establish Theorems 4.1, 4.2, and 4.3. Proofs of the concentration of distance estimates is deffered to sections 9 and 10.

We prove that as long as p=n−1+κp=n^{-1+\kappa} for any κ∈(0,12)\kappa\in(0,\frac{1}{2}), with high probability, properties 5.1-5.3 hold for an appropriately chosen function dd, and for distance estimates d^\hat{d} computed according to (7) with t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor. We subsequently use Lemma 5.1 to conclude Theorem 4.1. The most involved part in the proof is establishing that property 5.2 holds with high probability for an appropriately chosen Δ\Delta, which is delegated to Lemma 8.1.

Good distance dd and Property 5.1. We start by defining the ideal distance dd as follows. For all (u,v)∈[n]2(u,v)\in[n]^{2}, let

Recall that t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor. Assuming p=n−1+κp=n^{-1+\kappa}, κ∈(0,12)\kappa\in(0,\frac{1}{2})

where (a) follows from assuming that ∣qk(θ)∣≤B|q_{k}(\theta)|\leq B for all k∈[r]k\in[r] and θ∈\theta\in. In summary, property 5.1 is satisfied for distance function dd defined according to (17) and bias(η)=2B∣λr∣−trη\text{{bias}}(\eta)=2B|\lambda_{r}|^{-t}\sqrt{r\eta}.

Good distance estimate d^\hat{d} and Property 5.2. We state the following Lemma when ff has rank rr, whose proof is delegated to Section 9.

Let ff has rank rr, p=n−1+κp=n^{-1+\kappa} for κ∈(0,12)\kappa\in(0,\frac{1}{2}) such that 1/κ1/\kappa is not an integer. Consider d^\hat{d} as computed in (7) with t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor. For any ρ∈(0,κ)\rho\in(0,\kappa)

with probability at least 1-O\Big{(}n^{2}\exp\big{(}-\Theta(n^{\min(\rho,\kappa(t-\frac{1}{2}))})\big{)}\Big{)}.

Lemma 8.1 implies that property 5.2 holds with probability 1−o(1)1-o(1) for some Δ=Θ(Br∣λ1∣2/κn−(κ−ρ)/2)\Delta=\Theta(Br|\lambda_{1}|^{2/\kappa}n^{-(\kappa-\rho)/2}) and any ρ∈(0,κ)\rho\in(0,\kappa). The distance error bound Δ\Delta is minimized by choosing ρ\rho arbitrarily close to 0 so that Δ\Delta can be arbitrarily close to Θ(Br∣λ1∣2/κn−κ/2)=Θ(Br∣λ1∣2/κ(pn)−1/2)\Theta(Br|\lambda_{1}|^{2/\kappa}n^{-\kappa/2})=\Theta(Br|\lambda_{1}|^{2/\kappa}(pn)^{-1/2}).

The corresponding statement for ff that has ε\varepsilon-approximate rank rr is stated below.

Let ff have ε\varepsilon-approximate rank rr, p=n−1+κp=n^{-1+\kappa} for κ∈(0,12)\kappa\in(0,\frac{1}{2}) such that 1/κ1/\kappa is not an integer. Consider d^\hat{d} as computed in (7) with t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor. For any ρ∈(0,κ)\rho\in(0,\kappa)

with probability at least 1-O\Big{(}n^{2}\exp\big{(}-\Theta(n^{\min(\rho,\kappa(t-\frac{1}{2}))})\big{)}\Big{)}.

We assumed that the latent parameters {θu}u∈[n]\{\theta_{u}\}_{u\in[n]} are sampled i.i.d. uniformly over $.Therefore,forany. Therefore, for any\theta_{u}\in,forany, for anyv\in[n]andand\eta^{\prime}>0$,

for all η′∈(0,∣λ1∣2tL2)\eta^{\prime}\in(0,|\lambda_{1}|^{2t}L^{2}). By an application of Chernoff’s bound and a simple majorization argument, it follows that for all η′∈(0,∣λ1∣2tL2)\eta^{\prime}\in(0,|\lambda_{1}|^{2t}L^{2}) and δ∈(0,1)\delta\in(0,1),

By using union bound over all nn indices, it follows that for any η′∈(0,∣λ1∣2tL2)\eta^{\prime}\in(0,|\lambda_{1}|^{2t}L^{2}), with probability at least 1−nexp⁡(−δ2(n−1)η′2∣λ1∣tL)1-n\exp\left(-\frac{\delta^{2}(n-1)\sqrt{\eta^{\prime}}}{2|\lambda_{1}|^{t}L}\right), property 5.3 is satisfied with meas as defined in (21).

Concluding Proof of Theorem 4.1. In summary, with probability at least 1−α1-\alpha for

properties 5.1-5.3 are satisfied for the estimate d^\hat{d} computed from (7) with t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor, and the choices of

for any η>0\eta>0, ρ∈(0,κ)\rho\in(0,\kappa), δ∈(0,1)\delta\in(0,1) and η′=η−Δ∈(0,∣λ1∣2tL2)\eta^{\prime}=\eta-\Delta\in(0,|\lambda_{1}|^{2t}L^{2}). By substituting the expressions for bias, meas, and α\alpha into Lemma 5.1, it follows that

Additionally, for any δ′∈(0,1)\delta^{\prime}\in(0,1),

By selecting \eta=\Theta\big{(}Br|\lambda_{1}|^{2/\kappa}n^{-\frac{1}{2}(\kappa-\rho)}\big{)} with a large enough constant, it follows that

By substituting this choice of η\eta and δ=12\delta=\frac{1}{2} into (23), it follows that

By choosing δ′=2B∣λr∣−tr(η+Δ)\delta^{\prime}=2B|\lambda_{r}|^{-t}\sqrt{r(\eta+\Delta)}, it follows that δ′2pn2η=Ω(n)\delta^{\prime 2}pn^{2}\eta=\Omega(n). Therefore, by substituting into (24), it follows that with probability 1−o(1)1-o(1),

This completes the proof of Theorem 4.1. □\square

Concluding Proof of Theorem 4.3. Like Proof of Theorem 4.1, with probability at least 1−α1-\alpha for

properties 5.1-5.3 are satisfied for the estimate d^\hat{d} computed from (7) with t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor, and the choices of

for any η>0\eta>0, ρ∈(0,κ)\rho\in(0,\kappa), δ∈(0,1)\delta\in(0,1) and η′=η−Δ∈(0,∣λ1∣2tL2)\eta^{\prime}=\eta-\Delta\in(0,|\lambda_{1}|^{2t}L^{2}). Note that the only difference is in choice of Δ\Delta due to Lemma 8.2 for ff that has ε\varepsilon-approximate rank rr. By substituting the expressions for bias, meas, and α\alpha into Lemma 5.1, it follows that

Additionally, for any δ′∈(0,1)\delta^{\prime}\in(0,1),

By selecting \eta=\Theta\big{(}Br|\lambda_{1}|^{2/\kappa}n^{-\frac{1}{2}(\kappa-\rho)}\big{)}+\Theta(t\varepsilon(1+\varepsilon)^{t}+t^{2}\varepsilon^{2}(1+\varepsilon)^{2t-1}\Big{)} with appropriately large enough constants, it follows that

By substituting this choice of η\eta and δ=12\delta=\frac{1}{2} into (23), and using t<1/κ−1t<1/\kappa-1, it follows that

By choosing δ′=Θ(B∣λr∣−tr(η+Δ))\delta^{\prime}=\Theta(B|\lambda_{r}|^{-t}\sqrt{r(\eta+\Delta)}), it follows that δ′2pn2η=Ω(n)\delta^{\prime 2}pn^{2}\eta=\Omega(n). Therefore, by substituting into (24), it follows that with probability 1−o(1)1-o(1),

This completes the proof of Theorem 4.3. □\square

2 Analyzing Sparser Regime: Proof of Theorem 4.2

Similar to the proof of Theorem 4.1, we prove that as long as p=log⁡n1+κnp=\frac{\log n^{1+\kappa}}{n} for any κ>0\kappa>0, with high probability, properties 5.1-5.3 are satisfied for an appropriately chosen function dd and for distance estimates d^\hat{d} computed according to (8) with t=⌈ln⁡(0.08/p)ln⁡(0.275pn)−r′⌉t=\lceil\frac{\ln(0.08/p)}{\ln(0.275pn)}-r^{\prime}\rceil. We subsequently use Lemma 5.1 to conclude Theorem 4.2. The most involved part in the proof is establishing that property 5.2 holds with high probability for an appropriately chosen Δ\Delta, which is delegated to Lemma 8.3.

Good distance dd and Property 5.1. We start by defining the ideal distance dd as follows. For all (u,v)∈[n]2(u,v)\in[n]^{2},

For any u,v,a,b∈[n]u,v,a,b\in[n] with corresponding θu,θv,θa,θb∈\theta_{u},\theta_{v},\theta_{a},\theta_{b}\in,

Good distance estimation d^\hat{d} and Property 5.2. We state the following Lemma whose proof is delegated to Section 9.

Assume that p=n−1ln⁡1+κnp=n^{-1}\ln^{1+\kappa}n for some κ>0\kappa>0. Consider d^\hat{d} as computed in (8) with

where c=c(λ1,λr,λgap,r,B)c=c(\lambda_{1},\lambda_{r},\lambda_{gap},r,B) is independent of nn and λgap=min⁡1≤s<s′≤r∣λs−λs′∣\lambda_{gap}=\min_{1\leq s<s^{\prime}\leq r}|\lambda_{s}-\lambda_{s}^{\prime}|.

Therefore, property 5.2 is satisfied with probability 1−o(1)1-o(1) for some Δ=Θ((ln⁡n)−12(κ−ρ))\Delta=\Theta\left((\ln n)^{-\frac{1}{2}(\kappa-\rho)}\right) for any ρ∈(0,κ)\rho\in(0,\kappa).

Note that the only difference in (20) and (34) is the constant L2∣λ1∣2tL^{2}|\lambda_{1}|^{2t} versus L2L^{2}. It follows by a similar argument that with probability at least 1−nexp⁡(−δ2(n−1)η′2L)1-n\exp\left(-\frac{\delta^{2}(n-1)\sqrt{\eta^{\prime}}}{2L}\right), for any η′∈(0,L2)\eta^{\prime}\in(0,L^{2}), property 5.3 is satisfied with meas(η′)=(1−δ)η′L\text{{meas}}(\eta^{\prime})=\frac{(1-\delta)\sqrt{\eta^{\prime}}}{L}.

Concluding Proof of Theorem 4.2. In summary, with probability at least 1−α1-\alpha for

properties 5.1-5.3 are satisfied for the estimate d^\hat{d} computed from (8) with t=⌈ln⁡(0.08/p)ln⁡(0.275np)−r′⌉t=\lceil\frac{\ln(0.08/p)}{\ln(0.275np)}-r^{\prime}\rceil, and the choices of

for any η>0\eta>0, ρ∈(0,κ)\rho\in(0,\kappa), δ∈(0,1)\delta\in(0,1) and η′=η−Δ∈(0,L2)\eta^{\prime}=\eta-\Delta\in(0,L^{2}). By substituting the expressions for bias, meas, and α\alpha into Lemma 5.1, it follows that

Additionally, for any δ′∈(0,1)\delta^{\prime}\in(0,1),

By selecting \eta=\Theta\left(\left(\frac{\ln^{1+\rho}n}{np}\right)^{1/2}\right)=\Theta\Big{(}(\ln n)^{-\frac{1}{2}(\kappa-\rho)}\Big{)} with a large enough constant, it follows that

By substituting this choice of η\eta and δ=12\delta=\frac{1}{2} into (36) it follows that

By choosing δ′=Θ(η)\delta^{\prime}=\Theta(\sqrt{\eta}), it follows that δ′2pn2η=ω(n)\delta^{\prime 2}pn^{2}\eta=\omega(\sqrt{n}). Therefore, by substituting into (37), it follows that with probability 1−o(1)1-o(1),

This completes the proof of Theorem 4.2. □\square

Proving distance estimates are close when f𝑓f has rank r𝑟r

This section is dedicated to establishing that the distance estimates (7) and (8) are good approximations of the desired ideal distances as claimed in the statements of Lemmas 8.1 and 8.3 when ff has rank rr. We start by establishing key auxiliary concentration results which will lead to their proofs.

Recall that we grow the neighborhood of each u∈[n]u\in[n] in G=([n],E′)\mathcal{G}=([n],\mathcal{E}^{\prime}) and use associated observations in M′M^{\prime} as well as M′′M^{\prime\prime} to compute the distance estimates d^\hat{d}. By the assumed Bernoulli sampling model, any tuple (a,b)∈[n]2(a,b)\in[n]^{2} is independently included in E′\mathcal{E}^{\prime} with probability p/4p/4. Therefore, the expected number of immediate neighbors of uu (not including itself) is (n−1)p/4≈np/4(n-1)p/4\approx np/4. The expected number of nodes at distance s≥1s\geq 1 from a given uu scales as (np/4)s(np/4)^{s}. We define some necessary notation before we present the formal statement of this event. Given δ∈(0,1)\delta\in(0,1), define

For any p=\omega\big{(}\frac{1}{n}\big{)} and p=o(1)p=o(1),

For any given δ\delta, s∗(δ,p,n)s^{*}(\delta,p,n) is well defined for nn large enough since p=o(1)p=o(1).

Let ω(1n)≤p≤o(1)\omega(\frac{1}{n})\leq p\leq o(1), δ∈(0,1)\delta\in(0,1). For 1≤s≤s∗(δ,p,n)1\leq s\leq s^{*}(\delta,p,n),

The proof of Lemma 9.1 follows from standard argument using repeated application of Chernoff’s bound and is well known in the literature in various forms. For completeness, we have included it in the Appendix. Lemma 9.1 suggests definition of events that will hold with high probability. Specifically, for any u∈[n]u\in[n] and h≥1h\geq 1, define

We note that by event Au,h1(δ)\mathcal{A}^{1}_{u,h}(\delta) we simply require that the number of nodes at distance hh from a given node u∈[n]u\in[n] is nearly (np/4)h(np/4)^{h}. However, it does not impose any restrictions on how the nodes are connected or the latent parameters associated with the nodes themselves.

2 Concentration of a Quadratic Form One

as long as x<2((1−δ)np/4)(s+1)/2B∣λk∣(1+∣λk∣)x<\frac{2((1-\delta)np/4)^{(s+1)/2}}{B|\lambda_{k}|(1+|\lambda_{k}|)}.

where for i∈Su,hi\in\mathcal{S}_{u,h}, we define

Conditioned on Fu,h−1\mathcal{F}_{u,h-1}, Nu,h−1(j)N_{u,h-1}(j) for j∈Su,h−1j\in S_{u,h-1} is determined and so is θj\theta_{j}. However, θi\theta_{i} is conditionally independent random variable. Also, given the construction of the breadth-first-search tree, for any given i∈Su,hi\in S_{u,h} any of the j∈Su,h−1j\in S_{u,h-1} is equally likely to be its parent with probability 1/∣Su,h−1∣1/|S_{u,h-1}|. Therefore, we have that Xi, i∈Su,hX_{i},~{}i\in\mathcal{S}_{u,h} are independent and

where we use the orthonormality of qk′, k′∈[r]q_{k^{\prime}},~{}k^{\prime}\in[r]. Therefore,

Therefore, we conclude that for i∈Su,hi\in S_{u,h}

where (a) follows from the assumption that Nu,h−1N_{u,h-1} has sparsity Su,h−1\mathcal{S}_{u,h-1} and has entries bounded in $.Itfollowsthat. It follows thatX_{i}conditionedonconditioned on\mathcal{F}_{u,h-1}$ is sub-exponential with parameters

Now Du,hD_{u,h} is sum of such XiX_{i} for i∈Su,hi\in\mathcal{S}_{u,h} which are independent of each other conditioned on Fu,h−1\mathcal{F}_{u,h-1}. Therefore, it follows that conditioned on Fu,h−1\mathcal{F}_{u,h-1}, Du,hD_{u,h} is sub-exponential with parameters

By Azuma’s concentration inequality, for 0<x<2((1−δ)np/4)(s+1)/2B∣λk∣(1+∣λk∣)0<x<\frac{2((1-\delta)np/4)^{(s+1)/2}}{B|\lambda_{k}|(1+|\lambda_{k}|)},

This completes the proof of Lemma 9.2. □\square

3 Concentration of a Quadratic Form Two

We state a useful concentration that builds on Lemma 9.2 towards establishing Lemma 8.1.

4 Concentration of a Quadratic Form Three

We establish a final concentration that will lead us to the proof of good distance function property.

Let us define Mind′′=[Mind′′(i,j)]M^{\prime\prime}_{{\sf ind}}=[M^{\prime\prime}_{{\sf ind}}(i,j)] where

Next, we prove that with high probability,

where each term of the summation is bounded in duetothefactthatallobservedentriesareboundedindue to the fact that all observed entries are bounded in. Let

where inequality (a)(a) follows from the assumption that observed entries are within $$. Therefore,

5 Proof of Lemma 8.1

By statement of Lemma 8.1, we have t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor with p=n−1+κp=n^{-1+\kappa} where 1/κ1/\kappa is not an integer. We wish to establish that distance d^\hat{d}, as defined in (7) is a good proxy of distance dd as defined in (17). We shall establish this result under event A\mathcal{A} where

We shall use Lemmas 9.1, 9.2, 9.3 and 9.4 to conclude the desired result. To that end, we verify that appropriate conditions required in the statement of these Lemmas are satisfied.

A crucial condition is that t+1≤s∗(n,p,δ)t+1\leq s^{*}(n,p,\delta) originally imposed by Lemma 9.1. By definition of s∗(n,p,δ)s^{*}(n,p,\delta), it is sufficient to establish that

where recall ϕ(δ)=1−(1−δ1−δ2/3)1/2\phi(\delta)=1-\left(\frac{1-\delta}{1-\delta\sqrt{2/3}}\right)^{1/2}. We shall fix δ=0.1\delta=0.1 for the convenience through the remainder of the proof. To that end, it can be checked that ϕ(0.1)>0.01\phi(0.1)>0.01. Therefore, it is sufficient to have

We have chosen t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor. That is,

for nn large enough. That is, for all nn large enough, t+1≤s∗(n,p,0.1)t+1\leq s^{*}(n,p,0.1). Since 1/κ1/\kappa is not an integer, for some γ∈(0,1)\gamma\in(0,1)

For ρ∈(0,κ)\rho\in(0,\kappa), we use x=nρ/2x=n^{\rho/2} in statement of Lemmas 9.2, 9.3 and 9.4, and z=nρ/2z=n^{\rho/2} in statement of Lemma 9.4. We need to verify condition on xx and zz. Note that δ,B,∣λk∣,r,t\delta,B,|\lambda_{k}|,r,t are all constant with respect to nn. Lemma 9.2 requires

Since np=nκnp=n^{\kappa} and x=nρ/2x=n^{\rho/2} with ρ<κ\rho<\kappa, both of the above conditions are satisfied for sufficiently large nn. For Lemma 9.4, we require

Now p′(np/4)2t+1=Θ(n2κ(t+1)−1)p^{\prime}(np/4)^{2t+1}=\Theta(n^{2\kappa(t+1)-1}). By (57), 2κ(t+1)−1=κ(t+2)−1+κt>κt≥κ2\kappa(t+1)-1=\kappa(t+2)-1+\kappa t>\kappa t\geq\kappa. By choice, z=nρ/2z=n^{\rho/2} for ρ<κ≤2κ(t+1)−1\rho<\kappa\leq 2\kappa(t+1)-1. Therefore, for sufficiently large nn, the above condition is also satisfied.

Now we are ready to bound the difference between d(u,v)d(u,v) and d^(u,v)\hat{d}(u,v) for any u,v∈[n]u,v\in[n]. Recall,

Under event A\mathcal{A} as defined in (55), by Lemmas 9.3 and 9.4,

where the last equality follows from observing that the first term asymptotically dominates with respect to nn as ρ<κ≤2κ(t+1)−1\rho<\kappa\leq 2\kappa(t+1)-1. Similarly, all other three terms on the right hand side in (58) and (59) can be bounded by same quantities. Therefore, we conclude that for any u,v∈[n]u,v\in[n]

where we used t<1−κκt<\frac{1-\kappa}{\kappa}.

To conclude the proof, we need to argue that event A\mathcal{A} holds with high enough probability. To that end, through union bound and Lemmas 9.1, 9.2, and 9.4, we have

By union bound and Lemma 9.4, we have that

where the inequality (a)(a) follows from the choice of tt, and the fact that δ\delta and tt are constant with respect to nn. By union bound and Lemma 9.2, we have that

By union bound and Lemma 9.1, we have that

In summary, (60) holds with probability 1-O\big{(}n^{2}\exp\big{(}-\Theta(n^{\min(\rho,\kappa(t-\frac{1}{2}))})\big{)}\big{)}. This completes the proof of Lemma 8.1. □\square

6 Concentration in The Sparser Regime

We state consequence of earlier results that will help establish Lemma 8.3.

Fix δ=0.1\delta=0.1, p=n−1ln⁡1+κnp=n^{-1}\ln^{1+\kappa}n for some κ>0\kappa>0. Let

for some constant c=c(λ1,λr,λgap,r,B)c=c(\lambda_{1},\lambda_{r},\lambda_{\text{gap}},r,B), independent of nn with λgap=min⁡1≤s<s′≤r∣λs−λs′∣\lambda_{\text{gap}}=\min_{1\leq s<s^{\prime}\leq r}|\lambda_{s}-\lambda_{s^{\prime}}|.

We would like to verify that t+r′≤s∗(δ,p,n)t+r^{\prime}\leq s^{*}(\delta,p,n) for δ=0.1\delta=0.1. By definition of s∗(n,p,δ)s^{*}(n,p,\delta), it is sufficient to establish that

where recall ϕ(δ)=1−(1−δ1−δ2/3)1/2\phi(\delta)=1-\left(\frac{1-\delta}{1-\delta\sqrt{2/3}}\right)^{1/2}. For δ=0.1\delta=0.1, it can be verified that ϕ(0.1)>0.01\phi(0.1)>0.01. Therefore, it is sufficient to have

For p=n−1ln⁡1+κnp=n^{-1}\ln^{1+\kappa}n, ln⁡np=ln⁡ln⁡1+κn=(1+κ)ln⁡ln⁡n\ln np=\ln\ln^{1+\kappa}n=(1+\kappa)\ln\ln n. We choose ρ∈(0,κ)\rho\in(0,\kappa), which implies ρ∈(0,ln⁡(np)ln⁡ln⁡n−1)\rho\in(0,\frac{\ln(np)}{\ln\ln n}-1). Throughout the proof, we will denote x=ln⁡(1+ρ)/2n=ω(1)x=\ln^{(1+\rho)/2}n=\omega(1). It follows that for sufficiently large nn,

is satisfied. Let us define a diagonal matrix DD with Dbb=∣λ1∣−(b−1)D_{bb}=|\lambda_{1}|^{-(b-1)}. Therefore the explicit expression for zz is given by

Theorem 1 of provides bounds on the sum of entries of the inverse of a Vandermonde matrix. It states that for a N×NN\times N Vandermonde matrix VV such that Vab=λab−1V_{ab}=\lambda_{a}^{b-1}, if V−1V^{-1} denotes the inverse of VV, then

where λgap\lambda_{\text{gap}} is the minimum gap between eigenvalues only amongst the distinct eigenvalues,

Conditioned on events ∩k=1r(Au,k,0,t2(x,δ)∩Av,k,0,t2(x,δ))\cap_{k=1}^{r}(\mathcal{A}^{2}_{u,k,0,t}(x,\delta)\cap\mathcal{A}^{2}_{v,k,0,t}(x,\delta)) and given that all conditions of Lemma 9.3 are satisfied, it follows that

where (a) follows using (65) as well as the fact that np=ω(1)np=\omega(1) and hence for nn sufficiently large, ((1−δ)np/4)−t≥((1−δ)np/4)−t−k′((1-\delta)np/4)^{-t}\geq((1-\delta)np/4)^{-t-k^{\prime}} for any k′≥0k^{\prime}\geq 0; (b) follows using (66).

Observe that due to (62), x((1−δ)np/4)−1/2=o(1)x((1-\delta)np/4)^{-1/2}=o(1) and t=Θ(ln⁡n/ln⁡ln⁡n)=ω(1)t=\Theta(\ln n/\ln\ln n)=\omega(1), hence there exists some constant c1=c1(λ1,λr,λgap,r,B)c_{1}=c_{1}(\lambda_{1},\lambda_{r},\lambda_{\text{gap}},r,B), independent of nn, such that

Recall that we chose tt such that by (61),

It follows by t=Θ(ln⁡(1/p)ln⁡(np))=Θ(ln⁡(n)ln⁡ln⁡n)=ω(1)t=\Theta(\frac{\ln(1/p)}{\ln(np)})=\Theta(\frac{\ln(n)}{\ln\ln n})=\omega(1) that,

This implies that for some constant c2=c2(λ1,λr,λgap,r,B)c_{2}=c_{2}(\lambda_{1},\lambda_{r},\lambda_{\text{gap}},r,B), the square of the first term in (70) satisfies

Putting everything together, we have that for some constant c=c(λ1,λr,λgap,r,B)c=c(\lambda_{1},\lambda_{r},\lambda_{\text{gap}},r,B)

Replacing x=ln⁡(1+ρ)/2nx=\ln^{(1+\rho)/2}n, we obtain the desired result. □\square

7 Proof of Lemma 8.3

The proof of Lemma 8.3 would follow from Lemma 9.5 and once we verify the probability of events required to hold for Lemma 9.5 to be applicable. To that end, given κ>0\kappa>0 so that p=n−1ln⁡1+κnp=n^{-1}\ln^{1+\kappa}n, let ρ∈(0,κ)\rho\in(0,\kappa) be parameter of choice. We set

We shall use Lemmas 9.1, 9.2, 9.3 and 9.4 to conclude the desired result. To that end, we verify that appropriate conditions required in the statement of these Lemmas are satisfied.

To argue that A1(0.1)\mathcal{A}^{1}(0.1) holds with high probability, we wish to apply Lemmas 9.1 which requires verifying t+r′≤s∗(n,p,0.1)t+r^{\prime}\leq s^{*}(n,p,0.1) which is done in proof of Lemma 9.5. To argue that A2(ln⁡(1+ρ)/2(n),0.1)\mathcal{A}^{2}(\ln^{(1+\rho)/2}(n),0.1) and A3(ln⁡(1+ρ)/2(n),0.1)\mathcal{A}^{3}(\ln^{(1+\rho)/2}(n),0.1) hold with high probability, we will utilize Lemmas 9.2, 9.3 and 9.4 with x=ln⁡(1+ρ)/2(n)x=\ln^{(1+\rho)/2}(n) as well as z=ln⁡(1+ρ)/2(n)z=\ln^{(1+\rho)/2}(n) in statement of Lemma 9.4. We need to verify condition on xx and zz. Lemma 9.2 requires

For sufficiently large nn these conditions are satisfied by our choice of xx due to ρ<κ\rho<\kappa. For Lemma 9.4, we require

Conditioned on event A\mathcal{A}, by Lemma 9.5 it follows immediately that for distances defined as per (32) and (8),

To conclude the proof, we need to argue that event A\mathcal{A} holds with high enough probability. To that end, through union bound and Lemmas 9.1, 9.2, and 9.4, we have

By union bound and Lemma 9.4, we have that

By the choice of tt to satisfy (61), it follows that p(0.275np)t+r′≥0.08p(0.275np)^{t+r^{\prime}}\geq 0.08. Therefore,

where we used the fact that δ,∣λr∣,r′\delta,|\lambda_{r}|,r^{\prime} are all constants, while t=ω(1)t=\omega(1) and np=ω(1)np=\omega(1). By union bound and Lemma 9.2, we have that

By union bound and Lemma 9.1, we have that

In summary, the desired claim holds with probability 1-O\Big{(}n^{2}\exp\big{(}-\Theta((\ln n)^{1+\rho})\big{)}\Big{)}. This completes the proof of Lemma 8.3. □\square

Proving distance estimate is close when f𝑓f has ε𝜀\varepsilon-approximate rank r𝑟r

In this section, we extend the result that distance estimate (7) is good approximation of the desired ideal distance as claimed in the statement of Lemma 8.2 when ff has ε\varepsilon-approximate rank rr. We will primarily establish robustness of the distance estimate with respect to arbitrary, additional error of magnitude at most ε\varepsilon in each observed entry. This will help conclude Lemma 8.2 from Lemma 8.1.

When ff has ε\varepsilon-approximate rank rr, the F=QTΛQ+εF=Q^{T}\Lambda Q+\boldsymbol{\varepsilon} with ∥ε∥max⁡≤ε\|\boldsymbol{\varepsilon}\|_{\max}\leq\varepsilon. In contrast, when ff has rank rr, ε=0\boldsymbol{\varepsilon}=0, i.e. F=QTΛQF=Q^{T}\Lambda Q. That is, the setting of ff has ε\varepsilon-approximate rank rr can be viewed as a perturbation of the setting with ff having rank rr: each observation M(i,j)M(i,j) is first generated as per rank rr setting and then arbitrary perturbation or adversarial noise εij\varepsilon_{ij} is added to it where ∣εij∣≤ε|\varepsilon_{ij}|\leq\varepsilon. Therefore, we shall analyze the distance estimate as defined in (7) for the setting of ff that has ε\varepsilon-approximate rank rr by bounding the perturbation (or change) induced in distance estimates for the setting of ff that is rank rr, due to the addition of such an arbitrary perturbation εij\varepsilon_{ij}.

Let ff have rank rr, ω(1n)≤p≤o(1)\omega(\frac{1}{n})\leq p\leq o(1), δ∈(0,1)\delta\in(0,1), t≥0t\geq 0 with t+1≤s∗(δ,p,n)t+1\leq s^{*}(\delta,p,n) and 0<x≤B((1−δ)np/4)1/20<x\leq B((1-\delta)np/4)^{1/2}. Let u,v∈[n]u,v\in[n]. As before, define event

We condition on the event that A′(u,v,t,1)(x)A^{\prime}(u,v,t,1)(x) holds. Let d^(u,v)\hat{d}(u,v) be the distance estimate computed according to (7). Upon adding arbitrary εij∈[−ε,ε]\varepsilon_{ij}\in[-\varepsilon,\varepsilon] to M(i,j)M(i,j) for each (i,j)∈E(i,j)\in\mathcal{E}, with probability at least

d^(u,v)\hat{d}(u,v) changes at most by O(tε(1+ε)t+t2ε2(1+ε)2t−1)O(t\varepsilon(1+\varepsilon)^{t}+t^{2}\varepsilon^{2}(1+\varepsilon)^{2t-1}).

Let F(u,v,t,1,x)\mathcal{F}(u,v,t,1,x) denote all the information related to Tut\mathcal{T}_{u}^{t} and Tvt+1\mathcal{T}_{v}^{t+1}, including the node latent parameters and observations in Mˉ\bar{M} that are associated to edges in Tut∪Tvt+1\mathcal{T}^{t}_{u}\cup\mathcal{T}^{t+1}_{v}. Furthermore, let F(u,v,t,1,x)\mathcal{F}(u,v,t,1,x) be conditioned on the event that A′(u,v,t,1)(x)A^{\prime}(u,v,t,1)(x) holds, which is fully determined by the realization of edges and weights in Tut\mathcal{T}_{u}^{t} and Tvt+1\mathcal{T}_{v}^{t+1}. We wish to understand how Nu,tTMˉNv,t+1N_{u,t}^{T}\bar{M}N_{v,t+1} changes if we perturb each entry M(i,j)M(i,j) by adding arbitrary εij\varepsilon_{ij} so that ∣εij∣≤ε|\varepsilon_{ij}|\leq\varepsilon for all (i,j)∈E(i,j)\in\mathcal{E}. To that end, define

2 Proof of Lemma 8.2

Using Lemma 10.1 and Lemma 8.1, we establish the proof of Lemma 8.2. As argued in the proof of Lemma 8.1, for choice of t=⌊ln⁡(1/p)ln⁡(np)⌋t=\lfloor\frac{\ln(1/p)}{\ln(np)}\rfloor with p=n−1+κp=n^{-1+\kappa} where 1/κ1/\kappa is not an integer and δ=0.1\delta=0.1, we have that t+1≤s∗(n,p,0.1)t+1\leq s^{*}(n,p,0.1) for nn large enough. Further, np=nκnp=n^{\kappa} and p′(np/4)2t+1=Θ(n2κ(t+1)−1)p^{\prime}(np/4)^{2t+1}=\Theta(n^{2\kappa(t+1)-1}) with κ≤2κ(t+1)−1\kappa\leq 2\kappa(t+1)-1. As in Lemma 8.1, we choose x=nρ/2x=n^{\rho/2} for ρ∈(0,κ)\rho\in(0,\kappa) in Lemma 10.1. By this selection, we have x≤(np/4)12x\leq(np/4)^{\frac{1}{2}} for nn large enough. As in Lemma 8.1, the event A\mathcal{A} (recall definition from (55)) holds with probability at least 1-O\big{(}n^{2}\exp\big{(}-\Theta(n^{\min(\rho,\kappa(t-\frac{1}{2}))})\big{)}\big{)}. Indeed, A\mathcal{A} implies the condition required for Lemma 10.1 to hold with x=nρ/2x=n^{\rho/2} for all u≠v∈[n]u\neq v\in[n]. Finally, given this, the conclusion of Lemma 10.1 holds for all u≠v∈[n]u\neq v\in[n] with probability at least 1-\exp\Big{(}n^{2}\exp\big{(}-\Theta(n^{\kappa})\big{)}\Big{)}. In summary, from Lemma 10.1 and Lemma 8.1, it follows that

holds with probability at least 1-O\big{(}n^{2}\exp\big{(}-\Theta(n^{\min(\rho,\kappa(t-\frac{1}{2}))})\big{)}\big{)}. This completes the proof of Lemma 8.2. □\square

Acknowledgements

We gratefully acknowledge funding from the NSF under grants CCF-1948256, CNS-1955997, CMMI-1462158, CMMI-1634259, and a TRIPODS phase I project.

References

Appendix A Proof of Extra Lemmas

We use two simple inequalities to argue when a summation is dominated by the single largest term. For any ρ≥2\rho\geq 2,

For any ρ≥r1/(r−1)\rho\geq r^{1/(r-1)}, it holds that ρs≥sρ\rho^{s}\geq s\rho for all s≤rs\leq r. If additionally exp⁡(−aρ)≤12\exp(-a\rho)\leq\frac{1}{2},

Recall the definitions of ϕ\phi and s∗s^{*},

For any p=\omega\big{(}\frac{1}{n}\big{)} and p=o(1)p=o(1),

For any given δ\delta, s∗(δ,p,n)s^{*}(\delta,p,n) is well defined for nn large enough since p=o(1)p=o(1). Event Au,s1(δ)\mathcal{A}^{1}_{u,s}(\delta) is defined as

Let ω(1n)≤p≤o(1)\omega(\frac{1}{n})\leq p\leq o(1), δ∈(0,1)\delta\in(0,1). For 1≤s≤s∗(δ,p,n)1\leq s\leq s^{*}(\delta,p,n),

By definition, s≤s∗(δ,p,n)s\leq s^{*}(\delta,p,n) implies that

Let us denote Bu,s−1=∪h=1s−1Su,h\mathcal{B}_{u,s-1}=\cup_{h=1}^{s-1}\mathcal{S}_{u,h}. Conditioned on ∩h=1s−1Au,h1(δ)\cap_{h=1}^{s-1}\mathcal{A}^{1}_{u,h}(\delta), we can upper bound ∣Bu,s−1∣|\mathcal{B}_{u,s-1}| by

where the last step follows from Lemma A.1 showing that the summation is dominated by the largest term for sufficiently large nn. By assuming s≤s∗(δ,p,n)s\leq s^{*}(\delta,p,n), it follows that for sufficiently large nn, because np=ω(1)np=\omega(1),

Conditioned on the set Bu,s−1\mathcal{B}_{u,s-1} and the set Su,s−1\mathcal{S}_{u,s-1}, any vertex i∈[n]∖Bu,s−1i\in[n]\setminus\mathcal{B}_{u,s-1} is in Su,s\mathcal{S}_{u,s} independently with probability (1−(1−p4)∣Su,s−1∣)(1-(1-\frac{p}{4})^{|\mathcal{S}_{u,s-1}|}). Thus the number of vertices in Su,s\mathcal{S}_{u,s} is distributed as a binomial random variable. By Chernoff’s bound,

Conditioned on Au,s−11\mathcal{A}^{1}_{u,s-1}, the above two inequalities show that Au,s1\mathcal{A}^{1}_{u,s} holds with high probability. The upper bound follows from

where equality (b)(b) follows from the fact that we constructed ϕ\phi such that (1−δ2/3)(1−ϕ(δ))2=(1−δ)(1-\delta\sqrt{2/3})(1-\phi(\delta))^{2}=(1-\delta).

where inequality (a)(a) follows from the assumption that pn=ω(1)pn=\omega(1) such that the largest term in the summation dominates. □\square