Manuscript Offprint
arXiv:2611.02344Efficient Proper Agnostic Learning of Halfspaces
Abstract
We give a proper membership-query algorithm for agnostically learning halfspaces under the uniform distribution on . Given query access to an arbitrary function , our algorithm runs in time and outputs a halfspace with error at most , where is the error of the best-fitting halfspace for . Previously, even with membership queries, the best known running time was , achieved by the sample-based algorithm of Kalai, Klivans, Mansour, and Servedio (FOCS 2005). Our algorithm is the first agnostic halfspace learner under the uniform distribution on whose running time is polynomial in with an exponent independent of .
Combining our algorithm with a boosting argument yields a proper agnostic learner using only random examples. It achieves the same guarantee, with running time matching that of Kalai et al. up to an additive term depending only on . To our knowledge, this is the first sample-based proper agnostic learner in the Boolean setting with running time for every fixed .
*University of Pennsylvania. Email: anindyad@seas.upenn.edu. †MIT. Email: elmos@mit.edu. ‡MIT. Email: shivamn@mit.edu. §Email: joeneeman@gmail.com.
Contents
1 Introduction 1
1.1 Our Results ..... 2
1.2 Overview of Theorem 1 ..... 3
1.3 Related Work ..... 8
1.4 Acknowledgements and AI Methodology ..... 10
2 Preliminaries 10
2.1 Fourier Analysis on the Hypercube ..... 11
2.2 Gaussian Space and Multilinear Extensions ..... 12
2.3 Halfspaces ..... 13
2.3.1 Useful Estimates ..... 13
2.3.2 Regular Halfspaces ..... 14
2.3.3 The Critical Index ..... 16
2.4 Efficient Search over Halfspaces in Fixed Dimension ..... 16
3 Influence PCA on the Boolean Hypercube 17
3.1 Definition and Basic Properties ..... 18
3.2 Relationship to the Gaussian Influence PCA Matrix ..... 19
3.3 Top Eigenspaces and Matrix Estimation ..... 20
4 Proper Agnostic Learning with Queries 21
4.1 The Head Variables ..... 21
4.2 Regularizing Candidate Halfspaces ..... 22
4.3 The Common Tail Subspace ..... 23
4.4 The Empirical Head and Top Eigenspace ..... 25
4.5 Proof of Theorem 1 ..... 26
5 Proper Agnostic Learning with Samples 30
5.1 An Improper Correlation Finder ..... 31
5.2 Proof of Theorem 2 ..... 33
A Proof of Proposition 7 38
A.1 Comparing Exponential Functions ..... 39
A.2 Truncating the Sine Integral ..... 41
A.3 Completing the Upper Bound ..... 42
A.4 Optimality of the Exponent ..... 43
B Estimating the Influence PCA Matrix 45
The problem becomes substantially more challenging in the presence of noise, captured by the agnostic learning model of Kearns, Schapire, and Sellie [KSS94]. In this setting, the labels may be arbitrary, and the learner seeks a hypothesis whose error is within an additive of that of the best-fitting halfspace. For arbitrary input distributions, however, strong computational hardness results obstruct efficient learning. These include hardness of finding a good halfspace hypothesis [GR09] and, under widely studied complexity assumptions, hardness even when the learner may output an arbitrary classifier [Dan16, Tie23]. These barriers have motivated extensive work on distribution-specific learning, where assumptions on the input distribution make progress possible while leaving the labels unrestricted. This approach has yielded agnostic learners under the uniform Boolean and Gaussian distributions [KKMS08, DKK+], as well as more general log-concave distributions [KKM13].
Our focus is on agnostic learning under the uniform distribution on the Boolean hypercube . Let denote the class of affine halfspaces of the form , where and . For an arbitrary target function and a hypothesis , define
Given access to , the goal is to output a hypothesis satisfying . Thus, the learner's output must compete with the best-fitting halfspace up to an arbitrarily small additive error. Without the computational aspects, this question in fact predates the agnostic learning model and traces back to Vapnik's early work on empirical risk minimization [Vap82, Vap98].
In a landmark result, Kalai, Klivans, Mansour, and Servedio [KKMS08] gave an agnostic learner for this problem with running time .¹ The algorithm uses only uniformly random labeled examples and is remarkably simple: it fits a low-degree polynomial to uniformly random labeled examples using regression, then thresholds the resulting polynomial. Kalai et al. [KKMS08, Section 4.2] also showed that a sample-based agnostic learner with total running time for some fixed would yield a substantially faster algorithm for the notoriously difficult problem of learning parities with noise. This suggests that major improvements in the dependence on the dimension may require going beyond random examples.
For over two decades, the polynomial-regression approach of Kalai et al. [KKMS08] has remained the best-known sample-based agnostic learner for halfspaces under the uniform Boolean distribution. Faster algorithms have been developed with relaxed “quasi-agnostic” guarantees (see Section 1.3), but these do not achieve the additive guarantee . The best known approach therefore retains two limitations: it is improper, returning a polynomial threshold function rather than a halfspace, and greater accuracy comes at the cost of a worse exponent in the dimension.
¹The original bound obtained by [KKMS08] was . The stated bound follows from the improved polynomial approximation of Feldman, Kothari, and Vondrák [FKV17, Corollary 15].
1.1 Our Results
The hardness result above motivates seeking improvements over [KKMS08] through stronger access to the target function. A natural model allows membership queries, in which the learner evaluates on inputs of its choosing. Feldman [Fel09] explicitly asked whether such access can offer a computational advantage in distribution-specific agnostic learning. He established such an advantage for a particular concept class under cryptographic assumptions, while leaving open whether it is possible for natural classes such as halfspaces. Gopalan, Kalai, and Klivans [GKK08b] posed the stronger quantitative question of whether membership queries permit agnostic learning of halfspaces under the uniform Boolean distribution in time poly.
We answer Feldman's question affirmatively for halfspaces, giving the first improvement over polynomial regression [KKMS08] in the Boolean setting. Our learner uses poly queries and is moreover proper: its output is itself a halfspace.
Theorem 1 (Query-based proper agnostic learner). Given and query access to , there is an algorithm (Algorithm 1) that outputs a halfspace satisfying
with probability at least 2/3. It makes at most queries to f and runs in time at most .
All running-time bounds in this paper count arithmetic operations in the real-RAM model. The algorithm underlying Theorem 1 and its guarantees also extend to bounded real-valued target functions; see Remark 21.
A comparable running-time guarantee in Gaussian space follows from the work of Diakonikolas, Kane, Kontonis, Tzamos, and Zarifis [DKK+24], and was implicit in the work of De, Mossel, and Neeman [DMN21]. We discuss these connections and the challenges of extending the Gaussian techniques to the Boolean setting in Sections 1.2 and 1.3. To our knowledge, ours is the first agnostic learner for halfspaces on the Boolean hypercube with running time polynomial in n and an exponent independent of .
Combining our query-based learner with a boosting argument [GHK ], we also obtain an efficient proper agnostic learner from random examples alone. To state this result, let D be a distribution on whose marginal on x is uniform, and write
Here the labels may be randomized even after conditioning on x.
Theorem 2 (Sample-based proper agnostic learner). Let be any distribution on whose marginal on is uniform. For every , there is an algorithm using only independent labeled examples from that, with probability at least , outputs a halfspace satisfying
It uses labeled examples and runs in time at most .
Theorem 2 thus achieves the additive guarantee of [KKMS08] with the same asymptotic dependence on , while returning a halfspace. To our knowledge, even a -time proper agnostic learner achieving error for every fixed was not previously known under the uniform distribution over . The additive guarantee is essential here: efficient proper learners with weaker quasi-agnostic guarantees were already known (see Section 1.3). We also note that an analogue of Theorem 2 was known in the Gaussian setting due to Diakonikolas et al. [DKK+21].
Note that the conclusion of Theorem 2 does not follow by running the [KKMS08] improper learner once and then finding a halfspace close to its output using Theorem 1. Even if one could solve the latter problem efficiently, the usual triangle-inequality argument gives only a guarantee; see the discussion in Section 5.
1.2 Overview of Theorem 1
We now give an overview of the query-based agnostic learner underlying Theorem 1. We assume familiarity with basic Fourier analysis on the Boolean cube and Gaussian space; see Section 2 for a brief review.
At a high level, the algorithm performs dimension reduction followed by empirical risk minimization. Given an unknown target function , we identify a low-dimensional space of linear features such that restricting our search to halfspaces over these features increases the optimal error by at most . This strategy also appears in work on testing low-dimensional functions [DMN19, DMN21, NP24] and in agnostic learning under the Gaussian distribution [DKK+21, DKK+24]. The main challenge is to identify the right feature space from the unknown target . To do so, we develop a Boolean analogue of the “influence PCA” machinery used in the Gaussian setting [DMN21, DKK+21, DKK+24]; this is our main conceptual contribution and may be of independent interest.
Fix an arbitrary halfspace over . It is convenient to work with correlation rather than error:
We will show that can be replaced, with little loss in correlation, by a halfspace whose normal lies in a low-dimensional subspace determined only by . The same subspace will therefore contain a nearly optimal competitor, regardless of the original halfspace .
The Boolean Influence PCA Matrix. To motivate our construction, we recall how the Gaussian approach [DMN21, DKK+21, DKK+24] uses gradients to identify relevant directions. One smooths the target to obtain a differentiable function , then forms the gradient second-moment matrix
With suitable smoothing, the eigenvectors whose eigenvalues exceed an appropriate threshold span a subspace of dimension independent of that contains the normal vector of a nearly optimal halfspace.
On the Boolean cube, directly taking the second moment of the un-smoothed discrete gradient can be uninformative. Writing
consider the matrix
The high-frequency components of can make this matrix spectrally uninformative, even when correlates well with a halfspace. For example, for , consider
A direct calculation gives , although the dictator has correlation 1/2 with . Thus, eigenvalue thresholding retains either all directions or none.
Averaging the discrete gradient first loses too much information in the other direction: it retains only the degree-1 Fourier coefficients, since
These coefficients can vanish even when has substantial correlation with a halfspace. For example, has no degree-1 Fourier coefficients, yet agrees with it on a fraction of the cube.
Our construction combines random restrictions with gradient averaging. Fix , and let be the distribution over restrictions in that independently leaves each coordinate free with probability and otherwise fixes it to a uniformly random sign. For a restriction , let be the average discrete gradient of , padded with zeros on the fixed coordinates. Equivalently, is the degree-1 Fourier vector of . We define the Boolean influence PCA matrix by
See Figure 1 for an illustration of this construction. This construction has two useful properties:
-
Random restrictions allow higher-degree terms to contribute through linear coefficients. For example, fixing and in leaves . Its linear coefficient averages to zero over the random signs , but its square is always one, so its contribution survives in the outer product.
-
Averaging the gradient within each restricted subcube controls the trace. Indeed, the resulting vector consists of the degree-1 Fourier coefficients of a bounded function, so Parseval's identity gives . Consequently, , independently of .
We now explain how this matrix determines a common search space and how every halfspace can be transformed into one whose normal lies in that space; see Figure 2 for an illustration.
Step 1: The Head and Tail Variables. For the analysis, we work with the smoothed target . Peres' noise-stability bound for halfspaces (Proposition 4) ensures that this changes every halfspace correlation only slightly when is close to one.
A short calculation shows that the diagonal entries of are proportional to the coordinate influences of . Thresholding these entries partitions the coordinates into a head of high-influence variables and a tail of low-influence variables. We then let be the span of the eigenvectors of the tail principal submatrix whose eigenvalues exceed a suitable threshold. The trace bound ensures that both and are bounded independently of . Note that both and depend only on the target . For an arbitrary candidate halfspace , we will preserve its head weights and replace its tail weights by a vector in , with little loss in correlation.

