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 be a probability distribution parameterized by . We say a dataset is -Huber contaminated for some constant if it is drawn i.i.d from
where is an arbitrary outlier distribution which can be adversarial and dependent on . The goal is to estimate with an estimator such that the two are close with respect to a meaningful metric. The Huber contamination model captures the setting where only an fraction of the dataset is subject to statistical assumptions. One would hope to design estimators for which 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 . For concreteness, consider the problem of estimating the mean of a standard normal. The adversary can set up a mixture of 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 with the guarantee that the true 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 of a -dimensional distribution with a bounded covariance for a constant from samples. Their algorithm recovers a list of candidate means with the guarantee that there exists a achieving the recovery guarantee with high probability . Furthermore, their algorithm is ’efficient’, running in time 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 of length , achieving (up to constants) the information theoretically optimal recovery , with linear sample complexity , and running in nearly linear time where omits logarithmic factors in . For the matching minimax 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 is an approximate minimizer and build a ’descent style’ algorithm to find . 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 with additional access to a mere clean samples drawn from . 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 , 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 in nearly linear time.
Faster list decodable mean estimation also accelerates finding planted partitions in semirandom graphs. In particular, consider the problem where is a directed graph where the (outgoing) neighborhoods of an fraction of vertices are random while the neighborhoods of the remaining vertices are arbitrary, and the goal is to output lists such that one of them is “close” to . 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 . 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 eigenvalues (the Ky Fan norm), where for 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 . 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 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 . This stands in contrast to large 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 recovery guarantee. At a high level, both papers achieve recovery for different fixed constants in time for a positive integer greater than . 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 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 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 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, , 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 , for the rest of the paper we will adjust by a constant and assume the inlier set satisfies .
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 to
Third, update such that
We claim the algorithm outputs a list of length and that there exists a satisfying . 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 where satisfying the following conditions. If then . 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 with a parameter and define a cost function . First introduced in [CDG19] in the context of robust mean estimation and later in robust covariance estimation [CDGW19] consider the function defined as follows:
where for all . 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
Secondly, for (robust mean estimation), a crucial insight of [CDG19] is that approximates the squared distance from to the mean . 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 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 further than from , that . 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 , or a simple procedure outputs a set of weights identifying vastly more outliers than inliers i.e , or both.
The dual procedure is as follows. Let be the weighted second moment matrix centered at . Let be the top eigenspace of . We project the dataset onto the affine subspace with offset . We then sort the points by Euclidean lengths. This sorting determines an ordering of the weights . We pass through the sorted list, and find the smallest such that . We set for and for . The following lemma guarantees .
2 Generalized Packing/Covering Solvers and Improved Power Method Analysis
We start by considering the simpler problem of computing . The approach taken in [CDG19] is to reduce the problem to a packing SDP via the introduction of an additional parameter ; 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 is monotonic, continuous and attains the value precisely when . Therefore, by performing a binary search over , one obtains accurate estimates of and .
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 such that for a user defined accuracy parameter, , by a multiplicative factor. Intuitively, these indices correspond to “directions”, , along which is small and therefore, their weights can be increased in the dual formulation. By incorporating a standard regret analysis from [AK16] for the matrices, , they show that one either outputs a primal feasible, , with or a dual feasible with .
Preliminaries
The following can be found in [Cha15, Example 13(iii)]:
Suppose and are positive semidefinite matrices such that , then .
2 Optimization
Similarly, we call -strongly concave with respect to if
A key property of von Neumann entropy we use is:
is -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 .
Algorithm for List-Decodable Mean Estimation
If we would compute cost exactly. This is computationally expensive so we take to be . For ease of reading, one can first set with the understanding that the algorithmic lemmas succeed for small .
For a dataset , an inlier set with , budgets , we say that is a sanitizing tuple for if the it satisfies:
If , then .
For all : , .
Recall that when the algorithm terminates or . We prove that is a sanitizing tuple when in Lemma A.1, and when in Lemma 4.6. ∎
Let be a dataset with an inlier set of size satisfying . Let . returns a list of length such that there exists satisfying with high probability
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 is inefficient. Instead, we project the dataset onto . We evaluate the cost at randomly chosen projected datapoints. We choose to be the projected datapoint with the smallest cost. Although the projected datapoints are by no means an exhaustive search of the subspace , if this procedure fails to make sufficient progress i.e then a corresponding procedure uses the dual weights to output a sanitizing tuple.
The weight removal procedure is as follows. We sort the vectors by euclidean norm. This sorting determines an ordering of the weights . We pass through the sorted list, and find the smallest such that . We set for and for . Finally we output as the sanitizing tuple.
DescendCost(X,b) is given dataset and weight upper bound satisfying the assumptions of Theorem 4.4. If at iteration , then outputs satisfying or .
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 is not a sanitizing tuple then the descent procedure succeeds.
Let satisfying the assumptions of Theorem 4.4. If at iteration of DescendCost(X,b), the tuple is not a sanitizing tuple, then for with high probability .
We will also need Lemma 4.8 which states that if the cost is a constant factor smaller than 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 then either the descent makes progress or the weight removal procedure outputs a sanitizing tuple. Likewise, if then either descent makes progress or weight removal outputs a sanitizing tuple. So without loss of generality, we assume and .
1 Analysis I: Descending Cost
Our first step is to prove that has a large component in i.e
For some fixed constant . By definition of projection we have
Here, the inequality follows by dropping squared terms. Now using the inequality for , , we obtain
We use the fact that to lower bound the first term. And we use the fact to lower bound the second term to obtain
Consider the second term . We can upper bound it by the fact that the inliers are covariance bounded . Plugging this bound into (7) we obtain
For a fixed constant . Rearranging the LHS and RHS we upper bound
with probability greater than . Here we aim for a failure probability so that by union bound over the iterations of the algorithm we continue to succeed with high probability. Thus we have
Where the first equality is by definition of , 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, , and secondly . Taken together, this implies that a sort of the list succeeds in isolating at least weight where . We use Markov’s inequality to prove the first statement.
Now we prove the second statement . Let be an inlier. Let . We have that is lower bounded by
Where the first inequality follows because is a unit vector in . The second inequality follows by the fact that for , , . We further lower bound by
Plugging this lower bound for into we obtain
Where the second inequality follows from applying the bounded covariance of the inliers. The last inequality follows from the assumption that for . ∎
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, , with or a dual feasible , satisfying .
In this subsection, we will establish a regret guarantee useful for designing fast solvers for our class of SDPs. First, let defined as:
The game takes place over rounds where for each round :
The player plays two psd matrices .
The environment then reveals two gain matrices with and and the player achieves a gain of .
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 are defined for by:
Before we move on to the regret bound, we will require 3.5:
The function is -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, satisfying and , 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 be any sequence of gain matrices satisfying and and let be defined as in Equation 13 and suppose that satisfy:
The corollary follows from the fact that for each , 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 loop for some . For ease of exposition, we now define the following variables:
Note that and are meant to be approximations to and respectively and the correctness of these projections is guaranteed by Theorem 7.20. Also, observe that and . 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 :
The projections satisfy and satisfy:
The estimates, and satisfy for all :
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 :
We have from the definition of and 5.5:
Assume 5.5 and 5.6. Then, for :
It suffices to prove the claim for as for , the claim is true from the fact that the while loop continued till the next iteration. Now, we have from the fact that :
We start with the following decomposition of :
Under 5.5 and 5.6, we have for every :
As in the proof of Lemma 3.2 in [PTZ12], we will prove the claim via strong induction on . We have from the definitions of and :
We can now apply the results of Corollary 5.4 and the definition of along with 5.5 to obtain:
From the previous two inequalities, we get for from Equation 14:
Finally, we get for from Equation 15:
Under 5.5 and 5.6, Algorithm 3 terminates with , we have for all :
Suppose for the sake of contradiction, that there exists such that:
Now, let denote the steps in algorithm where the dual variable, was incremented. From 5.5, we get that is at least incremented for every iteration in the set defined as:
By Markov’s inequality and the definition of , we must have . We must have as is incremented by a factor of 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 . Furthermore, the total runtime of Algorithm 3 is at most:
where and denote the time taken to compute one matrix vector multiplication with and respectively, and .
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 up to iteration . The hypothesis is trivially true at . Now, we will inductively prove that the assumptions hold true when given that they hold at . We start by computing a bound on the matrices and . We have by the application of Lemma 5.10 up to iteration that:
Therefore, the upper bounds computed on and remain valid even in iteration . Therefore, conditioned on 5.5 holding true for iteration , the conclusions of Theorems 7.20 and B.4 hold for Algorithms and for iteration with probability at least . Hence, 5.6 hold for iteration with probability at least .
The runtime guarantees follow from the runtime guarantees in Lemmas B.4 and 7.20 along with the fact that is and matrix-vector multiplies with and can be implemented in time and respectively. And furthermore, a matrix vector product for all the and required by Lemma B.4 can be implemented in time and respectively as for any vector , computing takes time and subsequently, the resultant is multiplied with each of the . ∎
We now conclude with the main theorem of the section.
There exists an Algorithm, , which when given an instance of 5.1, with , , error tolerance and failure probability , runs in time:
where and are the time taken to perform a matrix-vector product with and respectively and and , and outputs a correct answer to 5.1 with probability at least .
We first discard and for those indices satisfying,
We will now run Algorithm 3 instantiated with error parameter set to and failure probability . We first quickly address the case where . In this case, it must be that . In this case, returned by the algorithm satisfies by definition and furthermore, by 5.7, is a valid dual solution. In this case, we can simply output 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 . Conditioned on this event, we consider two possible cases:
The algorithm returns a dual solution, .
The algorithm returns a primal solution, .
In the first case, we have by Lemma 5.10 and the definition of that is a feasible dual solution and furthermore, that from our setting of the arguments to Algorithm 3. In this case, we simply define for indices that are included in the input to Algorithm 3 and for the discarded indices. Clearly, is feasible dual solution to the original -decision problem.
In the second case, we construct a new primal solution, . Note that for our bounds on and , the trace of from 5.5 is at most:
and furthermore, from Lemma 5.11, satisfies all the primal constraints for the indices passed to Algorithm 3 and finally for any discarded index, , we have:
Furthermore, from 5.5 since satisfied , we have
Therefore, is a valid primal solution to the original -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 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 is the output of Algorithm 5. In particular, our progress so far which is recorded in Eq. 17 holds true for arbitrary . We now discuss and prove the relevant properties of we use for showing Lemma 6.2 (more specifically, for showing Section 6).
Recall that is the basis of eigenvectors of .
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 is equal to for . Additionally, from Proposition 6.4, Lemma 6.5 is a -tempered vector and
.
We start by expressing in the basis as
Since , we can choose constant large enough so that the above is bounded by . ∎
Let and . We now establish the following result:
First fix one particular and a in the proof of Proposition 6.6:
where the first inequality follows from the fact that , the second inequality follows from the assumption that is -tempered and has a bounded norm and the final inequality from our definition of . By summing up over all the terms, the statement of the proposition follows. ∎
.
The upper bound follows from being the maximum eigenvalue of . As a consequence of Proposition 6.6 and the fact that ,
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 and . Recall that it suffices to prove:
Note that we may write as we run at least one iteration of the power method which ensures that is in the row/column space of . Therefore, we can assume that the sums in Eq. 17 only go over the elements in . 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 , the second inequality follows from Cauchy-Schwarz, the third follows again from the definition of the set and the final inequality from the fact that .
where the second inequality follows from Cauchy-Schwarz and the final inequality follows from the definition of 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 . Let us define:
since is orthogonal to the space spanned by , and further note that
to Section 6.2 along with the definitions of and gives us
Hence our induction is complete and our goal statement is proved. ∎
Fast Projection on Fantopes
In this section we define 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 to denote .
We first prove that the optimizer, , of (21) has the same eigenvectors as that of .
Given , the optimizer, , of (21) has the same eigenvectors as .
Let and denote the eigenvalues of and respectively. Now, we have the von Neumann’s trace inequality:
with equality when the eigenvectors of corresponding to the eigenvalue coincide with the eigenvectors of for the eigenvalue . Therefore, the optimizer must share the same set of eigenvectors as . ∎
Given, and let with eigenvalue decomposition . Let be defined as follows:
Then, the optimizer, , of (21) is given by:
From Lemma 7.2, we know that the eigenvectors for and and hence, , coincide. Let denote the eigenvalues of corresponding to the eigenvectors . Then, we see from (21) that:
Since, the above optimization problem is convex, we compute its Lagrangian (Note that we must set ):
Now, picking . Note that are the eigenvalues of and hence is finite. We now have:
by noting that is maximized at . Note that the above conclusion holds true for satisfying . 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 and denote the primal and dual optimal points respectively. Note that by a simple exchange argument . Therefore, the KKT conditions apply to Prog and we get:
From the condition of primal feasibility, we get that . Also, note that we get from complementary slackness that implies that . Additionally, from complementary slackness, we obtain that for .
Let . We first tackle the case where . In this case, the optimizer is simply and the statement of the lemma is true.
Now assume that . Let us now consider the function, , defined as:
When which holds in this case, is a strictly increasing, continuous function of in the interval and its value increases from to . For , we have by complementary slackness and therefore . For , we have as we have . From the previous two statements, we have for all . Finally, we have from complementary slackness which implies that as is strictly increasing and continuous. Which implies that the optimal value of is given by , 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 and let , , with eigenvalue decomposition and and be defined as:
Then, the optimizers, , of Equation (22) are given by:
where , and and are defined as:
Let denote the solutions of (22) and let . Then, we must have:
Now consider the case where . For the first equation, we have:
When , the conclusion of the previous manipulation is trivially true. By a similar manipulation, from Lemma 7.3 we have . We now have:
We now proceed for a similar computation for :
where the second-to-last equality follows because at most of the are greater than and the final inequality follows from the fact that implies that . By putting the previous two results together, we get that:
whose optimal value is given by 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 rather than an explicit matrix. For simplicity of exposition, we defer the details of this implicit representation to later subsections. In the algorithm below, when we say , we mean running the trace estimation algorithm from Corollary B.5 from , which with high probability produces a -approximation of the trace.
Our first goal is to show that the output of Algorithm 7 on input is close in trace norm to where is as defined in Remark 7.1. Concretely, we prove:
Let be a positive semidefinite matrix, and let be the output of Algorithm 7 on input . Then:
The full statement of the above, which states some more technical properties of can be found in Theorem 7.15.
2 Closeness in trace norm I: projections of spectrally similar matrices
In this section, let and be positive semidefinite matrices such that
for some . will be a matrix obtained via the power iteration based PCA algorithm
.
where the last inequality follows from . ∎
For the rest of this section, let and let . In the language of Remark 7.1, .
.
We prove our claim with the following chain of inequalities:
.
Define . From Fact 3.7 is -strongly convex and
From Lemma 7.7, and hence
3 Closeness in trace norm II: robustness to trace
In this subsection, let be a positive definite matrix with eigenvalues and corresponding eigenvectors . Let be an integer less than , and let denote . 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 , let . has a unique solution on for any . Further, .
Define functions defined on where . Observe that is equal to on . Thus its right-hand side derivatives must be bounded by . Since (i) , (ii) the right-hand derivative of is everywhere, and (iii) the right-hand derivative of at any point in is at most , there must be a unique such that . The right-hand derivative of is at least on and thus must be contained in and thus . ∎
We now define the noisy truncation operator:
where must be in range and is as defined in the statement of Proposition 7.9.
For every , .
First observe that . Since , we have , which implies . This means for some . As a result
We observe that . Since is increasing on , it follows that when , and consequently , which means .
is always at most by construction.
where 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 , we perform a sequence of transformations described below to get a matrix . Our goal is to prove that is close to , where is as defined in Remark 7.1.
Let be a matrix such that .
We perform a -PCA on and obtain vectors as output along with numbers where .
We run a -approximate trace estimation algorithm on and obtain number .
We solve for in the following equation and call the solution .
By a combination of Theorem 6.1 and the fact that
except with probability at most . Via Lemma 7.8, a consequence of the above is that for :
Now, we analyze closeness of and . Let . Then for some in the range . We now recall the noisy truncation operator from Definition 7.10. By Remark 6.9 are the top eigenvalues of and thus is equal to the matrix . First, from Lemma 7.11:
Next, by Remark 7.12, and thus by triangle inequality
Combining the above with (7.4) via triangle inequality gives us:
Finally, note that by Remark 7.12, and by Remark 7.13,
Multiplying the above inequality by lets us conclude that:
and multiplying (25) with lets us conclude
Thus, we have the following theorem about Algorithm 7.
Algorithm 7 takes in as input, and outputs a matrix such that except with probability the following three conditions hold:
.
.
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 let:
We say and and we use to refer to the output of Algorithm 8.
Our goal is to bound the trace norm distance between and , and between and .
We now prove that the output of Algorithm 8 on input and is close to in trace norm.
.
.
Algorithm 6 computes and exactly. We note that all trace estimates in Algorithm 8 are up to a multiplicative factor. All eigenvalue computations are also correct up to a multiplicative . As a consequence of the approximation guarantees on trace and eigenvalues, and the proof of Lemma 7.11, as computed in Algorithm 8 is within a multiplicative factor of from Algorithm 6. Hence, and from the output of Lemma 7.11 must be within a multiplicative of and from the output of Algorithm 8.
As a consequence, . The inequality follows from the above discussion combined with Theorem 7.15. ∎
6 Implementation
An oracle that takes in -dimensional vectors and outputs in time . Note that by Lemma B.1 we can also implement an algorithm to compute in time where is some matrix satisfying:
Given the oracle corresponding to input and the ancillary output of Algorithm 7, it is possible to implement an oracle that takes in -dimensional vectors as queries and outputs in 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 .
The runtime of the PCA subroutine is , the runtime of the trace estimation algorithm (from Corollary B.5) is , and finally by using the characterization of from the proof of Proposition 7.9, can be computed in 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 and the ancillary output of Algorithm 8, it is possible to implement the following oracles:
An oracle that takes in -dimensional vectors as queries and outputs in 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 and .
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:
.
.
.
Inference in semirandom graph models
The technical content in this section follows the proof of Corollary 9.3 of [CSV17].
Let be a set of vertices, and let be a subset of size . A directed graph on vertex set is generated according to the following model:
For every pair (possibly with ) such that and , the directed edge is added to the edge set with probability .
For every pair , the directed edge is added to the edge set with probability .
For each remaining pair , an adversary decides whether to make an edge or not.
In the PlantedPartition problem, we are given a graph generated according to the above model as input, and the goal is to produce a list of sets of vertices where and there exists such that . 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 on the size of the smallest , 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 .
We will need the following concentration inequality from [CSV17].
except with probability at most .
Let denote the -dimensional vector corresponding to outgoing edges of vertex . In particular
except with probability . Let be the covariance matrix and be the mean of the uniform distribution on . The above can then be rewritten as
Since is positive semidefinite,
We run the list-decodable mean estimation algorithm from Theorem 1.1 on input along with parameter (where the scaling on input vectors is to ensure that the uniform distribution on the elements of have unit covariance), and get a list of length as output in time. Let be the set obtained by scaling all elements of by . The guarantees of the algorithm in Theorem 1.1 combined with the existence of the set guarantees with high probability the existence of an element in such that . Combining this with (26) and triangle inequality, we get
We describe a procedure to translate vectors in to sets in the following way:
Suppose , then for each , let ; otherwise if , we set as .
To show that this list of sets meet the required guarantee, we upper bound . Towards this goal, we establish a lower bound on as follows:
Combining the above with (27) tells us that . ∎
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 for all .
We claim that the inlier weight at the start of iteration is . We prove by induction. The base case is true. Now assume that this is true at iteration . Since the assumptions of Theorem 4.4 are satisfied and outputs satisfying . Thus at the start of iteration the inlier weight is greater than . This proves the claim.
Therefore at the end of iteration the inlier weight . However, the algorithm runs for no more than iterations removes at least weight per iteration until . This is a contradiction as the inlier weight must be smaller than the total weight. This concludes the proof.
Let satisfy and then for we have
Where the first inequality follows by Lemma 4.1, and second inequality follows because . Further upper bounding we obtain
By maximizing over , the conclusion of the lemma follows. ∎
which implies as desired. Here the first inequality is Jensen’s, and the second inequality follows by for all , and the last inequality follows by . Furthermore, we have
Here the first inequality follows by for all , the second inequality follows by , and the last inequality follows by using . Thus, 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 be a PSD matrix satisfying . 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 PSD matrix with and a single PSD matrix, , and the goal is to obtain estimates of . We include the pseudo-code for the procedure below:
We now show that Algorithm 9 produces estimates of with high probability.
And furthermore, Algorithm 9 runs in time where is the time required for a matrix-vector multiplication with the matrix or , is the time taken to compute for all and any vector :
Let . Observe that the eigenvectors of , and coincide. Let and by the eigenvalue decompositions of and . From the previous relationship, we have . Therefore, we observe by squaring and :
Now, let for denote the columns of and let . Then, we have via a union bound from our settings of and Lemma B.3 that with probability at least for all :
Now, conditioning on this event, we have by squaring both sides that and the previous conclusion for all :
From the previous inequality, using the fact that and in our range of , that for all :
Since, the above event conditioned on occurs with probability at least , this concludes the proof of correctness of the output of the algorithm with probability at least . Finally the runtime of the algorithm is dominated by the time taken to compute which takes time and the time taken to compute for all which takes time . ∎
with probability at least . And furthermore, this algorithm runs in time where is the time required to compute a matrix-vector multiplication with the matrix or :
Furthermore, if , one obtains the same guarantees with the runtime reduced to where is the time is the time taken to compute a matrix vector multiplication with the matrix .
The first claim follows by summing up the output of Algorithm 9 with input , , and . The second follows by computing the Frobenius norm of in Algorithm 9 which takes time . ∎
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 , vector , set of weight budgets for each point and a rank , 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 . 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 :
Let denote the optimal value of the program MT, Pack denote the program Pack instantiated with and let denote its optimal value. The following quantity is useful throughout the section:
This is equivalent to taking sorting the in terms of their lengths and computing their average squared length with respect to their budgets, , such that their budgets sum to . We introduce a technical result useful in the following analysis:
Pack has optimal value at least .
The lemma follows from the fact that a feasible solution for MT achieving is a feasible point for Pack for . ∎
The following lemma proves that gives an approximation to within a factor of .
The upper bound on follows from that fact that:
and the lower bound follows from the inequality for any psd matrix . ∎
In what follows we prove that we can efficiently binary search over the value of to find a good solution to MT. We refer to as the optimal value of Pack run with .
The function, when viewed as a function of is monotonic in .
The lemma follows from the observation that for , a feasible point for Pack with is a feasible point for the program with . ∎
We now conclude with the main lemma of the section.
There exists a randomized algorithm, , which when given input data points , an arbitrary vector , weight budgets , error tolerance and failure probability , computes a solution, satisfying:
where , with probability at least . Furthermore, 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 and to:
Let refer to the optimal value of Pack-Red and Pack-Red() denote the problem instantiated with . First notice that as for any feasible point of Pack-Red, , is a feasible point for Pack and vice-versa.
We will now perform a binary search procedure on the parameter, , to obtain a suitable solution to Pack-Red with our solver. Our binary search procedure will maintain two estimates, satisfying the following two properties which we will prove via induction:
We have a candidate solution, , for Pack-Red with .
We have that .
We will run our solver from Theorem 5.13, , with the error parameter set to on Pack-Red for different values of and failure probability to be determined subsequently. We instantiate and . 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. Note that the optimal value of Pack-Red is at least from Lemmas C.1, C.2 and C.3 and the previous discussion. Therefore, the solver cannot return a primal feasible point, , with objective value . The second condition follows straightforwardly from Lemma C.2. Now, in each step, we compute and run our solver on Pack-Red. We now have two cases:
If the solver returns a primal point, , we set . The first condition trivially holds true after this step. For the second condition, note that if , we have from Lemmas C.3 and C.1 that the optimal value of Pack-Red is at least . Hence, the solver cannot return a primal point with objective value in this case. Therefore, we conclude that . This verifies the second condition of the induction hypothesis.
If the solver returns a dual point, , it must satisfy . This verifies the first condition and the second condition follows from the induction hypothesis.
After steps of binary search, we have that from Lemma C.2. From the second condition, we have that . Now, for the feasible at with , we have:
Letting , we have that is feasible for Pack with:
and furthermore, from the previous equation, we have that . Now, we set , and return so obtained.
We now set the failure probability in is set to and therefore, the probability that the solver fails in any of the steps of the binary search is upper bounded by from the union bound. Finally, we bound the run time of the algorithm. Since, we only run iterations of binary search, our overall running time bounded by:
as we have , , , and in Theorem 5.13. ∎