Testably Learning Polynomial Threshold Functions

Lucas Slot, Stefan Tiegel, Manuel Wiedmer

Introduction: The Need for Testable Learning

In traditional machine learning theory, the agnostic learning model is often used to handle noisy, real-world data. However, to make agnostic learning computationally efficient, researchers typically must assume the data comes from a well-behaved distribution, such as a standard Gaussian.

This creates a glaring practical problem: how do you know your data is actually Gaussian? If a dataset violates this assumption, the algorithm's performance guarantees completely evaporate, often without the practitioner realizing it.

To resolve this, researchers recently introduced the framework of testable learning. In this model, a "tester" algorithm acts as a statistical gatekeeper:

  1. If the data is truly Gaussian, the tester must accept it.
  2. If the tester accepts the data (even if it is not perfectly Gaussian), the learner is mathematically guaranteed to achieve low error.

Prior to this paper, the community knew how to testably learn simple linear classifiers (halfspaces) efficiently, and knew that highly complex shapes (convex sets) were mathematically impossible to testably learn efficiently. This paper tackles the missing middle ground: Polynomial Threshold Functions (PTFs).

The Missing Middle: Polynomial Threshold Functions

PTFs are classifiers that separate data using curved, polynomial boundaries rather than flat lines. They naturally generalize halfspaces. The authors ask a fundamental question: Is there a computational price to pay for testably learning these more complex, expressive boundaries?

The answer is no—at least, not qualitatively. The authors prove that PTFs sit comfortably in the "Goldilocks Zone" of testable learning. They are highly expressive, yet still solvable in polynomial time.

Methodology: Moment-Matching and "Fooling"

The authors utilize a simple moment-matching tester. This tester accepts a dataset if its empirical moments (mean, variance, skewness, etc.) up to a certain degree approximately match those of a true Gaussian.

To prove that a PTF can be learned whenever the data passes this sanity check, the authors rely on a concept from pseudorandomness called fooling.

  • The Goal: Show that any distribution passing the tester "fools" the PTF. This means the PTF's expected output on the test-passing data is nearly identical to its expected output on a true Gaussian.
  • The Technique: The authors extend a highly complex proof originally developed by Daniel Kane. While Kane proved fooling for distributions that exactly match Gaussian moments and have independent variables, this paper does the heavy mathematical lifting to show that fooling still works even when the data only approximately matches the moments and lacks strict independence.

The Danger of Heavy Tails

The authors also explored a "direct approach" that was previously used to testably learn halfspaces, which involves approximating the threshold step function with a 1D polynomial. They mathematically prove this direct approach cannot work for PTFs of degree 3 or higher. When you plug a polynomial into another polynomial, the resulting data distribution gets stretched out, creating "heavy tails" (log-superlinear distributions). In these stretched distributions, standard polynomial approximation techniques mathematically break down, forcing the use of the more complex "fooling" method.

Key Results

  • Main Theorem: The concept class of degree-$d$ Polynomial Threshold Functions can be testably learned up to an excess error $\epsilon > 0$ with respect to the standard Gaussian in time and sample complexity $n^{\text{poly}(1/\epsilon)}$.
  • No Qualitative Gap: Because the runtime is polynomial in $n$ (the number of dimensions) for any constant degree $d$ and error $\epsilon$, it proves there is no qualitative computational gap between standard agnostic learning and testable learning for PTFs.

Limitations and Open Questions

While this paper represents a significant theoretical breakthrough in computational learning theory, it is not an algorithm for immediate practical deployment.

  • Astronomical Runtime: While the algorithm runs in "polynomial time" relative to the dimension $n$, the exponent is massive. The runtime dependence on the polynomial degree $d$ and the error $\epsilon$ is significantly worse than in standard agnostic learning (containing terms like $\epsilon^{-4d \cdot 7^d}$).
  • Lack of Lower Bounds: The authors note that they do not yet have lower bounds for the complexity of testably learning PTFs. Therefore, it remains an open question whether this astronomical dependence on $d$ and $\epsilon$ is an inherent mathematical limit of testable learning, or merely an artifact of their specific proof technique that could be optimized in future work.

Summary updated

BibTeX
@inproceedings{slot2024testably,
  author = {Lucas Slot and Stefan Tiegel and Manuel Wiedmer},
  title = {{Testably Learning Polynomial Threshold Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=5g0Z6PdogJ},
}
Figure