Optimal Lower Bounds for Universal Relation, and for Samplers and Finding Duplicates in Streams

Michael Kapralov, Jelani Nelson, Jakub Pachocki, Zhengyu Wang, David P. Woodruff, Mobin Yahyazadeh

Abstract

This paper establishes the exact randomized one-way communication complexity of the Universal Relation (UR) problem, a cornerstone of theoretical computer science. By resolving the complexity of UR, the authors derive mathematically optimal memory lower bounds for essential data stream problems, such as $\ell_0$-sampling and finding duplicates in turnstile streams. The results are achieved through novel proof techniques involving an adaptivity lemma inspired by differential privacy and reductions from augmented indexing, matching known upper bounds across nearly all parameter ranges.

Introduction: The Memory Bottleneck in Data Streams

In the era of big data, monitoring massive, high-velocity streams—such as network traffic or real-time database transactions—requires algorithms that operate with extremely limited memory. A common strategy involves maintaining a compact "sketch" of the data. Within these sketches, a frequent requirement is $\ell_0$-sampling: given a vector undergoing continuous additions and subtractions (a turnstile stream), the algorithm must return a uniformly random non-zero element. Another fundamental task is identifying duplicate items within the stream.

While efficient algorithms for these tasks exist, their theoretical limits remained partially obscured. Specifically, the absolute minimum memory required to produce $k$ samples or to achieve a very low failure probability ($\delta$) was not precisely known. To determine these limits, researchers analyze the Universal Relation (UR) communication game. In this game, Alice holds an $n$-bit string $x$ and Bob holds an $n$-bit string $y$, with the guarantee that $x \neq y$. Alice sends a single message to Bob, who must then identify an index where their strings differ. The size of Alice's message in this game directly dictates the memory lower bounds for corresponding streaming algorithms.

Methods: Novel Proofs for Tight Bounds

The authors employ mathematical reductions and information theory to establish their bounds, offering two distinct and novel proofs for the UR problem's complexity:

  1. Encoding Argument with an Adaptivity Lemma: The authors demonstrate that if a more efficient UR protocol existed, it could be used to create a data compression scheme that violates fundamental information-theoretic limits. A key challenge here is "adaptivity"—the decoder must make queries to the UR protocol that depend on previous outputs, which typically invalidates the protocol's guarantees. To overcome this, the authors introduce an adaptivity lemma inspired by differential privacy. By injecting "random noise" into the queries, they mask the mutual information between the queries and the protocol's internal randomness, ensuring stability.
  2. Reduction from Augmented Indexing: The second proof reduces the known hard problem of Augmented Indexing to UR. To handle the necessary adaptive interactions with the UR protocol, the authors utilize a shared random permutation to obscure the input structure. They then apply union bounds over likely interaction patterns to prove the protocol's correctness.

Key Insights: Overcoming Adaptivity

A primary insight of the paper is the formalization of the "promise" version of the UR problem, where Bob's string is a subset of Alice's. This clarification simplifies the reductions to streaming problems and prevents an increase in failure probability.

Furthermore, the paper addresses the inherent conflict between randomized black-box protocols and adaptive queries. The "noise as an information shield" approach is a significant theoretical contribution. By adding dummy elements to queries, the authors restrict the information leaked about the protocol's internal state, allowing for safe adaptive use.

Key Results

The research concludes that the randomized one-way communication complexity of the Universal Relation problem (including the $k$-output variant) is exactly: $$\Theta(\min\{n, t \log^2(n/t)\})$$ where $t = \max\{k, \log(1/\delta)\}$.

This result translates directly into optimal streaming bounds. Any one-pass streaming algorithm for finding duplicates, support-finding, or $\ell_p$-sampling (for $0 \le p < 2$) must adhere to this memory limit. These bounds are remarkably tight, matching the performance of the best existing algorithms.

Table summarizing various streaming problems and their associated parameters, many of which rely on $\ell_0$ sampling.

The impact of these bounds extends across a variety of fundamental problems in graph theory and data analysis, as shown in the table above, where parameters like $k$ and $\delta$ play a critical role in determining complexity.

Limitations and Future Work

The established lower bounds are specific to one-pass streaming algorithms, corresponding to one-way communication. The authors note that allowing a second pass over the data significantly reduces the upper bound to $O(t \log n)$, meaning these bounds do not apply to multi-pass scenarios. Additionally, the results are optimized for $\ell_p$-sampling where $0 \le p < 2$; the mathematical dynamics for $p \ge 2$ differ and remain outside the scope of this work.

Summary updated

Abstract

In the communication problem UR (universal relation) [25], Alice and Bob respectively receive x, y ∈ {0, 1} <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">n</sup> with the promise that x ≠ y. The last player to receive a message must output an index i such that x <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> ≠ y <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">i</sub> . We prove that the randomized one-way communication complexity of this problem in the public coin model is exactly Θ(min{n, log(1/δ) log <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">2</sup> (n/log(1/δ) )}) for failure probability δ. Our lower bound holds even if promised support(y) ⊂ support(x). As a corollary, we obtain optimal lower bounds for ℓ <sub xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">p</sub> -sampling in strict turnstile streams for 0 ≤ p <; 2, as well as for the problem of finding duplicates in a stream. Our lower bounds do not need to use large weights, and hold even if promised x ∈ {0, 1} <sup xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">n</sup> at all points in the stream. We give two different proofs of our main result. The first proof demonstrates that any algorithm A solving sampling problems in turnstile streams in low memory can be used to encode subsets of [n] of certain sizes into a number of bits below the information theoretic minimum. Our encoder makes adaptive queries to A throughout its execution, but done carefully so as to not violate correctness. This is accomplished by injecting random noise into the encoder's interactions with A, which is loosely motivated by techniques in differential privacy. Our correctness analysis involves understanding the ability of A to correctly answer adaptive queries which have positive but bounded mutual information with A's internal randomness, and may be of independent interest in the newly emerging area of adaptive data analysis with a theoretical computer science lens. Our second proof is via a novel randomized reduction from Augmented Indexing [30] which needs to interact with A adaptively. To handle the adaptivity we identify certain likely interaction patterns and union bound over them to guarantee correct interaction on all of them. To guarantee correctness, it is important that the interaction hides some of its randomness from A in the reduction.
BibTeX
@inproceedings{kapralov2017optimal,
  author = {Michael Kapralov and Jelani Nelson and Jakub Pachocki and Zhengyu Wang and David P. Woodruff and Mobin Yahyazadeh},
  title = {{Optimal Lower Bounds for Universal Relation, and for Samplers and Finding Duplicates in Streams}},
  booktitle = {FOCS},
  year = {2017},
  url = {https://openreview.net/forum?id=yh66clTcLZO},
}
Figure