List Decodable Mean Estimation in Nearly Linear Time

Yeshwanth Cherapanamjeri, Sidhanth Mohanty, Morris Yau

Introduction

Estimating the mean of data is a cardinal scientific task. The population mean can be shifted arbitrarily by a single outlier, a problem which is compounded in high dimensions where outliers can conspire to destroy the performance of even sophisticated estimators of central tendency. Robust statistics, beginning with the works of Tukey and Huber [Tuk60, Hub64], endeavors to design, model, and mitigate the effect of data deviating from statistical assumptions [Hub11].

A canonical model of data corruption is the Huber contamination model [Hub64]. Let I(μ)I(\mu) be a probability distribution parameterized by μ\mu. We say a dataset X1,X2,...,XNX_{1},X_{2},...,X_{N} is α\alpha-Huber contaminated for some constant α∈\alpha\in if it is drawn i.i.d from

where O\mathcal{O} is an arbitrary outlier distribution which can be adversarial and dependent on I(μ)\mathcal{I}(\mu). The goal is to estimate μ\mu with an estimator μ^\hat{\mu} such that the two are close with respect to a meaningful metric. The Huber contamination model captures the setting where only an α\alpha fraction of the dataset is subject to statistical assumptions. One would hope to design estimators μ^\hat{\mu} for which α\alpha is as small as possible thereby tolerating the largest fraction of outliers–a quantity known as the breakdown point . The study of estimators with large breakdown points is the focus of a long and extensive body of work, which we do not attempt to survey here. For review see [Hub11, HRRS86].

A first observation, is that the breakdown point of a single estimator must be smaller than 12\frac{1}{2}. For concreteness, consider the problem of estimating the mean of a standard normal. The adversary can set up a mixture of 1α\frac{1}{\alpha} standard normals for which the means of the mixture components are far apart. This intrinsic difficulty also gives rise to a natural notion of recovery in the presence of overwhelming outliers. Instead of outputting a single estimator, consider outputting a list of candidate estimators L={μ^1,μ^2,...,μ^1α}\mathcal{L}=\{\hat{\mu}_{1},\hat{\mu}_{2},...,\hat{\mu}_{\frac{1}{\alpha}}\} with the guarantee that the true μ\mu is amongst the elements of the list. This is the setting of ’List Decodable Learning’ [BBV08, CSV17], analogous to list decoding in the theory of error correcting codes.

In their influential work [CSV17] introduces list decodable learning in the context of robust statistics. They consider the problem of estimating the mean μ\mu of a dd-dimensional distribution I(μ)\mathcal{I}(\mu) with a bounded covariance Cov(I(μ))⪯σ2I\mathbf{Cov}(\mathcal{I}(\mu))\preceq\sigma^{2}I for a constant σ\sigma from N=dαN=\frac{d}{\alpha} samples. Their algorithm recovers a list L\mathcal{L} of O(1α)O(\frac{1}{\alpha}) candidate means with the guarantee that there exists a μ^∗∈L\hat{\mu}^{*}\in\mathcal{L} achieving the recovery guarantee ∥μ^∗−μ∥⩽O(σlog⁡(1α)α)\lVert\hat{\mu}^{*}-\mu\rVert\leqslant O\left(\sigma\sqrt{\frac{\log\left(\frac{1}{\alpha}\right)}{\alpha}}\right) with high probability 1−1poly(d)1-\frac{1}{\text{\rm poly}(d)}. Furthermore, their algorithm is ’efficient’, running in time poly(N,d,1α)\text{\rm poly}(N,d,\frac{1}{\alpha}) via the polynomial time solvability of ellipsoidal convex programming.

Our first contribution is an algorithm for list decodable mean estimation of covariance bounded distributions, which outputs a list L\mathcal{L} of length O(1α)O(\frac{1}{\alpha}), achieving (up to constants) the information theoretically optimal recovery O(σα)O(\frac{\sigma}{\sqrt{\alpha}}), with linear sample complexity N=dαN=\frac{d}{\alpha}, and running in nearly linear time O~(Ndpoly(1α))\widetilde{O}(Nd\text{\rm poly}(\frac{1}{\alpha})) where O~\widetilde{O} omits logarithmic factors in dd. For the matching minimax Ω(σα)\Omega(\frac{\sigma}{\sqrt{\alpha}}) lower bound see [DKS18]. Formally, we state our main theorem.

For precise constants and failure probability see Section 4. At a high level, we define a nonconvex cost function for which μ\mu is an approximate minimizer and build a ’descent style’ algorithm to find μ\mu. As with most nonconvex algorithms, our approach is susceptible to falling in suboptimal minima. Our key algorithmic insight is that our algorithm fails to descend the cost function exactly when a corresponding dual procedure succeeds in ”sanitizing” the dataset by removing a large fraction of outliers — a win-win.

First observed in [CSV17], the list decoding problem lends itself to applications for which our algorithm offers immediate improvements. Firstly, it is perhaps surprising that a succinct list of estimators can be procured from a dataset overwhelmed by outliers. Perhaps more surprising is that the optimal candidate mean can be isolated from the list L\mathcal{L} with additional access to a mere log⁡(1α)\log(\frac{1}{\alpha}) clean samples drawn from I(μ)\mathcal{I}(\mu). This ”semi-supervised” learning is compelling in settings where large quantities of data are collected from unreliable providers (crowdsourcing, multiple sensors, etc.). Although it is resource intensive to ensure the cleanliness of a large dataset, it is easier to audit a small, in our case log⁡(1α)\log(\frac{1}{\alpha}), set of samples for cleanliness. Given access to this small set of samples as side information, our algorithm returns estimators for mean estimation with breakdown points higher than 12\frac{1}{2} in nearly linear time.

Faster list decodable mean estimation also accelerates finding planted partitions in semirandom graphs. In particular, consider the problem where GG is a directed graph where the (outgoing) neighborhoods of an α\alpha fraction of vertices SS are random while the neighborhoods of the remaining vertices are arbitrary, and the goal is to output O(1/α)O(1/\alpha) lists such that one of them is “close” to SS. Our algorithm for list decodable mean estimation implies a faster algorithm for this problem as well.

Lastly, list decodable mean estimation is a superset of learning mixture models of bounded covariance distributions with minimum mixture weight α\alpha. By treating a single cluster as the inliers, one can recover the list of means comprising the mixture model. Notably, this can be done without any separation assumptions between the mixture components and is robust to outliers.

Fast Semidefinite Programming:

Rapidly computing our cost function necessitates the design of new packing/covering solvers for Positive Semidefinite Programs (SDP) over general Fantopes (the convex hull of the projection matrices). Positive SDP’s have seen remarkable success in areas spanning quantum computing, spectral graph theory, and approximation algorithms (See [AHK12, ALO16, JLL+20] and the references therein). Informally, a packing SDP computes the fractional number of ellipses that can be packed into a spectral norm ball which involves optimization over the spectrahedron. A natural question is whether the packing concept can be extended to balls equipped with general norms, say the sum of the top kk eigenvalues (the Ky Fan norm), where for k=1k=1 we recover the oft studied spectral norm packing. We use results from Loewner’s theory of operator monotonicity and operator algebras to design fast, and as far as we know the first solvers for packing/covering positive SDP’s under Ky Fan norms (See Theorem 5.13).

2 Related Work

Robust statistics has a long history [Tuk60, Tuk75, Hub64, Ham71]. This extensive body of work develops the theory of estimators with high breakdown points, of influence functions and sensitivity curves, and of designing robust M-estimators. See [Hub11, HRRS86]. However, little was understood about the computational aspects of robustness which features prominently in high dimensional settings.

Recent work in theoretical computer science [DKK+16, LRV16] designed the first algorithms for estimating the mean and covariance of high dimensional gaussians tolerating a constant fraction of outliers in polynomial time poly(N,d,11−α)poly(N,d,\frac{1}{1-\alpha}). Since then, a flurry of work has emerged studying robust regression [KKM18, DKS19], sparse robust regression [BDLS17, DKK+19], fast algorithms for robustly estimating mean/covariance [CDG19, DHL19, CDGW19], statistical query hardness of robustness [DKS17], worst case hardness [HL19], robust graphical models [CDKS18], and applications of the sum of squares algorithm to robust statistics [KSS18]. See survey [DK19] for an overview.

List Decodable Learning

Despite the remarkable progress in robust statistics for large α\alpha contamination, progress on the list decoding problem has been slower. This is partially owed to the intrinsic computational hardness of the problem. Even for the natural question of list decoding the mean of a high dimensional gaussian, [DKS18] exhibits a quasipolynomial time lower bound against Statistical Query algorithms for achieving the information theoretically optimal recovery of Θ(log⁡(1α))\Theta\big(\sqrt{\log(\frac{1}{\alpha})}\big). This stands in contrast to large α\alpha robust mean estimation where nearly linear time algorithms [CDG19] achieve optimal recovery.

In light of this hardness, a natural question is to determine whether polynomial time algorithms can at least approach the optimal recovery for list decoding the mean of a gaussian. In a series of concurrent works [KS17] [DKS18], develop the first algorithms approaching the Θ(log⁡(1α))\Theta\big(\sqrt{\log(\frac{1}{\alpha})}\big) recovery guarantee. At a high level, both papers achieve recovery O(σαc/k)O(\frac{\sigma}{\alpha^{c/k}}) for different fixed constants c>1c>1 in time poly(dα)O(k)\text{\rm poly}(\frac{d}{\alpha})^{O(k)} for kk a positive integer greater than 22. The [DKS18] algorithm, known as the ”multi-filter”, is a spectral approach reasoning about high degree polynomials of the moments of data. Furthermore, the ”low degree” multi-filter achieves a suboptimal O(log⁡(1α)α)O\big(\sqrt{\frac{\log(\frac{1}{\alpha})}{\alpha}}\big) recovery guarantee for list decoding the mean of subgaussian distributions, which is fast and may be of practical value. [KS17] develop a convex hierarchy (sum of squares) style approach, which achieve similar guarantees for more general distributional families satisfying a poincare inequality. In particular for list decoding the mean of bounded covariance distributions they achieve the optimal O(1α)O(\frac{1}{\sqrt{\alpha}}) guarantee via the polynomial time solvability of convex concave optimization. Finally, [DKS18, KS17] and a concurrent work [HL18] develop tools for reasoning about the high degree moments of data to break the longstanding ”single-linkage” barrier in clustering mixtures of spherical gaussians.

In other statistical settings a series of concurrent works [RY20a, KKK19] demonstrate information theoretic impossibility for list decoding regression even under subguassian design. Similar barriers arise in the context of list decodable subspace recovery [RY20b, BK20] where it is information theoretically impossible to list decode a dataset for which an α\alpha fraction is drawn from a subgaussian distribution in a subspace. Indeed, since list decoding is a superset of learning mixture models, these hardness considerations stem from barriers in learning mixtures of linear regressions and subspace clustering. On the other hand, the above works also construct polynomial time, dpoly(1α)d^{\text{\rm poly}(\frac{1}{\alpha})}, algorithms for regression and subspace recovery for Gaussian design and Gaussian subspaces respectively, which holds true for a larger class of ”certifiably anticoncentrated” distributions.

In this backdrop of computational and statistical hardness, and given the practical value of robust statistics, it is a natural challenge to design list decoding algorithms that are both fast and statistically optimal. The current work is a step in this direction.

SDP Solvers

There has been much recent interest in designing fast algorithms for positive SDP solvers due to the ubiquity of their application in approximation algorithms. We do not attempt to survey the full breadth of these results and their applications in this section. We refer the interested reader to [JLL+20, ALO16, PTZ12, AHK12] for more context on these developments. We will restrict ourselves to the following class of SDPs relevant to our work:

Semirandom Graph Inference

The study of problems that are typically computationally hard in the worst case in semirandom graph models was initiated by [BS95] and perpetuated by [FK01]. A specific problem of interest to us studied by [FK01] for which nearly optimal algorithms were given by [MMT20] is the semirandom independent set problem where the set of edges between a planted independent set and the remaining (adversarially chosen) graph come from a randomized model. In a similar vein [CSV17] studies a planted partition where instead of an independent set the given graph is some other sparse random graph (albeit directed). Our results improve upon the statistical guarantees of [CSV17] as well as give faster algorithms, however both [CSV17] and our work fall short of capturing the results of [MMT20] due to the directed model we work in. However, we believe the hurdle is a technical point rather than an inherent shortcoming of our approach.

Sample Complexity:

The following lemma of [CSV17] achieves linear sample complexity which suffices for our algorithm.