Figure 1: Algorithm 1 uses membership queries to estimate degree-1 Fourier vectors of random restrictions of , equivalently their average discrete gradients. The Boolean influence PCA matrix is the expected outer product of these vectors. It determines the head variables , the tail variables , and the leading tail eigenspace .
Step 2: Regularizing the Tail. We first replace by a regular vector , meaning that no individual coordinate is large relative to its Euclidean norm. (See Definition 6 for the formal definition.) A standard critical-index dichotomy [Ser07, OST22] gives two cases:
-
Removing a small set of the largest tail weights leaves a regular vector. Restricting the corresponding coordinates then gives a halfspace with a regular tail.
-
Keeping only a small set of the largest tail weights, together with the head weights, gives a good approximation to . Restricting these tail coordinates then gives a halfspace depending only on the head.
In either case, the restricted coordinates have low influence on . We can therefore choose one restriction that loses little correlation, averaged over all head assignments. This preserves the original head weights and changes only the tail and the threshold. We thus obtain a halfspace
where is zero or sufficiently regular. Looking ahead, regularity will allow us to replace Boolean tail inputs by Gaussian inputs while approximately preserving correlation with the smoothed target .
Step 3: From Boolean to Gaussian, and Back. We want to show that projecting onto , the leading eigenspace of the tail matrix from Step 1, loses little correlation. This is the intuition behind the Gaussian algorithms [DMN21, DKK+21, DKK+24], and regularity gives us reason to expect it here as well: since the tail is regular, the linear form is approximately Gaussian. But this observation alone does not let us replace Boolean tail inputs by Gaussian ones while preserving correlation with an arbitrary target .

Figure 2: Transforming a candidate halfspace into one with tail normal in , with little loss in correlation. The head weights remain unchanged, while the threshold may change. The final tail (Step 3) is depicted schematically and need not be sparse in the original coordinate basis.
There is a way to pass to Gaussian space that preserves correlation exactly: extend both functions multilinearly, by evaluating their Fourier polynomials on real inputs. For a fixed Boolean head assignment , let and be the multilinear extensions of and in the tail coordinates. Since square-free monomials are orthonormal under both Boolean and Gaussian measures,
The difficulty is that is a polynomial, rather than a halfspace: averaging out directions from this polynomial does not directly give a halfspace with the projected normal. There is, however, another

