Agnostic Learnability of Halfspaces via Logistic Loss

Ziwei Ji, Kwangjun Ahn, Pranjal Awasthi, Satyen Kale, Stefani Karp

TL;DR

This paper resolves a fundamental gap in the theoretical understanding of logistic regression for agnostically learning halfspaces, proving that vanilla logistic regression can perform as poorly as $\Omega(\sqrt{\text{OPT}})$ misclassification risk even on "well-behaved" distributions. To overcome this bottleneck, the authors show that adding a mild radial-Lipschitzness condition restores near-optimal $\tilde{O}(\text{OPT})$ performance. Alternatively, they propose a simple, novel two-phase algorithm—logistic regression followed by a single hinge-loss step—that achieves $\tilde{O}(\text{OPT})$ risk on any well-behaved distribution.

What Problem Does This Paper Address?

Agnostically learning homogeneous halfspaces (linear classifiers) is a foundational problem in machine learning. In the agnostic setting, we assume an unknown data distribution where a certain fraction of the labels ($\text{OPT}$) are adversarially corrupted or inherently noisy. Our goal is to find a linear classifier that performs as close to $\text{OPT}$ as possible.

While logistic regression is the most common heuristic used in practice for binary classification, its performance guarantees in this adversarial setting have remained theoretically incomplete. For a broad class of "well-behaved" distributions (such as isotropic log-concave distributions), a significant gap existed in recent literature: the best-known lower bound for convex surrogates was $\tilde{\Omega}(\text{OPT})$, while the best upper bound for vanilla gradient descent on logistic loss was $\tilde{O}(\sqrt{\text{OPT}})$. This paper closes this gap by determining the exact fundamental limits of logistic regression in this context.

Methods

The authors employ three main approaches to dissect and solve this problem:

  1. Lower Bound Construction: The authors mathematically construct a specific 2D distribution, $Q$, composed of four distinct geometric parts (squares, rectangles, a uniform ball, and a circle boundary). This distribution satisfies standard "well-behaved" regularity conditions but forces the global minimizer of the logistic risk to skew away from the true classifier, resulting in an error of $\Omega(\sqrt{\text{OPT}})$.
  2. Radial Lipschitzness Analysis: They introduce a mild "radial Lipschitzness" condition to the distribution's density function. Under this assumption, they analyze projected gradient descent on a bounded Euclidean ball and prove it can achieve near-optimal $\tilde{O}(\text{OPT})$ risk.
  3. Two-Phase Convex Optimization: To handle general distributions without assuming radial Lipschitzness, they design a simple two-phase algorithm. Phase 1 runs standard logistic regression to find a "warm start" vector (guaranteed to be within a $\sqrt{\text{OPT}}$ angle of the true classifier). Phase 2 uses this vector as a starting point to run stochastic gradient descent with the hinge loss (the perceptron algorithm) over a restricted domain, boosting the final accuracy to $\tilde{O}(\text{OPT})$.

Datasets

Not discussed in the paper. This work is entirely theoretical and relies on synthetic mathematical constructions rather than empirical datasets.

Key Insights and Ideas

  • The $\sqrt{\text{OPT}}$ Barrier is Real: The paper proves that vanilla logistic regression genuinely suffers from a $\sqrt{\text{OPT}}$ bottleneck. As illustrated in the authors' custom distribution $Q$ (see Figure 1), discontinuous densities can cause the gradient of the logistic loss to misalign with the ground-truth solution, pulling the optimizer away from the ideal decision boundary.
Figure 1: An illustration of Q when OPT = 1/16. Red areas denote positive examples, while blue areas denote negative examples. The parts Q1, Q2 and Q3 are marked in the figure, while Q4 is supported on the unit circle and marked by horizontal lines.
  • Smoothness Erases the Bottleneck: By simply ensuring that the distribution's density doesn't change too abruptly (radial Lipschitzness), the gradient misalignment disappears, allowing standard logistic regression to achieve near-optimal error.
  • Hinge Loss as a Booster: The hinge loss has a convenient property: its error contribution drops to exactly zero when examples are correctly classified with a positive margin. By using logistic regression first to get a rough directional estimate, a single subsequent round of hinge loss minimization can completely bypass the $\sqrt{\text{OPT}}$ bottleneck. This eliminates the need for complex, multi-round localization methods used in prior literature.

Key Results

  • Matching Lower Bound: Theorem 2.1 proves that the global minimizer of logistic risk achieves $\geq \frac{\sqrt{\text{OPT}}}{60\pi}$ zero-one risk on the constructed well-behaved distribution, perfectly matching the previous upper bound from Frei et al. (2021b).
  • Radially Lipschitz Upper Bound: Under the new radial Lipschitzness condition, logistic regression achieves a near-optimal zero-one risk of $O(\text{OPT})$ for bounded distributions and $\tilde{O}(\text{OPT})$ for sub-exponential distributions.
  • Algorithmic Efficiency: The proposed two-phase algorithm achieves $\tilde{O}(\text{OPT})$ risk using only $\tilde{O}(d/\epsilon^2)$ samples. This is simpler and more sample-efficient than previous methods that required solving $O(\log(1/\text{OPT}))$ separate minimization problems.

Limitations and Future Work

  • The $\ln(1/\text{OPT})$ Factor: For general well-behaved distributions, the two-phase algorithm achieves an error bound containing an extra logarithmic factor ($O(\text{OPT} \cdot \ln(1/\text{OPT}) + \epsilon)$). In contrast, some highly complex, non-convex algorithms can reach a pure $O(\text{OPT} + \epsilon)$ risk. The authors leave it as an open problem whether a simple algorithm with a small, constant number of convex optimization phases can achieve the absolute optimal $O(\text{OPT} + \epsilon)$ risk.
  • Extension to Neural Networks: A natural next step is exploring whether these insights apply to multi-layer neural networks (e.g., two-layer ReLU networks), specifically whether they can achieve $O(\text{OPT})$ risk with a practically reasonable network width.

Summary updated

BibTeX
@inproceedings{ji2022agnostic,
  author = {Ziwei Ji and Kwangjun Ahn and Pranjal Awasthi and Satyen Kale and Stefani Karp},
  title = {{Agnostic Learnability of Halfspaces via Logistic Loss}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=gJ0tW43ed2},
}
Figure