Taking N=O(dα)N=O\left(\frac{d}{\alpha}\right), for the rest of the paper we will adjust σ\sigma by a constant and assume the inlier set II satisfies ∥1∣I∣∑i∈I(xi−μ)(xi−μ)T∥⪯σ2I\lVert\frac{1}{|I|}\sum_{i\in\mathcal{I}}(x_{i}-\mu)(x_{i}-\mu)^{T}\rVert\preceq\sigma^{2}I.

Notation:

Organization:

Our paper is organized as follows: In Section 2, we outline the key ideas underlying the design of our algorithm for list-decodable mean estimation, our solver for the generalized class of Packing/Covering SDPs considered in this paper and the technical challenges involved in doing so. Then, in Sections 4 and 8, we formally describe and analyze our algorithm for list-decodable mean estimation and its application to the semirandom graph model considered in [CSV17]. Sections 6, 5 and 7 contain our refined power method analysis, a formal description and analysis of our solver and the hard thresholding based operator required to implement the solver in nearly-linear time. Finally, Appendices B, A and C contain supporting results required by the previous sections.

Techniques

First we present an inefficient algorithm for list decodable mean estimation. Although it is inefficient, it captures the core ideas and foreshadows the difficulties encountered by our efficient algorithm. At a high level, the inefficient algorithm greedily searches through the dataset for subsets of points with small covariance with the goal of finding the subset of inliers.

Second, append μ^=∑i=1Nw^ixi\hat{\mu}=\sum_{i=1}^{N}\hat{w}_{i}x_{i} to L\mathcal{L}

Third, update bb such that bi=bi−w^ib_{i}=b_{i}-\hat{w}_{i}

We claim the algorithm outputs a list L\mathcal{L} of length 2α\frac{2}{\alpha} and that there exists a μ^∗∈L\hat{\mu}^{*}\in L satisfying ∥μ^∗−μ∥⩽O(σα)\lVert\hat{\mu}^{*}-\mu\rVert\leqslant O(\frac{\sigma}{\sqrt{\alpha}}). Next we outline the proof of correctness.

Proof Outline:

Sanitizing the Dataset:

Abstracting the guarantees of our inefficient algorithm, we say that an algorithm ”sanitizes” a dataset if it outputs a tuple (μ^,w^)(\hat{\mu},\hat{w}) where ∑i=1Nw^⩾Ω(1)\sum_{i=1}^{N}\hat{w}\geqslant\Omega(1) satisfying the following conditions. If ∥μ^−μ∥⩾O(σα)\lVert\hat{\mu}-\mu\rVert\geqslant O(\frac{\sigma}{\sqrt{\alpha}}) then ∑i∈Ow^i⩾2α∑i∈Iw^i\sum_{i\in O}\hat{w}_{i}\geqslant\frac{2}{\alpha}\sum_{i\in I}\hat{w}_{i}. Any algorithm that sanitizes the dataset iteratively, is guaranteed to succeed as a list decoding algorithm. This is made formal in Section 4.

Descent Style Formulation:

The optimization problem Eq. 1 is nonconvex and hard to solve directly. A novel approach to minimizing Eq. 1 is to replace μ(w)\mu(w) with a parameter ν\nu and define a cost function f(ν)f(\nu). First introduced in [CDG19] in the context of robust mean estimation and later in robust covariance estimation [CDGW19] consider the function f(ν)f(\nu) defined as follows:

where bi=1αNb_{i}=\frac{1}{\alpha N} for all i∈[N]i\in[N]. This formulation has two appealing aspects. Firstly, the cost function can be computed efficiently via convex concave optimization. Indeed, the operator norm can be replaced by the maximization over its associated fantope F1\mathcal{F}_{1}

Secondly, for α>23\alpha>\frac{2}{3} (robust mean estimation), a crucial insight of [CDG19] is that f(ν)f(\nu) approximates the squared distance from ν\nu to the mean μ\mu. Then a good estimate of the mean is the minimizer of the cost.

In their setting the minimization in Eq. 2 can be performed by a descent style algorithm.

Substantial challenges arise when designing such a cost function for list decodable mean estimation. Chiefly, the inliers are unidentifiable from the dataset so there is no function of the data that approximates the distance to the true mean. Our solution is to design a function that either approximates the distance to the true mean, or when the approximation is poor, prove there exists a corresponding dual procedure that sanitizes the dataset. This win-win observation can be made algorithmic and is the subject of Section 4

1 Our Approach

We call the above min-max formulation the dual and the associated minimizer w∗w^{*} the dual minimizer or dual weights. By Von Neumann’s min max theorem we have

An Easier Problem:

List Decoding Main Lemma:

In analogy to clustering, one should hope that for any ν∈Rd\nu\in R^{d} further than O(σα)O(\frac{\sigma}{\sqrt{\alpha}}) from μ\mu, that Cost(ν)≈∥ν−μ∥2Cost(\nu)\approx\lVert\nu-\mu\rVert^{2}. Although this is impossible, it turns out that when it is false, there exists a corresponding ”dual procedure” for outputting a sanitizing tuple. More precisely, we claim that either 0.4∥ν−μ∥2⩽Cost(ν)⩽1.1∥ν−μ∥20.4\lVert\nu-\mu\rVert^{2}\leqslant Cost(\nu)\leqslant 1.1\lVert\nu-\mu\rVert^{2}, or a simple procedure outputs a set of weights w^\hat{w} identifying vastly more outliers than inliers i.e ∑i∈Ow^i⩾α2∑i∈Iw^i\sum_{i\in\mathcal{O}}\hat{w}_{i}\geqslant\frac{\alpha}{2}\sum_{i\in\mathcal{I}}\hat{w}_{i}, or both.

The dual procedure is as follows. Let Σ^:=∑i=1nwi∗(xi−ν)(xi−ν)T\widehat{\Sigma}:=\sum_{i=1}^{n}w^{*}_{i}(x_{i}-\nu)(x_{i}-\nu)^{T} be the weighted second moment matrix centered at ν\nu. Let VV be the top O(1α)O(\frac{1}{\alpha}) eigenspace of Σ^\widehat{\Sigma}. We project the dataset onto the affine subspace VV with offset ν\nu. We then sort the points {ΠV(xi−ν)}i=1N\{\Pi_{V}(x_{i}-\nu)\}_{i=1}^{N} by Euclidean lengths. This sorting determines an ordering of the weights w1∗,...,wN∗w^{*}_{1},...,w^{*}_{N}. We pass through the sorted list, and find the smallest m∈[N]m\in[N] such that ∑i=1mwi∗⩾0.5\sum_{i=1}^{m}w^{*}_{i}\geqslant 0.5. We set w^i=wi∗\hat{w}_{i}=w^{*}_{i} for i=1,...,mi=1,...,m and w^i=0\hat{w}_{i}=0 for i>mi>m. The following lemma guarantees ∑i∈Ow^i⩾α2∑i∈Iw^i\sum_{i\in\mathcal{O}}\hat{w}_{i}\geqslant\frac{\alpha}{2}\sum_{i\in\mathcal{I}}\hat{w}_{i}.

2 Generalized Packing/Covering Solvers and Improved Power Method Analysis

We start by considering the simpler problem of computing CostX,b,1(ν)Cost_{X,b,1}(\nu). The approach taken in [CDG19] is to reduce the problem to a packing SDP via the introduction of an additional parameter λ\lambda; specifically, they solve the following packing SDP:

for which there exist fast linear-time solvers [PTZ12, ALO16]. It can be shown that the value of the above program when viewed as a function of λ\lambda is monotonic, continuous and attains the value 11 precisely when λ=CostX,b,1(ν)\lambda=Cost_{X,b,1}(\nu). Therefore, by performing a binary search over λ\lambda, one obtains accurate estimates of w∗w^{*} and CostX,b,1(ν)Cost_{X,b,1}(\nu).

which does not fall into the standard class of packing SDPs. We extend and generalize fast linear time solvers for packing/covering SDPs from [PTZ12] to this broader class of problems. However, this generalization is not straightforward.

To demonstrate the main difficulties, we will delve more deeply into the solver from [PTZ12] and state the packing/covering primal dual pairs they consider:

The algorithm then proceeds to increment the weights of all ii such that ⟨P1,Ai⟩⩽(1+ε)\langle P_{1},A_{i}\rangle\leqslant(1+\varepsilon) for a user defined accuracy parameter, ε\varepsilon, by a multiplicative factor. Intuitively, these indices correspond to “directions”, AiA_{i}, along which ∑i=1NwiAi\sum_{i=1}^{N}w_{i}A_{i} is small and therefore, their weights can be increased in the dual formulation. By incorporating a standard regret analysis from [AK16] for the matrices, P1P_{1}, they show that one either outputs a primal feasible, MM, with \TrM⩽1\Tr M\leqslant 1 or a dual feasible ww with ∑i=1Nwi⩾(1−ε)\sum_{i=1}^{N}w_{i}\geqslant(1-\varepsilon).

Preliminaries

The following can be found in [Cha15, Example 13(iii)]:

Suppose AA and BB are positive semidefinite matrices such that A≽BA\succcurlyeq B, then log⁡A≽log⁡B\log A\succcurlyeq\log B.

2 Optimization

Similarly, we call ff α\alpha-strongly concave with respect to ∥⋅∥□\|\cdot\|_{\square} if

A key property of von Neumann entropy we use is:

vNE\mathsf{vNE} is 11-strongly concave with respect to the trace norm.

The following is an immediate consequence of Fact 3.5:

We emphasize that we slightly deviate from the convention that von Neumann entropy and quantum relative entropy are defined only on PSD matrices of trace exactly 11.

Algorithm for List-Decodable Mean Estimation

If δ=0\delta=0 we would compute cost exactly. This is computationally expensive so we take δ\delta to be 0.010.01. For ease of reading, one can first set δ=0\delta=0 with the understanding that the algorithmic lemmas succeed for small δ\delta.

For a dataset X={x1,…,xN}X=\{x_{1},\dots,x_{N}\}, an inlier set I⊆[N]I\subseteq[N] with ∣I∣=αN|I|=\alpha N, budgets b1,…,bN∈[0,2αN]b_{1},\dots,b_{N}\in\left[0,\frac{2}{\alpha N}\right], we say that (μ^,w^)(\hat{\mu},\hat{w}) is a sanitizing tuple for (X,I,b)(X,I,b) if the it satisfies:

If ∥μ^−μ∥⩾2⋅103σα\lVert\hat{\mu}-\mu\rVert\geqslant 2\cdot 10^{3}\frac{\sigma}{\sqrt{\alpha}}, then ∑i∈Iw^i⩽α4\sum_{i\in I}\hat{w}_{i}\leqslant\frac{\alpha}{4}.

For all ii: 0⩽w^i⩽bi0\leqslant\hat{w}_{i}\leqslant b_{i}, ∥w^∥1⩾0.5\|\hat{w}\|_{1}\geqslant 0.5.

Recall that when the algorithm terminates θ(t)⩽σ2\theta^{(t)}\leqslant\sigma^{2} or θ(t+1)⩾0.5⋅θ(t)\theta^{(t+1)}\geqslant 0.5\cdot\theta^{(t)}. We prove that (μ^,w^)(\hat{\mu},\hat{w}) is a sanitizing tuple when θ(t)⩽σ2\theta^{(t)}\leqslant\sigma^{2} in Lemma A.1, and when θ(t+1)⩾0.5⋅θ(t)\theta^{(t+1)}\geqslant 0.5\cdot\theta^{(t)} in Lemma 4.6. ∎

Let X={x1,...,xN}X=\{x_{1},...,x_{N}\} be a dataset with an inlier set II of size ∣I∣=αN|I|=\alpha N satisfying CovI(x)⪯σ2ICov_{I}(x)\preceq\sigma^{2}I. Let μ=∑i∈Ixi\mu=\sum_{i\in I}x_{i}. OutputList(X,α)OutputList(X,\alpha) returns a list L\mathcal{L} of length O(1α)O(\frac{1}{\alpha}) such that there exists μ^∗∈L\hat{\mu}^{*}\in\mathcal{L} satisfying ∥μ^∗−μ∥⩽rσα\lVert\hat{\mu}^{*}-\mu\rVert\leqslant r\frac{\sigma}{\sqrt{\alpha}} with high probability 1−1d101-\frac{1}{d^{10}}

The proof of the corollary is elementary and similar to the proof of correctness for the inefficient algorithm. For example, see Appendix A.