Figure 3: Two extensions of the majority halfspace . The geometric extension is Boolean-valued, while the multilinear extension is real-valued; three level sets of the latter are shown, with the zero level set emphasized.
natural extension of to Gaussian space: its geometric extension, which simply evaluates the same linear threshold on real inputs,
For this extension, the Gaussian averaging argument gives precisely the projection we want. The two extensions agree on the Boolean cube but generally differ on Gaussian inputs; see Figure 3. This is where regularity of the tail from the previous step is crucial: it ensures that they are close in Gaussian norm. Mossel and Neeman [MN15, Lemma 7.3] established such a result with inverse-logarithmic dependence on the regularity parameter. Proposition 7 gives an exponential quantitative improvement: for a -regular tail, we obtain the polynomial bound
We also show that the exponent 1/4 is optimal, with a matching lower bound for the majority function (Proposition 25).
Returning to the main argument, we first extend both functions multilinearly in the tail coordinates, preserving their correlation exactly. We then replace only the halfspace's multilinear extension by its geometric extension. Since , Cauchy–Schwarz and the comparison above bound the change in correlation by . This bound holds for every head assignment, so it also holds after averaging over the Boolean head inputs.
Next, we carry out the Gaussian projection argument described at the start of Step 3. Write , where . The Gaussian halfspace depends on the discarded directions only through the scalar , which is independent of , where . The one-dimensional Gaussian Poincaré inequality together with additional properties of the subspace let us average out the direction of with little loss in correlation. The averaged classifier is a mixture of halfspaces with tail normal and different thresholds. Choosing one threshold after averaging over all head assignments gives a single halfspace with the original head weights and at least the mixture's correlation.
Finally, we return to the Boolean cube. This requires to be regular, which does not follow from the regularity of alone. Here the small diagonal entries of the tail matrix are important: choosing the diagonal cutoff sufficiently small relative to the eigenvalue cutoff ensures that every vector in is regular. We can therefore apply the comparison between extensions once more and obtain
with little additional loss in correlation.
Putting Everything Together. We can choose parameters appropriately to make the total correlation loss sufficiently small and simultaneously have . The learner therefore searches over halfspaces with arbitrary head weights and tail weights in . This is a search in only dimensions, and the argument above guarantees that this restricted class contains a nearly best-fitting halfspace.
The algorithm finds and by estimating using membership queries. (Note that membership queries beyond random examples are used only to estimate the matrix.) The estimation error is easily handled via standard concentration bounds, so suitable thresholds applied to the estimated matrix give the required head and tail variables as well as the leading eigenspace . The learner then performs empirical risk minimization using fresh uniformly random labeled examples. The search takes time. Matrix estimation and feature construction take time polynomial in and , followed by a search whose cost depends only on . Adding these costs gives total running time , with total query complexity .
1.3 Related Work
We give a brief overview of related work, starting with previous work on agnostically learning halfspaces under the Gaussian distribution.
Proper Agnostic Learning of Halfspaces over Gaussian Space. Analogues of both our main results were previously known under the standard Gaussian distribution . Over this marginal distribution, polynomial regression already achieved error with an improper hypothesis [KKMS08] using samples. Subsequent work obtained proper learners in both access models:
- Diakonikolas et al. [DKK+24] gave efficient query-based agnostic learners for the broad class of multi-index models under Gaussian marginals. As a consequence, they obtain a proper halfspace learner with error , using samples and queries and running
in time poly. Our Theorem 1 obtains an analogous guarantee over the Boolean hypercube.
- Diakonikolas, Kane, Kontonis, Tzamos, and Zarifis [DKK] gave a proper agnostic learner with error OPT and running time . (See Tikhonov and Vasilyan [TV26] for a recent improvement to the running time and extension to proper learning of functions of a bounded number of halfspaces.) Our Theorem 2 gives a Boolean analogue of the proper learning guarantee of [DKK].
Both Gaussian learners use spectral information about influential directions to reduce the search for a nearly optimal halfspace to a low-dimensional subspace. In [DKK], these directions are extracted from a low-degree polynomial fitted to the labels; in [DKK], they are extracted from a smoothed version of the target. In both cases, the relevant matrix is the second moment of the gradient, and its top eigenspace contains the normal of a nearly optimal halfspace. A similar gradient-based PCA approach appears in the work of De, Mossel, and Neeman [DMN21] on robust testing of linear -juntas over Gaussian space, a class that includes halfspaces when .
Our query-based algorithm underlying Theorem 1 gives a Boolean counterpart of this approach. The Boolean setting presents additional challenges absent in the Gaussian setting: for example, arbitrary rotations do not preserve the uniform distribution over , and powerful technical tools such as anti-concentration and the localization technique [ABL17, DKS18] are no longer available. (See [CKSV26] for a broader discussion of the obstacles to extending continuous learning algorithms to discrete distributions.) Indeed, obtaining a similar dimension reduction over requires several additional ingredients, including a discrete influence matrix, critical-index analysis, and a quantitative comparison between the geometric and multilinear Gaussian extensions of regular halfspaces.
Robust Learning of Halfspaces. A related line of work gives efficient learning algorithms with relaxed agnostic guarantees of the form , where as . Under the uniform distribution over , O'Donnell and Servedio [OS11] obtain error for an absolute constant . De, Diakonikolas, Feldman, and Servedio [DDFS14] improved the running-time dependence on , at the cost of a weaker dependence on OPT. Both algorithms use uniformly random examples and run in time polynomial in for every fixed , but super-polynomial in . Recently, Chandrasekaran, Klivans, Stavropoulos, and Vasilyan [CKSV26] gave a proper learner with error for an absolute constant and running time poly. Similar relaxed agnostic guarantees have also been studied extensively under Gaussian and other continuous marginal distributions; see the related-work discussion in [CKSV26] for an overview.
Learning with Queries. The power of membership queries in agnostic learning differs substantially between the distribution-free and distribution-specific settings. For concept classes on the Boolean hypercube, Feldman [Fel09] showed that distribution-free agnostic learners using membership queries can be simulated using random examples alone, with polynomial overhead. He also exhibited a computational advantage for membership queries under the uniform Boolean distribution, assuming the existence of one-way functions, and asked whether such an advantage could be established for natural classes such as halfspaces. Gopalan, Kalai, and Klivans [GKK08b] asked the stronger quantitative question of whether halfspaces admit an agnostic query learner running in time poly. Diakonikolas et al. [DKK] obtained improved agnostic learning guarantees using membership queries in Gaussian space; our Theorem 1 improves the dimension dependence over polynomial regression in the Boolean setting. Our result also makes progress on the stronger question posed in [GKK08b]: it achieves polynomial query complexity and a running-time exponent in independent of , while the fully polynomial running time remains open.
Membership queries also underlie several classical learning algorithms under the uniform Boolean distribution, including the Goldreich–Levin algorithm for parities [GL89] and the Kushilevitz–Mansour algorithm for decision trees [KM93]. Building on these techniques, Gopalan, Kalai, and Klivans [GKK08a] gave an efficient improper agnostic learner for decision trees under the uniform Boolean distribution. In the distribution-free setting, recent works by Alman, Nadimpalli, Patel, and Servedio [ANPS25a, ANPS25b] also exploit the power of membership and equivalence queries to design new algorithms for learning DNF formulas.
Proper Learning of Other Classes. For monotone Boolean functions under the uniform distribution, the Fourier concentration theorem of Bshouty and Tamon [BT96], combined with polynomial regression [KKMS08], yields an improper agnostic learner using random examples and running in time for every fixed . Lange, Rubinfeld, and Vasilyan [LRV22] used local correction to obtain a proper learner with error and running time . Lange and Vasilyan [LV23] subsequently achieved the fully agnostic guarantee with the same asymptotic running time. Proper agnostic learners are also known for Lipschitz convex functions [FPJMMN26] and for restricted families of convex bodies [DNS24, DNOS26, Nad26] under the Gaussian measure.
1.4 Acknowledgements and AI Methodology
A.D. is supported by NSF CCF 2045128 and the UK AI Security Institute (AISI). E.M. is supported by NSF grant DMS-2031883, by the Vannevar Bush Faculty Fellowship ONR-N00014-20-1-2826, and by a Simons Investigator Award in Mathematics. S.N. is partially supported by E.M.'s Vannevar Bush Faculty Fellowship ONR-N00014-20-1-2826. S.N. thanks Ronitt Rubinfeld for asking whether Theorem 1 could yield a sample-based agnostic learning algorithm, a question that led to Theorem 2.
The authors constructed the discrete matrix and designed a proper agnostic learning algorithm for halfspaces without assistance from large language models (LLMs). The algorithm ran in time , but its dependence on was doubly exponential. The quantitative bottleneck was the Boolean–Gaussian comparison of Mossel and Neeman [MN15, Lemma 7.3]. We then asked an LLM whether this inequality could be sharpened, and it supplied the proof of Proposition 7 presented in Appendix A. This improved our algorithm's running-time dependence on from doubly exponential to singly exponential, giving the bound in Theorem 1.
We also used LLMs for copyediting, proofreading, generating diagrams, and tracking the powers of and in our complexity bounds. The authors take full responsibility for the correctness and contents of this paper.
2 Preliminaries
We write for the Euclidean -norm, and denote the unit sphere in by . We write . For , write for the complement of . Throughout, letters such as and denote positive universal constants whose values may change from appearance to appearance unless they are explicitly fixed. In complexity bounds, denotes ; the base of the logarithm is immaterial.
Linear Algebra. For and , write . For and , write for the submatrix of with rows indexed by and columns indexed by . In particular, is the principal submatrix of indexed by . For a linear subspace , let denote the orthogonal projector onto .
Probability. We use boldfaced letters, such as and , to denote random variables, which may be real-, vector-, or matrix-valued. The intended type will be clear from context. Given a distribution , we write to indicate that is distributed according to . Given a probability space and , we write for the space of measurable functions satisfying
When the underlying probability space is clear from context, we abbreviate and by and , respectively. The space is equipped with the inner product
We often suppress the measure and write when the ambient space is understood. For bounded functions and on the same probability space, define their correlation by
We will almost always use correlation for Boolean functions on under the uniform measure. For such functions and , correlation and distance satisfy
We will primarily work with two probability spaces. On the Boolean hypercube , we always use the uniform probability measure and write for the corresponding space. On , we use the standard Gaussian measure and write for the corresponding space.
2.1 Fourier Analysis on the Hypercube
Our notation and terminology follow [O'D14]. Recall that the collection of parity functions forms an orthonormal basis for with the convention that . As a result, every has the Fourier expansion
We will abuse notation and write for singleton Fourier coefficients. Recall Parseval and Plancherel's identities, which state that for ,
Let . Recall that the influence and the -noisy influence of a coordinate on a function on the Boolean cube are respectively
with the convention . Thus the definition at retains exactly the degree-1 Fourier contribution.
Let . We define the distribution over where each coordinate of is obtained as follows:
The Boolean noise operator is defined by . It is readily verified that . Finally, for , and , let be defined coordinatewise by
The restriction is defined by .
We require the following observation: resampling a set of low-influence coordinates changes correlation with a bounded function by only a small amount.
Lemma 3 (Coordinate resampling). Let , let , and let . Define
Then
Proof. The map is self-adjoint. Hence, by Cauchy-Schwarz,
Moreover,
completing the proof.
2.2 Gaussian Space and Multilinear Extensions
Given a function , its multilinear extension is given by
The same square-free monomials are orthonormal under . Consequently
for every pair of functions .
Suppose and . The Ornstein–Uhlenbeck operator is defined as
It is readily checked that acts on square-free monomials similarly to the Boolean noise operator [O'D14, Chapter 11]. In particular, for , we have
Finally, is self-adjoint in ; in other words, for , we have
We will require the following averaging operator used by [DMN21]. Let . For a subspace , define the Gaussian averaging operator
where the Gaussian is supported on . Note that only depends on . We note that is self-adjoint in ; see [DMN21, Lemma 2.2] for a proof.
2.3 Halfspaces
Throughout the paper, we use
A non-constant halfspace is written as with normal vector and threshold . Given a halfspace of the form , we use the same defining inequality to extend geometrically to a halfspace on :
We also identify with its unique multilinear extension to , namely the multilinear polynomial (as defined in Section 2.2) which agrees with on .
If is a linear subspace, let be the class of affine halfspaces whose normal lies in :
This definition includes both constant halfspaces, obtained by taking and choosing or .
2.3.1 Useful Estimates
We use Peres' dimension-free noise-stability bound for halfspaces [Per04]; see also [O'D14, Section 5.5].
Proposition 4 (Peres' theorem). Let be a halfspace over , and let . Then
We will also require the following consequence of the one-dimensional Gaussian Poincaré inequality; see, for example, [O'D14, Section 11.2 and Exercise 11.13]. It bounds the cost of projecting a halfspace using only the derivative in the direction removed from its normal.
Lemma 5. Let be smooth with and square-integrable under . Let be a subspace, and let . All expectations below are over . If , set . Then
If , the two correlations are equal.
Proof. The zero-projection case is immediate, so suppose . Let average only the Gaussian coordinate along :
This conditional-expectation operator is self-adjoint in Gaussian . The halfspace depends on only through its coordinate along , so . Consequently, self-adjointness and Cauchy–Schwarz give
Condition on the Gaussian coordinates in and apply the one-dimensional Gaussian Poincaré inequality along v. Averaging the resulting conditional-variance bound yields
which proves the claim.
□
2.3.2 Regular Halfspaces
The following notion of regularity is due to Servedio [Ser07]; related notions and decompositions were subsequently used in work on testing and fooling halfspaces [MORS10, GOWZ10].
Definition 6 (Regularity). Let . We declare the zero vector to be -regular. An arbitrary non-zero vector is -regular if it satisfies
A halfspace is -regular if its normal vector w is -regular.
Note that a halfspace on has two distinct extensions to : the geometric extension , obtained from the same defining inequality, and the multilinear extension , obtained from the Fourier expansion of . We will require the following result, which shows that these two extensions are close in when is regular. It provides a bridge between the Boolean and Gaussian settings. We will use it repeatedly throughout the rest of the paper to transfer correlation estimates between them.
Proposition 7 (Closeness of multilinear and geometric extensions for regular halfspaces). There is a universal constant such that the following holds. Let
be a -regular halfspace, where . Let and let be the multilinear extension of the Boolean halfspace. Then
More precisely, if and , then
Note that if the left-hand side is zero; otherwise and may be normalized by the same positive factor.
The proof of Proposition 7 is given in Appendix A. Mossel and Neeman [MN15, Lemma 7.3] proved a weaker version of this result using the invariance principle, with only logarithmic dependence on the regularity parameter . Proposition 7 thus gives an exponential quantitative improvement over [MN15, Lemma 7.3]. We also note that the exponent above: the majority function gives a matching lower bound; see Proposition 25.
As mentioned above, we will repeatedly use Proposition 7 to pass between the Boolean and Gaussian settings when working with regular halfspaces. To see this, let be a -regular halfspace, let be its geometric Gaussian extension, and let . Because square-free monomials are orthonormal under both the uniform measure on and the standard Gaussian measure, the correlation between and is
The second term is small by Cauchy–Schwarz and Proposition 7:
Here we used . Consequently,
The same argument also gives the reverse passage: if has a regular normal and is the Boolean halfspace defined by the same inequality, then we may replace by the multilinear extension and convert the resulting Gaussian inner product back into a Boolean correlation.
2.3.3 The Critical Index
We use the critical-index dichotomy for halfspaces, originating in the work of Servedio [Ser07]. The form below follows directly from [OST22, Lemma A.3].
Definition 8 (Critical index). Let and order so that . The -critical index of is the least for which
We take the maximum over an empty set to be zero, so the empty tail is regular and the critical index is always defined.
For , write .
Proposition 9 (Critical-index dichotomy). There is a universal constant such that the following holds. Let , let have coordinates ordered by decreasing absolute value, and put
Let be the -critical index of . If , the tail after the first coordinates is zero or -regular. Otherwise , and truncation to the first coordinates satisfies
Proof. The first case is the definition, so suppose . In the terminology of [OST22, Definition 3.1], is not -regular: if deleting a set of at most coordinates left a regular tail, let be the first undeleted coordinate. Restoring any deleted coordinates after can only increase the tail norm without increasing its largest absolute coefficient. Thus the suffix starting at would be regular, giving , a contradiction.
At error parameter for a sufficiently small universal , [OST22, Lemma A.3] gives an integer when is sufficiently large. The vector is also not -regular. Apply that lemma with the replacement vector equal to on the first coordinates and zero elsewhere. It agrees with on the first coordinates and has no larger norm on the remaining coordinates. Fully independent uniform signs satisfy the lemma's bounded-independence hypothesis. Its conclusion holds for every threshold with this same replacement vector, with error at most by the choice of . To match its indicator convention exactly, apply it to and and use .
2.4 Efficient Search over Halfspaces in Fixed Dimension
We record a standard learning primitive for later use. Let be any map. The following proposition gives an efficient way to search over all classifiers of the form , where is an affine halfspace on .
Proposition 10 (Efficient search over affine halfspaces). Let be a labeled sample from , and suppose that the mapped points are given. Define
In time , one can find an affine halfspace on minimizing over all affine halfspaces on . Moreover, let be any distribution on , and let . If
then, with probability at least , every affine halfspace on satisfies
where . Consequently, on this event,
The same conclusions hold for labels in when empirical and true error are defined by
Proof. For each mapped point , consider the hyperplane
Each face of this arrangement determines one prediction vector on the sample, including prediction vectors attained on a boundary under our convention . The arrangement has faces, and a representative of each face can be found by linear programming. We enumerate these prediction vectors and return one making the fewest mistakes on .
The class is an affine halfspace on has VC dimension at most . The standard VC uniform-convergence bound [KV94, Chapter 3] gives the claimed sample complexity. The guarantee for follows by comparing its sample error first with that of the best halfspace and then comparing both sample errors with their true errors. For labels in , the same enumeration minimizes the weighted error. The standard Rademacher-complexity bound for a Boolean class of VC dimension at most gives the same uniform-convergence guarantee.
3 Influence PCA on the Boolean Hypercube
In this section, we define a Boolean analogue of the Gaussian gradient second-moment matrix recalled in Equation (4). In Gaussian space, the top eigenvectors of this matrix identify the directions along which a smoothed function varies most significantly, and this is the central object in the influence-PCA machinery of [DMN21, DKK 24]. The corresponding definition on the Boolean hypercube is not immediate: the hypercube is not rotationally invariant, and it has no intrinsic notion of differentiation in an arbitrary direction.
At a high level, the Boolean matrix will record how the degree-1 Fourier weight of a -random restriction of is distributed across directions. We establish its basic identities, relate it to the Gaussian gradient second-moment matrix, and record the spectral properties needed for our learning algorithm. We also give a membership-query estimator whose output is always positive semidefinite with trace at most one.
3.1 Definition and Basic Properties
For , let be the product distribution on where each coordinate of is drawn independently according to the following distribution:
We can now define the Boolean influence PCA matrix.
Definition 11 (Influence PCA matrix). Suppose and . Sample . Let be the set of free coordinates. For , define the degree-1 Fourier coefficient of the restricted function at coordinate as
Set by if , and 0 otherwise. Finally, define the influence PCA matrix as
Informally, each random restriction produces a vector consisting of the degree-1 Fourier coefficients of the restricted function , padded with zeros on the restricted coordinates. The matrix is the (uncentered) second-moment matrix of these random vectors. Equivalently, for every unit vector , the quantity is the expected squared projection of the linear Fourier component of onto . We can thus view as capturing a directional refinement of the expected degree-1 Fourier weight.
Proposition 12 (Basic properties of ). For every and , the following properties hold.
-
The matrix is positive semidefinite.
-
Its trace satisfies .
-
For every ,
For every pair of distinct coordinates ,
The diagonal identity explains the name “influence PCA” as for we have
so, up to the scaling factor , the diagonal entries are exactly the coordinate influences of the smoothed function.
Proof. The positive-semidefiniteness in the first property follows immediately from Equation (1). For the trace bound in the second property, Parseval's formula gives
(Parseval's formula)
since f is bounded in .
It remains to justify Equations (2) and (3). When , both sides of Equations (2) and (3) vanish. Suppose henceforth that , let , and define the boldfaced random variables by setting when and when . The random variables are independent and satisfy and .
For the diagonal entry, condition on and use orthogonality of the monomials in the remaining independent, mean-zero random variables. This gives the first equality in Equation (2), including the factor . The second equality follows from the definition of noisy influence in Section 2.1; at , only contributes, in agreement with our convention there. For , condition on . Terms involving or vanish, and orthogonality on the other coordinates leaves precisely the common index sets . Multiplying by gives Equation (3).
3.2 Relationship to the Gaussian Influence PCA Matrix
We next relate the Boolean influence PCA matrix to its Gaussian analogue. For a square-integrable function and , define
This is the Gaussian influence PCA matrix used in earlier work [DMN21, DKK 24].
To motivate the following lemma, we briefly explain how it will help us study for a regular halfspace . By Proposition 7, the geometric Gaussian extension of is close to its multilinear extension, allowing us to approximate by a corresponding correlation between functions on Gaussian space. The matrix identifies the significant Gaussian directions of the smoothed target. The following lemma connects these directions back to the Boolean setting: every direction significant for is also significant for , up to scaling factors in and .
Lemma 13. Let and . Writing for the diagonal matrix with the same diagonal as M, we have
Proof. Differentiating the multilinear Hermite expansion gives
Orthogonality of square-free monomials under the Gaussian measure therefore yields, for all ,
Comparing with Equations (2) and (3) proves the identity. The inequality follows because .
3.3 Top Eigenspaces and Matrix Estimation
We will use to define a low-dimensional subspace of over which our learning algorithms can search. This subspace will be a top eigenspace of , so we next record the spectral properties and estimation guarantee that the algorithm requires.
Definition 14 (Top eigenspace). Let be a symmetric positive semidefinite matrix and let . We write for the span of the eigenvectors of with eigenvalue at least .
For , the top eigenspace captures the directions in which has the most influence at smoothing scale . The following lemma allows us to control the projector onto the top eigenspace of a matrix with bounded trace.
Lemma 15. Let satisfy , and let for . Then
and every unit vector satisfies . Moreover, if for every , then every unit vector satisfies
Proof. The trace bound gives . In an orthonormal eigenbasis of , the projector has eigenvalue 1 only where has eigenvalue at least , so . The same eigenbasis shows that a unit vector satisfies . Finally, for a unit vector and any ,
The matrix can be estimated directly from membership queries. For each random restriction, two independent estimates of its degree-1 Fourier vector give an unbiased estimate of the outer product. The proof uses a mean-square bound followed by projection onto the positive semidefinite trace ball, and is deferred to Appendix B.
Proposition 16 (Membership-query matrix estimator). Let , , and , and set . There is a membership-query algorithm which always returns a positive semidefinite random matrix with and, with probability at least , satisfies
Its query complexity is
For any fixed failure probability, the construction uses independent restrictions and two independent batches of uniform points per restriction. For general , its running time is
There is no additional dependence on .
4 Proper Agnostic Learning with Queries
We now prove Theorem 1, which we recall below for the reader's convenience.
Theorem 1 (Query-based proper agnostic learner). Given and query access to , there is an algorithm (Algorithm 1) that outputs a halfspace satisfying
with probability at least 2/3. It makes at most queries to and runs in time at most .
We briefly recall the proof strategy outlined in Section 1.2. First, we smooth the target function and use the diagonal of to identify a small set of head coordinates. The critical-index dichotomy then allows us to regularize the tail of any candidate halfspace while preserving its head coefficients and losing little correlation with . We next pass to Gaussian space in the tail coordinates and use a projection argument to replace the tail weights by a vector in a common low-dimensional subspace, again with little loss in correlation. Thus, every candidate halfspace can be replaced, with little loss in correlation with , by one whose normal lies in the common low-dimensional space spanned by the head coordinates and the leading eigenspace of the tail block . We then perform empirical risk minimization over halfspaces in this space to obtain a nearly optimal hypothesis.
4.1 The Head Variables
Fix and define
By Proposition 12,
For , define
The trace bound gives . The argument below also applies to any head satisfying
This flexibility will allow us to use an empirical head.
4.2 Regularizing Candidate Halfspaces
Lemma 17 (Regularizing the tail). Let , let satisfy Equation (8), and let
For every , there is a halfspace
whose tail normal u is zero or -regular and such that
Proof. If , take . Otherwise order the tail coordinates by decreasing absolute coefficient, and apply Proposition 9 with
Let be the -critical index of this ordered tail normal.
If , let be the first tail coordinates. For every , the halfspace obtained by pinning has the original head coefficients and a zero or -regular tail. By Lemma 3, some such assignment gives a halfspace with
This also covers , since the empty tail is regular.
Otherwise . Let contain the first tail coordinates and put
For each head assignment , apply Proposition 9 with threshold . Averaging over shows that disagrees with on at most a fraction of the cube. Since , this costs at most in correlation. Resampling in and using Lemma 3 then gives a head-only halfspace at additional cost at most .
In both cases, we choose a single pinning assignment by averaging the global correlation, rather than choosing separate assignments for different head values. Thus the result has one threshold , and its head coefficients remain . The total loss is at most
as claimed.
4.3 The Common Tail Subspace
For any head , write and define
This matrix is positive semidefinite with trace at most one. If H satisfies Equation (8), then
It will be convenient to collect the structural errors into
Theorem 18. Let and , let satisfy Equation (8), and let satisfy
Suppose every vector in is -regular. For every and every halfspace , there is a halfspace whose normal belongs to and such that
We identify E with its embedding in supported on .
Proof. By self-adjointness and Peres' theorem (Proposition 4), every halfspace a satisfies
Apply Lemma 17 to obtain , where is zero or -regular, at correlation cost against .
Extend only the tail variables to Gaussian space: for and , define the function as
Square-free orthogonality gives and, for every Boolean function ,
Here and below is uniform on and , independently. Writing
Proposition 7 and Cauchy-Schwarz imply
Note that if , then the error term can be omitted and the above inequality is an equality.
We next show that the Boolean matrix controls the average outer product of the tail gradients. Recall that . Since this extension is multilinear, each entry of its gradient outer product has degree at most two in each coordinate. We can therefore replace the Boolean head coordinates by independent standard Gaussian coordinates without changing the expectation: both distributions have mean zero and variance one. After this replacement, the expected outer product of the tail gradients is exactly the tail block of . Applying Lemma 13 then gives
where the last step is Lemma 13.
Decompose along . If , let , and let average the Gaussian coordinate along , leaving the head and all orthogonal coordinates fixed. Since depends on only through , . Writing and taking all norms over the joint distribution of , we have
(Self-adjointness and Cauchy-Schwarz)
(Gaussian Poincaré inequality, Lemma 5)
(16)
The final inequality follows from Equation (15) and . Also, note that if , averaging changes nothing.
Next, note that Gaussian averaging gives a mixture over halfspaces:
For each fixed , define the halfspace , and let be the geometric Gaussian extension of . Write
The mixture representation and linearity of expectation give
Hence there is a single shift such that
Set . This choice of is common to all head assignments, and the normal of belongs to .
It remains to relate to the Boolean correlation of with . Write and . If , then is -regular, so Proposition 7 applies to every . Using Equation (13), Cauchy-Schwarz, and , we obtain
where the norms are with respect to . If , the two extensions coincide and this error is zero.
We can now put everything together:
(Equation (14))
(Equation (16))
(choice of )
Finally, we account for regularizing and for replacing by its smoothed version. Applying Equation (12) to both and incurs a total cost of at most . Together with the regularization bound from Lemma 17 and Equation (17), this gives
provided the universal constant in Equation (11) is sufficiently large. This proves the claimed bound.
4.4 The Empirical Head and Top Eigenspace
Our learning algorithm chooses the head coordinates and tail subspace using an empirical estimate of . The following lemma shows that sufficiently small estimation errors preserve the properties required by Theorem 18.
Lemma 19. Put . Suppose , , and
Define
Then , , and satisfies Equation (8). Every unit satisfies , and every unit satisfies
Proof. Each coordinate in contributes more than to the trace of . Since , we have .
For every , the diagonal error bound gives
The diagonal identity in Proposition 12 therefore implies
Thus satisfies Equation (8).
Now consider the estimated tail matrix . It is positive semidefinite, has trace at most one, and has all diagonal entries at most . Applying Lemma 15 with eigenvalue threshold proves the claimed dimension and regularity bounds for . The same lemma also gives
To compare this with the true matrix, extend v by zeros on . The assumed operator-norm error bound then gives
Consequently, Theorem 18 applies with , , and .
4.5 Proof of Theorem 1
Let dominate the universal constants in Theorem 18 and Lemma 19, and choose a universal constant sufficiently large in terms of and the constant in Proposition 7.
We briefly recall the roles of the main parameters and specify their values in terms of . The parameter determines the influence threshold for the head, while determines the top eigenspace of the empirical tail matrix. The parameter specifies the regularity of the candidate tail, and bounds the critical-index truncation error. We use the following parameter setting:
(18)
By Lemma 19, every unit vector satisfies
With these parameter choices, replacing by in Lemma 17 also loses at most in correlation with . For and a sufficiently large fixed , we have and . Setting , , and also gives , as required by Proposition 16.
If has orthonormal columns spanning , define
Every affine halfspace applied after the map is a proper halfspace on the original cube. Indeed, the classifier
has original normal .
Recall that Theorem 18 is stated in terms of six approximation errors. The next corollary checks that all six approximation errors are sufficiently small for the choices in Equation (18) above.
Inputs
Output
A halfspace
Parameters
Algorithm
-
Use Proposition 16 with parameters to estimate the global matrix , obtaining the random estimate .
-
Set
-
Let , let , and let have orthonormal columns spanning .
-
Set and
Draw uniform points independently of one another and of all preceding matrix-estimation randomness, query their labels, and use ERM to find an affine halfspace with parameters on the mapped points
- Output
Algorithm 1: Proper agnostic learner
Corollary 20. Set parameters as in Equation (18). Let satisfy Equation (8), and let satisfy
Suppose every vector in is -regular, where
Then every halfspace has a halfspace whose normal lies in and such that
Proof. The six terms in Equation (11) are all . The two critical-index terms satisfy and
since is bounded on . We also have
Finally,
Thus after fixing , where is universal. The result follows by applying Theorem 18.
We can now prove our main result.
Proof of Theorem 1. We first prove the error guarantee. For the feature map , let
Since is linear, every member of is a halfspace on the original Boolean cube.
Let be the event that the matrix estimate satisfies the accuracy guarantees of Proposition 16. Taking gives . On this event, Lemma 19 shows that and satisfy the hypotheses of Corollary 20. Applying that corollary to a halfspace attaining , we obtain a member of whose correlation with is within of optimal. Since
it follows that
We next analyze the ERM step. Condition on any output of the matrix estimator, which fixes and . Let denote the fresh labeled sample set drawn in Step 4 of Algorithm 1. By Proposition 10, a sufficiently large constant in ensures that, with conditional probability at least 5/6,
Denote this event by . Since the conditional guarantee holds for every matrix estimate, we also have without conditioning.
Let minimize the true error over , and let g be the empirical minimizer returned by the algorithm. On ,
A union bound gives , proving the error guarantee.
We now bound the query complexity and running time. These bounds hold even when the matrix estimate fails its accuracy guarantees. Indeed, Proposition 16 always returns a positive semidefinite matrix with trace at most one. Since
thresholding its diagonal entries at and its tail eigenvalues at gives
Consequently,
The matrix estimator uses parameters
so . By Proposition 16, it uses independent restrictions and two independent batches of sample points per restriction. The number of matrix-estimation queries is therefore
The ERM stage makes another queries, so the total query complexity remains .
Matrix estimation, including the final positive semidefinite projection, takes time. Extracting the tail matrix and computing its eigendecomposition takes an additional time. (See, for example, [GV13, Section 8.3].) Constructing the feature vectors for the ERM sample takes
time. Finally, Proposition 10 bounds the ERM search time by
The algorithm constructs the mapped labeled sample once and then runs ERM on it, so these costs add. The total running time is
The polynomial term is at most , giving the running-time bound in Theorem 1.
Remark 21 (Bounded real-valued targets). The proof of Theorem 1 extends to every function . For a Boolean halfspace , extend the distance notation by
The equality holds pointwise because and . For such functions, we continue to define . The structural and matrix-estimation arguments use only that is bounded by 1. The final search over halfspaces uses Proposition 10, which also applies to labels in . Consequently, the same algorithm outputs a proper halfspace satisfying
with probability at least 2/3 and with the same asymptotic query and running-time bounds.
5 Proper Agnostic Learning with Samples
We now show how to obtain the sample-based learner stated in the introduction.
Theorem 2 (Sample-based proper agnostic learner). Let be any distribution on whose marginal on is uniform. For every , there is an algorithm using only independent labeled examples from that, with probability at least 2/3, outputs a halfspace satisfying
It uses labeled examples and runs in time at most .
The proof has two parts. First, we use the sample-based improper agnostic learner of [KKMS08] as an oracle and boost its outputs into an explicitly evaluable bounded function which preserves correlation with every halfspace. We then run the bounded-real version of our proper membership-query learner on this proxy (Remark 21) and transfer its guarantee back to the original labeled distribution.
Fix a distribution as in Theorem 2, and write
For every Boolean hypothesis , we have
Before proceeding, it is useful to see why the more direct approach of running the improper learner once and then “properizing” its output does not suffice.
Remark 22 (Why one improper output does not preserve halfspace correlations). Suppose one instead ran the improper learner (that is, the [KKMS08] algorithm) once, obtaining a hypothesis with , and then ran the proper membership-query learner on the Boolean target with accuracy . If is an optimal halfspace, triangle inequalities give only
Thus, this argument does not establish the desired error guarantee.
5.1 An Improper Correlation Finder
We use the following consequence of the polynomial-regression framework of Kalai, Klivans, Mansour, and Servedio [KKMS08, Theorem 5] and the Boolean-cube approximation bound of Feldman, Kothari, and Vondrák [FKV17, Corollary 15]. Let be any distribution on whose first marginal is uniform. Given and independent examples , an improper learner returns, with probability at least , an explicitly evaluable Boolean hypothesis such that
Equivalently,
Its sample complexity and running time are
We now use repeated calls to the improper learner to construct an explicitly evaluable function whose correlation with every halfspace is close to that of . Whenever these correlations differ by more than the desired accuracy for some halfspace, the learner provides a hypothesis that we use to update . Following the boosting approach of Gopalan, Hu, Kim, Reingold, and Wieder [GHK 23], we show that each update decreases the squared error , which bounds the number of calls to the learner.
Lemma 23 (Boosting while preserving halfspace correlations). Let be a distribution on with uniform first marginal, and define
For every , using only independent labeled examples from and black-box calls to the [KKMS08] algorithm (which we will call ), one can construct, with probability at least , an explicitly evaluable function such that
The construction makes calls to , each with accuracy , and uses poly additional examples.
Proof. We construct a sequence of functions , starting from . At each round, we either verify that has approximately the same correlation as with every halfspace, or use the improper learner to find an update that decreases . Set
We first describe round . To apply the improper learner to the difference using only samples from , draw fresh independent examples and replace each label by a random sign satisfying
This is a valid probability because . The resulting examples still have uniform first marginal, and their labels satisfy
Run on these examples with accuracy , obtaining a Boolean hypothesis . Let
Since is closed under output negation,
Thus, by Equation (25), whenever the learner succeeds,
In particular, if the correlations of and differ substantially for some halfspace, then is positively correlated with .
Using fresh examples from , estimate
to additive accuracy , and denote the estimate by . If , stop and output . Otherwise, set
Here clipping replaces values below -1 by -1 and values above 1 by 1. Allow at most R rounds, declaring failure if the construction has not stopped by then.
Suppose first that every learning call and every estimate satisfies its guarantee. If the construction stops at round t, then Equation (29) gives
Thus the returned function satisfies Equation (27).
To show that the construction must stop, consider the squared error
Whenever an update occurs,
Since , clipping the update cannot increase its squared distance from . Using , we therefore obtain
Initially , and for every . Consequently, fewer than updates can occur, so the construction stops within rounds. The returned function is explicitly evaluable: starting from zero, evaluate the stored hypotheses and apply their updates and clipping operations in order.
Finally, assign failure probability at most to each learning call and each validation estimate. Because each uses fresh examples, these guarantees hold conditional on all preceding rounds. A union bound therefore gives simultaneous success with probability at least . The number of improper-learning calls is at most on every execution. Each validation observation lies in , so estimating to accuracy requires examples. The total number of validation examples is therefore , as claimed.
5.2 Proof of Theorem 2
We can now prove our sample-based learning result.
Proof of Theorem 2. We first use labeled examples to construct an explicitly evaluable function whose correlations with halfspaces approximate those of . We then run our proper learner on , answering its membership queries by evaluating .
Apply Lemma 23 with
With probability at least 5/6, the resulting function satisfies
Run the bounded-real version of the proper membership-query learner from Remark 21 on with accuracy . Use failure probability for each of its matrix-estimation and ERM steps. By the proof of Theorem 1, this gives success probability at least and changes only universal constants in the complexity bounds. On success, the learner returns a halfspace satisfying
Every query is answered exactly by evaluating q, so this stage requires no additional labeled examples from D.
Let be an optimal halfspace for D. If both stages succeed, the correlation guarantee for q applies to both and the returned halfspace g. Consequently,
Converting correlations to errors using Equation (23) gives
The first stage succeeds with probability at least 5/6, and the second succeeds with probability at least 5/6 conditional on any function returned by the first. A union bound therefore gives overall success probability at least 2/3.
We next bound the number of labeled examples and the running time. For convenience, write
The construction of makes calls to the improper learner, each with accuracy and failure probability . By Equation (26), each call uses
labeled examples and time. The polynomial number of calls and the additional validation examples leave the total sample bound at
Since the proper-learning stage uses no further examples from , this is also the sample complexity of the full algorithm.
To bound the time needed to construct and evaluate , recall that it is built by successive updates using explicitly evaluable Boolean hypotheses. Each stored hypothesis has description size and evaluation cost at most . Thus, evaluating any intermediate function , or the final function , costs at most
During construction, these evaluations are needed to generate the synthetic labels and compute the validation estimates. The total number of examples processed is also . Multiplying these bounds only changes the universal constant in the exponent, so constructing takes total time .
At accuracy , the proper learner makes queries to , including those used to label its ERM sample. Combining this query count with the evaluation cost of , the total time spent answering queries is
By Equation (22), the learner's remaining computation takes
time. The ERM search uses the mapped sample and labels already computed, so it requires no further evaluations of . These costs therefore add, and the polynomial preprocessing cost is absorbed into . The total running time is
as claimed.
References
[ABL17] P. Awasthi, M. F. Balcan, and P. M. Long. The power of localization for efficiently learning linear separators with noise. Journal of the ACM, pages 50:1–50:27, 2017. 9
[ANPS25a] J. Alman, S. Nadimpalli, S. Patel, and R. A. Servedio. DNF learning via locally mixing random walks. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing (STOC), pages 2055–2061, 2025. 10
[ANPS25b] J. Alman, S. Nadimpalli, S. Patel, and R. A. Servedio. Faster exact learning of k-term DNFs with membership and equivalence queries. In Proceedings of the 66th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 983–996, 2025. 10
[AS72] M. Abramowitz and I. Stegun. Handbook of Mathematical Functions, 1972. 41
[BEHW89] A. Blumer, A. Ehrenfeucht, D. Haussler, and M. Warmuth. Learnability and the Vapnik-Chervonenkis dimension. Journal of the ACM, pages 929–965, 1989. 1
[BGV92] B. Boser, I. Guyon, and V. Vapnik. A training algorithm for optimal margin classifiers. In Proceedings of the Fifth Annual Workshop on Computational Learning Theory, pages 144–152, 1992. 1
[BT96] N. Bshouty and C. Tamon. On the Fourier spectrum of monotone functions. Journal of the ACM, pages 747–770, 1996. 10
[CKSV26] G. Chandrasekaran, A. R. Klivans, K. Stavropoulos, and A. Vasilyan. A fully polynomial-time algorithm for robustly learning halfspaces over the hypercube. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, pages 1824–1835, 2026. 9
[CV95] C. Cortes and V. Vapnik. Support-vector networks. Machine Learning, pages 273–297, 1995. 1
[Dan16] A. Daniely. Complexity theoretic limitations on learning halfspaces. In Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2016, pages 105–117, 2016. 1
[DDFS14] A. De, I. Diakonikolas, V. Feldman, and R. A. Servedio. Nearly optimal solutions for the Chow parameters problem and low-weight approximation of halfspaces. Journal of the ACM, pages 11:1–11:36, 2014. 9
[DKK+21] I. Diakonikolas, D. M. Kane, V. Kontonis, C. Tzamos, and N. Zarifis. Agnostic proper learning of halfspaces under Gaussian marginals. In Proceedings of the 34th Annual Conference on Learning Theory (COLT), pages 1522–1551, 2021. 1, 3, 5, 9
[DKK+24] I. Diakonikolas, D. M. Kane, V. Kontonis, C. Tzamos, and N. Zarifis. Agnostically learning multi-index models with queries. In Proceedings of the 65th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 1931–1952, 2024. 2, 3, 5, 8, 9, 17, 19
[DKS18] I. Diakonikolas, D. M. Kane, and A. Stewart. Learning geometric concepts with nasty noise. In Proceedings of the 50th Annual ACM Symposium on Theory of Computing (STOC), pages 1061–1073, 2018. 9
[DMN19] A. De, E. Mossel, and J. Neeman. Junta correlation is testable. In 60th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2019, Baltimore, Maryland, USA, November 9-12, 2019, pages 1549–1563, 2019. 3
[DMN21] A. De, E. Mossel, and J. Neeman. Robust testing of low-dimensional functions. In Proceedings of the 53rd Annual ACM Symposium on Theory of Computing (STOC), pages 584–597, 2021. 2, 3, 5, 9, 13, 17, 19
[DNOS26] A. De, S. Nadimpalli, R. O'Donnell, and R. A. Servedio. Sparsifying suprema of gaussian processes. In Proceedings of the ACM Symposium on Theory of Computing (STOC), 2026. 10
[DNS24] A. De, S. Nadimpalli, and R. A. Servedio. Gaussian approximation of convex sets by intersections of halfspaces. In Proceedings of the 65th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 1911–1930, 2024. 10
[Fel09] V. Feldman. On the power of membership queries in agnostic learning. Journal of Machine Learning Research, pages 163–182, 2009. 2, 9
[FKV17] V. Feldman, P. Kothari, and J. Vondrák. Tight bounds on approximation and learning of self-bounding functions. In Proceedings of the 28th International Conference on Algorithmic Learning Theory (ALT), pages 540–559, 2017. 1, 31
[FPJMMN26] R. Ferreira Pinto Jr., C. Marcussen, E. Mossel, and S. Nadimpalli. Learning and Testing Convex Functions. In Proceedings of the 30th International Conference on Randomization and Computation (RANDOM), pages 62:1–62:24, 2026. 10
[GHK+23] P. Gopalan, L. Hu, M. P. Kim, O. Reingold, and U. Wieder. Loss minimization through the lens of outcome indistinguishability. In Proceedings of the 14th Innovations in Theoretical Computer Science Conference (ITCS), pages 60:1–60:20, 2023. 2, 31
[GKK08a] P. Gopalan, A. T. Kalai, and A. R. Klivans. Agnostically learning decision trees. In Proceedings of the 40th Annual ACM Symposium on Theory of Computing (STOC), pages 527–536, 2008. 10
[GKK08b] P. Gopalan, A. T. Kalai, and A. R. Klivans. A query algorithm for agnostically learning DNF? In Proceedings of the 21st Annual Conference on Learning Theory (COLT), pages 515–516, 2008. 2, 9, 10
[GL89] O. Goldreich and L. Levin. A hard-core predicate for all one-way functions. In Proceedings of the Twenty-First Annual Symposium on Theory of Computing, pages 25–32, 1989. 10
[GOWZ10] P. Gopalan, R. O'Donnell, Y. Wu, and D. Zuckerman. Fooling functions of halfspaces under product distributions. In Proceedings of the 25th Annual IEEE Conference on Computational Complexity (CCC), pages 223–234, 2010. 14
[GR09] V. Guruswami and P. Raghavendra. Hardness of learning halfspaces with noise. SIAM J. Comput., pages 742–765, 2009. 1
[GV13] G. H. Golub and C. F. Van Loan. Matrix Computations, 4 edition, 2013. 29
[KKM13] D. M. Kane, A. R. Klivans, and R. Meka. Learning halfspaces under log-concave densities: Polynomial approximations and moment matching. In COLT 2013 - The 26th Annual Conference on Learning Theory, June 12-14, 2013, Princeton University, NJ, USA, pages 522–545, 2013. 1
[KKMS08] A. T. Kalai, A. R. Klivans, Y. Mansour, and R. A. Servedio. Agnostically learning halfspaces. SIAM Journal on Computing, pages 1777–1805, 2008. 1, 2, 3, 8, 10, 30, 31
[KM93] E. Kushilevitz and Y. Mansour. Learning decision trees using the Fourier spectrum. SIAM J. on Computing, pages 1331–1348, 1993. 10
[KSS94] M. Kearns, R. Schapire, and L. Sellie. Toward Efficient Agnostic Learning. Machine Learning, pages 115–141, 1994. 1
[KV94] M. Kearns and U. Vazirani. An Introduction to Computational Learning Theory, 1994. 17
[LRV22] J. Lange, R. Rubinfeld, and A. Vasilyan. Properly learning monotone functions via local correction. In Proceedings of the 63rd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 75–86, 2022. 10
[LV23] J. Lange and A. Vasilyan. Agnostic proper learning of monotone functions: Beyond the black-box correction barrier. In Proceedings of the 64th Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 1149–1170, 2023. 10
[MN15] E. Mossel and J. Neeman. Robust optimality of gaussian noise stability. Journal of the European Mathematical Society, pages 433–482, 2015. 7, 10, 15
[MORS10] K. Matulef, R. O'Donnell, R. Rubinfeld, and R. A. Servedio. Testing halfspaces. SIAM Journal on Computing, pages 2004–2047, 2010. 14
[MP69] M. Minsky and S. Papert. Perceptrons: An introduction to computational geometry, 1969. 1
[Nad26] S. Nadimpalli. Optimal Sparsification of Gaussian Processes. 2026. 10
[NP24] S. Nadimpalli and S. Patel. Optimal Non-Adaptive Tolerant Junta Testing via Local Estimators. In Proceedings of the ACM Symposium on Theory of Computing (STOC), 2024. 3
[O'D14] R. O'Donnell. Analysis of Boolean Functions, 2014. 11, 13, 14, 41, 44
[OS11] R. O'Donnell and R. A. Servedio. The Chow parameters problem. SIAM Journal on Computing, pages 165–199, 2011. 9
[OST22] R. O'Donnell, R. A. Servedio, and L.-Y. Tan. Fooling polytopes. Journal of the ACM, pages 1–37, 2022. 5, 16
[Per04] Y. Peres. Noise stability of weighted majority. Preprint, 2004. 13
[Ros58] F. Rosenblatt. The Perceptron: a probabilistic model for information storage and organization in the brain. Psychological Review, pages 386–407, 1958. 1
[Ser07] R. A. Servedio. Every linear threshold function has a low-weight approximator. Computational Complexity, pages 180–209, 2007. 5, 14, 16
[Tie23] S. Tiegel. Hardness of agnostically learning halfspaces from worst-case lattice problems. In Proceedings of the 36th Annual Conference on Learning Theory (COLT), pages 3029–3064, 2023. 1
[TV26] S. Tikhonov and A. Vasilyan. Proper agnostic learning of functions of halfspaces under Gaussian marginals. Preprint, 2026. 9
[Val84] L. Valiant. A theory of the learnable. Communications of the ACM, pages 1134–1142, 1984. 1
[Vap82] V. Vapnik. Estimations of dependencies based on statistical data, 1982. 1
[Vap98] V. Vapnik. Statistical Learning Theory, 1998. 1
A Proof of Proposition 7
We prove the following comparison between the multilinear extension and the geometric Gaussian extension . We then show that the exponent in this comparison is optimal.
Proposition 7 (Closeness of multilinear and geometric extensions for regular halfspaces). There is a universal constant such that the following holds. Let
be a -regular halfspace, where . Let and let be the multilinear extension of the Boolean halfspace. Then
More precisely, if and , then
Note that if the left-hand side is zero; otherwise and may be normalized by the same positive factor.
The case is immediate; throughout the argument below, we normalize and by the same positive factor so that . Throughout this section, is uniform on and . The proof uses complex exponentials, so we also allow complex-valued functions in . Their norm is , and the inner product is . For , define its multilinear extension as before:

Figure 4: Approximating the sign function by an integral of sine functions.
Square-free monomials are orthonormal under both the uniform Boolean measure and the standard Gaussian measure. Consequently,
Because multilinear extension involves only finite sums, it commutes with taking real and imaginary parts. It also commutes with integration of a family whenever is integrable for each Boolean input .
Recall that . We will repeatedly use the bounds
The bound on follows from Cauchy-Schwarz, and the other bounds follow from . At a high level, we approximate the sign function by an integral of sine functions:
As grows, this approximation becomes accurate except very close to the jump at ; see Figure 4. Regularity lets us control how often the Boolean linear form lies near this jump. We then compare the multilinear and Gaussian extensions of each sine function appearing in the integral. Complex numbers allow us to simplify this calculation: we write and use the fact that exponentials turn sums into products. This lets us compute the relevant expectations one coordinate at a time. The key is to bound the average squared error of the integral directly, which gives a sharper estimate than adding the error bounds for the individual sines. We then choose to balance the error in comparing the two extensions against the error in approximating sign.
A.1 Comparing Exponential Functions
We first compare the multilinear and Gaussian extensions of the exponential function . For , define
Since
its multilinear extension has the product representation
(33)
Thus is the difference between extending multilinearly and evaluating the exponential directly on a Gaussian input.
Set
The next lemma bounds these inner products. This decay will be useful when we integrate over the frequencies.
Lemma 24. For ,
Proof. Expanding gives four terms, each of which factors across the Gaussian coordinates. To write the resulting expression compactly, define
For , we have
Applying these identities coordinatewise and using gives
Both and agree with 1 through total degree three at the origin. Indeed, their quadratic terms cancel, and their odd-degree terms vanish by the symmetry . Their fourth derivatives are bounded on , so Taylor's theorem gives
By Equation (32), . Thus Equation (36) applies to every factor in Equation (35).
Write each of the three products in that identity as . For each product, the factor errors satisfy
Since A is bounded by a universal constant,
Substituting these bounds into Equation (35) yields
Note that taking s = t in Equation (37) gives
Cauchy–Schwarz therefore gives
Taking the geometric mean of this bound and Equation (37) proves Equation (34).
A.2 Truncating the Sine Integral
We next bound the error from approximating sign by a truncated sine integral. For an arbitrary , define
The Dirichlet integral
is recorded in [AS72, Equation (5.2.25)]. For , integration by parts gives
For , we instead use . Combining these estimates gives
At , the minimum on the right is interpreted as 1. The squared error there is exactly 1, since and .
To turn Equation (39) into an average error bound, we control the probability that the linear form lies near the threshold. Let
and let be the standard Gaussian distribution function. Berry–Esseen [O'D14, Section 11.5] and Equation (32) imply
For , write . The continuity of then gives
Since the Gaussian density is bounded, we obtain, uniformly in and ,
For any real random variable , we have
Define the truncated approximations on the two spaces by
Applying Equations (39) and (40) inside the above integral, and using , gives
(41)
A.3 Completing the Upper Bound
We now compare the two truncated approximations using Lemma 24. We then add the truncation errors from Equation (41).
Proof of Proposition 7. If , both extensions are the same constant, so there is nothing to prove. Otherwise, divide and by the same positive factor so that . Set
We first bound the difference between the truncated approximations. Define
By Equations (33) and (38) and linearity of multilinear extension,
To justify passing the multilinear extension through the integral, observe that
for every Boolean input . Since multilinear extension involves only finite sums, we may interchange it with the integral. The Gaussian sine integral also converges in , since
We next express the squared norm of as a double integral. Applying Lemma 24 with gives
Hence, by Cauchy–Schwarz,
Thus Fubini's theorem applies when we square Equation (42) and take expectations.
Since , we can bound the inner products of the using Lemma 24 at both and . More explicitly, the identity
gives, for ,
This bound is uniform in , since the factors involving the threshold have modulus one.
For , we have . Also, on the domain of integration. Therefore,
(43)
For each fixed , the integral over is bounded by a universal constant. Because the integrand is small when and are far apart, the double integral is instead of .
Finally, apply the triangle inequality, Equation (31), and the truncation bounds Equation (41):
The last inequality uses and . Squaring gives the claimed bound . If is -regular, then Equation (32) gives , proving the bound as well.
A.4 Optimality of the Exponent
We now give a matching lower bound using the majority function. In fact, its geometric Gaussian extension cannot be approximated more closely by any multilinear polynomial, including its own multilinear extension.
Proposition 25 (Matching lower bound). For every sufficiently large odd , let , let , and let
There is a universal constant such that every multilinear polynomial satisfies
In particular,
for , and .
Proof. We compare the Hermite expansion of with the terms that can occur in a multilinear polynomial. Let be the probabilists' Hermite polynomials, and put
The polynomials form an orthonormal basis for . For a multi-index , write
The form an orthonormal basis for [O'D14, Proposition 11.33]. Since and , the multilinear polynomials are exactly the span of those for which every belongs to . Thus, the squared distance from to any multilinear polynomial is at least the sum of the squared Hermite coefficients of over all with some .
We first compute the one-dimensional Hermite coefficients of the sign function. Write
in . The even coefficients vanish since it is an odd function. Let . By Rodrigues' formula [O'D14, Eq. (11.10)],
and integrating by parts gives
Consequently,
where the final estimate follows from the standard bound on the central binomial coefficient.
We next determine how much of each term is multilinear in . Comparing coefficients in
gives, for every unit vector w,
Since is standard Gaussian, has squared norm one. For and , its squared norm on the square-free indices is
Thus the degree-k component of has squared norm
outside the space of multilinear polynomials.
For degrees of order , the factor in parentheses is bounded below by a positive constant. Indeed, for and ,
Orthogonality and Equation (44) therefore imply that every multilinear polynomial satisfies
The last sum contains terms, each at least . Taking square roots proves the claim, including the case .
Thus the exponent in Proposition 7 is optimal, even if we allow an arbitrary multilinear polynomial in place of .
B Estimating the Influence PCA Matrix
Recall that is the expected outer product of the degree-1 Fourier vector of a random restriction. We estimate this expectation by sampling restrictions and using membership queries to estimate their Fourier vectors. For each restriction, we form the outer product of two independent vector estimates. This gives an unbiased matrix estimate even when the individual vector estimates are noisy. We then average over restrictions and use a final projection to enforce the positive-semidefiniteness and trace requirements.
We measure the estimation error in Frobenius norm,
Since and for every entry, one Frobenius-norm bound will give both accuracy guarantees in Proposition 16.
Proof of Proposition 16. Write and recall that . Draw a restriction from , let be its free coordinates, and let be its degree-1 Fourier vector, padded with zeros outside . Parseval and the definition of give
Conditional on , draw a uniform point and define
One membership query gives and hence all coordinates of . Moreover,
When is empty, both and are zero.
For each of independent restrictions , form two sample means , each using independent copies of . The two batches are independent conditional on the restriction, and all samples belonging to different restrictions are independent. The second moment of each sample mean satisfies
and the same bound holds for .
Define the symmetric matrices
Conditional independence of the two sample means gives
It also gives a bound on the second moment:
Since the matrices are independent and identically distributed,
Taking for a sufficiently large universal constant , Markov's inequality therefore gives
We next amplify the success probability. Perform independent runs, producing estimates . For each estimate , count the indices for which , including . Select any for which this count exceeds . If no such estimate exists, select the zero matrix. We will call the selected matrix .
Call a run “good” if its estimate is within Frobenius distance of . Hoeffding’s inequality implies that a strict majority of runs are good with probability at least . On this event, any two good estimates are within distance of each other, so every good estimate qualifies for selection. Conversely, every qualifying estimate is within distance of at least one good estimate, and hence within distance of . Thus, with probability at least ,
For fixed confidence, a single run with a suitable absolute constant in N also suffices.
The selected matrix is symmetric, but it need not be positive semidefinite or have trace at most one. To enforce these requirements, project in Frobenius norm onto the closed convex set
and return . Since , this projection cannot increase the distance to :
Indeed, the projection inequality
gives this bound by expanding .
The output therefore always satisfies the positive-semidefiniteness and trace requirements. On the success event, it also satisfies
Finally, we account for the queries and running time. Each run uses membership queries. Accumulating the sample means takes time, and forming the symmetrized outer products takes time, both of which are . Comparing all pairs of estimates takes time, and the final projection takes time. The total query complexity is therefore
and the total running time is
as claimed.