Proper Agnostic Learning of Functions of Halfspaces

Sergei Tikhonov, Arsen VasilyanNeurIPS 2026

TL;DR

Fitting a clean, simple classifier—like a linear boundary or a logical combination of them—to messy, noisy data is notoriously difficult without outputting a bloated, overly complex model instead. This paper introduces the first computationally efficient algorithm that learns near-optimal combinations of linear classifiers properly (meaning you actually get the clean geometric model you asked for) when data follows a Gaussian distribution. Even better, its dimensional scaling matches theoretical speed limits, proving you don't have to sacrifice simplicity for speed.

What Problem Does This Paper Address?

Imagine trying to separate two classes of data in high-dimensional space using a simple hyperplane—a halfspace (or linear classifier). If the data is cleanly separable, algorithms from the 1950s can solve it effortlessly.

But real-world data is noisy. In agnostic learning, we make zero assumptions about the noise; we just want a classifier whose error is within a tiny margin $\varepsilon$ of the absolute best boundary possible. Without assumptions on how the data points themselves are distributed, this is NP-hard. To make headway, theorists study this under standard Gaussian data distributions.

Even under Gaussian data, there’s been a frustrating catch: fast algorithms have historically been improper. Instead of returning a clean halfspace (or a Boolean combination of $K$ halfspaces, like an intersection forming a polyhedron), they output a sprawling, high-degree polynomial threshold function. This incurs massive overhead in storage, evaluation speed, and adversarial vulnerability. Meanwhile, proper learning—returning a hypothesis strictly from the simple target class—was either much slower (for a single halfspace) or required brute-force search taking time exponential in the data dimension $d$ (for $K \ge 2$ halfspaces).

Methods

Think of the authors' approach as using a polynomial as temporary scaffolding: build it to find where the "action" is in high-dimensional space, then tear it down and build the real classifier inside that tiny, relevant subspace.

While a 2021 approach used a similar three-step blueprint for a single halfspace, it relied on $L_2$ (least-squares) polynomial regression. Approximating a sharp step-function boundary in $L_2$ requires a polynomial of degree $1/\varepsilon^4$, immediately bottlenecking the runtime at $d^{O(1/\varepsilon^4)}$.

Here is how the authors break that barrier and generalize to $K$ halfspaces:

  1. Logistic Regression as an $L_1$ Proxy: They swap $L_2$ loss for logistic loss, which has a bounded, Lipschitz, symmetric derivative. Because it doesn't penalize outliers quadratically, correctness only relies on polynomials that approximate halfspaces in $L_1$ norm—dropping the required polynomial degree to roughly $O(1/\varepsilon^2)$ (for $K=1$).
  2. Spectral Regularization: They add two penalties to the polynomial $P$: an $L_2$ penalty for strong convexity, and the trace of the square root of the gradient covariance matrix, $\text{tr}(\mathbf{M}(P)^{1/2})$, where $\mathbf{M}(P) = \mathbb{E}[\nabla P(\mathbf{x})\nabla P(\mathbf{x})^\top]$. Just as $L_1$ Lasso promotes sparsity, this nuclear-norm-style penalty prevents the polynomial from spreading its variation across too many directions.
  3. Subspace Extraction & Smart Search: They take the eigenvectors of $\mathbf{M}(P)$ with large eigenvalues to form a low-dimensional subspace $V$, then build a discrete $\varepsilon$-net (a fine grid) of candidate halfspaces inside $V$. To find the best Boolean combination of $K$ halfspaces without checking all $2^{2^K}$ possible truth tables, they use a hyperplane-arrangement trick: once $K$ candidate halfspaces slice the data into regions, the optimal label for each region is simply chosen by majority vote.

Datasets

Not discussed in the paper. (This is a purely theoretical work proving mathematical runtime and sample complexity guarantees over standard Gaussian distributions).

Key Insights and Ideas

  • $L_1$ vs. $L_2$ Polynomial Degree: Shifting from squared loss to logistic loss bypasses a fundamental approximation bottleneck. Because logistic loss grows linearly rather than quadratically, low-degree $L_1$ polynomial approximations suffice, slashing the exponent on dimension $d$ in half for single halfspaces.
  • Controlling Rank Convexly: Using $\text{tr}(\mathbf{M}(P)^{1/2})$ acts as a convex surrogate for rank. It forces the fitted polynomial to concentrate its gradient energy exclusively along the normal vectors of the underlying optimal halfspaces.
  • Subspace Smoothing: Extending this from 1 to $K$ halfspaces isn't trivial—you can no longer average out irrelevant directions one by one. The authors use a subspace Gaussian Poincaré inequality to average over an entire subspace of low-influence directions simultaneously, proving that discarding everything outside $V$ loses almost no correlation with the true labels.