A brute force search through VV is inefficient. Instead, we project the dataset X(t)X^{(t)} onto VV. We evaluate the cost at p=O(log⁡(d)log⁡(11−α))p=O(\frac{\log(d)}{\log(\frac{1}{1-\alpha})}) randomly chosen projected datapoints. We choose ν(t+1)\nu^{(t+1)} to be the projected datapoint with the smallest cost. Although the projected datapoints are by no means an exhaustive search of the subspace VV, if this procedure fails to make sufficient progress i.e θ(t+1)⩾0.5θ(t)\theta^{(t+1)}\geqslant 0.5\theta^{(t)} then a corresponding procedure uses the dual weights to output a sanitizing tuple.

The weight removal procedure is as follows. We sort the vectors {ΠV(xi−ν(T))}i=1N\{\Pi_{V}(x_{i}-\nu^{(T)})\}_{i=1}^{N} by euclidean norm. This sorting determines an ordering of the weights wˉ1(T),...,wˉN(T)\bar{w}^{(T)}_{1},...,\bar{w}^{(T)}_{N}. We pass through the sorted list, and find the smallest m∈[N]m\in[N] such that ∑i=1mwˉi(T)⩾0.5\sum_{i=1}^{m}\bar{w}^{(T)}_{i}\geqslant 0.5. We set w^i=wˉi(T)\hat{w}_{i}=\bar{w}^{(T)}_{i} for i=1,...,mi=1,...,m and w^i=0\hat{w}_{i}=0 for i>mi>m. Finally we output (ν(T),w^)(\nu^{(T)},\hat{w}) as the sanitizing tuple.

DescendCost(X,b) is given dataset XX and weight upper bound bb satisfying the assumptions of Theorem 4.4. If at iteration tt, θ(t+1)⩾0.5θ(t)\theta^{(t+1)}\geqslant 0.5\theta^{(t)} then DescendCost(X,b)DescendCost(X,b) outputs (μ^,w^)(\hat{\mu},\hat{w}) satisfying ∥μ^−μ∥⩽r1α\|\hat{\mu}-\mu\|\leqslant r\frac{1}{\sqrt{\alpha}} or ∑i∈Iw^i⩽α4\sum_{i\in I}\hat{w}_{i}\leqslant\frac{\alpha}{4}.

Proving Lemma 4.6 is the primary objective of the remainder of this section. We will make use of the following two lemmas and defer their proofs to the appendix. The first Lemma 4.7 states that if (ν(t),wˉ(t))(\nu^{(t)},\bar{w}^{(t)}) is not a sanitizing tuple then the descent procedure succeeds.

Let (X,b)(X,b) satisfying the assumptions of Theorem 4.4. If at iteration tt of DescendCost(X,b), the tuple (ν(t),wˉ(t))(\nu^{(t)},\bar{w}^{(t)}) is not a sanitizing tuple, then θ(t+1)⩽0.04∥μ−ν(t)∥2+ckσ2\theta^{(t+1)}\leqslant 0.04\lVert\mu-\nu^{(t)}\rVert^{2}+ck\sigma^{2} for c=105c=10^{5} with high probability 1−1d101-\frac{1}{d^{10}}.

We will also need Lemma 4.8 which states that if the cost is a constant factor smaller than ∥μ−ν(t)∥\lVert\mu-\nu^{(t)}\rVert then the weight removal procedure outputs a sanitizing tuple.

Using the above two lemmas we prove Lemma 4.6.

(Proof of Lemma 4.6) Firstly, we observe that at any given iteration, if ∥ν(t)−μ∥⩽rσα\lVert\nu^{(t)}-\mu\rVert\leqslant r\frac{\sigma}{\sqrt{\alpha}} then either the descent makes progress or the weight removal procedure outputs a sanitizing tuple. Likewise, if ∑i∈Iwˉi(t)⩽α4\sum_{i\in I}\bar{w}^{(t)}_{i}\leqslant\frac{\alpha}{4} then either descent makes progress or weight removal outputs a sanitizing tuple. So without loss of generality, we assume ∥ν(t)−μ∥⩾rσα\lVert\nu^{(t)}-\mu\rVert\geqslant r\frac{\sigma}{\sqrt{\alpha}} and ∑i∈Iw^i(t)⩾α4\sum_{i\in I}\hat{w}^{(t)}_{i}\geqslant\frac{\alpha}{4}.

1 Analysis I: Descending Cost

Our first step is to prove that μ\mu has a large component in VV i.e

For some fixed constant c1c_{1}. By definition of projection we have

Here, the inequality follows by dropping squared terms. Now using the inequality 2ab⩽a2c2+c2b22ab\leqslant\frac{a^{2}}{c^{2}}+c^{2}b^{2} for a=⟨φ,μ−ν⟩a=\langle\varphi,\mu-\nu\rangle, b=⟨φ,μ−xi⟩b=\langle\varphi,\mu-x_{i}\rangle, c=10c=10 we obtain

We use the fact that ∑i∈Iwi⩾∑i∈Iwˉi⩾14k\sum_{i\in I}w_{i}\geqslant\sum_{i\in I}\bar{w}_{i}\geqslant\frac{1}{4k} to lower bound the first term. And we use the fact wi⩽2(1−δ)αNw_{i}\leqslant\frac{2}{(1-\delta)\alpha N} to lower bound the second term to obtain

Consider the second term ∑i∈I1αN⟨φ,xi−μ⟩2\sum_{i\in I}\frac{1}{\alpha N}\langle\varphi,x_{i}-\mu\rangle^{2}. We can upper bound it by the fact that the inliers are covariance bounded ∑i∈I1αN⟨φ,xi−μ⟩2⩽σ2\sum_{i\in I}\frac{1}{\alpha N}\langle\varphi,x_{i}-\mu\rangle^{2}\leqslant\sigma^{2}. Plugging this bound into (7) we obtain

For a fixed constant c1c_{1}. Rearranging the LHS and RHS we upper bound

with probability greater than 1−1d101-\frac{1}{d^{10}}. Here we aim for a 1d10\frac{1}{d^{10}} failure probability so that by union bound over the O(1αlog⁡(d))O(\frac{1}{\alpha}\log(d)) iterations of the algorithm we continue to succeed with high probability. Thus we have

Where the first equality is by definition of θ(t+1)\theta^{(t+1)}, and the inequality follows by Lemma A.2. The above is then:

2 Analysis II: Removing Weights

In this section we prove Lemma 4.8 See 4.8

We need to prove two facts. Firstly, Prw[∥ΠV(xi−ν)∥2<0.8∥ν−μ∥2]⩾0.5\mathbf{Pr}_{w}[\lVert\Pi_{V}(x_{i}-\nu)\rVert^{2}<0.8\lVert\nu-\mu\rVert^{2}]\geqslant 0.5, and secondly Pri∈I[∥ΠV(xi−ν)∥2<0.8∥ν−μ∥2]⩽α4\mathbf{Pr}_{i\in I}[\lVert\Pi_{V}(x_{i}-\nu)\rVert^{2}<0.8\lVert\nu-\mu\rVert^{2}]\leqslant\frac{\alpha}{4}. Taken together, this implies that a sort of the list {∥ΠV(xi−ν)∥}i=1N\{\lVert\Pi_{V}(x_{i}-\nu)\rVert\}_{i=1}^{N} succeeds in isolating at least 0.50.5 weight where ∑i∈Iw^i⩽α4\sum_{i\in I}\hat{w}_{i}\leqslant\frac{\alpha}{4}. We use Markov’s inequality to prove the first statement.

Now we prove the second statement Pri∈I[∥ΠV(xi−ν)∥2<0.8∥ν−μ∥2]⩽α4\mathbf{Pr}_{i\in I}[\lVert\Pi_{V}(x_{i}-\nu)\rVert^{2}<0.8\lVert\nu-\mu\rVert^{2}]\leqslant\frac{\alpha}{4}. Let x∈Ix\in I be an inlier. Let ρ:=ΠV(μ−ν)∥ΠV(μ−ν)∥\rho:=\frac{\Pi_{V}(\mu-\nu)}{\lVert\Pi_{V}(\mu-\nu)\rVert}. We have that ∥ΠV(x−ν)∥2\|\Pi_{V}(x-\nu)\|^{2} is lower bounded by

Where the first inequality follows because ρ\rho is a unit vector in VV. The second inequality follows by the fact that 2ab⩽a2c2+c2b22ab\leqslant\frac{a^{2}}{c^{2}}+c^{2}b^{2} for a=⟨μ−ν,ρ⟩a=\langle\mu-\nu,\rho\rangle, b=⟨μ−x,ρ⟩b=\langle\mu-x,\rho\rangle, c=10c=10. We further lower bound by

Plugging this lower bound for ∥ΠV(x−ν)∥2\|\Pi_{V}(x-\nu)\|^{2} into Pri∈I[∥ΠV(xi−ν)∥2<0.8∥ν−μ∥2]\mathbf{Pr}_{i\in I}[\lVert\Pi_{V}(x_{i}-\nu)\rVert^{2}<0.8\lVert\nu-\mu\rVert^{2}] we obtain

Where the second inequality follows from applying the bounded covariance of the inliers. The last inequality follows from the assumption that ∥ν−μ∥⩾rσα\lVert\nu-\mu\rVert\geqslant r\frac{\sigma}{\sqrt{\alpha}} for r=2⋅103r=2\cdot 10^{3}. ∎

Fantope optimization in nearly linear time

In this section, we will design a solver for solving the following class of generalized packing/covering SDPs that we will need to solve in the course of our algorithm.

Find either a dual feasible, ww, with ∑i=1nwi⩾(1−ϵ)\sum_{i=1}^{n}w_{i}\geqslant(1-\epsilon) or a dual feasible (M,W)(M,W), satisfying \TrM+\TrW⩽1+ϵ\Tr M+\Tr W\leqslant 1+\epsilon.

In this subsection, we will establish a regret guarantee useful for designing fast solvers for our class of SDPs. First, let S\mathcal{S} defined as:

The game takes place over TT rounds where for each round t∈1,…,Tt\in 1,\dots,T:

The player plays two psd matrices (Mt,Wt)∈S(M_{t},W_{t})\in\mathcal{S}.

The environment then reveals two gain matrices (Ft,Gt)(F_{t},G_{t}) with ∥Ft∥⩽1\lVert F_{t}\rVert\leqslant 1 and ∥Gt∥⩽1\lVert G_{t}\rVert\leqslant 1 and the player achieves a gain of ⟨Ft,Mt⟩+⟨Gt,Wt⟩\langle F_{t},M_{t}\rangle+\langle G_{t},W_{t}\rangle.

The goal of the player is to minimize their total regret:

We will first provide a regret guarantee for the following strategy where in each iteration (Mt,Wt)(M_{t},W_{t}) are defined for η>0\eta>0 by:

Before we move on to the regret bound, we will require 3.5:

The function f(M,W)=vNE(M)+vNE(W)f(M,W)=\mathsf{vNE}(M)+\mathsf{vNE}(W) is 11-strongly concave with respect to the following norm:

We will now state a standard regret guarantee (See, for example, Theorem 5.2 from [Haz19]) for the update rule defined in Equation 13:

For a sequence of gain matrices, {(Ft,Gt)}t=1T\{(F_{t},G_{t})\}_{t=1}^{T} satisfying ∥Ft∥⩽1\lVert F_{t}\rVert\leqslant 1 and ∥Gt∥⩽1\lVert G_{t}\rVert\leqslant 1, the update rule defined in Equation 13 satisfies:

The lemma follows immediately from Theorem 5.2 in [Haz19]. ∎

We will use the following corollary in the analysis of our solver:

Let {(Ft,Gt)}t=1T\{(F_{t},G_{t})\}_{t=1}^{T} be any sequence of gain matrices satisfying ∥Ft∥⩽1\lVert F_{t}\rVert\leqslant 1 and ∥Gt∥⩽1\lVert G_{t}\rVert\leqslant 1 and let (Mt,Wt)(M_{t},W_{t}) be defined as in Equation 13 and suppose that (M(t),W(t))(M^{(t)}{},W^{(t)}{}) satisfy:

The corollary follows from the fact that for each 1⩽t⩽T1\leqslant t\leqslant T, we have:

where the first inequality follows from Matrix-Hölders inequality. ∎

2 Analysis of the Solver

In this subsection, we formally introduce our solver and incorporate the regret analysis from the previous subsection into its analysis. We first introduce the following notation:

Our algorithm and its subsequent analysis follow along the lines of [PTZ12]:

