Agnostic Proper Learning of Halfspaces under Gaussian Marginals

Ilias Diakonikolas, Daniel M. Kane, Vasilis Kontonis, Christos Tzamos, Nikos Zarifis

Abstract

We study the problem of agnostically learning halfspaces under the Gaussian distribution. Our main result is the first proper learning algorithm for this problem whose sample and computational complexity qualitatively match those of the best known improper agnostic learners. Building on this result, we also obtain the first proper polynomial-time approximation scheme (PTAS) for agnostically learning homogeneous halfspaces. Our techniques naturally extend to agnostically learning linear models with respect to other non-linear activations, yielding the first proper agnostic algorithm for ReLU regression.

Introduction

In machine learning theory, a fundamental tension exists between interpretability and computational efficiency. This is particularly evident in the task of learning a "halfspace"—a simple linear classifier defined by $f(x) = \text{sign}(w \cdot x - t)$—from noisy data.

In the "agnostic" PAC learning setting, data is not perfectly separable; labels may be noisy or adversarial. The goal is to find a hypothesis that performs nearly as well as the best possible halfspace (the one with the minimum misclassification error, $OPT$). While efficient algorithms have existed for years, they were almost exclusively improper. These learners output complex, high-degree polynomials that are difficult to interpret, slow to evaluate, and memory-intensive. This paper bridges the gap by providing the first efficient algorithm that is proper—meaning it outputs a simple halfspace—while matching the performance of the best improper learners.

The Problem: Proper vs. Improper Learning

For over a decade, the gold standard for agnostic learning under Gaussian data was the $L_1$-polynomial regression algorithm. However, this method outputs a "Polynomial Threshold Function" (the sign of a high-degree polynomial). These models suffer from three primary drawbacks:

  1. Evaluation Latency: Evaluating a degree-$k$ polynomial in $d$ dimensions requires $O(d^k)$ time.
  2. Storage Overhead: Storing the model requires $O(d^k)$ coefficients.
  3. Opacity: High-degree polynomials lack the clear geometric interpretation of a linear separator.

The challenge addressed by Diakonikolas et al. is to find a proper learner—a simple vector $w$ and threshold $t$—without increasing the training time beyond the $d^{poly(1/\epsilon)}$ complexity of improper methods.

Methodology: Dimension Reduction via Influence

The core innovation of this work is a dimension-reduction strategy that uses an improper model as a guide to find a proper one. The algorithm proceeds in four primary stages:

1. Polynomial Approximation

The algorithm begins with standard $L_2$ polynomial regression to find a low-degree polynomial $P(x)$ that fits the noisy labels. This serves as an initial, albeit improper, approximation of the underlying halfspace.

2. The Influence Matrix

The authors construct an "influence matrix" $M = \mathbb{E}_{x \sim \mathcal{D}_x}[\nabla P(x) \nabla P(x)^\top]$. This matrix captures the directions in which the polynomial $P(x)$ changes most significantly. The key insight is that the gradient of even a noisy polynomial approximation contains critical information about the orientation of the optimal linear separator.

3. Subspace Projection

By performing a Singular Value Decomposition (SVD) on $M$ and retaining only the eigenvectors associated with large eigenvalues, the authors define a low-dimensional subspace $V$. They prove that the normal vector $w$ of a near-optimal halfspace must lie almost entirely within this small subspace, effectively reducing the dimensionality of the problem from $d$ to a value independent of $d$.

4. Search and Optimization

Because the dimension of $V$ is now small, the algorithm can perform an exhaustive search for the best vector $w$ within $V$ using an $\epsilon$-cover. This ensures the final output is a proper halfspace.

Advanced Extensions: PTAS and ReLU Regression

Beyond the basic learning task, the authors introduce a Proper Polynomial-Time Approximation Scheme (PTAS) for homogeneous halfspaces. This achieves an error of $(1+\gamma)OPT + \epsilon$. To achieve this, they utilize a "soft localization" technique. Unlike "hard" cuts that ignore data outside a specific range (which can destroy the Gaussian structure required for the proofs), they use a smooth weight function to focus the learner's attention on points near the decision boundary while maintaining the mathematical properties of the Gaussian distribution.

Furthermore, the techniques are robust enough to extend to ReLU regression. By applying the same influence-based dimension reduction, they provide the first proper agnostic algorithm for learning functions of the form $\max(0, w \cdot x)$.

Key Results and Complexity

  • Efficiency Match: The algorithm runs in $d^{poly(1/\epsilon)}$ time, matching the best known improper learners and reaching the theoretical lower bounds for Statistical Query (SQ) learning.
  • Interpretability: By producing a proper halfspace, the model ensures that inference is lightning-fast ($O(d)$ time) and the decision boundary is easily understood by humans.
  • Theoretical Firsts: This work provides the first proper PTAS for homogeneous halfspaces and the first proper agnostic algorithm for ReLU regression under Gaussian marginals.

Limitations and Future Directions

While a significant step forward, the approach relies on the specific properties of Gaussian Marginals and Hermite polynomials. Extending these results to distribution-independent learning remains a major open challenge. Additionally, the PTAS currently requires the halfspace to be homogeneous (passing through the origin). Finally, while the runtime is polynomial in $d$, the exponent's dependence on $1/\epsilon$ means that achieving extremely high precision remains computationally demanding.

Summary updated

Abstract

We study the problem of agnostically learning halfspaces under the Gaussian distribution. Our main result is the {\em first proper} learning algorithm for this problem whose sample complexity and computational complexity qualitatively match those of the best known improper agnostic learner. Building on this result, we also obtain the first proper polynomial-time approximation scheme (PTAS) for agnostically learning homogeneous halfspaces. Our techniques naturally extend to agnostically learning linear models with respect to other non-linear activations, yielding in particular the first proper agnostic algorithm for ReLU regression.
BibTeX
@inproceedings{diakonikolas2021agnostic,
  author = {Ilias Diakonikolas and Daniel M. Kane and Vasilis Kontonis and Christos Tzamos and Nikos Zarifis},
  title = {{Agnostic Proper Learning of Halfspaces under Gaussian Marginals}},
  booktitle = {Conference on Learning Theory},
  year = {2021},
  url = {https://openreview.net/forum?id=hlli3VIJo7},
}
Figure