Robustly Learning a Single Neuron via Sharpness

Puqian Wang, Nikos Zarifis, Ilias Diakonikolas, Jelena Diakonikolas

Introduction

Learning a single neuron—finding the best weight vector $w$ such that $\sigma(w \cdot x) \approx y$—is a fundamental building block of deep learning. However, performing this task "robustly" in the presence of adversarial label noise is notoriously difficult. Researchers from UW-Madison have introduced a highly efficient algorithm that achieves a constant-factor approximation of the optimal error with near-linear sample complexity. By leveraging the concept of "sharpness" from optimization theory, this approach succeeds under much broader and more realistic data distributions than previously possible.

The Challenge of Robust Learning

In the agnostic PAC learning model, we cannot assume that training data is perfectly clean; labels $y$ can be arbitrary or even chosen by an adversary to mislead the learner. This introduces two primary hurdles:

  1. Non-convexity: For most non-linear activations (like ReLU), the standard square loss is non-convex. This creates numerous local minima that can easily trap standard optimization algorithms like Gradient Descent.
  2. Strict Assumptions: Prior robust algorithms relied on highly restrictive mathematical assumptions about the input data distribution. They typically required the data to be continuous and "well-behaved" (e.g., Gaussian), causing them to fail on discrete data or heavy-tailed distributions containing many outliers.

Methodology: Convexification and Sharpness

To bypass the non-convexity of the square loss, the authors employ a convex surrogate loss function. While this surrogate has appeared in prior literature, the authors' theoretical treatment of it is entirely novel.

The core breakthrough lies in proving that this surrogate loss satisfies a "sharpness" property near the optimal solution. In optimization theory, this is known as a local error bound. It guarantees that if the loss is small, the current weights must be physically close to the optimal weights. Because the surrogate is both convex and sharp, the authors demonstrate that a simple mini-batch Stochastic Gradient Descent (SGD) algorithm can converge to a good solution exponentially fast.

Furthermore, the authors introduce a refined variance analysis for their gradient estimates that scales directly with the optimal error. This allows the algorithm to use significantly smaller batch sizes than standard theory would suggest while maintaining high accuracy.

Milder Distributional Assumptions

Most prior work hit a theoretical wall because it assumed the data was "spread out" (anti-concentrated) in every possible dimension. This paper reveals a key insight: for a single neuron, the only direction that truly matters for robustness is the one defined by the optimal weight vector $w^*$. By requiring anti-concentration only in this specific direction (a "margin-like" condition), the algorithm successfully generalizes to:

  • Log-concave distributions: Standard, well-behaved continuous distributions.
  • Heavy-tailed distributions: Where the probability of outliers decays only polynomially (e.g., $1/r^k$).
  • Discrete distributions: Including Discrete Gaussians and the uniform distribution over the hypercube $\{-1, 0, 1\}^d$.

Key Results

  • Constant-Factor Approximation: The algorithm finds a solution with an error of $O(OPT) + \epsilon$, where $OPT$ is the best possible error any single neuron could achieve on the given data.
  • Sample Efficiency: For typical sub-exponential data, the sample complexity scales as $\tilde{O}(d \cdot \text{polylog}(1/\epsilon))$. This is a massive improvement over previous methods that scaled with $1/\epsilon^2$.
  • Computational Speed: The runtime is $O(nd)$, where $n$ is the number of samples and $d$ is the dimension. This is essentially the fastest possible runtime for any algorithm that must process the entire dataset.
  • Activation Versatility: While the primary focus is on ReLU, the underlying theory extends to Leaky ReLU and non-monotone activations like GeLU and Swish, which are standard in modern Transformer architectures.

Limitations and Future Directions

While this work represents a significant step forward, several challenges remain. The algorithm provides a $C \cdot OPT$ guarantee; while $C$ is a constant, achieving exactly $1 \cdot OPT$ (exact agnostic learning) is known to be computationally hard, and narrowing this constant remains an open problem. Additionally, the scope of this work is strictly limited to a single neuron. Extending these sharpness proofs to multi-layer neural networks is considered a "holy grail" in the field, as the loss landscapes of deep networks are vastly more complex. Finally, some sample complexity bounds depend on distribution parameters that may be small in high-dimensional, real-world data.

Summary updated

BibTeX
@inproceedings{wang2023robustly,
  author = {Puqian Wang and Nikos Zarifis and Ilias Diakonikolas and Jelena Diakonikolas},
  title = {{Robustly Learning a Single Neuron via Sharpness}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=cjWHQpEqaZ},
}
Figure