For the rest of the proof, we will assume that the algorithm terminates at the end of the TthT^{th} loop for some T⩽RT\leqslant R. For ease of exposition, we now define the following variables:

Note that M(t)M^{(t)}{} and W(t)W^{(t)}{} are meant to be approximations to M~(t)\widetilde{M}^{(t)}{} and W~(t)\widetilde{W}^{(t)}{} respectively and the correctness of these projections is guaranteed by Theorem 7.20. Also, observe that ω(t)=ε†∑i=1t−1F(i)\omega^{(t)}{}=\varepsilon^{\dagger}\sum_{i=1}^{t-1}F^{(i)} and θ(t)=ε†∑i=1t−1G(i)\theta^{(t)}{}=\varepsilon^{\dagger}\sum_{i=1}^{t-1}G^{(i)}. In the next few lemmas proving the correctness of Algorithm 3, we will simplify presentation by making the following assumptions. We will prove in the main theorem of the section that these assumptions hold with the desired probability.

We assume the following about the running of Algorithm 3 for all t∈[T]t\in[T]:

The projections (M(t),W(t))(M^{(t)}{},W^{(t)}{}) satisfy ∥W(t)∥⩽\Tr(W(t))/k\lVert W^{(t)}{}\rVert\leqslant\Tr(W^{(t)}{})/k and satisfy:

The estimates, y(t)y^{(t)}{} and z(t)z^{(t)}{} satisfy for all i∈[n]i\in[n]:

We also make the following non-probabilistic assumptions about the problem:

We assume that the problem instance satisfies:

The following three claims are analogues of Claims 3.3-3.5 from [PTZ12]:

Assume 5.5 and 5.6. Then, for t=1,…,Tt=1,\dots,T:

We have from the definition of S(t)S^{(t)} and 5.5:

Assume 5.5 and 5.6. Then, for t=0,…,Tt=0,\dots,T:

It suffices to prove the claim for t=Tt=T as for t<Tt<T, the claim is true from the fact that the while loop continued till the next iteration. Now, we have from the fact that ξi(t)⩽αwi(t−1)\xi^{(t)}_{i}\leqslant\alpha w^{(t-1)}_{i}:

We start with the following decomposition of ψ(t)\psi^{(t)}{}:

Under 5.5 and 5.6, we have for every t=0,…,Tt=0,\dots,T:

As in the proof of Lemma 3.2 in [PTZ12], we will prove the claim via strong induction on tt. We have from the definitions of α\alpha and ε†\varepsilon^{\dagger}:

We can now apply the results of Corollary 5.4 and the definition of S(t)S^{(t)}{} along with 5.5 to obtain:

From the previous two inequalities, we get for ψ(t)\psi^{(t)}{} from Equation 14:

Finally, we get for ϕ(t)\phi^{(t)}{} from Equation 15:

Under 5.5 and 5.6, Algorithm 3 terminates with ∥w(R)∥1⩽K\lVert w^{(R)}\rVert_{1}\leqslant K, we have for all i∈[n]i\in[n]:

Suppose for the sake of contradiction, that there exists i∈[n]i\in[n] such that:

Now, let UU denote the steps in algorithm where the dual variable, wi(t)w^{(t)}_{i} was incremented. From 5.5, we get that wi(t)w^{(t)}_{i} is at least incremented for every iteration in the set YY defined as:

By Markov’s inequality and the definition of ε†\varepsilon^{\dagger}, we must have ∣Y∣⩾ε2(1+ε)⋅R\lvert Y\rvert\geqslant\frac{\varepsilon}{2(1+\varepsilon)}\cdot R. We must have as wi(t)w^{(t)}_{i} is incremented by a factor of (1+α)(1+\alpha) each time:

which is a contradiction. This concludes the proof of the lemma. ∎

Assume 5.6. Then, 5.5 holds in the running of Algorithm 3 with probability at least 1−δ1-\delta. Furthermore, the total runtime of Algorithm 3 is at most:

where tCit_{C_{i}} and tDit_{D_{i}} denote the time taken to compute one matrix vector multiplication with CiC_{i} and DiD_{i} respectively, tC=∑i=1ntCit_{C}=\sum_{i=1}^{n}t_{C_{i}} and tD=∑i=1ntDit_{D}=\sum_{i=1}^{n}t_{D_{i}}.

We will prove that 5.5 hold by induction on the number of steps of the Algorithm. Our induction hypothesis will be that 5.5 hold with probability δ†(3t)\delta^{\dagger}(3t) up to iteration tt. The hypothesis is trivially true at t=0t=0. Now, we will inductively prove that the assumptions hold true when t=q+1t=q+1 given that they hold at t=1…qt=1\dots q. We start by computing a bound on the matrices ω(t)\omega^{(t)}{} and θ(t)\theta^{(t)}{}. We have by the application of Lemma 5.10 up to iteration qq that:

Therefore, the upper bounds computed on ∥ω(t)∥\lVert\omega^{(t)}\rVert and ∥ω(t)∥\lVert\omega^{(t)}\rVert remain valid even in iteration q+1q+1. Therefore, conditioned on 5.5 holding true for iteration qq, the conclusions of Theorems 7.20 and B.4 hold for Algorithms FantopeProjection\mathsf{FantopeProjection} and InnerProductEstimation\mathsf{InnerProductEstimation} for iteration q+1q+1 with probability at least 1−3δ†1-3\delta^{\dagger}. Hence, 5.6 hold for iteration q+1q+1 with probability at least (1−3δ†)(1−3δ†q)⩾1−(3δ†)(q+1)(1-3\delta^{\dagger})(1-3\delta^{\dagger}q)\geqslant 1-(3\delta^{\dagger})(q+1).

The runtime guarantees follow from the runtime guarantees in Lemmas B.4 and 7.20 along with the fact that 2Kk2Kk is O(poly(1ε,log⁡(l+m+n),k))O(\text{\rm poly}(\frac{1}{\varepsilon},\log(l+m+n),k)) and matrix-vector multiplies with ω(t)\omega^{(t)}{} and θ(t)\theta^{(t)}{} can be implemented in time O(tC)O(t_{C}) and O(tD)O(t_{D}) respectively. And furthermore, a matrix vector product for all the CiC_{i} and PV(t)⊥Di\mathcal{P}_{V^{(t)}{}}^{\perp}D_{i} required by Lemma B.4 can be implemented in time O(tC)O(t_{C}) and O(mk+tD)O(mk+t_{D}) respectively as for any vector vv, computing v⊤PV(t)⊥v^{\top}\mathcal{P}_{V^{(t)}{}}^{\perp} takes O(mk)O(mk) time and subsequently, the resultant is multiplied with each of the DiD_{i}. ∎

We now conclude with the main theorem of the section.

There exists an Algorithm, PackingCoveringDecision\mathsf{PackingCoveringDecision}, which when given an instance of 5.1, with Ai=CiCi⊤A_{i}=C_{i}C_{i}^{\top}, Bi=DiDi⊤B_{i}=D_{i}D_{i}^{\top}, error tolerance ε⩾1n2\varepsilon\geqslant\frac{1}{n^{2}} and failure probability δ\delta, runs in time:

where tCit_{C_{i}} and tDit_{D_{i}} are the time taken to perform a matrix-vector product with CiC_{i} and DiD_{i} respectively and tC=∑i=1ntCit_{C}=\sum_{i=1}^{n}t_{C_{i}} and tD=∑i=1ntDit_{D}=\sum_{i=1}^{n}t_{D_{i}}, and outputs a correct answer to 5.1 with probability at least 1−δ1-\delta.

We first discard AiA_{i} and BiB_{i} for those indices ii satisfying,

We will now run Algorithm 3 instantiated with error parameter set to ε/20\varepsilon/20 and failure probability δ\delta. We first quickly address the case where T=0T=0. In this case, it must be that ∥w(0)∥1>20(1+log⁡(n+m+l))ε\lVert w^{(0)}\rVert_{1}>\frac{20(1+\log(n+m+l))}{\varepsilon}. In this case, w∗w^{*} returned by the algorithm satisfies by definition ∑i=1nwi⩾(1−ε/2)\sum_{i=1}^{n}w_{i}\geqslant(1-\varepsilon/2) and furthermore, by 5.7, is a valid dual solution. In this case, we can simply output w^=w∗\hat{w}=w^{*} as a valid answer to 5.1.

Now, after discarding the above two cases, we have that 5.6 hold for the input passed to Algorithm 3. We have from Lemma 5.12 that Algorithm 3 runs in time:

and that 5.5 hold in the running of Algorithm 3 with probability at least 1−δ1-\delta. Conditioned on this event, we consider two possible cases:

The algorithm returns a dual solution, w∗w^{\ast}.

The algorithm returns a primal solution, (M∗,W∗)(M^{\ast},W^{\ast}).

In the first case, we have by Lemma 5.10 and the definition of w∗w^{\ast} that w∗w^{\ast} is a feasible dual solution and furthermore, that ∑i=1nw∗⩾1−ε/2\sum_{i=1}^{n}w^{\ast}\geqslant 1-\varepsilon/2 from our setting of the arguments to Algorithm 3. In this case, we simply define w^=w∗\hat{w}=w^{\ast} for indices that are included in the input to Algorithm 3 and 00 for the discarded indices. Clearly, w^\hat{w} is feasible dual solution to the original ε\varepsilon-decision problem.

In the second case, we construct a new primal solution, (M^,W^)=(M∗+I/(n+l+m)5,W∗/(n+l+m)5)(\widehat{M},\widehat{W})=(M^{*}+I/(n+l+m)^{5},W^{*}/(n+l+m)^{5}). Note that for our bounds on ε\varepsilon and nn, the trace of (M^,W^)(\widehat{M},\widehat{W}) from 5.5 is at most:

and furthermore, from Lemma 5.11, (M^,W^)(\widehat{M},\widehat{W}) satisfies all the primal constraints for the indices passed to Algorithm 3 and finally for any discarded index, ii, we have:

Furthermore, from 5.5 since W∗W^{*} satisfied ∥W∗∥⩽\TrW∗/k\lVert W^{*}\rVert\leqslant\Tr W^{*}/k, we have

Therefore, (M^,W^)(\hat{M},\hat{W}) is a valid primal solution to the original ε\varepsilon-decision problem. Now, the run time guarantees follow from the fact that the run-time is dominated by the running of Algorithm 3 and the probabilistic guarantees follow from the fact that Algorithm 3 runs correctly with probability at least 1−δ1-\delta as established previously. ∎

Power Method Analysis

Thus, we analyze the left hand side of the above expression. A short calculation reveals that

So far we have not used the fact that ϕ~1\widetilde{\phi}_{1} is the output of Algorithm 5. In particular, our progress so far which is recorded in Eq. 17 holds true for arbitrary ϕ~1\widetilde{\phi}_{1}. We now discuss and prove the relevant properties of ϕ~1\widetilde{\phi}_{1} we use for showing Lemma 6.2 (more specifically, for showing Section 6).

Recall that ϕ1,…,ϕd\phi_{1},\dots,\phi_{d} is the basis of eigenvectors of AA.

⟨g,ϕ1⟩\langle\bm{g},\phi_{1}\rangle is distributed as a scalar standard Gaussian random variable and hence

The following can be found in [Tao, Theorem 2.1.12]:

From Algorithm 4 ϕ~1\widetilde{\phi}_{1} is equal to Atg∥Atg∥\frac{A^{t}g}{\|A^{t}g\|} for t=Θ(log⁡d+log⁡1δ+log⁡1εε)t=\Theta\left(\frac{\log d+\log\frac{1}{\delta}+\log\frac{1}{\varepsilon}}{\varepsilon}\right). Additionally, from Proposition 6.4, Lemma 6.5 gg is a δ\delta-tempered vector and

∥Π[0,(1−ε)λ1]ϕ~1∥⩽ε\|\Pi_{[0,(1-\varepsilon)\lambda_{1}]}\widetilde{\phi}_{1}\|\leqslant\varepsilon.

We start by expressing gg in the basis {ϕ1,…,ϕd}\{\phi_{1},\dots,\phi_{d}\} as

Since t=Llog⁡d+log⁡1δ+log⁡1εεt=L\frac{\log d+\log\frac{1}{\delta}+\log\frac{1}{\varepsilon}}{\varepsilon}, we can choose constant LL large enough so that the above is bounded by ε2\varepsilon^{2}. ∎

Let Sε={i:λi⩾(1−ε)λ1}S_{\varepsilon}=\{i:\lambda_{i}\geqslant(1-\varepsilon)\lambda_{1}\} and T={i:λi>0}T=\{i:\lambda_{i}>0\}. We now establish the following result:

