Algorithms and Hardness for Subspace Approximation
Amit Deshpande, Kasturi Varadarajan, Madhur Tulsiani, Nisheeth K. Vishnoi
Introduction
Large data sets that arise in data mining, machine learning, statistics and computational geometry problems are naturally modeled as sets of points in a high-dimensional Euclidean space. Even though these points live in a high-dimensional space, in practice they are observed to have low intrinsic dimension and it is an algorithmic challenge to capture their underlying low-dimensional structure. The subspace approximation problem described below generalizes several problems formulated in this context.
We describe below the special cases of the subspace approximation problem which have been studied previously and the known results about them.
For small : Bădoiu, Har-Peled and Indyk gave a -approximation algorithm running in polynomial time for the minimum enclosing cylinder problem (equivalent to Subspace(1,)), which was further extended by Har-Peled and Varadarajan to Subspace(,) for constant .
For , we do not know any suitable generalization of SVD, and therefore, have no exact characterization of the optimal subspace. The approximation techniques used so far to overcome this are: (i) coresets and sampling-based techniques: which give nearly optimal approximations but only for small or constant and . (ii) convex relaxations and rounding: which give somewhat sub-optimal approximations mostly for large values of ; the only exception is the result of Varadarajan, Venkatesh, Ye and Zhang which works for any (but only for ).
In this paper, we study the problem Subspace(,) for , about which little is known in general. One motivation for doing so is that often the case gives significantly better approximation guarantees and requires somewhat different techniques to analyze than . This is evident in the work for subspace approximation for small ( and for versus and for ) and in the work on regression ( and versus the case which is solvable by fixed dimensional linear programming). Also, in the study of hardness of approximation, the case can often be reduced to a discrete problem; while the case is inherently of a more continuous nature, and requires somewhat different techniques.
We also investigate the hardness of approximation for Subspace(,). We give a reduction from the Unique Label Cover problem of Khot to the problem of approximating Subspace(,) within a factor (which can trivially be extended to a reduction to Subspace(,) for ). The reduction is related to the ones used for similar geometric problems in , and . However, an interesting difference here in comparison to usual reductions is that we use a different (real-valued) encoding of the assignment to Unique Label Cover (in terms of the Fourier coefficients of the long-code instead of the truth table) which is more natural in our context. This may also be useful for other problems of a continuous nature.
Very recently, our techniques were also extended by Guruswami et al. to give a reduction from the Label Cover problem (without assuming the uniqueness property) to approximating Subspace(,) within a factor of . This proves an unconditional NP-hardness for the latter problem.
Other related problems
In this special case, using Grothendieck’s inequality and a technique by Alon and Naor , one can get -approximation. Moreover, in this case, the above problem is also equivalent to finding diameters of convex bodies given by and computing norm of the matrix .
Preliminaries and Notation
2 Bernoulli and Gaussian Random Variables
A Bernoulli random variable is a discrete random variable taking values in with probability each. A standard normal random variables (or -dimensional Gaussian) is a continuous random variable with probability density function . We use to denote the moment of ,
We shall require both upper and lower bounds on moments of a sum of Bernoulli random variables by the moment of an appropriate Gaussian. The following upper bound is one direction of the Khintchine inequality (see ) well-known in functional analysis.
The following version of the reverse direction, when all ’s are much smaller than , can be derived using the Berry-Esseen Theorem (as in ). A proof of the statement below appears in (as Lemma 2.5).
Technical Overview
In this section we describe our results and give a general outline of the sections that follow.
A convex relaxation of Subspace(,) is then obtained by optimizing over arbitrary positive semidefinite matrices and replacing the requirement that the matrix have rank by a condition on the trace of (see Figure 1). This is similar to the relaxations used in . The problem then reduces to giving a “rounding algorithm” which reduces the rank of the matrix (which might be as large as ) to , and achieves a good approximation of the objective value of the convex program.
In keeping with the intuition that the singular vectors of span the orthogonal complement of , our algorithm looks at the singular vectors of the matrix obtained by solving the convex relaxation. It then divides the singular vectors into “bins”, and constructs one vector for each bin by taking a random linear combination of vectors within each bin.
Our algorithm described in Section 4 achieves an approximation ratio of for Subspace(,), where . (See Theorem 4.4.)
We remark that the problem of obtaining low-rank solutions to a semidefinite program was also considered by , and was addressed by simply taking random (chosen according to a Gaussian) linear combinations of the singular vectors of the relevant matrix. However, in their case, they were’ only interested in satisfying the constraints, with an error depending inversely on the rank parameter. In our case, we require a rank positive semidefinite matrix, all of whose eigenvalues are exactly 1. Since the only constraint enforcing this is a constraint on the trace of the matrix, even a small multiplicative error in satisfying the constraint can make some singular values quite small. To resolve this, we proceed by dividing the singular vectors in various bins and take Bernoulli linear combinations, do directly generate the orthogonal singular vectors.
2 A gap instance
3 Unique-Games hardness
In Section 6, we describe a reduction from Unique Label Cover to the problem of approximating Subspace(,) within a factor better than (for a constant ). By a trivial reduction from Subspace(,) to Subspace(,) for any , this gives the hardness of approximating Subspace(,) better than , assuming the Unique Games Conjecture.
To understand the intuition for the reduction, let us consider the simpler problem of testing whether a given function is a “dictator” i.e. for some , which is a useful primitive in such reductions. The problem is to design an instance of Subspace(,) and interpret the description of as a solution to . The required property is that if is a dictator then the corresponding subspace fits the points in with small error. On the other hand, if is “far from being a dictator”, the error is required to be larger by a factor of .
Approximation Algorithm via Convex Programming
To relax the minimization problem for Subspace(,) to a convex problem, we rewrite the distances in the objective as . Noting that is a positive semidefinite matrix of rank , we get the following natural relaxation similar to the one used in .
Note that this relaxation removes the constraint on the rank and relaxes the constraint on the length of the individual vectors to the trace of entire matrix . Also, the objective function is written as which is not convex. However, for solving the convex program, we can work with , which is convex for .
In Figure 2, we give a “rounding algorithm” for the relaxation. Note that the problem here is not really to round the solution to an integer solution as with most convex relaxations, but instead to reduce the rank of the solution to the program, while obtaining a good approximation of the objective.
We shall show the algorithm outputs a matrix of rank which achieves an approximation ratio of in expectation, for even integers . An approximation guarantee for other values of can be obtained via Jensen’s inequality. We state the dependence on precisely as we shall be interested in the case . For notational convenience, we shall use to denote the quantity in the rest of this section.
It is clear that the columns of the matrix given by the algorithm form an orthonormal set since they are all in the span of distinct eigenvectors of , and are normalized to have length 1. However, this assumes that the lengths of the vectors are nonzero. Since a vector is a weighted sum of orthogonal vectors, . The following claim gives a lower bound on this quantity which is also useful in bounding the approximation ratio.
Let be the partition constructed by the algorithm in step 2. Then
Proof: Let and let . Let . Note that the algorithm ensures that for all but in we discard the singleton sets. We will show that , which will prove the claim since .
We argue that for each , , . To see this, let be the maximal index in . At step , was added to set and not to the set . Hence,
Also, there exists at least one such that . This is because was non-empty at step (otherwise it would be a singleton). But then and, hence, .
Finally, we note that for each , contains exactly one element , the eigenvalue corresponding to which is at most 1. Thus,
The following lemma proves the required approximation guarantee for the expected moment of the distance a single point from the orthogonal complement of the column span of .
Let be the solution of the convex relaxation and let be the matrix returned by the algorithm. Also, let be even. Then, for each
Proof: We can expand , using to denote , as
Note that the -s are independent random variables since each only depends on such that , and the sets are disjoint. Using the multinomial expansion and the fact that is even, the above can be written as
The following claim then finishes the proof.
For each , let denote and let denote . Using the above claim we get that
An approximation guarantee for other values of can be obtained via a standard application of Jensen’s Inequality. We state the dependence on precisely as we shall be interested in the case in the later sections. Notice that the approximation factor is , where , in the case , and thus matches the integrality gap and unique-games hardness that appear in the later sections.
Let be the solution of the convex relaxation and let be the matrix returned by the algorithm. Let and let be the smallest even integer such that . Then,
Proof: (Proof of Theorem 4.4) By the concavity of the function and Jensen’s Inequality we have that
and by linearity it suffices to consider a single term of the summation. Another application of Jensen’s (using ) and Lemma 4.2 give that
which completes the proof of the theorem.
Our results are stated in terms of the expected approximation ratio achieved by the algorithm. However, one can get arbitrarily close to this ratio with high probability, simply by considering few independent runs of the algorithm and picking the best solution. In particular, one can achieve an approximation guarantee with probability , by using runs.
A Gap Instance for the Convex Relaxation
Here we describe an instance of Subspace(,) such that the value of any valid solution (which is of rank ) is at least times the value of the convex relaxation. Note that approximation ratio of the algorithm for the case (and even ) is exactly and hence this shows that our analysis is optimal for this case.
Proof: We first consider the value of the LHS. By the rotational invariance of the Gaussian measure, the value is equal for all and we can restrict ourselves to .
In comparison, the optimum of the convex relaxation can be upper bounded by using the matrix .
2 Discretizing the gap example
A discrete analog of the above, i.e., picking sufficiently many samples from the same distribution, gives us our final integrality gap (or “rank gap”) example.
The theorem can be proved by using the continuous gap instance, and concentration bounds for the samples . We defer a full proof to the appendix.
Unique-Games Hardness
We shall show a reduction to subspace approximation problem from the Unique Label Cover problem defined below.
An instance of Unique Label Cover with alphabet size is specified as a bipartite graph with a set of permutations . A labeling is said to satisfy an edge if . We denote by the maximum fraction of edges satisfied by any labeling .
The Unique Games Conjecture proposed by Khot in conjectures the hardness of distinguishing between the cases when the optimum to the above problem is very close to 1 and when it is very close to 0. This conjecture is an important complexity assumption as several approximation problems have been shown to be at least as hard as deciding if a given instance of Unique Label Cover problem has or for appropriate positive constants and .
Given any constants , there is an integer such that it is NP-hard to decide if for given an instance of Unique Label Cover with alphabet size , or .
2 Reduction from Unique Label Cover
Norms for functions are defined as usual (over the uniform probability measure). Note that . When the exponent in the norm is unspecified, denotes .
Given an instance of Unique Label Cover we output the following instance of subspace approximation, for a suitable constant to be determined later:
The following claim shows that the optimum of the subspace approximation problem is low when the Unique Label Cover is instance is highly satisfiable.
If , then
Note that equals if and 0 otherwise. Hence,
Combining the two bounds above gives .
Soundness
For the soundness, we need to prove that if , then where is a small constant depending on and . We first make some simple observations about the optimal solution.
For any optimal solution to the above instance of Subspace(,), it must be true that
We show that if , then in fact the first term itself is approximately . As is standard in Unique Games based reductions, the proof proceeds by arguing separately about the “high-influence” and “low-influence” cases. However, since the inputs for our problem are not in the form of a long-code but the vectors , we will use as a substitute for influence of the variable on the function .
For the vertices where the functions have no influential coordinates, the Central Limit Theorem shows that is very close to . We then show that the contribution of the remaining vertices to the objective function is small.
Below, we define to be the set of vertices corresponding to low influence functions and divide the remaining vertices into three cases which we shall analyze separately. The parameters will be chosen later.
Since is a linear function of Bernoulli variables, Claim 2.3 gives that
as and that is the mean of . Now, since , we get that
Proof: Consider a vertex . Since we know that , we get that
Using this we can again say that must be large on average and, hence, derive a bound on the measure of .
As in the previous claim, we use this to conclude that
Proof: Since , we know that
Construct a labeling for by assigning to each , the special label as above, and to each , a random label satisfying . For, when no such exists or for , we fix a label arbitrarily.
Note that there can be at most choices of satisfying . By the condition on , we know that, in expectation, the labeling satisfies fraction of the edges incident on a . Since the fraction of edges satisfied overall is at most , we get that
Let denote . Using these estimates, we can now prove the soundness of the reduction.
If , then for the reduction with parameters and
We lower bound by . Claims 6.5 and 6.6 and give bounds on the first two terms (with ).
We bound the third term using Claim 6.7 and Hölder’s inequality
where the last bound used that since (see Claim 6.4), we must have
Combining the bounds for the above three terms proves the lemma.
For a small constant such that , choosing parameters as
in Lemma 6.8 would imply that in the completeness case and in the soundness case. This gives the following theorem.
For any and sufficiently small constant , there exist constants and a reduction from Unique Label Cover to Subspace(,) such that if is the fraction of edges satisfiable in the given instance of Unique Label Cover and is the optimum of the instance of Subspace(,), then
Acknowledgments
We thank Kasturi Varadarajan for initiating the work on this problem by suggesting that we generalize the algorithm of and for generous help with an early draft of this paper on which he was offered a co-authorship (but later opted out). MT would also like to thank David Steurer for helpful discussions. We thank the anonymous reviewers of this manuscript for their suggestions and references, and for pointing out an error in the previous proof of Lemma 6.8.
References
Appendix A Proof of Theorem 5.2
as long as we choose large enough so that
Hence, choosing , we have
On the other hand to analyze the value of the corresponding convex relaxation, we use
Choosing , we get
Therefore, the convex relaxation satisfies
Appendix B NP-hardness of Subspace Approximation
In this section, we show unconditionally that the problem Subspace(,) is NP-hard, for , using a reduction from the Min-Uncut problem on graphs. Such a result was also obtained independently by Gibson and Xiao (personal communication).
Min-Uncut problem: Given a graph , find a bipartition of its vertices that minimizes the number of edges with both endpoints on the same side of the bipartition.
where is an integer polynomially large in and which will be chosen later.
No case: Otherwise, for any bipartition the Min-Uncut has at least edges, i.e., for any we have . Now divide the sphere of radius into two parts as follows:
where . For any ,
Case : for some . Then,
Case : for some . Then,
Therefore, using the same analysis as in the previous case, we get
Using the above property of , we get