Key Results

The authors achieve the first polynomial-in-$d$ proper agnostic learners for multi-halfspace concepts, matching the $d$-dependence of the best improper learners and hitting known Statistical Query (SQ) computational lower bounds:

Run-time comparison across concept classes
  • Boolean Functions of $K$ Halfspaces: Runs in time $d^{O(K^2 \log(1/\varepsilon)/\varepsilon^2)} + (K/\varepsilon)^{O(K^3/\varepsilon^{2.5})}$, beating the prior best of $(1/\varepsilon)^{\text{poly}(dK)}$ brute-force search.
  • Intersections of $K$ Halfspaces: Runs in time $d^{O(\log K \log(1/\varepsilon)/\varepsilon^2)} + (\sqrt{\log K}/\varepsilon)^{O(K^2\sqrt{\log K}/\varepsilon^{2.5})}$, exponentially faster in $K$ on the $d$-term due to smaller Gaussian surface area.
  • Single Halfspace ($K=1$): Improves runtime from $d^{O(1/\varepsilon^4)} + (1/\varepsilon)^{O(1/\varepsilon^6)}$ down to $d^{O(1/\varepsilon^2)} + (1/\varepsilon)^{O(1/\varepsilon^{2.5})}$.
Moderate-accuracy regime comparison for a single halfspace

In the moderate-accuracy regime ($\varepsilon \ge 1/\log d$), the single-halfspace algorithm matches both the fastest improper learner and theoretical hardness barriers. Even in the ultra-high-accuracy regime ($\varepsilon \le 1/\log^2 d$), it shrinks the gap dramatically from $2^{\tilde{O}(1/\varepsilon^6)}$ to $2^{\tilde{O}(1/\varepsilon^{2.5})}$.

Limitations and Future Work

  • Gaussian Assumption: All guarantees rely strictly on the input features $\mathbf{x}$ being drawn from a standard Gaussian distribution; distribution-free agnostic learning of halfspaces remains NP-hard.
  • Exponential Dependence on $K$ and $1/\varepsilon$: While polynomial in dimension $d$ for fixed $K$ and $\varepsilon$, the exponents still scale with $K^2/\varepsilon^2$ (which SQ lower bounds suggest is unavoidable) and a second additive search term scales exponentially in $K^3/\varepsilon^{2.5}$.
  • Remaining Gaps: In the high-accuracy regime ($\varepsilon \le 1/\log^2 d$), a small gap remains between this proper learner's $2^{\tilde{O}(1/\varepsilon^{2.5})}$ runtime and the $2^{\tilde{O}(1/\varepsilon^2)}$ achieved by improper learners, leaving an intriguing target for future refinement.

Summary updated

Abstract

We study the problem of computationally efficient *proper* agnostic learning of multidimensional concept classes under the Gaussian distribution. In this setting, given i.i.d. labeled samples from an unknown distribution over $\mathbb{R}^d \times \lbrace\pm 1 \rbrace$ whose marginal on $\mathbb{R}^d$ is Gaussian, the goal is to output a hypothesis from a target class $\mathcal{F}$ whose 0-1 loss is within $\varepsilon$ of that of the best classifier in $\mathcal{F}$. We give the first efficient proper agnostic learning algorithm for arbitrary Boolean functions of $K$ halfspaces under Gaussian marginals. Our algorithm runs in time $d^{O(K^2 \log(1/\varepsilon)/\varepsilon^2)} + (K/\varepsilon)^{O(K^3/\varepsilon^{2.5})}$. Prior to our work, the only known algorithm for $K \geq 2$ was brute-force search, with run-time exponential in $d$. Moreover, the dependence of our run-time on the dimension $d$ matches that of the best known *improper* learning algorithm, namely $d^{\widetilde{O}(K^2/\varepsilon^2)}$. For the special case of a single halfspace ($K=1$), the best previous run-time was $d^{O(1/\varepsilon^4)} + (1/\varepsilon)^{O(1/\varepsilon^6)}$. Our algorithm improves this to $d^{O(1/\varepsilon^2)} + (1/\varepsilon)^{O(1/\varepsilon^{2.5})}$. Once again, the dependence on $d$ matches that of the best known improper algorithm, namely $d^{O(1/\varepsilon^2)}$. Furthermore, the dependence of our run-time on the dimension $d$ is essentially optimal in the statistical query model.
BibTeX
@inproceedings{tikhonov2026proper,
  author = {Sergei Tikhonov and Arsen Vasilyan},
  title = {{Proper Agnostic Learning of Functions of Halfspaces}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=bwvgAfue2A},
}
Figure