First fix one particular i∈T∖Sεi\in T\setminus S_{\varepsilon} and a in the proof of Proposition 6.6:

where the first inequality follows from the fact that ∣ci∣⩽∣λitg^iλ1tg^1∣\lvert c_{i}\rvert\leqslant\left\lvert\frac{\lambda_{i}^{t}\hat{g}_{i}}{\lambda_{1}^{t}\hat{g}_{1}}\right\rvert, the second inequality follows from the assumption that g^\hat{g} is gg-tempered and has a bounded norm and the final inequality from our definition of tt. By summing up over all the terms, the statement of the proposition follows. ∎

(1−2ε)λ1⩽ϕ~1⊤Aϕ~1⩽λ1(1-2\varepsilon)\lambda_{1}\leqslant\widetilde{\phi}_{1}^{\top}A\widetilde{\phi}_{1}\leqslant\lambda_{1}.

The upper bound follows from λ1\lambda_{1} being the maximum eigenvalue of AA. As a consequence of Proposition 6.6 and the fact that ∥ϕ~1∥=1\|\widetilde{\phi}_{1}\|=1,

The same proof as Proposition 6.8 also shows that:

2 Wrapup and proof of Theorem 6.1

In this section we will first prove Lemma 6.2 and then prove Theorem 6.1.

As in Proposition 6.7, we will define the sets Sε≔{i:λi⩾(1−ε)λ1}S_{\varepsilon}\coloneqq\{i:\lambda_{i}\geqslant(1-\varepsilon)\lambda_{1}\} and T={i:λi>0}T=\{i:\lambda_{i}>0\}. Recall that it suffices to prove:

Note that we may write ϕ~1=∑i∈Tciϕi\widetilde{\phi}_{1}=\sum_{i\in T}c_{i}\phi_{i} as we run at least one iteration of the power method which ensures that ϕ~1\widetilde{\phi}_{1} is in the row/column space of AA. Therefore, we can assume that the sums in Eq. 17 only go over the elements in TT. Using this as our starting point, we have:

We start by bounding the first term in Eq. 18:

where the first inequality follows from Proposition 6.8 and the definition of the set SεS_{\varepsilon}, the second inequality follows from Cauchy-Schwarz, the third follows again from the definition of the set SεS_{\varepsilon} and the final inequality from the fact that ∑ici2=1\sum_{i}c_{i}^{2}=1.

where the second inequality follows from Cauchy-Schwarz and the final inequality follows from the definition of SεS_{\varepsilon} and Proposition 6.7.

and the proof proceeds as before. For the final term, we have from Cauchy-Schwarz and Proposition 6.7:

Putting the bounds on the four terms on Eq. 18, we get the desired result. ∎

to obtain ϕ~m\widetilde{\phi}_{m}. Let us define:

since ϕ~m\widetilde{\phi}_{m} is orthogonal to the space spanned by ϕ~1,…,ϕ~m−1\widetilde{\phi}_{1},\dots,\widetilde{\phi}_{m-1}, and further note that

to Section 6.2 along with the definitions of A~\widetilde{A} and FF gives us

Hence our induction is complete and our goal statement is proved. ∎

Fast Projection on Fantopes

In this section we define S\mathcal{S} as follows

We will be concerned with solving the following optimization problem:

In this subsection, we will prove that Algorithm 6 correctly computes the optimizer to (20). To do this, we will first analyze the following simpler problem:

Henceforth, we use p(G)p(G) to denote W∗W^{*}.

We first prove that the optimizer, W∗W^{*}, of (21) has the same eigenvectors as that of GG.

Given G≽0G\succcurlyeq 0, the optimizer, W∗W^{*}, of (21) has the same eigenvectors as GG.

Let σ1⩾⋯⩾σm⩾0\sigma_{1}\geqslant\dots\geqslant\sigma_{m}\geqslant 0 and λ1⩾…λm⩾0\lambda_{1}\geqslant\dots\lambda_{m}\geqslant 0 denote the eigenvalues of W∗W^{*} and GG respectively. Now, we have the von Neumann’s trace inequality:

with equality when the eigenvectors of W∗W^{*} corresponding to the eigenvalue σi\sigma_{i} coincide with the eigenvectors of GG for the eigenvalue λi\lambda_{i}. Therefore, the optimizer W∗W^{*} must share the same set of eigenvectors as GG. ∎

Given, G≽0G\succcurlyeq 0 and let H=exp⁡GH=\exp G with eigenvalue decomposition H=∑i=1mλiuiui⊤H=\sum_{i=1}^{m}\lambda_{i}u_{i}u_{i}^{\top}. Let ν∗\nu^{*} be defined as follows:

Then, the optimizer, W∗W^{*}, of (21) is given by:

From Lemma 7.2, we know that the eigenvectors for W∗W^{*} and GG and hence, HH, coincide. Let σ1∗,…,σm∗\sigma_{1}^{*},\dots,\sigma_{m}^{*} denote the eigenvalues of W∗W^{*} corresponding to the eigenvectors u1,…,umu_{1},\dots,u_{m}. Then, we see from (21) that:

Since, the above optimization problem is convex, we compute its Lagrangian (Note that we must set αi⩾0\alpha_{i}\geqslant 0):

Now, picking β′<−max⁡i∈[m]∣log⁡λi∣\beta^{\prime}<-\max_{i\in[m]}\lvert\log\lambda_{i}\rvert. Note that log⁡λi\log\lambda_{i} are the eigenvalues of GG and hence β\beta is finite. We now have:

by noting that −xlog⁡x-x\log x is maximized at x=1/ex=1/e. Note that the above conclusion holds true for α\alpha satisfying max⁡iαi⩽−max⁡i∈[m]∣log⁡λi∣−β′\max_{i}\alpha_{i}\leqslant-\max_{i\in[m]}\lvert\log\lambda_{i}\rvert-\beta^{\prime}. Therefore, Slaters’ condition holds for both the primal problem, Prog, and its dual. Furthermore, the optimal value of Prog is bounded as both Prog and its dual have a feasible point with finite objective value. Therefore, strong duality holds for Prog and its dual and their optimal value is attained. Let {σi∗}\{\sigma_{i}^{*}\} and ({αi∗⩾0},β∗)(\{\alpha_{i}^{*}\geqslant 0\},\beta^{*}) denote the primal and dual optimal points respectively. Note that by a simple exchange argument σi∗≠0\sigma^{*}_{i}\neq 0. Therefore, the KKT conditions apply to Prog and we get:

From the condition of primal feasibility, we get that eβ∗=(∑i=1me−αi∗λi)−1e^{\beta^{*}}=(\sum_{i=1}^{m}e^{-\alpha^{*}_{i}}\lambda_{i})^{-1}. Also, note that we get from complementary slackness that αi∗>0\alpha^{*}_{i}>0 implies that σi∗=1/k\sigma^{*}_{i}=1/k. Additionally, from complementary slackness, we obtain that σi∗⩾σj∗\sigma^{*}_{i}\geqslant\sigma^{*}_{j} for i⩾ji\geqslant j.

Let l=#{i:αi∗>0}l=\#\{i:\alpha^{*}_{i}>0\}. We first tackle the case where l=0l=0. In this case, the optimizer is simply W∗=H/\Tr(H)W^{*}=H/\Tr(H) and the statement of the lemma is true.

Now assume that l>0l>0. Let us now consider the function, ff, defined as:

When λm>0\lambda_{m}>0 which holds in this case, f(ν)f(\nu) is a strictly increasing, continuous function of ν\nu in the interval [λm,∞)[\lambda_{m},\infty) and its value increases from 1/m1/m to ∞\infty. For i,j∈[l]i,j\in[l], we have σi∗=σj∗=1/k\sigma^{*}_{i}=\sigma^{*}_{j}=1/k by complementary slackness and therefore e−αi∗λi=e−αj∗λj=ν^e^{-\alpha^{*}_{i}}\lambda_{i}=e^{-\alpha^{*}_{j}}\lambda_{j}=\widehat{\nu}. For i∉[l]i\notin[l], we have σi∗=eβ∗min⁡(λi,ν^)\sigma^{*}_{i}=e^{\beta^{*}}\min(\lambda_{i},\widehat{\nu}) as we have σi∗=eβ∗λi⩽eβ∗ν^=1/k\sigma^{*}_{i}=e^{\beta^{*}}\lambda_{i}\leqslant e^{\beta^{*}}\widehat{\nu}=1/k. From the previous two statements, we have σi∗=eβ∗min⁡(ν^,λi)\sigma^{*}_{i}=e^{\beta^{*}}\min(\widehat{\nu},\lambda_{i}) for all i∈[m]i\in[m]. Finally, we have f(ν^)=1/kf(\widehat{\nu})=1/k from complementary slackness which implies that ν^=ν∗\widehat{\nu}=\nu^{*} as ff is strictly increasing and continuous. Which implies that the optimal value of σi∗\sigma^{*}_{i} is given by σi∗=min⁡(λi,ν∗)/(∑j=1mmin⁡(λj,ν∗))\sigma^{*}_{i}=\min(\lambda_{i},\nu^{*})/(\sum_{j=1}^{m}\min(\lambda_{j},\nu^{*})), thus proving the lemma.

Finally, we will now show how to use solutions to (21) to obtain solutions to the following:

The result is detailed in the following lemma:

Let F,G≽0F,G\succcurlyeq 0 and let Q=exp⁡(F)Q=\exp(F), Z1=\Tr(exp⁡(F))Z_{1}=\Tr(\exp(F)), H=exp⁡(G)H=\exp(G) with eigenvalue decomposition H=∑i=1mλiuiui⊤H=\sum_{i=1}^{m}\lambda_{i}u_{i}u_{i}^{\top} and ν∗\nu^{*} and Z2Z_{2} be defined as:

Then, the optimizers, (M∗,W∗)(M^{*},W^{*}), of Equation (22) are given by:

where γ=log⁡Z1\gamma=\log Z_{1}, ζ=log⁡(Z2)+k−1∑i=1k(log⁡(λi)−log⁡min⁡(λi,ν∗))\zeta=\log(Z_{2})+k^{-1}\sum_{i=1}^{k}(\log(\lambda_{i})-\log\min(\lambda_{i},\nu^{*})) and W^\widehat{W} and M^\widehat{M} are defined as:

Let (M∗,W∗)(M^{*},W^{*}) denote the solutions of (22) and let α=\TrM∗\alpha=\Tr{M^{*}}. Then, we must have:

Now consider the case where α>0\alpha>0. For the first equation, we have:

When α=0\alpha=0, the conclusion of the previous manipulation is trivially true. By a similar manipulation, from Lemma 7.3 we have W∗=(1−α)W^W^{*}=(1-\alpha)\widehat{W}. We now have:

We now proceed for a similar computation for W^\widehat{W}:

where the second-to-last equality follows because at most kk of the λi\lambda_{i} are greater than ν∗\nu^{*} and the final inequality follows from the fact that λi⩾ν∗\lambda_{i}\geqslant\nu^{*} implies that min⁡(λi,ν∗)=ν∗/Z2=1/k\min(\lambda_{i},\nu^{*})=\nu^{*}/Z_{2}=1/k. By putting the previous two results together, we get that:

whose optimal value is given by α=eγ/(eγ+eζ)\alpha=e^{\gamma}/(e^{\gamma}+e^{\zeta}) which concludes the proof the lemma. ∎

It is unclear how to exactly solve the optimization problem (20) fast, so we give an algorithm that outputs a solution close to the exact optimizer in trace norm. As a first step, we give an algorithm to approximately solve the optimization problem (21). In the algorithm below, not all matrices are explicitly computed and we obtain an implicit representation of W∗W^{*} rather than an explicit m×mm\times m matrix. For simplicity of exposition, we defer the details of this implicit representation to later subsections. In the algorithm below, when we say \Trε(H)\Tr_{\varepsilon}(H), we mean running the trace estimation algorithm from Corollary B.5 from HH, which with high probability produces a (1±ε)(1\pm\varepsilon)-approximation of the trace.

Our first goal is to show that the output of Algorithm 7 on input GG is close in trace norm to p(G)p(G) where pp is as defined in Remark 7.1. Concretely, we prove:

Let GG be a positive semidefinite matrix, and let W∗W^{*} be the output of Algorithm 7 on input GG. Then:

The full statement of the above, which states some more technical properties of W∗W^{*} can be found in Theorem 7.15.

2 Closeness in trace norm I: projections of spectrally similar matrices

