Noisy Computing of the Threshold Function

Ziao Wang, Nadim Ghaddar, Banghua Zhu, Lele Wang

TL;DR

This paper characterizes the optimal query complexity for computing the threshold-$k$ function over $n$ noisy bits, where each bit query flips with known probability $p \in (0, 1/2)$. The authors provide new matching upper and lower bounds up to leading-order constants when $k = o(n)$ (or $n - k = o(n)$), and establish bounds within a factor of 2 for the general case—including the classic majority function.

What Problem Does This Paper Address?

In distributed systems, fault-tolerant circuits, and noisy active learning, computing functions from unreliable measurements is a fundamental challenge. The threshold-$k$ function $\text{TH}_k(x)$ takes a binary string $x \in \{0, 1\}^n$ and outputs $1$ if the number of ones is at least $k$, and $0$ otherwise.

While classical noiseless computation requires simply checking bits until the threshold is met, the noisy query model introduces uncertainty: each time an algorithm inspects a bit $x_i$, it receives the correct value with probability $1 - p$ and the inverted value with probability $p$ (where $p \in (0, 1/2)$ is known). A landmark paper by Feige et al. (1994) established the order-of-magnitude query complexity for this problem. However, the exact constant factors and precise information-theoretic dependence on noise probability $p$ remained open.

Methods

As an extended abstract, the paper focuses on stating tight information-theoretic upper and lower bounds. The theoretical framework builds on:

  • Information-Theoretic Divergence: Query bounds are explicitly parameterized by the Kullback-Leibler (KL) divergence between Bernoulli distributions: $$D_{\text{KL}}(p \parallel 1-p) = (1 - 2p) \log \left(\frac{1-p}{p}\right)$$ which captures the exact rate at which evidence accumulates per noisy query.

  • Effective Threshold Metric: Complexity is governed by $m \triangleq \min\{k, n - k + 1\}$, reflecting the problem's natural symmetry under bit inversion ($0 \leftrightarrow 1$).

  • Sequential Testing and Verification: The upper bound algorithm uses an active querying strategy that refines bit estimates sequentially to guarantee overall error at most $\delta = o(1)$.

(Note: Detailed algorithmic steps and converse proofs appear in the authors' full-length technical report, Wang et al., 2024b).

Datasets

Not discussed in the paper. This is a purely mathematical paper focused on information-theoretic sample complexity; no empirical evaluations or benchmark datasets were used.

Key Insights and Ideas

  • Exact Asymptotics for Sublinear Thresholds: When $m = o(n)$ (for instance, when $k$ is small, or very close to $n$), the ratio between the upper bound and lower bound approaches $1 + o(1)$. This yields the first exact, leading-constant characterization of query complexity for noisy threshold computation.
  • Unification with Logic Functions: At $k = 1$ (the logic OR function) and $k = n$ (the logic AND function), $m = 1$. The results recover the optimal query bounds previously established by Zhu et al. (2024), demonstrating that threshold computation seamlessly generalizes extreme boolean logic gates.
  • Tight Dependence on Noise Level $p$: Unlike earlier asymptotic bounds that hid constants depending on $p$ inside big-$O$ notation, both the upper and lower bounds here explicitly divide by $D_{\text{KL}}(p \parallel 1-p)$, pinning down the precise cost of channel noise.

Key Results

For computing $\text{TH}_k(x)$ with error probability at most $\delta = o(1)$, the paper establishes the following expected query bounds:

  • Upper Bound: There exists an algorithm using at most $$(1 + o(1)) \frac{n \log \left(\frac{m}{\delta}\right)}{D_{\text{KL}}(p \parallel 1-p)} \quad \text{queries in expectation.}$$

  • Lower Bound: Any algorithm must make at least $$(1 - o(1)) \frac{(n - m) \log \left(\frac{m}{\delta}\right)}{D_{\text{KL}}(p \parallel 1-p)} \quad \text{queries in expectation.}$$

  • Gap Analysis:

  • If $m = o(n)$, the gap vanishes: $\frac{n}{n - m} \to 1$, making the query complexity asymptotically exact.
  • For general $m = \Theta(n)$, the upper and lower bounds match within a multiplicative factor of $\frac{n}{n - m} \le 2$. In particular, for the balanced Majority function ($k = n/2$), the bounds match within a factor of 2.

Limitations and Future Work

  • Remaining Multiplicative Gap for Majority: When $k = \Theta(n)$ (most notably the majority function $k = \lceil n/2 \rceil$), a factor-of-2 gap remains between the upper and lower bounds. Closing this gap is a natural open question.
  • Fixed Error Rate: The current bounds are established for a vanishing error regime $\delta = o(1)$. Extending these exact constants to non-vanishing target errors $\delta \in (0, 1/2)$ remains open.

Summary updated

BibTeX
@inproceedings{wang2025noisy,
  author = {Ziao Wang and Nadim Ghaddar and Banghua Zhu and Lele Wang},
  title = {{Noisy Computing of the Threshold Function}},
  booktitle = {ALT},
  year = {2025},
  url = {https://openreview.net/forum?id=Rpy7ViuSNC},
}
Figure