CS Paper Radar

Distribution-Robust Halfspace Testing

Xi Chen, Renato Ferreira Pinto, Nathaniel Harms, Rocco A. Servedio

cs.DS ·submitted 2026-11-20 03:29 UTC · v1
theory

Abstract

Standard property testing algorithms are typically designed either for a specific input distribution (distribution-specific algorithms) or for an arbitrary unknown distribution (distribution-free algorithms). Halfspaces are an important example where distribution-specific testers can be extremely efficient, while distribution-free testers are expensive and essentially require learning. We introduce an intermediate type of algorithm, a distribution-robust halfspace tester, which must provide the same guarantees as a distribution-specific tester when the input distribution is the one specified, but must also provide a trustworthy answer under arbitrary distributions. This is achieved by allowing the tester to report that its input distribution is not what it expected (inspired by the recent testable learning framework of Rubinfeld and Vasilyan). We prove that distribution-robust testing of halfspaces under the standard Gaussian requires only $O(n^{2/3})$ queries, compared to the known $\widetilde Ω(n)$ required for distribution-free testing. We also prove that sample-based distribution-robust testing of halfspaces is harder than sample-based testing under the standard Gaussian, requiring at least $Ω(n^{2/3})$ samples compared to the known $\widetilde Θ(\sqrt n)$ bound for the latter. In fact, we show that the latter $\widetilde Θ(\sqrt n)$ bound becomes $Ω(n^{2/3})$ when the covariance matrix is only mildly perturbed.

Comment
60 pages

Closest papers

Nearest neighbours by meaning across the whole index.

Distribution-Free Halfspace Testing with Samples

cs.DS ·2026-08-11 ·Xi Chen, Renato Ferreira Pinto, Nathaniel Harms, Shyamal Patel, Rocco A. Servedio
theory similarity 0.81
Abstract

We prove a tight $Θ(n/ε)$ lower bound on the number of samples required for testing halfspaces over $\mathbb{R}^n$, in the distribution-free sample-based model where the underlying probability distribution is unknown to the algorithm, and the algorithm only receives random samples (i.e., it cannot make queries). This shows that testing is no more efficient than learning for halfspaces. We also show a matching upper bound for one-sided testers, improving on the standard (two-sided) testing-by-learning reduction, establishing that two-sided halfspace testers in this model have no advantage over one-sided testers.

0.04

Testable Testing: Distribution-Robust Property Testing

cs.DS ·2026-11-20 ·Xi Chen, Renato Ferreira Pinto, Nathaniel Harms, Rocco A. Servedio
publishedhot direction similarity 0.74
Abstract · 51 pages. To appear at ITCS 2027

We introduce a new model for property testing of Boolean functions, which we call distribution-robust testing. Distribution-robust testing is motivated by the hope of designing testers whose output can be trusted even when the underlying probability distribution does not satisfy the assumptions of the tester, while still being more efficient than distribution-free testers that make no assumptions at all. The purpose of this paper is to perform a broad initial exploration of this new model. In particular, we present a variety of general algorithmic techniques, which we apply to show that several well-studied properties admit distribution-robust testers that are significantly more efficient than their distribution-free counterparts. For example, we obtain constant-query distribution-robust testers for conjunctions, decision lists, and unions of intervals, all of which are known to require significantly more queries in the distribution-free model. These encouraging results suggest a range of questions for future work.

0.74

Efficient Robust Learning at the Information-Theoretic Limit

cs.DS cs.LGstat.ML ·2026-09-15 ·Adam R. Klivans, Konstantinos Stavropoulos, Sergei Tikhonov, Arsen Vasilyan
similarity 0.66
Abstract · Corrected the arXiv abstract to match the pdf

In an important recent work, Blanc (2026) gave an algorithm for robustly learning Boolean concept classes with respect to a fixed distribution that outputs a (randomized) classifier achieving the optimal error of $η+ \varepsilon$ where $η$ is the noise rate. In contrast, it is well known that deterministic hypotheses cannot achieve error less than $2η+ \varepsilon$. Blanc's algorithm is computationally inefficient, and the main problem left open in his work is to find a polynomial-time algorithm given access to an oracle for empirical risk minimization (ERM). Here we resolve this problem and give such an algorithm. Additionally, we give an efficient algorithm (no ERM oracle required) for robustly learning any function class that admits low-degree polynomial approximators with respect to hypercontractive distributions. This captures basic settings including halfspaces with respect to Gaussian marginals. Our techniques make new connections to various types of online convex optimization algorithms. As a surprising consequence, we show that efficient SQ learnability in the agnostic setting implies efficient learning with contamination (with respect to Gaussians or uniform over the hypercube).

0.37

Learning the Robustness Mechanism with Bilevel Optimization

cs.LG ·2026-09-28 ·Yiyang Shen, Qihang Lin, Weiran Wang
similarity 0.65
Abstract

