Abstract
This paper presents the first computationally efficient algorithm for agnostically learning halfspaces that are guaranteed to be adversarially robust. By combining convex optimization with a novel "local corrector" and structured partitioning, the authors achieve optimal classification error and boundary volume while matching the complexity of standard, non-robust learning methods. The approach works for subgaussian isotropic log-concave distributions and provides a framework for verifiable robustness.
Introduction
Halfspaces, or linear threshold functions, are fundamental building blocks in machine learning. While algorithms for learning them are well-established, most are vulnerable to adversarial examples—small, targeted perturbations that flip a classifier's prediction. A robust classifier must maintain a small boundary volume, defined as the probability that a random point from the distribution lies within a distance $r$ of the decision boundary.
While a true linear halfspace is naturally robust due to its flat decision boundary, the "improper" learners typically used to find them—which often output complex Polynomial Threshold Functions (PTFs)—can produce highly sensitive, "wiggly" boundaries. This research addresses a critical question: Can we learn a classifier that matches the accuracy and robustness of the best halfspace without the massive computational overhead of "proper" learning?
Methods
The authors propose the ROBUSTLEARN algorithm, designed for subgaussian isotropic log-concave distributions. The methodology is structured into three distinct phases:
- Constrained Polynomial Regression: The algorithm uses convex programming to find a polynomial $p$ that minimizes classification error. This regression is subject to constraints on noise sensitivity (frequency of label flips under random noise) and isolation probability (likelihood of points having unusually high noise sensitivity).
- Randomized Partitioning and Rounding: To convert the real-valued polynomial $p$ into a Boolean classifier $\{-1, 1\}$, the algorithm employs a "deterministic mixture" of thresholds. It partitions the input space using a random unit vector and applies different thresholds to each partition, preserving the robustness properties of the underlying polynomial.
- Local Correction (The "Smoother"): A
ROBUSTNESSLCA(Local Computation Algorithm) acts as a local corrector. If a point resides in a region of high noise sensitivity, the corrector adjusts the label to ensure the final classifier remains adversarially robust.
Key Insights
- Improper Learning Sufficiency: The paper demonstrates that one does not need to output a literal linear halfspace to achieve its robustness benefits. A PTF combined with a local corrector can effectively mimic a linear boundary's robustness.
- Noise Sensitivity as a Proxy: Controlling noise sensitivity (response to random noise) is shown to be a mathematically tractable proxy for controlling adversarial robustness (response to targeted perturbations).
- Verifiable Robustness: The specific structure of the output—a PTF plus a local corrector—allows for deterministic verification. Users can check if a specific prediction is "safe" from adversarial attacks without relying on the training service's integrity.
Results
The proposed algorithm achieves several theoretical milestones:
- Complexity: It runs in $d^{\tilde{O}(1/\epsilon^2)}$ time, matching the best-known runtime for non-robust agnostic learning of halfspaces.
- Accuracy: The classifier achieves an error rate of $opt + O(\epsilon)$, where $opt$ is the error of the optimal halfspace.
- Robustness: It achieves a boundary volume of $O(r + \epsilon)$ at perturbation radius $r$, which is essentially optimal for this class of functions.
- Verification: Under the assumption that $P=BPP$, an efficient deterministic verifier exists to certify the robustness of the model's predictions.
Conclusion
This work provides a robust framework for learning halfspaces under log-concave marginals, matching the efficiency of non-robust methods. While it circumvents the difficulties of "proper" learning, future research may explore whether literal halfspaces can be learned with similar guarantees. Additionally, extending these techniques to distribution-free settings or more complex data manifolds remains an open challenge.
Summary updated