English

Noisy Computing of the Threshold Function

Data Structures and Algorithms 2024-12-24 v3

Abstract

Let THk\mathsf{TH}_k denote the kk-out-of-nn threshold function: given nn input Boolean variables, the output is 11 if and only if at least kk of the inputs are 11. We consider the problem of computing the THk\mathsf{TH}_k function using noisy readings of the Boolean variables, where each reading is incorrect with some fixed and known probability p(0,1/2)p \in (0,1/2). As our main result, we show that it is sufficient to use (1+o(1))nlogmδDKL(p1p)(1+o(1)) \frac{n\log \frac{m}{\delta}}{D_{\mathsf{KL}}(p \| 1-p)} queries in expectation to compute the THk\mathsf{TH}_k function with a vanishing error probability δ=o(1)\delta = o(1), where mmin{k,nk+1}m\triangleq \min\{k,n-k+1\} and DKL(p1p)D_{\mathsf{KL}}(p \| 1-p) denotes the Kullback-Leibler divergence between Bern(p)\mathsf{Bern}(p) and Bern(1p)\mathsf{Bern}(1-p) distributions. Conversely, we show that any algorithm achieving an error probability of δ=o(1)\delta = o(1) necessitates at least (1o(1))(nm)logmδDKL(p1p)(1-o(1))\frac{(n-m)\log\frac{m}{\delta}}{D_{\mathsf{KL}}(p \| 1-p)} queries in expectation. The upper and lower bounds are tight when m=o(n)m=o(n), and are within a multiplicative factor of nnm\frac{n}{n-m} when m=Θ(n)m=\Theta(n). In particular, when k=n/2k=n/2, the THk\mathsf{TH}_k function corresponds to the MAJORITY\mathsf{MAJORITY} function, in which case the upper and lower bounds are tight up to a multiplicative factor of two. Compared to previous work, our result tightens the dependence on pp in both the upper and lower bounds.

Keywords

Cite

@article{arxiv.2403.07227,
  title  = {Noisy Computing of the Threshold Function},
  author = {Ziao Wang and Nadim Ghaddar and Banghua Zhu and Lele Wang},
  journal= {arXiv preprint arXiv:2403.07227},
  year   = {2024}
}
R2 v1 2026-06-28T15:16:34.957Z