In this section, let AA and A~\widetilde{A} be positive semidefinite matrices such that

for some 0<ε<1/20<\varepsilon<1/2. A~\widetilde{A} will be a matrix obtained via the power iteration based PCA algorithm

∥log⁡A~−log⁡A∥⩽4ε\|\log\widetilde{A}-\log A\|\leqslant 4\varepsilon.

where the last inequality follows from ε<1/2\varepsilon<1/2. ∎

For the rest of this section, let M≔arg⁡min⁡X≽0\Tr(X)=1∥X∥⩽1/kQRE(X,A)\displaystyle M\coloneqq\arg\min_{\begin{subarray}{c}X\succcurlyeq 0\\ \Tr(X)=1\\ \|X\|\leqslant 1/k\end{subarray}}\mathsf{QRE}(X,A) and let M~≔arg⁡min⁡X≽0\Tr(X)=1∥X∥⩽1/kQRE(X,A~)\displaystyle\widetilde{M}\coloneqq\arg\min_{\begin{subarray}{c}X\succcurlyeq 0\\ \Tr(X)=1\\ \|X\|\leqslant 1/k\end{subarray}}\mathsf{QRE}(X,\widetilde{A}). In the language of Remark 7.1, M=p(log⁡A)M=p(\log A).

QRE(M~,A)⩽QRE(M,A)+8ε\mathsf{QRE}(\widetilde{M},A)\leqslant\mathsf{QRE}(M,A)+8\varepsilon.

We prove our claim with the following chain of inequalities:

∥M−M~∥∗⩽4ε\|M-\widetilde{M}\|_{*}\leqslant 4\sqrt{\varepsilon}.

Define f(X)≔QRE(X,A)f(X)\coloneqq\mathsf{QRE}(X,A). From Fact 3.7 ff is 11-strongly convex and

From Lemma 7.7, f(M~)−f(M)⩽8εf(\widetilde{M})-f(M)\leqslant 8\varepsilon and hence

3 Closeness in trace norm II: robustness to trace

In this subsection, let MM be a m×mm\times m positive definite matrix with eigenvalues λ1⩾λ2⩾⋯⩾λm>0\lambda_{1}\geqslant\lambda_{2}\geqslant\cdots\geqslant\lambda_{m}>0 and corresponding eigenvectors v1…,vmv_{1}\dots,v_{m}. Let kk be an integer less than mm, and let TT denote ∑i=k+1mλi\sum_{i=k+1}^{m}\lambda_{i}. We wish to show that all pairs in a certain set of matrices are close in trace norm. Before we describe these matrices, we will need the following technical statement.

Let f1(t)=ktf_{1}(t)=kt, let f2(t)=∑i=1mmin⁡{t,λi}f_{2}(t)=\sum_{i=1}^{m}\min\{t,\lambda_{i}\}. f1(t)=f2(t)+Δf_{1}(t)=f_{2}(t)+\Delta has a unique solution τΔ\tau_{\Delta} on [λk,∞)[\lambda_{k},\infty) for any Δ∈[−εT,εT]\Delta\in[-\varepsilon T,\varepsilon T]. Further, ∣τ0−τΔ∣⩽∣Δ∣|\tau_{0}-\tau_{\Delta}|\leqslant|\Delta|.

Define functions {gi}i=0k−1\{g_{i}\}_{i=0}^{k-1} defined on [λk,∞)[\lambda_{k},\infty) where gi(t)=it+∑j=i+1mλjg_{i}(t)=it+\sum_{j=i+1}^{m}\lambda_{j}. Observe that f2(t)f_{2}(t) is equal to min⁡i∈[0,k−1]gi(t)\min_{i\in[0,k-1]}g_{i}(t) on [λk,∞)[\lambda_{k},\infty). Thus its right-hand side derivatives must be bounded by k−1k-1. Since (i) f2(λk)−Δ>f1(λk)f_{2}(\lambda_{k})-\Delta>f_{1}(\lambda_{k}), (ii) the right-hand derivative of f1f_{1} is kk everywhere, and (iii) the right-hand derivative of f2f_{2} at any point in [λk,∞)[\lambda_{k},\infty) is at most k−1k-1, there must be a unique τΔ\tau_{\Delta} such that f1(τΔ)=f2(τΔ)f_{1}(\tau_{\Delta})=f_{2}(\tau_{\Delta}). The right-hand derivative of f1−f2f_{1}-f_{2} is at least 11 on [λk,∞)[\lambda_{k},\infty) and thus τΔ\tau_{\Delta} must be contained in [τ0−∣Δ∣,τ0+∣Δ∣][\tau_{0}-|\Delta|,\tau_{0}+|\Delta|] and thus ∣τ0−τΔ∣<∣Δ∣|\tau_{0}-\tau_{\Delta}|<|\Delta|. ∎

We now define the noisy truncation operator:

where CC must be in range [−εT,εT][-\varepsilon T,\varepsilon T] and τC\tau_{C} is as defined in the statement of Proposition 7.9.

For every C∈[−εT,εT]C\in[-\varepsilon T,\varepsilon T], ∥Ξ(M,0)−Ξ(M,C)∥∗⩽2kε\displaystyle\|\Xi(M,0)-\Xi(M,C)\|_{*}\leqslant 2k\varepsilon.

First observe that ∣τ0−τC∣⩽∣C∣⩽εT|\tau_{0}-\tau_{C}|\leqslant|C|\leqslant\varepsilon T. Since τ0⩾λk\tau_{0}\geqslant\lambda_{k}, we have f1(τ0)=f2(τ0)⩾Tf_{1}(\tau_{0})=f_{2}(\tau_{0})\geqslant T, which implies ∣τ0−τC∣⩽εf1(τ0)=εkτ0|\tau_{0}-\tau_{C}|\leqslant\varepsilon f_{1}(\tau_{0})=\varepsilon k\tau_{0}. This means τC=γτ0\tau_{C}=\gamma\tau_{0} for some γ∈1±kε\gamma\in 1\pm k\varepsilon. As a result

We observe that \Tr(Ξ(M,C))=f2(τC)f1(τC)\Tr(\Xi(M,C))=\frac{f_{2}(\tau_{C})}{f_{1}(\tau_{C})}. Since f1−f2f_{1}-f_{2} is increasing on [λk,∞)[\lambda_{k},\infty), it follows that τC⩽τ0\tau_{C}\leqslant\tau_{0} when C⩽0C\leqslant 0, and consequently f1(τC)⩽f2(τC)f_{1}(\tau_{C})\leqslant f_{2}(\tau_{C}), which means \Tr(Ξ(M,C))⩾1\Tr(\Xi(M,C))\geqslant 1.

∥Ξ(M,C)∥\|\Xi(M,C)\| is always at most 1k\frac{1}{k} by construction.

Ξ(M,0)=p(log⁡M)\Xi(M,0)=p(\log M) where pp is the function from Remark 7.1.

4 Closeness in trace norm III: wrap-up

We will use the results of Section 7.2, Section 7.3 and Section 6 to prove guarantees of the output of Algorithm 7. Given an input matrix GG, we perform a sequence of transformations described below to get a matrix p~(G)\widetilde{p}(G). Our goal is to prove that p~(G)\widetilde{p}(G) is close to p(G)p(G), where pp is as defined in Remark 7.1.

Let A0A_{0} be a matrix such that (1−ε)A0≼exp⁡(G)≼(1+ε)A0(1-\varepsilon)A_{0}\preccurlyeq\exp(G)\preccurlyeq(1+\varepsilon)A_{0}.

We perform a kk-PCA on A0A_{0} and obtain vectors v1,…,vkv_{1},\dots,v_{k} as output along with numbers λ~1,…,λ~k\widetilde{\lambda}_{1},\dots,\widetilde{\lambda}_{k} where λ~i=vi⊤A0vi\widetilde{\lambda}_{i}=v_{i}^{\top}A_{0}v_{i}.

We run a (1±ε)(1\pm\varepsilon)-approximate trace estimation algorithm on HH and obtain number T~\widetilde{T}.

We solve for tt in the following equation and call the solution τ~\widetilde{\tau}.

By a combination of Theorem 6.1 and the fact that

except with probability at most O(kδ)O(k\delta). Via Lemma 7.8, a consequence of the above is that for ε<1k2\varepsilon<\frac{1}{k^{2}}:

Now, we analyze closeness of p(log⁡A1)p(\log A_{1}) and p~(G)\widetilde{p}(G). Let T=\Tr(H)T=\Tr(H). Then (1−ε)T~=T+C(1-\varepsilon)\widetilde{T}=T+C for some CC in the range [−2εT,0][-2\varepsilon T,0]. We now recall the noisy truncation operator Ξ\Xi from Definition 7.10. By Remark 6.9 λ~1,…,λ~k\widetilde{\lambda}_{1},\dots,\widetilde{\lambda}_{k} are the top kk eigenvalues of A1A_{1} and thus p~(G)\widetilde{p}(G) is equal to the matrix (1−4kε)Ξ(A1,C)(1-4k\varepsilon)\Xi(A_{1},C). First, from Lemma 7.11:

Next, by Remark 7.12, \Tr(Ξ(A1,0))=1\Tr(\Xi(A_{1},0))=1 and thus by triangle inequality

Combining the above with (7.4) via triangle inequality gives us:

Finally, note that by Remark 7.12, \Tr(Ξ(A1,C))⩾1\Tr(\Xi(A_{1},C))\geqslant 1 and by Remark 7.13,

Multiplying the above inequality by (1−4kε)(1-4k\varepsilon) lets us conclude that:

and multiplying (25) with (1−4kε)(1-4k\varepsilon) lets us conclude

Thus, we have the following theorem about Algorithm 7.

Algorithm 7 takes in GG as input, and outputs a matrix p~(W)\widetilde{p}(W) such that except with probability O(kδ)O(k\delta) the following three conditions hold:

∥p(G)−p~(G)∥∗⩽4kε+9kε\|p(G)-\widetilde{p}(G)\|_{*}\leqslant 4\sqrt{k\varepsilon}+9k\varepsilon.

∥p~(G)∥⩽\Tr(p~(G))k\|\widetilde{p}(G)\|\leqslant\frac{\Tr(\widetilde{p}(G))}{k}.

5 Full Approximate Projection

In this section, we describe a fast algorithm to produce an approximate solution to the optimization problem (20). In particular, given F,G≽0F,G\succcurlyeq 0 let:

We say q1(F)=M∗q_{1}(F)=M^{*} and q2(G)=W∗q_{2}(G)=W^{*} and we use (q~1(F),q~2(W))(\widetilde{q}_{1}(F),\widetilde{q}_{2}(W)) to refer to the output of Algorithm 8.

Our goal is to bound the trace norm distance between q1(F)q_{1}(F) and q~1(F)\widetilde{q}_{1}(F), and between q2(F)q_{2}(F) and q~2(F)\widetilde{q}_{2}(F).

We now prove that the output (q~1(F),q~2(G))(\widetilde{q}_{1}(F),\widetilde{q}_{2}(G)) of Algorithm 8 on input FF and GG is close to (q1(F),q2(G))(q_{1}(F),q_{2}(G)) in trace norm.

∥q~1(F)−q1(F)∥∗⩽O(kε)\|\widetilde{q}_{1}(F)-q_{1}(F)\|_{*}\leqslant O(k\varepsilon).

∥q~2(G)−q2(G)∥∗⩽O(kε)\|\widetilde{q}_{2}(G)-q_{2}(G)\|_{*}\leqslant O(\sqrt{k\varepsilon}).

Algorithm 6 computes q1q_{1} and q2q_{2} exactly. We note that all trace estimates in Algorithm 8 are up to a multiplicative (1±ε)(1\pm\varepsilon) factor. All eigenvalue computations are also correct up to a multiplicative (1±4kε)(1\pm 4k\varepsilon). As a consequence of the approximation guarantees on trace and eigenvalues, and the proof of Lemma 7.11, τ~\widetilde{\tau} as computed in Algorithm 8 is within a multiplicative 1±O(kε)1\pm O(k\varepsilon) factor of τ∗\tau^{*} from Algorithm 6. Hence, ζ~\widetilde{\zeta} and γ~\widetilde{\gamma} from the output of Lemma 7.11 must be within a multiplicative 1±O(kε)1\pm O(k\varepsilon) of ζ\zeta and γ\gamma from the output of Algorithm 8.

