Attribute-Efficient Learning of Sparse Halfspaces with Constant Malicious Noise Rate

Shiwei Zeng, Jie ShenNeurIPS 2026

TL;DR

Imagine trying to draw a straight line to separate two classes of data in a million-dimensional space, knowing that only a handful of dimensions actually matter—and an adversary has intentionally poisoned a constant fraction of your dataset. This paper introduces the first algorithm capable of solving this problem efficiently, requiring a number of data samples that scales barely logarithmically with the million dimensions, even when the malicious noise doesn't shrink as you demand higher accuracy.

What Problem Does This Paper Address?

In machine learning, one of the most foundational tasks is learning a "halfspace"—a linear boundary (like a flat plane) that separates positive examples from negative ones. Often, our data lives in a massive ambient dimension $d$, yet only a small number of features $s$ actually govern the outcome. Algorithms that learn using sample sizes polynomial in $s$ and only polylogarithmic in $d$ are called attribute-efficient.

Things get treacherous under the malicious noise model. Here, an adversary can corrupt a fraction $\eta$ of your training data, arbitrarily altering both features and labels to derail your algorithm. Historically, attribute-efficient algorithms could only survive noise rates proportional to the target error rate, $O(\epsilon)$. Ironically, this meant the more accurate you wanted your model to be ($\epsilon \to 0$), the cleaner your data had to be!

Recent breakthroughs showed how to tolerate a constant fraction of malicious noise (say, 1% poisoned data regardless of how tiny $\epsilon$ gets) by assuming the clean data is reasonably clustered (a mixture of logconcave distributions) and stays away from the decision boundary (a large margin). However, those algorithms required at least $\Omega(d)$ samples, completely losing attribute efficiency. Can we get both constant malicious noise tolerance and attribute efficiency at the same time?

Methods

The authors build on an existing framework of outlier removal followed by loss minimization, re-engineering both steps to exploit sparsity:

  1. Sparse Soft Outlier-Removal: Adversaries love placing fake data points miles away from the main cluster to create massive gradients that hijack optimization. To neutralize this, the algorithm assigns weights $q_i \in [0, 1]$ to every sample, down-weighting points that inflate the empirical variance. Because checking variance across all $s$-sparse directions is NP-hard, the authors relax this step into a computationally tractable semidefinite program (SDP) constrained by nuclear and entrywise $L_1$ norms, adapting prior single-cluster techniques to handle mixtures of distributions.
  2. Sparsity-Constrained Hinge Loss Minimization: Soft outlier removal catches wild feature corruptions, but sneaky label flips near the clean data remain. To handle them, the algorithm minimizes weighted hinge loss over a convex feasible set combining standard $L_2$ constraints ($\|w\|_2 \le 1$) with a sparsity-inducing $L_1$ constraint ($\|w\|_1 \le \sqrt{s}$).

Datasets

Not discussed in the paper. (This is a purely theoretical machine learning paper focused on mathematical guarantees and sample complexity bounds.)

Key Insights and Ideas

  • Taming Dual-Constraint Gradients: The core intuition is that clean data forms "dense pancakes"—tightly packed neighborhoods. If a candidate boundary misclassifies a dense pancake, the collective gradient pull of those clean neighbors will overpower the malicious points and force the optimizer to fix its mistake. However, proving this when both $L_1$ and $L_2$ boundary constraints are active is tricky, because constraint boundaries push back against the loss gradient. Using Karush–Kuhn–Tucker (KKT) conditions, the authors construct a clever mathematical witness vector that balances both constraints simultaneously, proving the optimizer cannot get stuck on a bad boundary.
  • Function Covering Over Geometric Covering: To prove that a small sample captures the true data geometry, theorists usually cover the parameter space with tiny geometric $L_2$ or $L_1$ balls. In high dimensions with sparsity constraints, geometric coverings blow up the sample complexity to $\text{poly}(d)$. The authors sidestep this trap by switching to function class covering ($\mathcal{N}_\infty$-covering) over inner products, bounding complexity cleanly using the $L_1$ norm of the weights and the $L_\infty$ distance between data points.
  • Favorable Assumptions Don't Give Free Lunches: You might suspect that assuming nice margins and clustered data makes the problem trivially easy. By constructing a subtle geometric "hardness" example, the authors prove that even without any noise, these favorable assumptions don't lower the fundamental sample cost compared to distribution-free learning.

Key Results

  • Attribute-Efficient Sample Complexity: Under large-margin and mixture-of-logconcaves assumptions, the polynomial-time algorithm learns an $s$-sparse halfspace in $\mathbb{R}^d$ to error $\epsilon$ using $\Omega\left(s^2 \cdot \log^5 d \cdot \log^2 \frac{1}{\epsilon\delta}\right)$ samples.
  • Constant Noise Tolerance: The algorithm succeeds under any constant malicious noise rate $\eta \le \eta_0$ (proven for $\eta_0 \le 2^{-28}$ with up to $k \le 64$ mixture components, and optimizable to $2^{-9}/k^2$). This breaks past the longstanding $O(\epsilon)$ noise barrier for sparse halfspaces.
  • Near-Optimality: The authors prove an information-theoretic noiseless lower bound of $\Omega\left(s \cdot \left(\log \frac{1}{\epsilon} + \log \frac{d}{s}\right)\right)$. Paired with prior Statistical Query lower bounds suggesting $\Omega(s^2)$ samples are necessary for computationally efficient robust learning, their $O(s^2 \log^5 d)$ bound is nearly optimal.
  • Bonus Generalizations: The results naturally extend to non-homogeneous halfspaces (planes that don't pass through the origin) and constant-rate adversarial label noise.

Limitations and Future Work

While constant in scaling, the theoretical upper bound on the tolerable noise rate ($\eta_0 \le 2^{-28}$, or roughly $2^{-9}/k^2$) is numerically tiny, and the algorithm relies on specific distributional concentration and margin assumptions. For future work, the authors suggest testing whether their dual-constraint KKT gradient analysis can be extended to other surrogate loss functions beyond hinge loss. They also propose applying their generalized mixture-of-logconcaves variance analysis to adjacent domains, such as active learning.

Summary updated

Abstract

Attribute-efficient PAC learning of sparse halfspaces has been a fundamental problem in machine learning theory. In recent years, machine learning algorithms are faced with prevalent data corruptions or even malicious attacks. It is of central interest to design computationally and attribute-efficient algorithms that are robust to extreme corruptions. In this paper, we consider that there is a constant amount of malicious noise in the data and show that it is possible to PAC learn an underlying $s$-sparse halfspace $w^* \in \mathbb{R}^d$ with $O(s^2\log^5 d)$ samples. Specifically, we follow a recent line of works and assume that the underlying distribution satisfies a concentration condition and a margin condition at the same time. As a complementary result, we provide an information-theoretic sample lower bound under such conditions even for the noiseless case. Evidence shows that our sample complexity could be nearly optimal. To show the robustness of our algorithm, we provide a new gradient analysis that carefully handles the sparsity admitted constraints in hinge loss minimization program, which could be of independent interest.
BibTeX
@inproceedings{zeng2026attribute,
  author = {Shiwei Zeng and Jie Shen},
  title = {{Attribute-Efficient Learning of Sparse Halfspaces with Constant Malicious Noise Rate}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=IB6y1X9QFZ},
}
Figure