Learning Geometric Concepts with Nasty Noise
Ilias Diakonikolas, Daniel M. Kane, Alistair Stewart
Introduction
Polynomial Threshold Functions (PTFs) and intersections of Linear Threshold Functions (LTFs) are two fundamental classes of Boolean functions that have been extensively studied in many contexts for at least the past five decades [Der65, MP68, Mur71]. In the noiseless setting, low-degree PTFs are known to be efficiently PAC learnable under arbitrary distributions via linear programming [MT94]. The current state-of-the-art for PAC learning intersections of LTFs is as follows: Even without noise, distribution-independent PAC learning for intersections of LTFs is one of the most challenging open problems in computational learning theory. Efficient algorithms are known for PAC learning intersections of any constant number of LTFs under well-behaved distributions, e.g., under the standard Gaussian distribution [Vem10b, Vem10a]. Dealing with (adversarial) noisy data turns out to be significantly more challenging in general. Recent results (see, e.g., [DLS14, Dan16]) provide strong evidence that learning with adversarial noise is computationally intractable under arbitrary distributions, even for simple concept classes.
In this paper, we focus on the efficient learnability of low-degree PTFs and intersections of (any constant number of) LTFs in the presence of nasty noise. In the nasty noise model [BEK02], an omniscient adversary can arbitrarily corrupt a small fraction of both the unlabeled data points and their labels. The nasty model generalizes a number of well-studied noise models, including the malicious noise model [Val85, KL93]In the malicious model, an adversary can corrupt a small fraction of both the unlabeled examples and their labels. This model is qualitatively similar to (but somewhat weaker than) the nasty noise model. We define these models and explain the relation between them in Section 1.2. and the agnostic (adversarial label noise) model [Hau92, KSS94]. While these noise models were originally defined with respect to arbitrary distributions, it has been recently shown [Dan16] (modulo plausible complexity assumptions) that, even for the class of LTFs, no computationally efficient algorithm can achieve dimension-independent error guarantees. Hence, research in this area has focused on noise-tolerant learning under a number of “tame” distributions. Our goal in this paper is to design polynomial-time robust learning algorithms that can tolerate nasty noise of constant rate, i.e., we want to achieve error guarantees that are independent of the dimension.
Perhaps surprisingly, the concept class of origin-centered LTFs is the only family of Boolean functions for which polynomial-time algorithms are known in the malicious model. This motivates the following broad question that was posed as an open problem in previous work [KLS09, ABL17]:
Are there computationally efficient learning algorithms in the malicious noise model – with dimension-independent error guarantees – for more general classes of Boolean functions?
In this paper, we study this question with a focus on more general geometric concept classes, namely low-degree PTFs and intersections of a constant number of LTFs. We provide new algorithmic and analytic techniques that yield the first polynomial-time PAC learning algorithms for these concept classes in the nasty noise model (hence, in the malicious model as well) with dimension-independent error guarantees.
Specifically, we give a robust learning algorithm for low-degree PTFs in the nasty model that succeeds under a number of well-behaved distributions – including the Gaussian distribution and, more generally, any log-concave distribution with (approximately) known low-degree moments. Prior to our work, no non-trivial efficient learning algorithm was known (even) for degree- PTFs in the (weaker) malicious noise model. (As an implication of our techniques, we also obtain the first efficient learning algorithm with dimension-independent error in the nasty model for LTFs under the uniform distribution on the hypercube.)
For LTFs under the Gaussian distribution, using additional ideas, we give a polynomial-time algorithm that achieves error , where is the noise rate, i.e., it matches the information-theoretically optimal error, up to a constant factor. This is the first malicious/nasty learning algorithm for the class of arbitrary LTFs that achieves error in polynomial time. Our result improves on prior work by Awasthi et al. [ABL17] in two respects: First, [ABL17] achieved an error bound for the special case of origin-centered LTFs, and second their algorithm applies to the weaker malicious/agnostic models. On the other hand, the bound of [ABL17] holds for the more general family of isotropic log-concave distributions.
Our third result is a polynomial-time learning algorithm with dimension-independent error guarantees for intersections of (any constant number of) LTFs in the nasty model under the Gaussian distribution. To the best of our knowledge, no efficient algorithm (with non-trivial error guarantees) was previously known even for intersections of LTFs in the (weaker) malicious noise model.
At the core of our results is an efficient algorithm to approximate the low-degree Chow parameters of any bounded function in the presence of nasty noise. Roughly speaking, the low-degree Chow parameters of a function under a distribution are the “correlations” of (with respect to ) with all low-degree monomials (see Section 1.4 for the formal definition). Our algorithm succeeds for a range of reasonable distributions satisfying mild concentration bounds and moment assumptions. At a high-level, our robust (low-degree Chow parameter estimation) algorithm employs an iterative spectral technique for outlier detection and removal, inspired by recent work in robust unsupervised learning [DKK+16]. Our technique filters out corrupted points relying on the concentration of carefully chosen low-degree polynomials.
Our robust learning algorithms for PTFs and intersections of LTFs use our Chow-parameters estimation algorithm as a basic subroutine. That is, for both concept classes, our algorithms proceed in two steps: (1) We start by approximating the “low-degree” Chow parameters of our function, and (2) We use our approximate Chow parameters from Step (1) to find a proper hypothesis that is close to the target concept.
The algorithm for Step (2) differs for PTFs and intersections of LTFs. For degree- PTFs, we use the fact that approximations to the degree- Chow parameters information-theoretically approximately determines our function. Given this fact, we leverage known algorithmic techniques [TTV08, DDFS14] that allow us to efficiently find an accurate proper hypothesis with approximately these Chow parameters. For intersections of LTFs, we rely on approximations to the degree- Chow parameters. In this case, these parameters allow us to reduce our -dimensional learning problem to a -dimensional problem that we can efficiently solve by a simple net-based method. The correctness of this scheme crucially relies on a novel structural result about intersections of LTFs under the Gaussian distribution that may be of broader interest.
2 Noise Models
3 Previous Work
We now summarize the prior work that is most relevant to the results of this paper.
As mentioned in the preceding discussion, the malicious noise model with respect to arbitrary distributions is known to be very challenging computationally. Even for the class of -dimensional LTFs, the only known efficient algorithm [KL93] achieves an error of , where is the noise rate. Improving on this bound has remained a challenge for a long time, and it was recently shown [Dan16] that this holds for a reason: under plausible complexity assumptions, no efficient algorithm can achieve error at most , for some constant , even if is an arbitrarily small constant.
At the technical level, the algorithm of [KLS09] uses a simple outlier removal method to approximate the degree- Chow parameters, and then finds an LTF with approximately these Chow parameters. (That is, the high-level approach of our work for learning degree- PTFs is a broad generalization of the [KLS09] approach.) It is worth noting that the outlier removal procedure of [KLS09] is a weaker version of the filtering technique from [DKK+16]. On the other hand, the algorithm of [ABL17] uses a soft outlier removal procedure together with localization. Instead of using degree- Chow parameters, [ABL17] uses hinge-loss minimization, which can be solved via a convex program.
Finally, we remark that our work is related to a sequence of recent results on robust estimation in the unsupervised setting [DKK+16, DKK+17a, DKK+17b]. Specifically, our general algorithm to approximate the low-degree Chow parameters with nasty noise is inspired by the outlier removal technique of [DKK+16]. We emphasize however that the setting considered here is vastly more general than that of [DKK+16]. As a result, a number of new conceptual and technical ideas are required, that we introduce in this paper.
4 Preliminaries
We say that a set of labeled samples is -corrupted if it is generated in the nasty model at noise rate , i.e., the adversary is allowed to corrupt an -fraction of samples.
5 Our Results
We start by stating our core efficient procedure that approximates the low-degree Chow parameters of any bounded function under tame distributions in the presence of nasty noise:
Our first PAC learning result is an efficient algorithm for low-degree PTFs in the nasty noise model:
This is the first polynomial-time algorithm for learning degree- PTFs, for any , in the malicious/nasty noise model with dimension-independent error guarantees. The algorithm of Theorem 1.2 starts by approximating the degree- Chow parameters of our PTF using Theorem 1.1, and then employs known techniques [TTV08, DDFS14] to find a PTF with approximately these Chow parameters. The fact that will be small follows from the simple fact that, for the considered distributions, approximation in Chow distance implies approximation in -distance. (This holds for distributions such that has non-trivial concentration and anticoncentration properties for all degree- polynomials .)
Note that the special case of Theorem 1.2 for (LTFs) is a generalization of [ABL17], as our result applies to all LTFs (not necessarily origin-centered). We only require knowledge of the first moments of the underlying log-concave distribution in this case, which is equivalent to assuming isotropic position as is done in [ABL17]. For under isotropic log-concave distributions, the final accuracy of our algorithm will be , while [ABL17] obtains an error bound for origin-centered LTFs. Finally, we note that for , Theorem 1.2 also holds under the uniform distribution on the hypercube, with a quantitatively worse – but still dimension-independent – error of This follows by using the structural result of [DDFS14] relating closeness in Chow distance and -distance in the Boolean domain.
We note that, for the case of LTFs under the Gaussian distribution, the algorithm of Theorem 1.2 has final -error of (see Corollary 4.5). For this setting, we can in fact obtain an efficient algorithm with near-optimal error guarantee:
Our algorithm for Theorem 1.3 starts from the approximate LTF of Theorem 1.2 and uses a new twist of the localization technique of [ABL17] to reduce the error down to . We note that a number of new ideas are required here to make this approach work for all LTFs, as opposed to only origin-centered ones, and to be able to handle nasty noise.
Our third algorithmic result gives the first efficient learning algorithm for intersections of LTFs in the malicious/nasty noise model:
For Theorem 1.4, after approximating the degree- Chow parameters of , we give a relatively simple method to reduce the problem down to dimensions. The correctness of this dimension-reduction scheme makes essential use of the following new structural result, that we believe is of broader interest:
6 Our Techniques
In this section, we give a detailed outline of our techniques in tandem with a comparison to previous work.
All our robust PAC learning results hinge on a new algorithm to approximate the degree- Chow parameters of any bounded function with respect to a sufficiently nice distribution , even under noise in the nasty model (see Proposition 2.2). Before we explain the ideas underlying this algorithm, we elaborate on the metric in which these approximations are guaranteed to be “close”. To motivate our choice of metric, we will first discuss another interpretation of the degree- Chow parameters of a function . In particular, these parameters encode a linear functional mapping degree at most polynomials to the expectation . It is natural to put a norm on Chow parameters that is the dual of the norm on polynomials (with respect to ). In particular, when we say that we have approximated the degree- Chow parameters of to within error , we will mean that we have found a linear functional mapping degree at most polynomials to real numbers so that for any normalized degree- polynomial , we have that .
We start by noting that if we had access to noiseless samples, the desired approximation would be easy to perform. In particular, we could take to be the empirical expectation of , and then – so long as satisfies even mild concentration bounds – with sufficiently many samples it is straightforward to show that this will be a good approximation with high probability. It turns out that so long as we have reasonably good tail bounds for , this empirical approximation also works well even against noise in the adversarial label (agnostic) noise model. This holds essentially because changing the value of on a small number of samples can only have a large impact on the expectation of if is especially large a decent fraction of the time.
The situation becomes substantially more challenging when the noise can adversarially corrupt the unlabeled examples as well, and in particular in the nasty noise model. The essential problem here is that the error in the values allows an adversary to produce many sample values where is unusually large for some particular , and this will – almost regardless of the labels of these points – cause substantial errors in the empirical expectation of . In order to circumvent this obstacle, we will need a technique for detecting and removing these outliers, and for this we will make use of a “filter” technique inspired by recent work on robust distribution learning [DKK+16].
The basic idea here is that if the algorithm knew which polynomials the adversary was trying to corrupt, it could simply remove all of the sample points for which was too large, thus removing these errors. Unfortunately, every sample will have be abnormally large for some polynomials , so our algorithm will need to find a way to identify particular polynomials for which our expectation may have been substantially corrupted. In order to achieve this, we note that since there must be many erroneous points for which is large, this will cause the empirical expectation of to be substantially larger than it should be. This anomaly can be detected (assuming that the algorithm knows good approximations to the true moments of ) by a spectral technique, namely an eigenvalue computation. If such a is found then, assuming good tail bounds on the distribution of , the fact that we have many data points with much larger values of than should be likely, will allow us to find a large set of samples most of which are corrupted. This step essentially produces a strictly cleaner version of our original corrupted sample set, and by iterating this algorithm we eventually reach a point where there are no longer any bad polynomials. At this point, we can show that the empirical approximation of the Chow parameters will be accurate.
Although the basic intuition outlined above is well in line with recent works [DKK+16, DKK+17b] making use of the filter technique, there are a few crucial technical differences in our setting. The first of these is that we are now working in a much more general context. Previous works tended to make very specific assumptions about the underlying distribution (e.g., Gaussian or balanced product distribution). Here, we are only making assumptions about tail bounds of higher-degree polynomials. Importantly, existing works typically only needed to ensure that the expectations of degree- and polynomials were correct, while in our setting we will inherently need to use filters dealing with polynomials of larger degrees. We also run into a new technical complication in the initial steps of the algorithm. In order to get the filter technique to work, we need to begin by throwing away all of the “extreme” outliers. This is required for somewhat technical reasons involving showing that a number of necessary concentration bounds hold. In previous works, the criteria for identifying these extreme outliers were generally fairly simple (e.g., throwing away a point being too far from the mean in some appropriate metric). However, in our case, we have less structure to deal with, and therefore need a somewhat more general criterion. In particular, we throw away outliers where is too large for any normalized degree- polynomial .
Our robust algorithm for low-degree Chow parameter estimation has immediate applications for robustly learning the Chow parameters over a distribution , if is a Gaussian, Bernoulli, or log-concave distribution (where in the latter case, the algorithm must also know the low-degree moments of ). In the following paragraphs, we explain how to apply this algorithm as a core subroutine to robustly PAC learn geometric concept classes.
Robust Learning for Low-Degree PTFs.
We note that, for large constant , one cannot expect to do substantially better than this bound using only an approximation of the degree- Chow parameters. This is because there are pairs of degree- PTFs for which this vs. type relation is nearly tight. This suggests some sort of “integrality gap” getting in the way: No generic algorithm will be able to learn the low-degree Chow parameters of an -noisy PTF to error better than , and no generic algorithm will be able to learn a degree- PTF to error better than from its degree- Chow parameters. However, this is not the case for the special case of linear threshold functions, where -distance and Chow distance are indeed proportional.
Optimally Robust Learning of LTFs.
For the case of LTFs, the relation between Chow distance and -distance allows for the possibility of a much better algorithm: that of learning LTFs to an optimal error. In fact, we give such an algorithm over the Gaussian distribution. We note that a naive application of the ideas of the previous paragraph is already sufficient to obtain an error of only . Removing the final logarithmic term requires several new ideas. The overarching principle in our new algorithm is to use the localization technique of [ABL17], though with slightly different technical backing.
Our algorithm will run an initial first pass to obtain an approximation to . This step approximates by an LTF with separator given by some hyperplane . We will then perform rejection sampling on our inputs in order to simulate samples from another Gaussian distribution centered around . Learning with respect to this new input distribution will allow us to refine our original guess.
There are two major impacts of our restriction procedure. The first is that if most of the erroneous samples are near , they might survive the rejection sampling process with higher probability than other points. This means that the fraction of errors in our simulated sample set may be much larger. To compensate for this though, this restriction will amplify the effect of small errors in , as moving away from now much more quickly moves one away from the center of the distribution. This means that learning even rough information about the restriction of will give us useful information about the original problem. These two effects, as it turns out nearly cancel each other out, with the exception that the term in the error becomes a , where is the (now much larger) error rate for the restricted distribution. By iterating this technique with thinner and thinner restrictions, we can eventually converge on to an error of only .
Robust Learning of Intersections of LTFs.
As a final application, we give a robust algorithm for learning intersections of LTFs with respect to the Gaussian distribution. This algorithm is very different than the one for PTFs, as it is not possible to recover such a function from its low-degree Chow parameters directly. For this problem, we will need to make use of a somewhat different idea.
The key insight is that if is the indicator function of an intersection of halfspaces, then only depends on linear functions of the input. If we could identify these directions, we could project our inputs down to a -dimensional subspace and proceed by applying even relatively inefficient algorithms to learn a function on this low-dimensional space. In order to learn this subspace, we note that for any perpendicular to all directions of interest, is uncorrelated with for any function (and in particular polynomial function) . If we knew the degree- Chow parameters of , this would imply that was a null-vector of the associated matrix. This would allow us to easily identify such vectors .
In order to turn this into an algorithm, we will first need an inverse version of this theorem. Namely, that if for some vector that is uncorrelated with for all degree- polynomials , we will need to know that is in fact independent of the -direction. In fact, since we only know approximations to the Chow parameters, we will need a robust version of this statement. Namely if for all degree- polynomials , we have that is nearly uncorrelated to , that will be nearly constant in the -direction. See Theorem 5.2 for the technical statement of this result.
The aforementioned robust structural result allows a very natural algorithm: We start by learning approximations of the degree- and Chow parameters of . We then let be the subspace spanned by the vector of degree- Chow parameters and the largest eigenvalues of the matrix corresponding to the degree- Chow parameters. It is not hard to see that is nearly uncorrelated to for any . This along with the above structural result allows us to approximate by a function that depends only on the projection , which as described above, can be learned by brute-force methods.
We note that the algorithm of [Vem10a] for finding the -dimensional invariant subspace is similar to ours. Instead of considering the largest eigenvalues of the degree- Chow parameters, the algorithm of [Vem10a] relies on the smallest eigenvalues of the covariance of the positive samples, which is roughly equivalent. The correctness of this algorithm uses the following lemma: in the -dimensional subspace in which the intersection is non-trivial, the variance of the positive samples is less than one, which has some similarities with our structural result. The major difference is that our structural lemma is robust, and as a result our algorithm can tolerate nasty noise (using our approximations to the Chow parameters).
7 Organization
The structure of this paper is as follows: In Section 2, we give our algorithm to robustly estimate the low-degree Chow parameters of a bounded function, thereby establishing Theorem 1.1. In Section 3, we describe the required machinery to prove Theorem 1.2. Section 4 proves our robust learning algorithm for LTFs with near-optimal accuracy (Theorem 1.3). Finally, in Section 5, we give our algorithm for robustly learning intersections of LTFs (Theorem 1.4) and the associated structural result (Theorem 1.5).
Robust Estimation of Low-Degree Chow Parameters
Specifically, we introduce the following definition:
(Concentration) A tail bound for all degree at most polynomials: that is, a function such that for all polynomials with , .
(Known Approximations of Low-Degree Moments) A matrix such that , for some relative error that is smaller than a sufficiently small constant.
A parameter that satisfies . Intuitively, the parameter is the maximum amount by which an -probability mass can contribute to the .
We will see in the next section that many common distributions satisfy this definition (for appropriate parameters), including the Gaussian distribution, log-concave distributions, the uniform distribution over the hypercube, etc.
Now we can state the main proposition from which our main algorithmic applications will follow:
At a high-level, the algorithm works as follows: First, we pre-process our corrupted set of samples using a basic pruning step. Specifically, we remove samples such that there is a polynomial of degree at most with and . Our main algorithm is an iterative filtering procedure: Using the largest eigenvalue and eigenvector of an appropriate matrix, we can detect whether there is such a polynomial whose variance is bigger in than . If there is, we can use the tail bound to find a filter that throws out points where is too large. If there is no such polynomial, then we show that the empirical Chow parameters suffice, so we output those. Formally, the algorithm is the following:
The algorithm as written assumes that is non-singular. If it is singular, we can find its null vectors. Each of these corresponds to a non-constant polynomial with and so with probability , . If we pre-process by removing all points with for all such polynomials, then we can ignore these null-vectors. We can then replace all the inverses in the algorithm with Moore-Penrose pseudo-inverses and still get the same guarantee.
For all , we have that .
A set that satisfies conditions (i) and (ii) is called -good.
Before showing that a set of random samples is good, we need a couple of lemmas about our pruning process. Firstly, we show that our pruning indeed implies a bound on the value of the polynomials we consider:
We next need to show that the pruning step does not throw away too many points:
We have that: . If is any set of points satisfying Condition (i) of Definition 2.4, then .
Then we have that , and that
Recall that, by our assumption on , we have , and thus we have
Since , one of these conditions must fail. However, we argued that this event happens with appropriately bounded probabilities under both and . This completes the proof. ∎
Now we can show that a large enough set of samples drawn from is -good with high probability.
With probability , if is a set of samples from , then is -good.
To establish condition (i), we note that the VC-dimension of the set of degree- PTFs is . So, by the VC-inequality [DL01], with probability , we have that
By a union bound, all the above -probability events hold with probability at least . This completes the proof. ∎
Now we can analyze the main loop of the algorithm. We either have that the empirical distribution has moments that well approximate those of or else the algorithm produces a filter that improves . Let be the size of the symmetric difference between and . Then, it suffices to show that a single iteration satisfies the following:
If we run the main loop of the algorithm above on a set of samples such that for some -good set , then either (a) we have that , for all polynomials with degree at most that have , or else (b) the loop gives a set with .
The case when we exit the loop is simple. For every polynomial with degree at most that has , there is a vector such that . Thus, we have
we deduce that .
For any polynomial , we can write:
So, when , we have for all such .
It remains to show that the algorithm produces a filter with the desired properties when Note that
and so . On the other hand, we have . We show that this is only possible when is bigger under than under , and that under these circumstances, we there exists a valid threshold for our filter.
Let be the subset of that contains the points satisfying . Then, we write for disjoint and . Thus, we have
We start with the following simple lemma:
For all polynomials with degree at most and , we have .
On pruned samples , we have that by Lemma 2.5, and therefore
where we used that the set is the pruned set satisfying Condition (ii) of Definition 2.4. The triangle inequality now gives that
We now show that the contribution of the set to the expectation of is small:
For all polynomials of degree at most with , we have .
Since , for any event , we have that , and therefore
Thus, we have the following sequence of inequalities:
For all polynomials of degree at most with , we have that .
This follows from the equation for similar to (1), using Lemmas 2.10 and 2.9, and the fact that . ∎
Our goal is to show that our algorithm will indeed find a filter in this case, i.e, there exists such that . We will show this by contradiction using the following intermediate lemma:
If for all , we have that , then we have .
Since , it follows that
Since , by a similar proof to that in Lemma 2.10 above, we have that
Now we are ready to show that we do find a filter:
If , then there exists a with .
We show the contrapositive. Suppose that there is no such , then by Lemma 2.12 we get that
Now recall that . We can apply Lemma 2.9 to to obtain
Using equation (1) and the fact that , we have
However, this implies that , yielding the desired contradiction. ∎
The algorithm thus finds a filter in this case. We next show that it rejects more points from than , thus reducing :
We have that .
Using the tail bound and the goodness of , we obtain that
On the other hand, the filter rejects samples with of which there are at least many in . With appropriate choice of constant, we obtain that at least of the rejected samples are from and not . A similar analysis to Claim 8.12 of [DKK+16] gives the lemma. ∎
Since neither nor contain any points with , we also have . This completes the proof of Proposition 2.8. ∎
Now we analyze the case that we exit the loop. Our aim is to show the following lemma:
For any polynomial of degree at most with , we have that
Since the expectations the algorithm outputs are those over , Lemma 2.15 implies that the linear combinations that give an approximation to have this error, and so the algorithm is correct.
To prove Lemma 2.15, we will need to show a number of intermediate statements. Firstly, we note that the pruning step does not affect this expectation under much:
We need a bound on this last term, which we obtain as follows:
Finally, we can bound from above the contribution of the set to the expectation of when the algorithm terminates
If is the final set of samples when the algorithm terminates, then for all polynomials of degree at most and , we have .
Proposition 2.8 gives that , Lemma 2.10 gives that , and Lemma 2.9 gives . Thus, we have
recalling that . ∎
We have the following sequence of inequalities:
where the penultimate line uses Lemmas 2.9, 2.10, and 2.17. ∎
2 Application of Generic Result to Tame Distributions
For the standard -dimensional Gaussian distribution and the uniform distribution over , we obtain the following corollary:
Theorem 2.18 follows immediately from Proposition 2.2 via the following standard concentration inequality:
Finally, we note that similar bounds can be obtained for balanced product distributions over the hypercube, i.e., product distributions in which each coordinate is not too-biased towards or .
Log-concave Probability Distributions with Approximately Known Moments.
Theorem 2.20 can be deduced from Proposition 2.2 via the following standard concentration inequality (see, e.g., Theorem 7 of [CW01]).
We now provide the details. Note that and satisfy Definition 2.1 with and . Indeed, for we can calculate exactly.
Similarly, log-concave distributions with known degree at most moments satisfy Definition 2.1 with and .
If , we can take , .
If instead , we can take , .
Next, we obtain the bound on for (i). To get a bound on , we will need the following technical claim:
Thus, we can take .
The case when is similar. ∎
Robust Learning of Polynomial Threshold Functions under Tame Distributions
In this section, we show the following theorem, which is a detailed version of Theorem 1.2:
To prove our theorem, we need an efficient algorithm that starts with approximations to the low-degree Chow parameters and computes approximations to the coefficients of the polynomial. This can be done by known techniques, as is implicit in prior work [TTV08, DDFS14] (see also [DDS12b]).
For LTFs under the Gaussian distribution, there is a much simpler algorithm to post-process the approximate Chow parameters obtained from Theorem 2.18 that gives a final -error of . See Corollary 4.5.
We note that the above theorem is not explicitly stated in the above form in previous work, but it follows easily from their proofs.
We have that and have Chow distance at most or . We need to prove a bound on the -distance.
For log-concave distributions, including the Gaussian, we will use:
Suppose for a contradiction, that this probability is smaller than . Then, for any , if , then by a union bound with probability at least , we have both and , and so . In summary, for any , we have
Rearranging gives and , which completes the proof. ∎
Now we note that if a PBF is close then so is the corresponding PTF.
For the uniform distribution on , we obtain -distance for the case by using a similar argument except using Theorem 7 of [DDFS14] in place of Lemma 3.4.
Optimally Robust Learning of LTFs under the Gaussian Distribution
In this section, we prove the following theorem, a restatement of Theorem 1.3:
In the subsequent discussion, all probabilities and expectations are with respect to the standard -dimensional Gaussian distribution, , unless otherwise specified. We use to denote the pdf of the standard one-dimensional Gaussian distribution.
for some unit vector and real number . We call the defining vector and we call the threshold.
Next, in order learn our threshold up to a given error, we will need to have a better idea of how much an error in our parameters contributes to an error in our function. We prove the following:
Notice that the derivative of at is given by
Therefore, as , and thus for sufficiently small , . This completes our proof. ∎
As our main technique is to learn via the Chow parameters, we will want to know the relationship between our threshold function and its Chow parameters. In particular, we have:
It is clear that for all . Thus, we only need to evaluate . It is easy to see that this is
Combining this with Lemma 4.2 and Theorem 2.18, we easily obtain the following pair of corollaries:
There is an algorithm that given an -approximation to the degree- Chow parameters of an LTF along with an -approximation of its expectation, yields an -approximation of the function.
Take samples to obtain an -approximation, , of .
Using Theorem 2.18, compute , an -approximation to the degree- Chow parameters of .
Although this algorithm only learns to error , it can be improved using boosting. The basic idea will be to refocus our attention towards the samples close to the boundary between the and regions of our function. A very convenient way to do this restriction is to do rejection sampling in such a way that we end up with another Gaussian centered around the separating hyperplane. For this, we need to define an appropriate method of rejection sampling.
This definition will be useful to us because of the following property:
If elements taken from the standard Gaussian are fed into the -rejection procedure, a point is accepted with probability . Moreover, the distribution on conditional on acceptance is that of , where is the matrix with eigenvalue in the -direction and eigenvalue in all orthogonal directions.
First, we note that the distribution of in directions orthogonal to is Gaussian distributed and independent on both the -component and the rejection probability. Therefore, it suffices to consider the one-dimensional problem of a Gaussian just along the line parallel to . In this case, the probability that and is accepted by our rejection procedure is to
Since the latter term is the probability density function of , this proves the second statement. This also implies that the integral over must be , which proves the first statement. ∎
Furthermore, given , and a -approximation to the degree- Chow parameters of , one can obtain an -approximation to the Chow parameters of .
The last part of this lemma is particularly relevant, as if we can -approximate the degree- Chow parameters of for (the error to which we can compute ), this allows us to -approximate our original . Of course, this may still not be possible to do with Corollary 4.5 alone. However, we will only be off by a -factor, rather than a factor. This is particularly useful if we can pick to be very small.
If all of our samples were exactly coming from , then by Lemma 4.7, the distribution conditional on acceptance would be where is distributed as . Letting , we have that is distributed as the standard normal, and our distribution is equivalent to , where
By Lemma 4.7, the probability of a sample being accepted is at least
Therefore, the variation distance between the conditional distribution and is at most the distance between our original distribution and divided by our probability of accepting, or .
For the last statement, note that , and . This means that . Hence, is an LTF with threshold
Therefore, by Lemma 4.3, the degree- Chow parameters of are a constant multiple of . Thus, if is a -approximation of the degree- Chow parameters, we have that . Taking the component perpendicular to , we find that
Noting that is bounded away from , this allows us to compute to error . We can then compute to error as .
Considering the part of orthogonal to , we obtain an -approximation of . This gives us an -approximation of , and combined with an -approximation to , we can obtain an -approximation to , the defining vector for . By Lemma 4.3, this is sufficient to obtain an -approximation to the degree- Chow parameters . This completes our proof. ∎
This allows us to iteratively improve our approximations to the Chow parameters of an LTF.
Let be an LTF with threshold . Suppose that we are given , a -approximation to the degree- Chow parameters of , and sample access to an -corrupted version of . Then, if and , there is an algorithm that takes polynomial time and samples, and returns an -approximation to the degree- Chow parameters of .
Let and be the normalization of our approximation of the degree- Chow parameters of . We note that . We also note that if is defined by the unit vector , then the degree- Chow parameters of are , which is within of . Therefore, This means that for some and with . Now taking our samples from and -rejection sampling based on the first coordinate, by Lemma 4.8 we obtain -noisy samples to . Inverting the linear transformation in the first coordinate and applying the algorithm from Theorem 2.18, we obtain an -approximation to the degree- Chow parameters of . Applying Lemma 4.8 again, this gives us an -approximation to the degree- Chow parameters of . But this is simply an -approximation, as desired. ∎
Iterating this result, we immediately obtain the following corollary:
Let be an LTF with threshold such that . Then there is an algorithm that given and sample access to an -corrupted version of , takes polynomial time and samples and returns and -approximation to the degree- Chow parameters of .
Using Theorem 2.18, we obtain a -approximation to the degree- Chow parameters of .
Let , and use Lemma 4.9 to obtain a -approximation to the degree- Chow parameters of , for some sufficiently large .
If , return to Step 3.
To prove correctness, note that for all , and therefore for all , so the hypotheses of Lemma 4.9 are always satisfied in Step 3. Next note that , so the are decreasing and always shrinking by a factor of at least , unless . Therefore, we reach Step 5 in at most iterations, and when we do . This completes the proof. ∎
Unfortunately, this algorithm only works when , while we would need to deal with as large as to make our algorithm work in general. This is for somewhat technical reasons. Essentially, if we have very extreme thresholds, our rejection sampling procedure will fail. This happens because the Gaussian we need after restriction is too wide. This will mean that we need a reasonable chance of selecting points even further than from the origin in the -direction, and this will in turn force our acceptance probability to be too small. To correct this issue, we will want to restrict to an even narrower Gaussian. Of course, this will make our acceptance probability even smaller, and thus the fraction of accepted points that are in error will become much larger. However, we will also allow ourselves to vary the exact threshold at which we perform our cutoff, this will mean that on average the fraction of accepted points that are in error will not be too big.
We can use these ideas to prove an improved version of Lemma 4.9 that gets around the condition, in exchange for producing a poly-logarithmic number of outputs.
Let We note that is a -approximation to the defining vector of . We can write this defining vector uniquely as for non-negative real numbers with , and a vector . We note that . Thus, we may assume that is less than a sufficiently small constant. However, rounding to the nearest multiple of introduces a variation distance error of at most , and an error in the degree- Chow parameters. Therefore, up to introducing another error in our sampling, we may assume that is a multiple of . Guessing the value of , we note that we are correct with probability . The remainder of this algorithm is conditional on this correctness. Thus, henceforth, we will assume that the algorithm knows the value of , and hence also knows the value of .
Next, pick a random threshold . This will be the threshold that we will try to restrict to.
We will then apply the -rejection procedure with to samples from our noisy version of rejecting based on the first coordinate. If there were no errors, our acceptance probability would be However, it will be important to know that it is impossible to have our errors be too likely to be accepted by this procedure. Now it is possible that, for certain values of , we will accept too many errors. However, we wish to show that on average it is not too many. In particular, for a point we consider In particular,
This means that, for most , the sum of the fraction of samples that are either bad and accepted or would have been accepted if they were not corrupted is . For such , the fraction of accepted samples that come from corrupted samples is at most . We assume in the following that the algorithm found such an .
We will now need to mimic the latter half of Lemma 4.7. In particular, were there no corruptions, the accepted samples would be from the distribution with , though as it stands we have instead an -noisy version of this. Letting , we find that is distributed as a standard Gaussian and our distribution is close to , where is the LTF
which has absolute value at most .
Now employing Theorem 2.18, we can learn the degree- Chow parameters of to error . By Lemma 4.3, this allows us to learn the defining vector of to error
On the other hand, this defining vector is a known constant multiple of . Therefore, we can learn to error , and thus learn the degree- Chow parameters of to error .
Note that itself cannot be too big. In particular, we have that
Therefore, we learn the defining vector of to error .
If , use Lemma 4.9.
Let be a random multiple of between and and let be the positive real number so that .
Let be a uniform random element of .
Apply the -rejection procedure with to our sample set, treating the accepted samples as .
Assuming that this is an -noisy copy of an LTF with , use Theorem 2.18 to learn the degree- Chow parameters of to error , call these .
Let be the solution to .
We can now iterate Proposition 4.11 to obtain the following:
Let be an LTF with threshold . There is an algorithm that given , and sample access to an -corrupted version of , takes polynomial time and returns a vector that, with probability at least , is an -approximation to the degree- Chow parameters of .
Let be a sufficiently large constant.
Run Theorem 2.18 to compute , a -approximation of the degree- Chow parameters.
Let be the output of the algorithm from Proposition 4.11 run on our samples with inputs .
Let
Robust Learning of Intersections of LTFs under the Gaussian Distribution
In this section, we prove our algorithmic result for intersections of LTFs. Specifically, we show the following theorem, a detailed version of Theorem 1.4:
Our algorithm makes essential use of the following structural result, a detailed version of Theorem 1.5, whose proof is deferred to the following subsection:
Given the above proposition, the algorithm to establish Theorem 5.1 is quite simple.
The idea of the algorithm is quite simple. Using the algorithm from Theorem 2.18, we compute approximations to the degree- and degree- Chow parameters of . Note that these Chow parameters allow us to approximate for any degree at most polynomial . Using Proposition 5.2, this allows us to identify a low-dimensional subspace , so that is close in variation distance to , for the indicator function of an intersection of LTFs. However, since is defined on a low-dimensional space, we can easily determine a sufficient using standard cover arguments. The algorithm is as follows:
Using the algorithm from Theorem 2.18 to compute and , which are -approximations to the degree- and degree- Chow parameters of , respectively.
Let be the subspace spanned by and the eigenvectors of corresponding to the largest eigenvalues.
Let be a sufficiently large multiple of .
Let be a -cover of the set of intersections of LTFs on .
Using a standard hypothesis testing routine (tournament), find an element of so that is -close to .
To analyze this algorithm, we would first like to use Proposition 5.2 to show that is -close to being a function of the form , for some intersection of LTFs. To do this we need to show that, for of unit norm orthogonal to , for any normalized, mean polynomial it holds that is small. Note that is a linear combination of and with coefficients. Letting and be the true degree- and degree- Chow parameters of , we have that and We need to show that each of these are small.
Since , we have and thus that .
The other term is slightly more challenging. We similarly have that . Since is orthogonal to the top eigenvectors of , it must be the case that , the eigenvalue of . We need to show that this is small. To do so, we will show that for any subspace of dimension , there exists a unit vector with small. For this, we note that since is rank , there exists such a in the kernel of . For this , we thus have that . Therefore, , and thus, .
Now applying Proposition 5.2, we know that is -close to , for some intersection of LTFs.
The remaining analysis is straightforward. We can easily produce a -cover of size , since we only need an intersection of LTFs in -dimensions. We know by the above that some should cause the distributions in question to be close, and the hypothesis testing procedure will find it with an appropriate number of samples. This completes the proof. ∎
2 Proof of Proposition 5.2
We proceed to prove the contrapositive. Assume that and show that there is some with large. Our basic idea will be to consider the projection of onto the line defined by . Namely, let
We note that is the projection of a log-concave function, and therefore, is log-concave. In particular, this means that is unimodal. If we can show that is not too close to being constant, we will obtain our result.
To do this, we note that if is large, there must be some pair and so that and are far apart as functions of . We claim that this will imply that , and cannot be close for all between and . In particular, we show:
Suppose that for some that (where the -norm is taken over being assigned Gaussian values). Then, there exists a between and so that some pair of , and differ by at least
We let for some to be chosen later. Because projections of log-concave functions are log-concave, must be at least . Our basic plan will be to show that this cannot be tight.
Let . We may assume without loss of generality that . This means that Note that since is the indicator function of an intersection of LTFs, the set on which is a union of LTFs. Therefore, there must be a halfspace on which is 0, and so that . Let be the halfspace for some unit vector . Let be the projection of onto the -direction. Namely, . Note that is a -variable log-concave function and that
Also note that being a projection of , we have that takes values in $H(a,t)=\frac{1}{\sqrt{2\pi}}e^{-t^{2}/2}h(a,t)$.
Note also that for and
Let . Note by the log-concavity of that . Furthermore, by standard results we have that
The basic idea of the proof is that if , for some , we have that
This is particularly relevant when , as . In particular, for some parameter (to be chosen later), we have that
Note that since integrates to and since it is bounded by the Gaussian pdf, we have that the integral of for is at least . Therefore, there is some with so that Therefore, we have that
Note that Therefore, Choose so that . In other words, , so Furthermore, since , . Let . We have that
Now if , we are done. Otherwise, we must have , and we can already attain a difference of between and . This completes the proof. ∎
If we have that , then there must be some and not in the -tails of the Gaussian distribution so that and . The above lemma implies that there is some (potentially different) pair and not in the -tails of the distribution so that We claim that this is enough to find a polynomial .
First, note that polynomials with expectation are linear combinations of and . Therefore, their quadratic term and their unit term are negatives of each other, and therefore the product of their roots is . Let be the smallest number so that is contained in an interval where the product of the endpoints is at least . There exists an interval so that is at least on the interior of and at most outside of . We let be the unique degree- polynomial with and , so that has roots and and positive leading term.
It is clear that since it is and is everywhere non-negative. It only remains make this claim effective.
First, we proceed by improving the separation between and . Without loss of generality, assume that and . Let By log-concavity, we have that is at least on . Let . We have that is at most on . Furthermore, note that the Gaussian mass of each of and is at least .
Applying this lemma, immediately gives a polynomial with and , so that . Letting be the multivariate polynomial defined by , we find that is a mean , variance polynomial with . Thus, if , there is a with . Equivalently, if there is no such polynomial with , it must be the case that , as desired. ∎
Improving on this, we obtain the following corollary:
Let be the span of the vectors defining the LTFs defining . Note that we already have that , therefore, we lose nothing by restricting our problem to . Thus, we may assume that . Without loss of generality, we may assume that is the span of the first coordinates. Letting be independent, one-variable Gaussians, we have by our proposition that
Therefore, writing , where is the first coordinates and the remaining coordinates, we have that
This implies that there should be a fixed value of so that the expectation over the remaining variables is
Taking , yields our result. ∎