We propose a distributionally robust learning framework where parameters defining the robustness mechanism are learned from held-out data instead of extensively tuned. Using bilevel optimization with both upper and lower level minimax problems, we create two instances of our framework to tackle setups with and without group labels in the training set. Theoretically, we provide sample complexity analysis for our robustness mechanism learning paradigm, showing that it achieves generalization guarantees comparable to exhaustive grid search while being more computationally efficient. Empirically, we evaluate our framework under a challenging setup when both intra-group and inter-group test distribution shifts occur at the same time, thereby demonstrating the efficacy and scalability of our method.

0.31

Efficient Proper Agnostic Learning of Halfspaces

cs.DS cs.CCstat.ML ·2026-11-02 ·Anindya De, Elchanan Mossel, Shivam Nadimpalli, Joe Neeman
similarity 0.63
Abstract · 47 pages, 4 figures

We give a proper membership-query algorithm for agnostically learning halfspaces under the uniform distribution on $\{\pm1\}^n$. Given query access to an arbitrary function $f:\{\pm1\}^n \to \{\pm1\}$, our algorithm runs in time $\mathrm{poly}(n)+2^{\mathrm{poly}(1/\varepsilon)}$ and outputs a halfspace with error at most $\mathrm{OPT}+\varepsilon$, where $\mathrm{OPT}$ is the error of the best-fitting halfspace for $f$. Previously, even with membership queries, the best known running time was $n^{\mathrm{poly}(1/\varepsilon)}$, achieved by the sample-based algorithm of Kalai, Klivans, Mansour, and Servedio (FOCS 2005). Our algorithm is the first agnostic halfspace learner under the uniform distribution on $\{\pm1\}^n$ whose running time is polynomial in $n$ with an exponent independent of $\varepsilon$. Combining our algorithm with a boosting argument yields a proper agnostic learner using only random examples. It achieves the same $\mathrm{OPT}+\varepsilon$ guarantee, with running time matching that of Kalai et al.\ up to an additive term depending only on $\varepsilon$. To our knowledge, this is the first sample-based proper agnostic learner in the Boolean setting with running time $2^{o(n)}$ for every fixed $\varepsilon>0$.

0.33

Multiaccuracy as an Error Benchmark for Learning with Distribution Shift

cs.LG cs.DS ·2026-11-15 ·Konstantinos Stavropoulos
benchmarkposition similarity 0.63
Abstract

Agnostic learning has a well-developed theory of computational and statistical complexity. For learning with distribution shift, even the choice of an appropriate error benchmark remains challenging. Testable learning with distribution shift (TDS) was introduced to develop computational foundations for this setting: using labeled training data and unlabeled test data, the learner must either produce a predictor with low test error or detect distribution shift. However, standard agnostic TDS guarantees allow a constant-factor amplification of the optimum error even when the training and test distributions coincide. They therefore do not directly recover the guarantee of classical agnostic learning. We introduce shift multiaccuracy, a stronger error benchmark inspired by multiaccuracy from algorithmic fairness. This yields a TDS formulation that becomes equivalent to multiaccuracy when there is no shift. Using a recent nontrivial reduction from agnostic learning to multiaccurate prediction from prior work, we obtain the first TDS framework that formally generalizes agnostic learning through an efficient reduction preserving the training marginal. The framework retains existing algorithmic upper bounds and inherits computational lower bounds from agnostic learning. Moreover, we establish a direct connection between our model and identity testing, yielding the first statistical characterization of agnostic TDS learning, in terms of Rademacher complexity. More broadly, we argue that shift multiaccuracy might be of independent interest in unsupervised domain adaptation, as it leads to sharper out-of-distribution generalization guarantees, and can be minimized directly, since its definition does not involve the unobserved test labels.

0.15

Tight Bounds for Equivalence Testing with Non-Adaptive Conditional Samples

cs.DS cs.ITstat.ML ·2026-10-08 ·Gautam Kamath
theory similarity 0.61
Abstract

We study distribution testing with access to non-adaptive conditional samples. Specifically, we give tight bounds for equivalence testing, determining whether two unknown distributions are equal to or $\varepsilon$-far from each other in total variation distance. Our algorithm and lower bound show that $\tilde Θ\left(\frac{\log n}{\varepsilon^2}\right)$ queries are necessary and sufficient for this problem. These results demonstrate that the complexity of uniformity, identity, and equivalence testing with non-adaptive conditional samples are all $\tilde Θ(\log n)$.

0.20

Optimal Support Size Testing

cs.IT cs.DSmath.ST ·2026-10-13 ·Qisheng Wang
theory similarity 0.61
Abstract · 12 pages

We present an optimal tester for support size that determines whether an unknown probability distribution is supported on $n$ elements or $\varepsilon$-far away (in total variation distance) with sample complexity $Θ(\frac{n}{\varepsilon\log(n)})$, improving the prior best $O(\frac{n}{\varepsilon\log(n)} \log(\min\{\frac{1}{\varepsilon}, n\}))$ due to Ferreira Pinto Jr. and Harms (STOC 2025). As a generalization, we provide a pretty good lower bound on support size.

0.30