






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























Abstract We give the first dimension-efficient algorithm that learns (under distributional assumptions) a halfspace in the difficult agnostic framework of Kearns et al. [21], where a learner is given access to a distribution on labelled examples but the labelling may be arbitrary (similar to malicious noise). It constructs a hypothesis whose error rate on future examples is within an additive ≤ of the optimal halfspace, in time poly(n) for any constant ≤ > 0, for the uniform distribution over {− 1 , 1 }n^ or unit sphere in Rn, as well as any log-concave distribution in Rn. It also agnostically learns Boolean disjunctions in time 2 O˜(
√n) with respect to any distribution. The L 1 polynomial regression algorithm is a natural noise-tolerant arbitrary-distribution generalization of the well known “low-degree” Fourier algorithm of Linial, Mansour, & Nisan. We observe that significant improvements on the running time of our algorithm would yield the fastest known algorithm for learning parity with noise, a challenging open problem in computational learning theory. Additionally, we obtain a new algorithm for PAC learning halfspaces under the uniform distribution on the unit sphere which tolerates more malicious noise than previous algorithms.
Halfspaces have been used extensively in Machine Learning for decades. From the early work on the Perceptron algorithm in the 50’s, through the learning of artificial neural networks in the 80’s, and up to and including today’s Adaboost [12] and Support Vector Machines [38], halfspaces have played a central role in the development of the field’s most important tools. Formally, a halfspace is a Boolean function f (x) = sgn(
∑n i=1 wixi^ −θ).^ While efficient algorithms are known for learning halfspaces if the data is guaranteed to be noise-free, learning a halfspace from noisy examples remains a challenging and important problem. Halfspace-based learning methods appear repeatedly in both theory and practice, and they are frequently applied to labeled data sets which are not linearly separable. This motivates the following natural and well-studied question: what can one provably say about the performance of halfspace-based learning methods in the pres- ence of noisy data or distributions that do not obey constraints induced by an unknown halfspace? ∗Some of this research done while visiting TTI-Chicago. †Supported in part by NSF CAREER award CCF-0347282 and a Sloan Foundation fellowship.
Can we develop learning algorithms which tolerate data generated from a “noisy” halfspace and output a meaningful hypothesis?
The agnostic learning framework, introduced by Kearns et al. [21], is an elegant model for studying the phenomenon of learning from noisy data. In this model the learner receives labeled examples (x, y) drawn from a fixed distribution over example-label pairs, but (in contrast with Valiant’s standard PAC learning model [36]) the learner cannot assume that the labels y are generated by applying some target function f to the examples x. Of course, without any assumptions on the distribution it is impossible for the learner to always output a meaningful hypothesis. Kearns et al. instead require the learner to output a hypothesis whose accuracy with respect to future examples drawn from the distribution approximates that of the optimal concept from some fixed concept class of functions C, such as the class of all halfspaces f (x) = sgn(v · x − θ). Given a concept class C and a distribution D over labeled examples (x, y), we write opt = minf ∈C PrD[f (x) 6 = y] to denote the error rate of the optimal (smallest error) concept from C with respect to D. For intuition, one can view agnostic learning as a noisy learning problem in the following way: There is a distribution D over examples x and the data is assumed to be labeled according to a function f ∈ C, but an adversary is allowed to corrupt an η = opt fraction of the labels given to the learning algorithm. The goal is find a hypothesis h with error PrD[h(x) 6 = y] as close as possible to η. (We note that such a noise scenario is far more challenging than the random classification noise model, in which an η fraction of labels are flipped independently at random and for which a range of effective noise-tolerant learning algorithms are known [19, 4].) Unfortunately, only few positive results are known for agnostically learning expressive concept classes. Kearns et al. [21] gave an algorithm for agnostically learning piecewise linear functions, and Goldman et al. [14] showed how to agnostically learn certain classes of geometric patterns. Lee et al. [24] showed how to agnostically learn some very restricted classes of neural networks in time exponential in the fan-in. On the other hand, some strong negative results are known: in the case of proper learning (where the output hypothesis must belong to C), agnostic learning is known to be NP-hard even for the concept class C of disjunctions [21]. In fact, it is known [25] that agnostically learning disjunctions, even with no restrictions on the hypotheses used, is at least as hard as PAC learning DNF formulas, a longstanding open question in learning theory. Thus, it is natural to consider, as we do in this paper, agnostic learning with respect to various restricted distributions D for which the marginal distribution DX over the example space X satisfies some prescribed property. This corresponds to a learning scenario in which the labels are arbitrary but the distribution over examples is restricted.
The following two observations are the starting point of our work:
Part 1(a) follows from our analysis of the L 1 polynomial regression algorithm combined with the Fourier bounds on halfspaces given by Klivans et al. [22]. Part 1(b) follows from the same analysis of the algorithm combined with concentration bounds over the n-dimensional sphere. In proving such bounds, we use the Hermite polynomial basis in analogy with the Fourier basis used previously. (We note that learning halfspaces under the uniform distribution on Sn−^1 is a well- studied problem, see e.g. [1, 2, 19, 27, 28].) As before, we show that a related algorithm gives a hypothesis with error O(opt + ≤) in time nO(1/≤ (^2) ) . In Section 4.2, we show that algorithms for agnostically learning halfspaces with respect to the uniform distribution on { 0 , 1 }n^ can be used to solve the well-known problem of learning parity functions with respect to random classification noise [5]. This indicates that substantially improving the results of part (1) may be very difficult. For example, even an nO(1/≤ 2 −β (^) ) time algorithm (β > 0) for agnostically learning halfspaces (with respect to the uniform distribution over the hypercube) would yield the fastest known algorithm for learning parity with noise. As indicated by part (2) of Theorem 2, for any constant ≤, We can also achieve a polynomial- time algorithm for learning with respect to any log-concave distribution. Recall that any Gaussian distribution, exponential distribution, and uniform distribution over a convex set is log-concave. We next consider a simpler class of halfspaces: disjunctions on n variables. The problem of ag- nostically learning an unknown disjunction (or learning noisy disjunctions) has long been a difficult problem in computational learning theory and was recently re-posed as a challenge by Avrim Blum in his FOCS 2003 tutorial [3]. By combining Theorem 5 with known constructions of low-degree polynomials that are good L∞-approximators of the OR function, we obtain a subexponential time algorithm for agnostically learning disjunctions with respect to any distribution (recall that since this problem is at least as hard as PAC-learning DNF, given the current state of the art we do not expect to achieve a polynomial-time algorithm):
Theorem 2 Let D be a distribution on X × Y where D is an arbitrary distribution over {− 1 , 1 }n and Y = {− 1 , 1 }. For the class of disjunctions, with probability 1 − δ the polynomial regression al- gorithm outputs a hypothesis with error ≤ opt + ≤ in time 2 O˜(
√n·log(1/≤)) · poly(log (^1) δ ).
We believe that the polynomial regression algorithm will have many extensions and applications; so far we have only explored a few of these which we now describe. In Section 4.3 we show how our approach can be used to improve the algorithm due to Klivans et al. [22] for learning intersections of halfspaces with respect to the uniform distribution over the hypercube. In Section 5 we give a detailed analysis of an algorithm which is essentially the same as the degree-1 version of the polynomial regression algorithm, for agnostic learning the concept class of origin-centered halfspaces sgn(v · x) over the uniform distribution on the sphere Sn−^1. While our analysis from Section 3 only implies that this algorithm should achieve some fixed constant error Θ(1) independent of opt, we are able to show that in fact we do much better if opt is small:
Theorem 3 Let D be a distribution on X ×Y , where Y = {− 1 , 1 } and the marginal DX is uniform on the sphere Sn−^1 in Rn. There is a simple algorithm for agnostically learning origin-centered halfspaces with respect to D which uses m = O( n 2 ≤^2 log^
n δ )^ examples, runs in^ poly(n,^1 /≤,^ log^
1 δ )^ time, and outputs a hypothesis with error O(opt
log (^) opt^1 + ≤).
This result thus trades off accuracy versus runtime compared with Theorem 1. We feel that Theorem 3 is intriguing since it suggests that a deeper analysis might yield improved runtime bounds for Theorem 1 as well. In Section 6 we consider the problem of learning an unknown origin-centered halfspace under the uniform distribution on Sn−^1 in the presence of malicious noise (we give a precise definition of the malicious noise model in Section 6). Recall from Section 1.1 that we can view agnostic learning with respect to a particular marginal distribution DX as the problem of learning under DX in the presence of an adversary who may change the labels of an η fraction of the examples, without changing the actual distribution DX over examples. In contrast, in the model of learning under malicious noise with respect to DX , roughly speaking the adversary is allowed to change an η fraction of the labels and examples given to the learner. As described in Section 6 this is a very challenging noise model in which only limited positive results are known. We show that by combining the algorithm of Theorem 3 with a simple preprocessing step, we can achieve relatively high tolerance to malicious noise:
Theorem 4 There is a simple algorithm for learning origin-centered halfspaces under the uniform distribution on Sn−^1 to error ≤ in the presence of malicious noise when the noise rate η is at most O( (^) n 1 / (^4) log≤ 1 / (^4) (n/≤) ). The algorithm runs in poly(n, 1 /≤, log (^1) δ ) time and uses m = O( n 2 ≤^2 log^
n δ )^ many examples.
This is the highest known rate of malicious noise that can be tolerated in polynomial time for any nontrivial halfspace learning problem. The preprocessing step can be viewed as a somewhat counterintuitive form of outlier removal – instead of identifying and discarding examples that lie “too far” from the rest of the data set, we discard examples that lie too close to any other data point. The analysis of this approach relies on classical results from sphere packing.
2 Preliminaries
Let D be an arbitrary distribution on X × {− 1 , 1 }, for some set X. Let C be a class of Boolean functions on X. Define the error of f : X → {− 1 , 1 } and the optimal error of C to be
err(f ) = Pr(x,y)←D[f (x) 6 = y], opt = min c∈C err(c),
respectively. Roughly speaking, the goal in agnostic learning of a concept class C is as follows: given access to examples drawn from distribution D, we wish to efficiently find a hypothesis with error not much larger than opt. More precisely, we say C is agnostically learnable if there exists an algorithm which takes as input δ, ≤, and has access to an example oracle EX(D) and outputs with probability greater than 1 − δ a hypothesis h : X → {− 1 , 1 } such that err(h) ≤ opt + ≤. We say C is agnostically learnable in time t if its running time (including calls to the example oracle) is bounded by t(≤, δ, n). If the above only holds for a distribution D whose margin is uniform over X, we say the algorithm agnostically learns C over the uniform distribution. See [21] for a detailed description of the agnostic learning framework. A distribution is log-concave if its support is convex and it has a probability density function whose logarithm is a concave function from Rn^ to R. In all our algorithms we assume that we are given m labeled examples Z = (x^1 , y^1 ),... , (xm, ym) drawn independently from the distribution D over X × {− 1 , 1 }. The sgn : R → {− 1 , 1 } function is defined by sgn(z) = 1 if z ≥ 0, sgn(z) = −1 if z < 0.
Let D be a distribution over X × {− 1 , 1 }. In least-squares (L 2 -norm) polynomial regression, one attempt to minimize the following:
min deg(p)≤d
(p(x) − y)^2
≈ min deg(p)≤d
m
∑^ m j=
p(xj^ ) − yj^
Ideally, one would like to minimize the LHS, i.e. find the best degree d polynomial L 2 approximation to y over D. To do this (approximately) given a data set, we minimize the right-hand side. In particular, we write a polynomial as a sum over all degree ≤ d monomials, p(x) =
b pb
∏n i=1(xi) bi
where the sum is over {b ∈ Zn|
∑n i=1 bi^ ≤^ d,^ ∀i bi^ ≥^0 }. In turn, this can be viewed as a standard linear regression problem if we expand example xj^ into a vector with a coordinate
∏n i=1(x
j i ) bi (^) , for
each of the ≤ nd+1^ different b’s. Least-squares linear regression, in turn, can be solved by a single matrix inversion; and thus in general we can approximate the RHS of (2) in nO(d)^ time. Now let us consider L 2 polynomial regression in the uniform distribution scenario where X = {− 1 , 1 }n, y = f (x) for some function f : X → {− 1 , 1 }, and we have a uniform distribution UX over x ∈ {− 1 , 1 }n. Since x^2 = 1 for x ∈ {− 1 , 1 }, we may consider only degree-d multilinear polynomials, i.e. sums of monomials χS (x) =
i∈S xi^ with^ S^ ⊆^ [n],^ |S| ≤^ d. Using Parseval’s identity, it is not difficult to show that best degree d polynomial is exactly
arg min deg(p)≤d
(p(x) − f (x))^2
S⊆[n]:|S|≤d
f^ ˆ (S)χS (x),
where fˆ (S) = EUX [f (x)χS (x)]. Thus in this uniform case, one can simply estimate each coefficient fˆ (S) ≈ 1 m
∑m j=1 f^ (x j (^) )χS (xj (^) ) rather than solving the general least-squares regression problem; and
this is precisely what the low-degree algorithm does. In the nonuniform case, it is natural to consider running general L 2 polynomial regression rather than the low-degree algorithm. We do something similar to this in Section 3, but first we consider the agnostic learning properties of the low-degree algorithm in the next subsection.
Kearns et al. prove the following statement about agnostic learning with the low-degree algorithm:
Fact 2 ([21], Corollary 1) Let C be a concept class with concentration bound α(≤, n). Then the low-degree algorithm agnostically learns C under the uniform distribution to error 12 −( 12 −opt)^2 +≤ = 1 4 +^ opt(1^ −^ opt) +^ ≤^ with probability^1 −^ δ^ and in time^ poly(n α(≤/ 2 ,n), log 1 δ ).
This was termed a “weak agnostic learner” in [21] because as long as opt is bounded away from 1/2, this resulting hypothesis has error bounded from 1/2. We now show that the low-degree algorithm is in fact a “strong agnostic learner,” in that if opt is small it can in fact achieve very low error:
Observation 3 Let C be a concept class with concentration bound α(≤, n). Then the low-degree algorithm agnostically learns C under the uniform distribution to error 8 opt + ≤ in time nO(α(≤/^2 ,n)).
Proof: Let f ∈ C be an optimal function, i.e. Pr[y 6 = f (x)] = opt. As described above, the low-degree algorithm (approximately) finds the best degree-d approximation p(x) to the data y, i.e.
mindeg(p)≤d E[(p(x) − y)^2 ], and the same term represents the mean squared error of p. This can be bounded using the “almost-triangle” inequality (a − c)^2 ≤ 2
(a − b)^2 + (b − c)^2
for a, b, c ∈ R.
min deg p≤d E[(y − p(x))^2 ] ≤ E
y −
|S|<d fˆ^ (S)χS^ (x)
(y − f (x))^2 +
f (x) −
|S|<d fˆ^ (S)χS^ (x)
4Pr[y 6 = f (x)] +
|S|≥d fˆ^ (S) 2
The first term is 8opt and the second is at most ≤/2 for d = α(n, ≤/2), where an additional ≤/2 is due to the sampling. Outputting h(x) = sgn(p(x)) gives error at most 8opt + ≤ because Pr[sgn(p(x)) 6 = y] ≤ E[(p(x) − y)^2 ].
Another way to state this is that if f and f˜ are two functions and f has a Fourier concentration
bound of α(≤, n), then f˜ satisfies the concentration bound
|S|≥α(n,≤) f^ ˆ˜ (S)^2 ≤ 8 Pr[f (x) 6 = f˜ (x)]+2≤.
3 L 1 polynomial regression
Given the setup in the previous sections, it is natural to expect that we will now show that the general L 2 polynomial regression algorithm has agnostic learning properties similar to those estab- lished for the low-degree algorithm in Observation 3. However, such an approach only yields error bounds of the form O(opt + ≤), and for agnostic learning our real goal is a bound of the form opt + ≤. To achieve this, we will instead use L 1 -norm, rather than L 2 -norm. Analogous to (2), in L 1 -norm polynomial regression we attempt to minimize:
min deg(p)≤d
ED [|p(x) − y|] ≈ min deg(p)≤d
m
∑^ m j=
p(xj^ ) − yj^
To solve the RHS minimization problem, again each example is expanded into a vector of length ≤ nd+1^ and an algorithm for L 1 linear regression is applied. L 1 linear regression is a well-studied problem, and the minimizing polynomial p for the RHS of (3) can be obtained in poly(nd) time using linear programming (see Appendix A for an elaboration on this point). For our purposes we will be satisfied with an approximate minimum, and hence one can use a variety of techniques for approximately solving linear programs efficiently. How do L 1 and L 2 polynomial regression compare? In the noiseless case, both (2) and (3) approach 0 at related rates as d increases. However, in the noisy/agnostic case, flipping the sign of y = ±1 changes (p(x) − y)^2 by 4p(x) which can potentially be very large; in contrast, flipping y’s sign can only change |p(x) − y| by 2. On the other hand, it is often easier to bound the L 1 error in terms of the mathematically convenient L 2 error. Thus while our polynomial regression algorithm works only with the L 1 norm, the performance bound and analysis depends on the L 2 norm.
We now give the polynomial regression algorithm and establish conditions under which it is an ag- nostic learner achieving error opt+≤. The algorithm takes as input m examples, Z = (x^1 , y^1 )... (xm, ym) and a degree d.
By VC theory, for m = poly(nd/≤) examples, the empirical error (^) m^1
∑m j=1 I(h(x j (^) ) 6 = yj (^) ) above
and generalization error err(h) will be differ by at most an expected ≤/4. Hence, the first part of the Theorem is implied by, EZ [err(h)] ≤ opt + (3/4)≤. The second part of the theorem is a relatively standard reduction from expected error to high- probability guarantees. In particular, by Markov’s inequality, on any single repetition,
PrZ [err(h) ≥ opt + (7/8)≤] ≤
opt + (3/4)≤ opt + (7/8)≤
Hence, after r = O(log(1/δ)/≤) repetitions of the algorithm, with probability 1 − δ/2, one of them will have err(h) ≤ opt + (7/8)≤. In this case, using an independent set of size O(log(1/δ)/≤^2 ), with probability at most δ/2, we will choose one with error > opt + ≤.
As noted at the very beginning of this section, an analogous L 2 algorithm could be defined to minimize (^) m^1
∑m j=1(p(x j (^) ) − yj (^) ) (^2) rather than 1 m
∑m j=1 |p(x j (^) ) − yj (^) |. Error guarantees of the form
O(opt + ≤) can be shown for this L 2 algorithm, following the same argument but again using the “almost-triangle” inequality.
As pointed out by Avrim Blum, our algorithm is very similar to an SVM with a polynomial kernel and can be made even more similar. The standard Support Vector Machine with a degree-d polynomial kernel solves the following minimization problem:
min deg(p)≤d
(1 − λ)
m
∑^ m
i=
L(yi, z) + λ(regularization term),
where L(yi, z) = max{ 0 , 1 − yiz}. It does this using an algorithmic trick that requires time only poly(m, n, d). In theory, this could be substantially faster than our nO(d)^ algorithm. However, for our analysis, we require m = nO(d)^ samples, in which case the SVM algorithm is no faster. Step 1 of our algorithm could be replaced by the above minimization problem, with λ = 0, and the analysis would hold almost exactly as is. Intuitively, this is because, for |y| = 1, L(y, z) = |y −z| unless yz > 1. However, if yz > 1, thresholding z with t ∈ [− 1 , 1] will certainly give us the correct prediction of this y. More technically, we have that, for |y| = 1, L(y, z) ≤ |y − z|, yet we still have that Prt∈[− 1 ,1][y 6 = sgn(z − t)] ≤ 12 L(y, z) (we now have L(y, z) where we had |y − z|). Hence one can use a standard SVM package to implement our algorithm, setting the regulariza- tion parameter to 0. The only nonstandard part would be choosing an optimal threshold t rather than using standard SVM choice of t = 0.
4 Agnostic learning halfspaces and disjunctions via polynomial
regression
In this section we show how to apply Theorem 5 to prove Theorems 1 and 2. As noted in Remark 4, Theorem 5 implies that any concept class with a Fourier concentration bound is in fact agnostically learnable to error opt+≤ under the uniform distribution on {− 1 , 1 }n. In
particular, Theorem 1 1(a) follows immediately from the Fourier concentration bound for halfspaces of [22]:
Fact 5 [22] The concept class C of all halfspaces over {− 1 , 1 }n^ has a Fourier concentration bound of α(≤, n) = 441/≤^2.
For the uniform distribution on Sn−^1 and any log-concave distribution, we can prove the ex- istence of a good low-degree polynomial as follows. Suppose we had a good degree-d univariate approximation to the sign function pd(x) ≈ sgn(x), and say we have an n-dimensional halfspace sgn(v · x − θ). Then, sgn(v · x − θ) ≈ pd(v · x − θ). Moreover, this latter quantity is now a degree-d multivariate polynomial. The sense in which we measure approximations will be distributional, the L 2 error of our multivariate polynomial over the distribution D. Hence, we need a polynomial pd that well-approximates the sign function on the marginal distribution in the direction v, i.e., the distribution over projections onto the vector v. For the uniform distribution on a sphere, the projection onto a single coordinate is distributed very close to Gaussian distribution. For a log-concave distribution, its projection is distributed log-concavely. In both of these cases, it so happens that the necessary degree to get approximation error ≤ boils down to a one-dimensional problem! For the sphere, we can upper-bound the degree necessary as a function of ≤ using the following for the normal distribution N (0, √^12 ) with density
e−x^2 /
π:
Theorem 6 For any d > 0 and any θ ∈ R, there is a degree-d univariate polynomial pd,θ such that
∫ (^) ∞
−∞
(pd,θ(x) − sgn(x − θ))^2 e−x 2 √ π dx = O
d
We note that the nO(1/≤ (^2) ) -time, O(opt + ≤)-error analogues of Theorem 1, part 1, mentioned in Section 1.3 follows from Fact 5 and Theorem 6 using the L 2 -norm analogue of the polynomial regression algorithm mentioned at the end of Section 3. The improved time bound comes from the fact that we no longer need to invoke E[|Z|] ≤
E[Z^2 ] to bound the square loss, since we are minimizing the square loss directly rather than the absolute loss.
Proof of Theorem 6: We assume without loss of generality that θ ≥ 0; an entirely similar proof works for θ < 0. First, suppose that θ >
d. Then we claim that the constant polynomial p(x) = −1 will be a sufficiently good approximation of sgn(x − θ). In particular, it will have error,
∫ (^) ∞
θ
4 e−x 2 √ π
dx ≤
√ d
4 e−x √ π
dx = 4 e−
√ d √ π
πd
So the case that θ >
d is easy, and for the remainder we assume that θ ∈ [0,
d]. We use the Hermite Polynomials Hd, d = 0, 1 ,... , (Hd is a degree-d univariate polynomial) which are a set of orthogonal polynomials given the weighting e−x^2 π−^1 /^2. In particular,
∫ (^) ∞
−∞
Hd 1 (x)Hd 2 (x)
e−x^2 √ π dx =
0 if d 1 6 = d 2 2 d^1 d 1! if d 1 = d 2
Hence these polynomials form an orthogonal basis of polynomials with respect to the inner product 〈p, q〉 =
−∞ p(x)q(x)e
−x^2 π− 1 / (^2) dx. The functions H¯d(x) = Hd(x)/√ 2 dd! are an orthonormal basis.
Let D be a distribution over Rn^ × {− 1 , 1 }, with DX uniform over Sn−^1. With proba- bility 1 − δ, the L 1 polynomial regression outputs a hypothesis with error opt + ≤ given poly(n^1 /≤ 4 , log (^1) δ ) examples.
Proof: Let f (x) = sgn(v · x − τ ) be any halfspace over the unit ball Sn−^1 , where without loss of generality we may assume ‖v‖ = 1 (and thus |τ | ≤ 1). Let U denote the uniform distribution over Sn−^1. It suffices to establish the existence of a degree-d polynomial P (x), with d = O(1/≤^4 ), which satisfies the condition Ex∈U [(P (x) − f (x))^2 ] ≤ ≤^2 ; given such a polynomial we apply Theorem 5 and Theorem 1 Part 1(b) immediately follows.
Let θ =
n− 3 2 τ^ and let^ P^ (x) =^ pd,θ(
n− 3 2 v^ ·^ x).^ For^ d^ =^ O(1/≤
(^4) ), we show that the polynomial
P (x) = pd,θ
n− 3 2 (v^ ·^ x)
satisfies EU [(P (x) − f (x))^2 ] ≤ ≤^2. We have (justifications are given below):
Ex∈U [(P (x) − f (x))^2 ] = Ex∈U
pd,θ
n− 3 2 (v^ ·^ x)
− sgn
n− 3 2 (v^ ·^ x)^ −^ θ
An− 2 An− 1
− 1
(1 − z^2 )(n−3)/^2
pd,θ
n− 3 2 z
− sgn(
n− 3 2 z^ −^ θ)
dz (9)
An− 2 An− 1
−∞
e−z^2 (n−3)/^2
pd,θ
n− 3 2 z
− sgn(
n− 3 2 z^ −^ θ)
dz (10)
An− 2 An− 1
−∞
e−y 2 (pd,θ(y) − sgn(y − θ))^2 √(ndy−3)/ 2 (11)
≤ ≤^2 (12)
where (9) follows from Fact 10 on the pdf of the uniform distribution over Sn−^1 ; (10) follows from 1 − z ≤ exp(−z) and the fact that the integrand is nonnegative; (11) follows from a change
of variable y =
n− 3 2 ·^ z; and (12) follows from^
An− 2 An− 1 = Θ(
n), Theorem 6, and our choice of
d = O(1/≤^4 ). This concludes the proof of Theorem 1 Part 1(b).
Since we have proven Theorem 1 Part 1(a) in Section 4, we are now ready to move on to the log-concave part. The first thing to notice is that, just as the normal distribution served as a prototypical distribution for all spheres, there is a log-concave distribution that is not much smaller than any other:
Lemma 6 Let ν be the distribution on R with density dν(x) = e−|x|/^16 / 32. Let μ be any log-concave distribution on R with mean 0 and variance 1. Then, for all x ∈ R, dμ(x) ≤ (32e)dν(x).
In the above, we necessarily chose a distribution ν that did not have variance 1.
Proof: To prove this lemma, we will use the properties of log-concave functions given by Lovasz and Vempala [29]. Specifically, for any log-concave density dμ with mean 0 and variance 1, ∀x dμ(x) ≤ 1, and dμ(0) ≥ 1 /8. From the latter fact, we next argue that dμ(x) ≤ e−|x|/^16 for |x| > 16. It suffices to show this for x > 16 by symmetry. Suppose not, i.e., suppose ∃r > 16 dμ(r) ≥ e−r/^16. Then log-concavity implies that dμ(x) ≥ (1/8)^1 −x/r(e−r/^16 )x/r^ for x ∈ [0, r]. In turn, this means,
∫ (^16)
0
dμ(x) ≥
0
e−x/^16 dx > 1 ,
which is a contradiction. Hence, dμ(x) ≤ e−|x|/^16 = 32dν(x) for |x| > 16. (These bounds are far from tight.) Also, for |x| < 16, dμ(x) ≤ 1 ≤ (32e)dν(x).
This lemma will enable us to transfer a bound on the error of a fixed log-concave function such as e−^2 |x|^ to all log-concave functions.
Lemma 7 There exists a fixed function d : R → R, such that, for any log-concave distribution μ, and any θ ∈ R, there exists a degree-d(≤) polynomial p, such that ∫ (^) ∞
−∞
(p(x) − sgn(x − θ))^2 dμ(x) ≤ ≤.
Proof: It suffices to show it for any log-concave distribution μ with mean 0 and variance 1. This is because we can always apply an affine transformation to x, x → ax + b which puts it in such standard position and maintains the properties of the lemma (for a suitably transformed polynomial p and θ). Thus, we assume that μ has mean 0 and variance 1. Next, we claim it suffices to show the lemma for the log-concave density dν(x) = e−|x|/^16 / 32 , which has mean 0 but variance > 1. To see this, suppose it holds for dν and p, and we have some mean 0 variance 1 log-concave density dμ. Then by Lemma 6, ∫ (^) ∞
−∞
(p(x) − sgn(x − θ))^2 dμ(x) ≤ 32 e
−∞
(p(x) − sgn(x − θ))^2 dν(x) ≤ 32 e≤.
Hence it would hold for mean-0 variance-1 dμ with function d′^ : R → R where d′(≤) = d(≤/(32e)). By a similar stretching argument, it suffices to show it for dν(x) = e−^2 |x|. Next, again WLOG, it suffices to show it for |θ| < log 1/≤. For if |θ| > 2 log 1/≤, then the constant polynomial p(x) = −sgn(θ) has error less than ≤ under dν(x) = e−^2 |x|. Continuing on the seemingly endless chain of WLOGs, we next that it suffices to show it for θ = 0. Suppose it holds for dν(x) = e−^2 |x|, a particular p and ≤, and sgn(x). That is, ∫ (^) ∞
−∞
(p(x) − sgn(x))^2 dν(x) ≤ ≤ (13)
Then consider the function sgn(x − θ) and the density dρ(x) = e−^2 |x−θ|/^ log(1/≤)/ log(1/≤). For this density, by (13) and change of variable z = log(1/≤)(x − θ), ∫ (^) ∞
−∞
(p(z) − sgn(z))^2 dν(z) =
−∞
(p(log(1/≤)(x − θ)) − sgn(x − θ))^2 dρ(x) ≤ ≤ (14)
Now, observe that as long as log(1/≤) > 1, (≤ ≤ 1 /e)
dν(x) dρ(x) = log(1/≤)e2(^
|x−θ| log(1/≤) −|x|)^ ≤ log(1/≤)e2(^ |x−θ|−|x| log(1/≤) )^ ≤ log(1/≤)e^2 |θ| log(1/≤) (^) ≤ log(1/≤)e^2.
By this and (14), ∫ (^) ∞
−∞
(p(log(1/≤)(x − θ)) − sgn(x − θ))^2 dμ(x) ≤ e^2 ≤ log(1/≤).
Proof: Assume that the unknown parity function c has k relevant variables (and for simplicity assume k is even). Note that for a set S of k variables, the majority function on S (equal to 1 if bk/ 2 c + 1 or more of the variables in S are set to 1) agrees with the parity function on all variables in S for a 1/2 + 1/
k fraction of inputs of { 0 , 1 }n. This is because the majority function equals parity for all inputs of hamming weight equal to k/2 and agrees with parity on half of all other inputs. Now choose a random example (labeled by c) and flip its label with probability η. The probabil- ity that the majority function on S correctly labels the example equals η + (1 − 2 η)(1/ 2 − 1 /
k) = 1 / 2 − (1 − 2 η)/
k. That is, the error rate of the majority function on S with respect to noisy examples is bounded away from 1/2 by (1 − 2 η)/
k. We can now use an algorithm for agnostically learning halfspaces to identify the relevant variables of the unknown parity function c. To determine if the variable xi is relevant, set ≤ = (1/2)(1 − 2 η)/
k and take a number of random examples as specified by the agnostic learner. Feed the examples to the agnostic learner with the ith bit removed from every example. If xi is a rel- evant variable, then the labels will be totally uncorrelated with the examples (now of length n − 1), and the agnostic learner will not produce a hypothesis with error rate bounded away from 1/2. If xi is irrelevant, then the majority function on the relevant variables has error rate bounded away from 1 /2, and the agnostic learner will output a hypothesis with error less than 1/ 2 − (1/2)(1 − 2 η)/
k.
If the error rate η is Θ(1) and the agnostic learning algorthm runs in time nO(1/≤ 2 −β (^) ) , then the above algorithm will learn a noisy parity in time 2O(n γ (^) ) for some 0 < γ < 1.
Learning an intersection of halfspaces is a challenging and well-studied problem even in the noise- free setting. Klivans et al. [22] showed that the standard low-degree algorithm can learn the intersection of k halfspaces with respect to the uniform distribution on {− 1 , 1 }n^ to error ≤ in time nO(k (^2) /≤ (^2) ) , provided that ≤ < 1 /k^2. Note that because of the requirement on ≤, the algorithm always takes time at least nΩ(k (^6) ) even if the desired final error is ≤ = Θ(1) independent of k. We can use the idea of learning halfspaces agnostically to obtain the following runtime bound which is better than [22] for ≤ > (^1) k :
Theorem 9 Let f = h 1 ∧... ∧ hk be an intersection of k halfspaces over {− 1 , 1 }n. Then f is learnable with respect to the uniform distribution over {− 1 , 1 }n^ in time nO(k (^4) /≤ (^2) ) for any ≤ > 0. We note that a comparable bound can be proved via techniques from recent work due to Jackson et al. [18] which does not involve agnostic learning. The presentation here, however, is more straightforward and shows how agnostic learning can have applications even in the non-noisy framework. The approach that establishes Theorem 9 is similar to Jackson’s Harmonic Sieve [17]: we apply a boosting algorithm, using the polynomial regression algorithm at each stage to identify a low-degree polynomial which, after thresholding, has advantage at least Ω(1/k) on the target function. We begin with the following easy fact which follows directly from the “discriminator lemma” [15]:
Fact 8 Let f = h 1 ∧... ∧ hk be an intersection of k halfspaces. Then for any distribution D on { 0 , 1 }n^ either there exists an hi such that |ED[f hi]| ≥ 1 /k or we have |ED[f ]| ≥ 1 /k.
Hence for any distribution D there exists a single halfspace which has accuracy at least 1/2+1/ 2 k with respect to f and D. We will be concerned only with distributions that are c-bounded (c will be chosen later), i.e. distributions D such that D(x) ≤ c/ 2 n^ for all x. Fix such a c-bounded distribution D and let hD denote the halfspace obtained from Fact 8. Applying Fact 5 it is not difficult to see that for any halfspace (and in particular hD) and sufficiently large constant a,
∑
S,|S|≥a·k^4 c^2
h^ ˆD(S)^2 ≤ c/ 16 k^2.
By setting g =
S,|S|≤a·k^4 c^2 hˆD(S)χS^ (x), we have^ ED[|g^ −^ hD|]^ ≤^1 /^4 k^ for any^ c-bounded distribution D. We now show that the polynomial regression algorithm can be used as a weak learning algorithm for f :
Lemma 9 There exists an algorithm A such that for any c-bounded distribution D and 0 < δ < 1 , if A is given access to examples drawn from D labeled according to f , then A runs in time poly(nk^4 c^2 , 1 /δ) and with probability at least 1 − δ, A outputs a hypothesis h such that P rD[f (x) = h(x)] ≥ 1 /2 + 1/ 8 k.
Proof: Let ` = ak^4 c^2 for a sufficiently large constant a. Apply the polynomial regression algorithm
from Section 3 to obtain a hypothesis g∗^ = sgn
|S|≤`wS^ χS^ (x)^ −^ t
. For ξ > 0, we claim that g∗
has error less than 1/ 2 − 1 / 4 k + ξ as long as m ≥ poly(n`, 1 /ξ^2 , log(1/δ)) as in Theorem 5. To see this note that ED[|f (x) − g∗|] ≤ ED[|f (x) − hD(x)|] + ED[|hD(x) − g∗|]
and recall that the first term on the right hand side is at most 1/ 2 − 1 / 2 k. For the second term, recall that minw ED[|hD(x) −
|S|≤` wS^ χS^ |]^ ≤^1 /^4 k.^ But^ g
∗ (^) is an approximation to the
truncated Fourier polynomial for hD(x) and as in the proof of Theorem 5, for our choice of m, ED[|hD(x) − g∗(x)|] ≤ minw ED[|hD(x) −
|S|≤` wS^ χS^ |] +^ ξ^ with probability greater than 1^ −^ δ. Hence with probability 1 − δ we have ED[|f (x) − g∗(x)|] ≤ 1 / 2 − 1 / 4 k + ξ. Taking ξ = 1/(8k) gives the lemma.
At this point we will need to recall the definition of a boosting algorithm, see e.g. [13]. Roughly speaking, a boosting algorithm iteratively applies a weak learning algorithm as a subroutine in order to construct a highly accurate final hypothesis. At each iteration, the boosting algorithm generates a distribution D and runs the weak learner to obtain a hypothesis which has accuracy 1 /2 + γ with respect to D. After t = poly(1/γ, 1 /≤) iterations, the boosting algorithm outputs a hypothesis with accuracy greater than 1 − ≤. The following fact from [23] is sufficient for our purposes:
Theorem 10 There is a boosting algorithm which runs in t = O(1/≤^2 γ^2 ) iterations and at each stage generates an O(1/≤)-bounded distribution D.
By combining this boosting algorithm with the weak learning algorithm from Lemma 9 we obtain Theorem 9:
Proof of Theorem 9: Run the boosting algorithm to learn f using the weak learner from Lemma 9 as a subroutine. The boosting algorithm requires at most O(1/≤^2 k^2 ) iterations since the distribu- tions are all O(1/≤) bounded and the weak learner outputs a hypothesis with accuracy 1/2+Ω(1/k).
Proof: We define an orthonormal basis for Rn^ by letting vector u^1 denote (^) ‖vv‖ and letting u^2 ,... , un
be an arbitrary orthonormal completion. Given a vector z ∈ Rn, we may write z 1 for z · u^1 and z 2 ,... , zn for z · u^2 ,... , z · un^ respectively. We have Ex∈D[x 1 ] = ξ so standard additive Chernoff bounds imply that taking m = O( (^) ξ^12 log (^1) δ ) many draws will result in |v 1 −ξ| ≤ ξ 2 with probability at
least 1 − 2 δ. For i = 2,... , n we have Ex∈D[xi] = 0; again standard additive Chernoff bounds imply
that taking m = O( (^) ≤ 2 nξ 2 log nδ ) many draws will result in |vi| ≤ 2 ≤ξ√n for each i with probability at
least 1 − δ 2. Thus, with overall probability at least 1 − δ we have
α(v, v) = arctan
v^22 + · · · + v^2 n v 1
≤ arctan (≤) ≤ ≤
and thus Prx∈U [sgn(v · x) 6 = sgn(v · x)] ≤ α(v, v)/π < ≤/π < ≤.
We have that D is a distribution over X × {− 1 , 1 } whose marginal is the uniform distribution U on Sn−^1. Without loss of generality we may suppose that the optimal origin-centered halfspace is f (x) = sgn(x 1 ), i.e. the normal vector to the separating hyperplane is e 1 = (1, 0 ,... , 0). We write S+^ to denote the “positive hemisphere” {x ∈ Sn−^1 : x 1 ≥ 0 } and write S−^ to denote Sn−^1 \ S+. We may also suppose without loss of generality that the optimal halfspace’s error rate opt is such
that O(opt
log (^) opt^1 ) is less than 14 , i.e. opt is less than some fixed absolute constant that we do
not specify here. Let p : Sn−^1 → [0, 1] be the function
p(z) = Pr (x,y)∈D
[y 6 = f (z) | x = z] (15)
so intuitively p(z) is the probability of getting a “noisy label” y on instance z. (We assume the joint distribution D on X × Y is sufficiently “nice” in terms of measurability, etc. so that p is well- defined as specified above.) Let v denote the true vector average of all positively labeled examples generated by D, i.e.
v =
x∈S+
x(1 − p(x))U(x) +
x∈S−
xp(x))U(x).
If the number m of examples used by Average went to infinity, the vector average v that Average computes would converge to v. We prove Theorem 3 by first establishing bounds on v, and then using Fact 11 (in Appendix 5.1) to deal with sample error. Let u denote the vector average of all points in S+. It is clear from symmetry that u = (u 1 , 0 ,... , 0) for some u 1 > 0; in fact we have
Claim 12 u 1 = 2 · A Ann−−^21 ·
0 z(1^ −^ z
(^2) )(n−3)/ (^2) dz = Θ( √ 1 n ).
Proof: The first equality follows immediately from Fact 10 (the factor of 2 is present because u is the vector average of half the points of Sn−^1 ). For the second equality, since A Ann−−^21 = Θ(
n)
we need to show that
0 z(1^ −^ z
(^2) )(n−3)/ (^2) dz is Θ(1/n). For each z ∈ [1/√n, 2 /√n] the value of
the integrand z(1 − z^2 )(n−3)/^2 is at least (1/
n)(1 − (^4) n )(n−3)/^2 = Θ(1/
n), so this implies that
the whole integral is Ω(1/n). The integrand is clearly at most 1/
n for all z ∈ [0, 1 /
n], so we
have
∫ (^2) /√n 0 z(1^ −^ z
(^2) )(n−3)/ (^2) dz = Θ(1/n); to finish the proof we need only show that ∫^1 2 /√n z(1^ − z^2 )(n−3)/^2 dz = O(1/n). We can piecewise approximate this integral (in increments of 1/
n) as ∫ (^1)
2 /√n
z(1 − z^2 )(n−3)/^2 dz ≈
√n ∑ j=
j √ n
e−j (^2) / 2 ·
n
n
√n ∑ j=
je−j (^2) / 2 <
n
j=
je−j (^2) / 2 = O(1/n)
and this gives the claim.
If there were no noise then then the vector average v would equal u; since there is noise we must add in a contribution from true negative examples that are falsely labeled as positive, and subtract off a contribution from true positive examples that are falsely labeled as negative. Let opt− and opt+ be defined as
opt− =
x∈S−
p(x)U(x) and opt+ =
x∈S+
p(x)U(x),
so opt− is the overall probability of receiving an example that is truly negative but falsely labeled as positive, and vice versa for opt+. Clearly opt = opt− + opt+. Let u−^ and u+^ be the vectors
u−^ =
x∈S−^ xp(x)U(x) opt−
and u+^ =
x∈S+^ xp(x)U(x) opt+
so u−^ (u+^ respectively) is the vector average of all the false positive (false negative respectively) examples generated by p. Then the vector average v of all positively labeled examples is
v =
u/2 + opt−u−^ − opt+u+ 1 /2 + opt− − opt+ = C 1 · v′
where v′^ = u/2 + opt−u−^ − opt+u+^ and 43 ≤ C 1 = (^1) /2+opt^1 −−opt+ ≤ 4; the bounds on C 1 hold since
by assumption we have opt ≤ 14. So v′^ is a constant multiple of v, and it suffices to analyze v′. We have v′^ = (v′ 1 ,... , v n′), where v 1 ′ is the component parallel to e 1. In the rest of this subsection we will establish the following bounds on v′:
Theorem 11 (i) The component of v′^ that is parallel to the target vector e 1 is v′ 1 ≥ u 1 ( 12 −
O(opt
log (^) opt^1 )) > u 41. (ii) The component of v′^ that is orthogonal to e 1 , namely v′⊥ = v′^ − v′ 1 e 1 =
(0, v′ 2 ,... , v′ n), satisfies ‖v′⊥‖ = O(opt
log (^) opt^1 )u 1.
Given Theorem 11, the error rate of the hypothesis sgn(v · x) under U is
Pr[sgn(v′^ · x) 6 = sgn(x 1 )] =
arctan
( (^) ‖v′ ⊥‖ v′ 1
π
arctan(O(opt
log (^) opt^1 )) π = O(opt
log (^) opt^1 ).
By Fact 11 the sample average vector v has Prx∈U [sgn(v · x) 6 = sgn(v · x)] ≤ ≤ with probability at least 1 − δ, and we obtain Theorem 3.
Now we prove Theorem 11. Note that if opt−u−^ − opt+u+^ is the zero vector then the theorem clearly holds, so we henceforth assume that opt−u−^ − opt+u+^ is not the zero vector.