As a consequence, ∥q~1(F)−q1(F)∥∗⩽O(kε)\|\widetilde{q}_{1}(F)-q_{1}(F)\|_{*}\leqslant O(k\varepsilon). The inequality ∥q~2(G)−q2(G)∥∗⩽O(kε)\|\widetilde{q}_{2}(G)-q_{2}(G)\|_{*}\leqslant O(\sqrt{k\varepsilon}) follows from the above discussion combined with Theorem 7.15. ∎

6 Implementation

An oracle that takes in mm-dimensional vectors vv and outputs GvGv in time tGt_{G}. Note that by Lemma B.1 we can also implement an algorithm to compute AGvA_{G}v in time O(tGλmax⁡(G)log⁡(2ε−1))O(t_{G}\lambda_{\max}(G)\log(2\varepsilon^{-1})) where AGA_{G} is some matrix satisfying:

Given the oracle corresponding to input GG and the ancillary output of Algorithm 7, it is possible to implement an oracle that takes in mm-dimensional vectors vv as queries and outputs p~(G)v\widetilde{p}(G)v in tG+O(km)t_{G}+O(km) time.

In light of Observation 7.18, we only need to analyze the runtime of producing the ancillary output; thus the runtime of Algorithm 7 is

Runtime of the PCA algorithm + Runtime of the trace estimation algorithm + Runtime of computing τ~\widetilde{\tau}.

The runtime of the PCA subroutine is O(tG(log⁡m+log⁡1/δ+log⁡1/ε)/ε)O(t_{G}(\log m+\log 1/\delta+\log 1/\varepsilon)/\varepsilon), the runtime of the trace estimation algorithm (from Corollary B.5) is O((poly(k)tG+m)log⁡(1ε)⋅log⁡m+log⁡(1/δ)ε2)O\left((\text{\rm poly}(k)t_{G}+m)\log\left(\frac{1}{\varepsilon}\right)\cdot\frac{\log m+\log(1/\delta)}{\varepsilon^{2}}\right), and finally by using the characterization of τ~\widetilde{\tau} from the proof of Proposition 7.9, τ~\widetilde{\tau} can be computed in poly(k)\text{\rm poly}(k) time. Thus, we get that the runtime of Algorithm 7 is:

Directly analogous to Observation 7.18 is the following observation:

Given the oracles corresponding to inputs F,GF,G and the ancillary output of Algorithm 8, it is possible to implement the following oracles:

An oracle that takes in mm-dimensional vectors vv as queries and outputs q~2(G)v\widetilde{q}_{2}(G)v in O(tG+km)O(t_{G}+km) time.

From Observation 7.19, given that we only need to compute ancillary output, the runtime of Algorithm 8 is:

Runtime of Algorithm 7 + Runtime of trace estimation + Runtime of computing γ~\widetilde{\gamma} and ζ~\widetilde{\zeta}.

The runtime of trace estimation in this case is:

Since the third component is no more than the first or second, we have an overall runtime of:

In summary, from the above discussion and a combination of Theorem 7.15 we have proved:

∥q~1(F)−q1(F)∥∗⩽ε/2\|\widetilde{q}_{1}(F)-q_{1}(F)\|_{*}\leqslant\varepsilon/2.

∥q~2(G)−q2(G)∥∗⩽ε/2\|\widetilde{q}_{2}(G)-q_{2}(G)\|_{*}\leqslant\varepsilon/2.

∥q~2(G)∥⩽\Tr(q~2(G))k\|\widetilde{q}_{2}(G)\|\leqslant\frac{\Tr(\widetilde{q}_{2}(G))}{k}.

Inference in semirandom graph models

The technical content in this section follows the proof of Corollary 9.3 of [CSV17].

Let VV be a set of nn vertices, and let S⊆VS\subseteq V be a subset of size αn\alpha n. A directed graph GG on vertex set VV is generated according to the following model:

For every pair (u,v)(u,v) (possibly with u=vu=v) such that u∈Su\in S and v∈Sv\in S, the directed edge (u,v)(u,v) is added to the edge set with probability an\frac{a}{n}.

For every pair u∈S,v∉Su\in S,v\notin S, the directed edge (u,v)(u,v) is added to the edge set with probability bn\frac{b}{n}.

For each remaining pair (u,v)(u,v), an adversary decides whether to make (u,v)(u,v) an edge or not.

In the PlantedPartition problem, we are given a graph GG generated according to the above model as input, and the goal is to produce a list of sets of vertices S~1,S~2,…,S~k\widetilde{S}_{1},\widetilde{S}_{2},\dots,\widetilde{S}_{k} where k=O(1/α)k=O(1/\alpha) and there exists ii such that ∣S~iΔS∣<O(max⁡{a,b}nα2(a−b)2)|\widetilde{S}_{i}\Delta S|<O\left(\frac{\max\{a,b\}n}{\alpha^{2}(a-b)^{2}}\right). We state our result for a simpler model than what [CSV17] considers for simplicity of exposition – an algorithm for the general model follows straightforwardly from one for this simplified model.

The result of [CSV17] obtains a bound of O(max⁡{a,b}log⁡(1/α)nα2(a−b)2)O\left(\frac{\max\{a,b\}\log(1/\alpha)n}{\alpha^{2}(a-b)^{2}}\right) on the size of the smallest S~iΔS\widetilde{S}_{i}\Delta S, and thus in addition to giving a significantly faster algorithm, we also give slightly improved statistical guarantees.

We give an algorithm for the PlantedPartition problem that runs in O~(n2⋅poly(1/α))\widetilde{O}\left(n^{2}\cdot\text{\rm poly}(1/\alpha)\right).

We will need the following concentration inequality from [CSV17].

except with probability at most exp⁡(−ε2m16)\exp\left(-\frac{\varepsilon^{2}m}{16}\right).

Let AuA_{u} denote the nn-dimensional vector corresponding to outgoing edges of vertex uu. In particular

except with probability exp⁡(−αn64)\exp\left(-\frac{\alpha n}{64}\right). Let ΣS′\Sigma_{S^{\prime}} be the covariance matrix and μS′\mu_{S^{\prime}} be the mean of the uniform distribution on {Au:u∈S′}\{A_{u}:u\in S^{\prime}\}. The above can then be rewritten as

Since ΣS\Sigma_{S} is positive semidefinite,

We run the list-decodable mean estimation algorithm from Theorem 1.1 on input {αn24cAu:u∈V(G)}\left\{\sqrt{\frac{\alpha n}{24c}}A_{u}:u\in V(G)\right\} along with parameter 2/α2/\alpha (where the scaling on input vectors is to ensure that the uniform distribution on the elements of S′S^{\prime} have unit covariance), and get a list LL of length O(1/α)O(1/\alpha) as output in O(n2⋅poly(1/α))O(n^{2}\cdot\text{\rm poly}(1/\alpha)) time. Let L′L^{\prime} be the set obtained by scaling all elements of LL by 24cαn\sqrt{\frac{24c}{\alpha n}}. The guarantees of the algorithm in Theorem 1.1 combined with the existence of the set S′S^{\prime} guarantees with high probability the existence of an element ϕ∗\phi^{*} in L′L^{\prime} such that ∥ϕ∗−μS′∥⩽O(1αcn)\|\phi^{*}-\mu_{S^{\prime}}\|\leqslant O\left(\frac{1}{\alpha}\sqrt{\frac{c}{n}}\right). Combining this with (26) and triangle inequality, we get

We describe a procedure to translate vectors in L′L^{\prime} to sets in the following way:

Suppose a<ba<b, then for each ϕ∈L′\phi\in L^{\prime}, let S~ϕ≔{u:ϕu<a+b2n}\widetilde{S}_{\phi}\coloneqq\left\{u:\phi_{u}<\frac{a+b}{2n}\right\}; otherwise if a>ba>b, we set S~ϕ\widetilde{S}_{\phi} as {u:ϕu>a+b2n}\left\{u:\phi_{u}>\frac{a+b}{2n}\right\}.

To show that this list of sets meet the required guarantee, we upper bound ∣SΔS~ϕ∗∣|S\Delta\widetilde{S}_{\phi^{*}}|. Towards this goal, we establish a lower bound on ∥ϕ∗−EAu∥\|\phi^{*}-\mathbf{E}A_{u}\| as follows:

Combining the above with (27) tells us that ∣SΔS~ϕ∗∣⩽O(cnα2(a−b)2)|S\Delta\widetilde{S}_{\phi^{*}}|\leqslant O\left(\frac{cn}{\alpha^{2}(a-b)^{2}}\right). ∎

Acknowledgements

We would like to thank Sam Hopkins and Prasad Raghavendra for helpful conversations.

References

Appendix A Algorithm Supporting Lemmas

(Proof of Corollary) We proceed by contradiction. Assume ∥μ^−μ∥⩾rσαon\lVert\hat{\mu}-\mu\rVert\geqslant r\frac{\sigma}{\sqrt{\alpha}}on for all μ^∈L\hat{\mu}\in\mathcal{L}.

We claim that the inlier weight at the start of iteration tt is ∑i∈Ibi=2−(t−1)α4\sum_{i\in\mathcal{I}}b_{i}=2-\frac{(t-1)\alpha}{4}. We prove by induction. The base case is true. Now assume that this is true at iteration tt. Since t⩽4αt\leqslant\frac{4}{\alpha} the assumptions of Theorem 4.4 are satisfied and DescendCost(X,b)DescendCost(X,b) outputs (μ^,wˉ)(\hat{\mu},\bar{w}) satisfying ∑i∈Iwˉi⩽α4\sum_{i\in I}\bar{w}_{i}\leqslant\frac{\alpha}{4}. Thus at the start of iteration t+1t+1 the inlier weight is greater than 2−tα42-\frac{t\alpha}{4}. This proves the claim.

Therefore at the end of iteration 4α\frac{4}{\alpha} the inlier weight ∑i∈Ibi⩾1\sum_{i\in\mathcal{I}}b_{i}\geqslant 1. However, the algorithm runs for no more than 4α\frac{4}{\alpha} iterations removes at least 0.50.5 weight per iteration until ∥b∥1=0\lVert b\rVert_{1}=0. This is a contradiction as the inlier weight must be smaller than the total weight. This concludes the proof.

Let w~\widetilde{w} satisfy w~∈Φb(1)\widetilde{w}\in\Phi_{b}(1) and ⟨w~,bO⟩=0\langle\widetilde{w},b^{\mathcal{O}}\rangle=0 then for μ~=∑i=1Nw~iXi\widetilde{\mu}=\sum_{i=1}^{N}\widetilde{w}_{i}X_{i} we have

Where the first inequality follows by Lemma 4.1, and second inequality follows because w~∈Φb(1)\widetilde{w}\in\Phi_{b}(1). Further upper bounding we obtain

By maximizing over uu, the conclusion of the lemma follows. ∎

which implies ∥μ−μ~∥⩽σ∥w∥1\lVert\mu-\widetilde{\mu}\rVert\leqslant\frac{\sigma}{\sqrt{\lVert w\rVert_{1}}} as desired. Here the first inequality is Jensen’s, and the second inequality follows by wi⩽1Nw_{i}\leqslant\frac{1}{N} for all i∈[N]i\in[N], and the last inequality follows by Cov(X)⪯σ2ICov(X)\preceq\sigma^{2}I. Furthermore, we have

Here the first inequality follows by wi⩽1Nw_{i}\leqslant\frac{1}{N} for all i∈[N]i\in[N], the second inequality follows by Cov(X)⪯σ2ICov(X)\preceq\sigma^{2}I, and the last inequality follows by using ∥μ−μ~∥⩽σ∥w∥1\lVert\mu-\widetilde{\mu}\rVert\leqslant\frac{\sigma}{\sqrt{\lVert w\rVert_{1}}}. Thus, 1∥w∥1∑i=1Nwi(xi−μ~)(xi−μ~)T⪯σ2∥w∥12I\frac{1}{\lVert w\rVert_{1}}\sum_{i=1}^{N}w_{i}(x_{i}-\widetilde{\mu})(x_{i}-\widetilde{\mu})^{T}\preceq\frac{\sigma^{2}}{\lVert w\rVert_{1}^{2}}I as desired. ∎

Appendix B Sampling Based Methods for Trace and Inner Product Estimation

In this section, we prove standard results enabling efficient procedures for estimating the trace and matrix inner products using variants of the Johnson-Lindenstrauss method. We first recall a Lemma from [AK16]:

Let BB be a PSD matrix satisfying ∥B∥⩽κ\lVert B\rVert\leqslant\kappa. Then, the operator:

Additionally, we include a variant on the Johnson-Lindenstrauss Lemma as stated in [Mat13]:

The corollary follows through the union bound applied as follows:

Next, we show to estimate matrix inner products using the above lemma. In this setup, one is given mm PSD matrix M1…,MlM_{1}\dots,M_{l} with Mi=UiUi⊤M_{i}=U_{i}U_{i}^{\top} and a single PSD matrix, BB, and the goal is to obtain estimates of ⟨Mi,exp⁡(B)⟩\langle M_{i},\exp(B)\rangle. We include the pseudo-code for the procedure below:

We now show that Algorithm 9 produces estimates of ⟨Mi,exp⁡(B)⟩\langle M_{i},\exp(B)\rangle with high probability.

And furthermore, Algorithm 9 runs in time O(nl+kltW+ltU)O(nl+klt_{W}+lt_{U}) where tWt_{W} is the time required for a matrix-vector multiplication with the matrix WW or W⊤W^{\top}, tUt_{U} is the time taken to compute v⊤Uiv^{\top}U_{i} for all UiU_{i} and any vector vv:

Let B^=exp⁡(B2)\hat{B}=\exp\left(\frac{B}{2}\right). Observe that the eigenvectors of B^\hat{B}, B~\widetilde{B} and BB coincide. Let B^=∑i=1nλivivi⊤\hat{B}=\sum_{i=1}^{n}\lambda_{i}v_{i}v_{i}^{\top} and B~=∑i=1nσivivi⊤\widetilde{B}=\sum_{i=1}^{n}\sigma_{i}v_{i}v_{i}^{\top} by the eigenvalue decompositions of B^\hat{B} and B~\widetilde{B}. From the previous relationship, we have (1−ε/4)λi⩽σi⩽λi(1-\varepsilon/4)\lambda_{i}\leqslant\sigma_{i}\leqslant\lambda_{i}. Therefore, we observe by squaring B^\hat{B} and B~\widetilde{B}:

Now, let ujiu^{i}_{j} for j∈[ri]j\in[r_{i}] denote the columns of UiU_{i} and let U={uji:∀i∈[m],j∈[ri]}U=\{u^{i}_{j}:\forall i\in[m],j\in[r_{i}]\}. Then, we have via a union bound from our settings of ll and Lemma B.3 that with probability at least 1−δ1-\delta for all u∈Uu\in U:

Now, conditioning on this event, we have by squaring both sides that and the previous conclusion for all u∈Uu\in U:

From the previous inequality, using the fact that (1−ε)⩽(1−ε/4)4(1-\varepsilon)\leqslant(1-\varepsilon/4)^{4} and (1+ε/4)2⩽(1+ε)(1+\varepsilon/4)^{2}\leqslant(1+\varepsilon) in our range of ε\varepsilon, that for all i∈[m]i\in[m]:

Since, the above event conditioned on occurs with probability at least 1−δ1-\delta, this concludes the proof of correctness of the output of the algorithm with probability at least 1−δ1-\delta. Finally the runtime of the algorithm is dominated by the time taken to compute QQ which takes time O(lktW)O(lkt_{W}) and the time taken to compute QUiQU_{i} for all ii which takes time O(ltU)O(lt_{U}). ∎

with probability at least 1−δ1-\delta. And furthermore, this algorithm runs in time O(kltW+nlm)O(klt_{W}+nlm) where tWt_{W} is the time required to compute a matrix-vector multiplication with the matrix WW or W⊤W^{\top}:

Furthermore, if vi=Ceiv_{i}=Ce_{i}, one obtains the same guarantees with the runtime reduced to O(nl+kltW+ltC)O(nl+klt_{W}+lt_{C}) where tCt_{C} is the time is the time taken to compute a matrix vector multiplication with the matrix CC.

The first claim follows by summing up the output of Algorithm 9 with input Mi=vivi⊤M_{i}=v_{i}v_{i}^{\top}, B=WW⊤B=WW^{\top}, ε\varepsilon and δ\delta. The second follows by computing the Frobenius norm of QCQC in Algorithm 9 which takes time O(kltW+ltC)O(klt_{W}+lt_{C}). ∎

Appendix C Fast Min-Max Optimization

We prove the existence of nearly linear time solvers for the class of SDPs required in our algorithms. Recall that given a set of points X={xi}i=1NX=\{x_{i}\}_{i=1}^{N}, vector ν\nu, set of weight budgets for each point b={bi>0}i∈[N]b=\{b_{i}>0\}_{i\in[N]} and a rank kk, we aim to solve the following optimization problem:

We will first start by reformulating the above objective with the following mean adjusted data points instead Z={zi=xi−ν}i∈[N]Z=\{z_{i}=x_{i}-\nu\}_{i\in[N]}. Therefore, the objective reduces to the following reformulation which we will use throughout the rest of the section:

We solve this problem via a reduction to the following packing SDP by introducing an additional parameter λ\lambda:

Let OPT∗\text{OPT}^{*}{} denote the optimal value of the program MT, Pack(λ)(\lambda) denote the program Pack instantiated with λ\lambda and let Packλ∗\text{Pack}^{*}_{\lambda} denote its optimal value. The following quantity is useful throughout the section:

This is equivalent to taking sorting the ziz_{i} in terms of their lengths and computing their average squared length with respect to their budgets, bib_{i}, such that their budgets sum to 11. We introduce a technical result useful in the following analysis:

Pack(OPT∗)(\text{OPT}^{*}) has optimal value at least 11.

The lemma follows from the fact that a feasible solution for MT achieving OPT∗\text{OPT}^{*} is a feasible point for Pack(λ)(\lambda) for λ⩾OPT∗\lambda\geqslant\text{OPT}^{*}. ∎

The following lemma proves that l∗l^{*} gives an approximation to OPT∗\text{OPT}^{*} within a factor of dd.

The upper bound on OPT∗\text{OPT}^{*} follows from that fact that:

and the lower bound follows from the inequality \TrM⩽dk∥M∥k\Tr M\leqslant\frac{d}{k}\lVert M\rVert_{k} for any psd matrix MM. ∎

In what follows we prove that we can efficiently binary search over the value of λ\lambda to find a good solution to MT. We refer to OPTλ\text{OPT}_{\lambda}{} as the optimal value of Pack run with λ\lambda.

The function, OPTλ\text{OPT}_{\lambda} when viewed as a function of λ\lambda is monotonic in λ\lambda.

The lemma follows from the observation that for λ1⩾λ2\lambda_{1}\geqslant\lambda_{2}, a feasible point for Pack with λ2\lambda_{2} is a feasible point for the program with λ1\lambda_{1}. ∎

We now conclude with the main lemma of the section.

There exists a randomized algorithm, ApproxCost\mathsf{ApproxCost}, which when given input NN data points {xi}i=1N\{x_{i}\}_{i=1}^{N}, an arbitrary vector ν\nu, weight budgets {bi>0}i=1N\{b_{i}>0\}_{i=1}^{N}, error tolerance ε\varepsilon and failure probability δ\delta, computes a solution, w^\hat{w} satisfying:

where zi=xi−νz_{i}=x_{i}-\nu, with probability at least 1−δ1-\delta. Furthermore, ApproxCost\mathsf{ApproxCost} runs in time at most:

We first start by reducing to the following packing problem:

To see that this is packing problem, notice that the above problem is equivalent to setting the constraint matrices AiA_{i} and BiB_{i} to:

Let OPTλ,ε†\text{OPT}_{\lambda,\varepsilon^{\dagger}} refer to the optimal value of Pack-Red and Pack-Red(λ\lambda) denote the problem instantiated with λ\lambda. First notice that OPTλ,ε†=(1+ε†)OPTλ\text{OPT}_{\lambda,\varepsilon^{\dagger}}=(1+\varepsilon^{\dagger})\text{OPT}_{\lambda} as for any feasible point of Pack-Red, ww, (1+ε†)−1w(1+\varepsilon^{\dagger})^{-1}w is a feasible point for Pack and vice-versa.

We will now perform a binary search procedure on the parameter, λ\lambda, to obtain a suitable solution to Pack-Red with our solver. Our binary search procedure will maintain two estimates, (λl,λh)(\lambda_{l},\lambda_{h}) satisfying the following two properties which we will prove via induction:

We have a candidate solution, ww, for Pack-Red(λh)(\lambda_{h}) with ∑i∈[N]wi⩾(1−ε†/4)\sum_{i\in[N]}w_{i}\geqslant(1-\varepsilon^{\dagger}/4).

We have that OPT∗⩾λl\text{OPT}^{*}\geqslant\lambda_{l}.

We will run our solver from Theorem 5.13, PackingCoveringDecision\mathsf{PackingCoveringDecision}, with the error parameter set to ε†/4\varepsilon^{\dagger}/4 on Pack-Red for different values of λ\lambda and failure probability to be determined subsequently. We instantiate λh=l∗\lambda_{h}=l^{*} and λl=kdl∗\lambda_{l}=\frac{k}{d}l^{*}. We will now assume that the solver runs successfully and bound the failure probability at the end of the algorithm. To ensure that the first two conditions hold, we run the solver on Pack-Red(λh)(\lambda_{h}). Note that the optimal value of Pack-Red(l∗)(l^{*}) is at least (1+ε†)(1+\varepsilon^{\dagger}) from Lemmas C.1, C.2 and C.3 and the previous discussion. Therefore, the solver cannot return a primal feasible point, (M,W)(M,W), with objective value 1+ε†/41+\varepsilon^{\dagger}/4. The second condition follows straightforwardly from Lemma C.2. Now, in each step, we compute λm=(λh+λl)/2\lambda_{m}=(\lambda_{h}+\lambda_{l})/2 and run our solver on Pack-Red(λm)(\lambda_{m}). We now have two cases:

If the solver returns a primal point, (M,W)(M,W), we set λl=λm\lambda_{l}=\lambda_{m}. The first condition trivially holds true after this step. For the second condition, note that if λm⩾OPT∗\lambda_{m}\geqslant\text{OPT}^{*}, we have from Lemmas C.3 and C.1 that the optimal value of Pack-Red(λm)(\lambda_{m}) is at least (1+ε†)(1+\varepsilon^{\dagger}). Hence, the solver cannot return a primal point with objective value (1+ε†/4)(1+\varepsilon^{\dagger}/4) in this case. Therefore, we conclude that OPT∗⩾λm\text{OPT}^{*}\geqslant\lambda_{m}. This verifies the second condition of the induction hypothesis.

If the solver returns a dual point, ww, it must satisfy ∑iwi⩾(1−ε†/4)\sum_{i}w_{i}\geqslant(1-\varepsilon^{\dagger}/4). This verifies the first condition and the second condition follows from the induction hypothesis.

After O(log⁡d/ε†)O(\log d/\varepsilon^{\dagger}) steps of binary search, we have that (λh−λl)⩽ε†⋅OPT∗(\lambda_{h}-\lambda_{l})\leqslant\varepsilon^{\dagger}\cdot\text{OPT}^{*} from Lemma C.2. From the second condition, we have that λh⩽(1+ε†)OPT∗\lambda_{h}\leqslant(1+\varepsilon^{\dagger})\text{OPT}^{*}. Now, for the feasible ww at λh\lambda_{h} with ∑i=1Nwi⩾1−ε†/4\sum_{i=1}^{N}w_{i}\geqslant 1-\varepsilon^{\dagger}/4, we have:

Letting w~=w(1+ε†)\widetilde{w}=\frac{w}{(1+\varepsilon^{\dagger})}, we have that w~\widetilde{w} is feasible for Pack with:

and furthermore, from the previous equation, we have that ∥∑i∈[N]w~izizi⊤∥k⩽OPT∗\lVert\sum_{i\in[N]}\widetilde{w}_{i}z_{i}z_{i}^{\top}\rVert_{k}\leqslant\text{OPT}^{*}. Now, we set ε†=45δ\varepsilon^{\dagger}=\frac{4}{5}\delta, and return w~\widetilde{w} so obtained.

We now set the failure probability in PackingCoveringDecision\mathsf{PackingCoveringDecision} is set to O(δ/(log⁡d/ε†))O(\delta/(\log d/\varepsilon^{\dagger})) and therefore, the probability that the solver fails in any of the steps of the binary search is upper bounded by δ\delta from the union bound. Finally, we bound the run time of the algorithm. Since, we only run O(log⁡d/ε†)O(\log d/\varepsilon^{\dagger}) iterations of binary search, our overall running time bounded by:

as we have n=Nn=N, l=Nl=N, m=dm=d, tC=Nt_{C}=N and tD=Ndt_{D}=Nd in Theorem 5.13. ∎