Abstract
We study the algorithmic task of testably learning general Massart halfspaces under the Gaussian distribution. In the testable learning setting, the aim is the design of a tester-learner pair satisfying the following properties: (1) if the tester accepts, the learner outputs a hypothesis and a certificate that it achieves near-optimal error, and (2) it is highly unlikely that the tester rejects if the data satisfies the underlying assumptions. Our main result is the first testable learning algorithm for general halfspaces with Massart noise and Gaussian marginals. The complexity of our algorithm is $d^{\mathrm{polylog}(\min\{1/\gamma, 1/\epsilon\})}$, where $\epsilon$ is the excess error and $\gamma$ is the bias of the target halfspace, which qualitatively matches the known quasi-polynomial Statistical Query lower bound for the non-testable setting. The analysis of our algorithm hinges on a novel sandwiching polynomial approximation to the sign function with multiplicative error that may be of broader interest.
Introduction
In classical machine learning, algorithms are often designed under the assumption that data follows a specific distribution (e.g., Gaussian) and that noise adheres to a known model. However, in practice, these assumptions are frequently violated. A standard algorithm might still output a classifier in such scenarios, but that classifier could be completely unreliable without the user's knowledge.
Testable learning is a rigorous framework designed to address this vulnerability. A "tester-learner" pair provides a safety mechanism: if the data satisfies the model assumptions, the algorithm succeeds; if the algorithm outputs a classifier, it must also provide a "certificate" of near-optimality. This certificate must hold even if the data has been manipulated by an adversary, ensuring that the user is never misled by a high-error hypothesis.
This paper focuses on learning general halfspaces (linear classifiers with an offset or bias) in the presence of Massart noise. In the Massart model, an adversary can flip the label of any data point with a probability $\eta < 0.5$. While previous research successfully addressed "homogeneous" halfspaces (those passing through the origin), general halfspaces present a significantly greater challenge because the "signal" from the data can become exponentially thin in the tails of the distribution.
The Tester-Learner Algorithm
The proposed algorithm consists of two primary phases: a learning phase to identify a candidate hypothesis and a certification phase to verify its validity.
1. The Learning Phase
The algorithm utilizes an existing non-testable learning subroutine to find a candidate classifier $h(x) = \text{sign}(w \cdot x - t)$. This provides a starting point that would be optimal if the Gaussian and Massart assumptions held perfectly.
2. The Certification Phase
This is the core innovation of the work. To "test" the candidate, the algorithm slices the high-dimensional data into 1D "stripes" based on their distance from the classifier's boundary. It then subjects each stripe to three rigorous tests:
- Slice Mass Test: Verifies that the amount of data in each stripe matches the expected probability mass of a Gaussian distribution.
- Moment Matching Test: Checks if the statistical moments (such as mean and variance) of the data within the stripe align with Gaussian expectations.
- Polynomial Non-negativity Test: Uses a sophisticated mathematical certificate to prove that no other classifier could perform significantly better than the current candidate.
Technical Innovation: Multiplicative Sandwiching
The primary technical hurdle in learning offset halfspaces is that standard polynomial approximations of the "sign" function rely on additive error. For biased halfspaces, where the probability mass can be extremely small, additive error is too blunt and can easily overwhelm the signal.
To overcome this, the authors developed a multiplicative sandwiching polynomial approximation. By creating an approximation where the error is relative to the function's value, the algorithm maintains high accuracy even in the distribution's tails. This construction (Theorem 1.5) achieves a near-optimal degree and represents a significant contribution to approximation theory and pseudorandomness.
Results and Complexity
The algorithm achieves a computational complexity of $d^{\mathrm{polylog}(\min\{1/\gamma, 1/\epsilon\})}$, where $d$ is the dimension, $\epsilon$ is the excess error, and $\gamma$ is the bias of the target halfspace. This result is significant for two reasons:
- Optimality: The complexity qualitatively matches the known Statistical Query (SQ) lower bounds for the non-testable version of the problem. This suggests that adding the requirement of a safety certificate does not necessarily make the problem exponentially harder.
- First-of-its-kind: This represents the first testable learning algorithm for general Massart halfspaces under Gaussian marginals.
Conclusion and Future Work
While this work establishes a new benchmark for testable learning, it relies on the assumption of Gaussian marginals. Real-world data is rarely perfectly Gaussian, and extending these results to distribution-independent or distribution-robust settings remains a major open challenge. Additionally, while the algorithm matches theoretical lower bounds, its "quasi-polynomial" time complexity ($d^{\log d}$) is still slower than true polynomial time. Future research may focus on identifying specific sub-cases that allow for faster learning or generalizing these techniques to other structured distributions.
Summary updated