English

Halfspaces are hard to test with relative error

Computational Complexity 2026-03-24 v2 Data Structures and Algorithms

Abstract

Several recent works [DHLNSY25, CPPS25a, CPPS25b] have studied a model of property testing of Boolean functions under a \emph{relative-error} criterion. In this model, the distance from a target function f:{0,1}n{0,1}f: \{0,1\}^n \to \{0,1\} that is being tested to a function gg is defined relative to the number of inputs xx for which f(x)=1f(x)=1; moreover, testing algorithms in this model have access both to a black-box oracle for ff and to independent uniform satisfying assignments of ff. The motivation for this model is that it provides a natural framework for testing \emph{sparse} Boolean functions that have few satisfying assignments, analogous to well-studied models for property testing of sparse graphs. The main result of this paper is a lower bound for testing \emph{halfspaces} (i.e., linear threshold functions) in the relative error model: we show that Ω~(logn)\tilde{\Omega}(\log n) oracle calls are required for any relative-error halfspace testing algorithm over the Boolean hypercube {0,1}n\{0,1\}^n. This stands in sharp contrast both with the constant-query testability (independent of nn) of halfspaces in the standard model [MORS10], and with the positive results for relative-error testing of many other classes given in [DHLNSY25, CPPS25a, CPPS25b]. Our lower bound for halfspaces gives the first example of a well-studied class of functions for which relative-error testing is provably more difficult than standard-model testing.

Keywords

Cite

@article{arxiv.2511.06171,
  title  = {Halfspaces are hard to test with relative error},
  author = {Xi Chen and Anindya De and Yizhi Huang and Shivam Nadimpalli and Rocco A. Servedio and Tianqi Yang},
  journal= {arXiv preprint arXiv:2511.06171},
  year   = {2026}
}

Comments

26 pages, appeared in SODA 2026. v2 correct minor typos

R2 v1 2026-07-01T07:27:57.144Z