Agnostic Learnability of Halfspaces via Logistic Loss

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

Introduction

Logistic regression is a foundational tool for binary classification. However, its performance in the agnostic setting—where data is not perfectly separable and has an optimal error rate $OPT > 0$—has remained only partially understood. Specifically, researchers study the agnostic learning of homogeneous halfspaces: finding a linear classifier passing through the origin that minimizes misclassification error on a dataset where labels might be noisy or corrupted.

Prior research showed that for "well-behaved" distributions (like Gaussians), logistic regression achieves an error of $\tilde{O}(\sqrt{OPT})$. Meanwhile, the best possible error for any convex surrogate loss was known to be $\Omega(OPT)$. This left a significant gap: is logistic regression fundamentally limited to $\sqrt{OPT}$, or was the previous analysis simply too loose?

This paper closes this fundamental gap. The authors prove that while vanilla logistic regression can indeed be suboptimal—achieving only a $\sqrt{OPT}$ error rate on some well-behaved distributions—a simple two-phase approach can achieve the near-optimal $OPT$ error rate.

The Limits of Logistic Regression

To prove that the $\sqrt{OPT}$ limit is a real phenomenon and not just an analytical artifact, the authors construct a specific "well-behaved" (isotropic and bounded) distribution. On this distribution, the global minimizer of the logistic risk actually results in $\Omega(\sqrt{OPT})$ error.

Illustration of the adversarial distribution Q

Why does this happen? Logistic loss is highly sensitive to the "tails" of a distribution. In the presence of noise, these tails can pull the weight vector away from the optimal direction. The synthetic distribution $Q$ (illustrated above) is carefully engineered to be well-behaved by standard definitions, yet it contains specific noisy regions ($Q_1$) designed to "tug" on the logistic minimizer and trick it into choosing a suboptimal direction.

Overcoming the Limits: Smoothness and a Two-Phase Algorithm

To bridge the gap between $\sqrt{OPT}$ and $OPT$, the authors employ two main strategies:

1. The Role of Smoothness

The jump to $OPT$ error for vanilla logistic regression depends heavily on the continuity of the data density. The authors identify a new condition called radial Lipschitzness (a form of density smoothness). They prove that if a distribution satisfies this condition—meaning it is smooth as you move away from the origin—the "tugging" effect of noise is mitigated, and vanilla logistic regression can reach the near-optimal $\tilde{O}(OPT)$ error.

2. A Simple Two-Phase Algorithm

For distributions that are not smooth, previous methods to achieve $OPT$ error involved complex "localization" techniques with many rounds of optimization. This paper proposes a much simpler, efficient two-phase algorithm:

  • Phase 1 (Warm Start): Run standard logistic regression. This yields a vector that is roughly in the right direction, getting you within $\sqrt{OPT}$ error.
  • Phase 2 (Refinement): Run projected Stochastic Gradient Descent (SGD) using hinge loss (essentially the Perceptron algorithm) starting from the Phase 1 solution, restricted to a specific domain.

Hinge loss has a "flat" region, meaning it ignores points that are already correctly classified with a sufficient margin. This characteristic makes it significantly more robust than logistic loss for the "final mile" of optimization in noisy settings.

Key Results

  • Matching Lower Bound: The authors proved that for some well-behaved distributions, the logistic regression minimizer has a zero-one risk of $\Omega(\sqrt{OPT})$, matching the known upper bound and officially closing the gap.
  • Optimal Error with Smoothness: They demonstrated that under radial Lipschitzness, logistic regression successfully achieves $\tilde{O}(OPT)$ error.
  • Efficient Two-Phase Learner: The proposed two-phase algorithm achieves $\tilde{O}(OPT)$ error for all well-behaved distributions using only $\tilde{O}(d/\epsilon^2)$ samples. This requires just two standard convex optimization steps, making it significantly simpler than prior state-of-the-art algorithms.

Limitations and Future Work

While the two-phase algorithm is near-optimal, the upper bound for general distributions is $\tilde{O}(OPT \cdot \ln(1/OPT) + \epsilon)$. This leaves a small logarithmic gap compared to the ideal $O(OPT + \epsilon)$ achieved by more complex algorithms.

Additionally, in practice, it is difficult to know if a distribution is radially Lipschitz. Developing a way to test for this or adapt to it automatically remains an open challenge. Finally, the authors suggest extending these theoretical results to more complex models, such as two-layer ReLU neural networks, where the fundamental limits of agnostic learning are even less understood.

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