Noisy Computing of the OR and MAX Functions

Banghua Zhu, Ziao Wang, Nadim Ghaddar, Jiantao Jiao, Lele Wang

TL;DR

This paper provides the first tight characterization of the query complexity for computing the OR and MAX functions in the presence of noise. The authors prove that the expected number of queries required is $(1 \pm o(1)) \frac{n \log(1/\delta)}{D_{KL}(p || 1-p)}$, finally pinning down the exact dependence on the noise probability $p$ and closing a gap that has existed in the literature since the early 1990s.

What Problem Does This Paper Address?

In large-scale computing systems, errors are inevitable. Whether it's a bit flip in memory or a noisy comparison in a ranking algorithm, we need to know how many "noisy" observations are required to compute a result with high confidence.

The authors focus on two fundamental primitives:

  1. The OR Function: Given $n$ bits, determine if at least one bit is '1'. Each query to a bit returns the wrong value with probability $p$.
  2. The MAX Function: Given $n$ real numbers, find the index of the maximum value. Each pairwise comparison returns the wrong result with probability $p$.

While a seminal 1994 paper by Feige et al. established that the number of queries scales linearly with $n$, the exact relationship with the noise level $p$ and the desired error tolerance $\delta$ remained "loose." This paper aims to find the precise constant and functional form of that dependence.

Methods

The paper employs a mix of information-theoretic lower bounds and algorithmic upper bounds:

  • Lower Bounds (The "Necessary" Part): The authors use Le Cam’s two-point method. By constructing two scenarios that are "close" in terms of probability distributions but result in different function outputs (e.g., an all-zero bit string vs. a string with exactly one '1'), they calculate the minimum number of samples needed to distinguish between them.
  • Upper Bounds (The "Sufficient" Part): They propose a two-step algorithmic framework:
  • Step 1: Filtering. They use a sublinear number of queries to identify a "candidate set" of variables that are likely to be the '1' (for OR) or the maximum (for MAX).
  • Step 2: Refinement. They run a robust "Tournament" algorithm (previously developed by the authors) on this much smaller candidate set to find the final answer.
  • Key Metric: The results are expressed using the Kullback-Leibler (KL) divergence between two Bernoulli distributions: $D_{KL}(p || 1-p)$. This term effectively measures how much information each noisy query provides.

Datasets

As a theoretical computer science paper, no empirical datasets were used. The results are proven mathematically for any input $X$ within the defined domains ($\{0,1\}^n$ for OR and $\mathbb{R}^n$ for MAX).

Key Insights and Ideas

  • The KL Divergence is the "Right" Language: Previous work often used simpler but less precise proxies for noise, like $(1-2p)^2$. This paper shows that $D_{KL}(p || 1-p)$ is the natural information-theoretic limit for this problem.
  • The Power of Two-Stage Processing: The "Aha!" moment in the upper bound is realizing you don't need a perfectly robust algorithm for all $n$ elements. By using a "cheap" filtering step to reduce the problem size to something sublinear (like $\log n$), you can then afford to use a more complex, highly robust algorithm on the remaining elements without blowing up the total query budget.
  • Unifying OR and MAX: Despite OR and MAX having different query models (reading a bit vs. comparing two numbers), they share the same fundamental complexity. The authors show that the "bottleneck" for both is essentially the same: identifying a single "special" element among $n$ candidates.

Key Results

The authors establish that for both OR and MAX, the expected number of queries $M$ to achieve an error probability $\delta$ is:

$$E[M] \approx \frac{n \log(1/\delta)}{D_{KL}(p || 1-p)}$$

  • Tightness: This is a "matching" bound, meaning the upper and lower bounds agree up to a factor of $(1 \pm o(1))$.
  • Improvement: Compared to the 1994 Feige et al. results, this provides a much tighter dependence on $p$, especially as $p$ approaches $1/2$ (high noise) or $0$ (low noise).
  • Varying Noise: The paper also extends the results to cases where the noise $p$ isn't constant but changes as $n$ grows, showing the bounds remain robust in most regimes.

Limitations and Future Work

  • The "Critical" Regime: The authors note a specific case where $p \to 0$ and $\frac{\log(1/\delta)}{\log(1/p)}$ is a constant. In this narrow regime, their upper and lower bounds are tight up to a constant factor, but the exact constant remains unknown. This is identified as an open problem.
  • Model Assumptions: The noise is assumed to be "Binary Symmetric" (the probability of $0 \to 1$ is the same as $1 \to 0$). In some real-world applications, noise might be asymmetric or dependent on the values being compared, which this model does not cover.
  • Expected vs. Worst-case: The results focus on the expected number of queries. While common in this field, some applications might require strict limits on the maximum number of queries allowed in any single run.

Summary updated

BibTeX
@article{zhu2024noisy,
  author = {Banghua Zhu and Ziao Wang and Nadim Ghaddar and Jiantao Jiao and Lele Wang},
  title = {{Noisy Computing of the OR and MAX Functions}},
  journal = {IEEE J. Sel. Areas Inf. Theory},
  year = {2024},
  doi = {10.1109/jsait.2024.3396787},
}
Figure