White-Box Adversarial Streaming Lower Bounds Beyond Two-Party Communication
Abstract
Streaming algorithms in adversarial settings have attracted considerable attention recently. We show that, in the white-box adversarial streaming model [1], the fundamental problem of estimating the moment to within any constant factor requires memory. In this model, the internal state of the (randomized) streaming algorithm is visible to an adversary, who can exploit this information when constructing subsequent stream updates. As a corollary, we also obtain a white-box lower bound for the well-studied problem of estimating the maximum matching size in graphs.
[1] proved that two-party white-box communication protocols can be derandomized. This allows them to prove deterministic communication lower bounds and automatically derive white-box (communication and streaming) lower bounds. However, such two-party lower bounds can only rule out approximation of the moment within a specific constant factor. Ruling out approximation within any constant factor typically requires proving a lower bound for a multi-party communication problem.
We show that white-box communication protocols involving any number of parties can be derandomized, provided they compute a total function. However, this derandomization fails entirely when extended to partial functions and, consequently, to approximation problems. We are therefore compelled to prove our moment estimation lower bound for the white-box model directly. Our proof introduces a novel hybrid technique that, instead of taking hybrids over input distributions, constructs hybrids over white-box adversaries.
Keywords and phrases:
White-box streaming, moment estimation, hybrid argumentCategory:
Track A: Algorithms, Complexity and GamesFunding:
Klim Efremenko: Supported by the Israel Science Foundation (ISF) through grant No. 1456/18 and European Research Council Grant number: 949707.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Streaming, sublinear and near linear time algorithmsEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The classical streaming model.
In the classical streaming model, an algorithm receives a sequence of elements , one at a time, and needs to output a value that depends on the stream while using limited memory. The output should be correct (with high probability) for any possible input stream. For example, the elements might represent entries in a database, and the algorithm may be tasked with estimating the number of distinct elements. The estimation must be correct for any content of the database and any order in which the entries appear.
Although this model requires the algorithm to work for worst-case input streams, potentially chosen by an adversary, it assumes that the entire stream is fixed in advance and that the adversary is oblivious to the algorithm’s internal state, including its memory contents and random coins. For deterministic algorithms, this restriction is inconsequential, since the algorithm’s behavior is entirely determined by the input stream. However, most useful streaming algorithms are randomized, and their internal state depends on both the input stream and the random coins used during execution.
Therefore, the classical assumption that the adversary cannot observe the algorithm’s internal state effectively requires the input stream to be independent of the algorithm’s randomness. This assumption has been challenged by many recent works that considered stronger adversaries capable of generating the input stream adaptively, based on (partial) knowledge of the algorithm’s internal state.
The white-box streaming model.
The white-box streaming model, introduced by [1], considers adversaries that see the full internal state of the streaming algorithm throughout its execution. Specifically, a white-box adversary can observe all previously used random coins (and, consequently, also the algorithm’s memory contents) and may use this information to decide on the next stream element.
Formally, let be a streaming algorithm. At time , a white-box adversary generates the element based on the prior stream elements and the previously sampled random strings . The algorithm then draws fresh randomness and updates its internal memory using , , and its current memory contents111In the original formulation by [1], the stream may consist of both insertions and deletions and the algorithm is required to output the current value of the function or relation after each update. In this work, we focus on the insertion-only setting where the output is only produced at the end. This only makes our lower bounds stronger.. For , we say that solves or computes a relation with probability , if, for every white-box adversary, the algorithm’s final output is correct with probability at least , over both the adversary’s choices and the algorithm’s randomness222If the success probability is omitted, we take ..
The white-box streaming model has analogues in several other areas. In the study of dynamic data structures, recent work has considered adversaries that generate updates adaptively after observing the full contents of the data structure. Similarly, in machine learning, many recent efforts aim to design algorithms that are robust to adversarial white-box attacks, where attackers have full access to the model’s parameters, architecture, or training model. In the context of persistent data structures, which are commonly used to enable efficient access to historical versions of shared data in collaborative environments, users often interact with exposed versioning mechanisms, allowing updates to depend on prior versions. For a more comprehensive survey of white-box models across different domains, see [1, 11].
The study of the white-box streaming model is motivated by several factors. First, algorithms may not have access to a securely private source of randomness, or they may run on remote machines where memory privacy cannot be guaranteed. Second, as with other public-coin algorithms (e.g., public-coin interactive proofs), white-box algorithms support public verifiability. For example, if the algorithm publishes its internal state and uses a trusted, publicly available source of randomness, users contributing elements to the data stream can verify that the computations involving their data were performed correctly. A third motivation, highlighted by [1, 11], is that the white-box model captures scenarios where a centralized server distributes an initial state (e.g., random bits or parameters) to a network of remote users. These users may then generate their data based on this shared state and send it back to the server, for example, for aggregate statistical analysis.
Moment estimation.
Frequency moment estimation is among the most extensively studied problems in classical streaming algorithms, dating back to the seminal work of [2]. Given a stream , let denote the number of occurrences (frequency) of element in the stream. The -th frequency moment is defined as
Estimating has a wide range of applications, including efficient approximation of statistical properties, data summarization, and anomaly detection in high-throughput data environments such as those arising in computer network monitoring and security, sensor networks, social platforms, financial systems, and real-time analytics.
Elegant, randomized, streaming algorithms for -approximation of are known for any constant and any . When , only bits of memory are needed [2, 16]. For , the space complexity of estimating is [4, 17]. In contrast, for any , it is known that deterministic algorithms require memory to achieve any constant-factor approximation [7].
The gap between the memory requirements of randomized and deterministic algorithms, combined with the fact that white-box algorithms lie somewhere in between, raises the question: Can still be approximated using sublinear memory in the white-box streaming model for constant ?
The many randomized streaming algorithms for moment estimation rely on a diverse set of algorithmic techniques or “tricks”, each leveraging randomness in a different way. Designing white-box adversaries to break these algorithms may seem to require custom strategies.
For example, , the number of distinct elements, can be estimated using hash functions, e.g., [12, 2]. Intuitively, the algorithm hashes each stream element and maintains the minimum hash value. The smaller this hash value, the greater the estimated number of distinct elements. Observe that a white-box adversary can fail this algorithm by repeatedly feeding it with the same that has the minimum hash value under the algorithm’s chosen hash function.
Another technique for estimating relies on sub-sampling, e.g., [8]. Intuitively, the algorithm maintains a dynamic set, initially empty. Upon receiving an element , if is already in the set, it is removed; otherwise, it is (re-)inserted with a fixed probability . A larger final set size corresponds to a higher estimate of the number of distinct elements. To break this algorithm, a white-box adversary can repeatedly insert a single value into the stream until the algorithm removes it from the set, then do the same with another element , and so on, ensuring the set remains empty.
For general estimation with , [2] introduced an algorithm that selects a random element from the stream and estimates by counting the number of times this element appears in the remainder of the stream. The higher this count, the higher the estimated . To break the algorithm, a white-box adversary can repeatedly insert a single element until it is selected. Then, the adversary only inserts a different element , ensuring a zero count for the selected element .
1.1 Our Results
Lower bound for white-box moment estimation.
Are any of the clever tricks used by randomized moment estimation streaming algorithms resilient to all white-box adversaries? Theorem 1 answers this question in the negative, proving that no white-box streaming algorithm using memory can achieve any constant-factor approximation for any .
Theorem 1.
For , , and , any white-box streaming algorithm that -approximates on with constant success probability greater than , requires memory.333The notation and suppress constants in , the asymptotic is in and . The term is relevant only for large super-constant .
We note that for every and , the lower bound in Theorem 1 matches the known deterministic lower bound for estimation [7]. For and any , it also matches the deterministic upper bound [7]444[7] shows that for every , there exists a deterministic streaming algorithm that -approximates over streams on , using memory (for streams of length )..
We also note that a lower bound for white-box estimation with weaker guarantees was previously shown by [1]. Specifically, they ruled out white-box algorithms using space for some constant , whereas our result rules out -space algorithms for any constant approximation factor , including arbitrarily large values. Moreover, our lower bound degrades gracefully for super-constant values of .
Lower bound for approximating the maximum matching size.
As a corollary of Theorem 1, we obtain a white-box space lower bound for -approximating the Maximum Matching Size (MMS). The bound follows by a direct, simple reduction from our lower bound.
Theorem 2.
For every and every , any white-box streaming algorithm that -approximates on undirected graphs on vertices with constant success probability greater than requires memory.
Quantitatively, Theorem 2 matches the best-known deterministic lower bound of [7]. A deterministic -approximation for MMS is straightforward with space: maintain a maximal matching and output its size. In contrast, it is still open whether randomized streaming algorithms can achieve any constant-factor approximation to MMS using sublinear space. Currently, even -space algorithms cannot be ruled out, for any .
For super-constant approximation factors, efficient randomized algorithms are known. In particular, when , a folklore approach uses only space (see, e.g., [3, 18]). In this regime, Theorem 2 gives an lower bound for white-box streaming algorithms, thus separating randomized and white-box space complexity for approximating MMS.
Derandomization of white-box algorithms for total functions.
To prove their inapproximability result for , [1] gave a general theorem showing that for any total function and any boolean (possibly partial) function , every randomized white-box two-party communication protocol555The white-box communication complexity of is the maximum communication per party of the best randomized, -party protocol for that is resilient to any white-box adversary. Such an adversary generates the input for party after observing the random strings of the previous parties. Upon receiving , the message from party , and a fresh random string, party sends a message to party . See Section 3.2. can be converted to a deterministic protocol with the same communication cost.
Informally, white-box two-party communication protocols correspond to streaming algorithms that are resilient against an adversary who adapts once at a fixed point during the stream. To complete their proof, they gave an deterministic communication lower bound for the two-party decision version of the problem.
While many classical streaming lower bounds are derived via reductions from two-party communication problems, such reductions often fall short for approximation tasks. For example, in the case of distinct elements, Alice and Bob can individually count the number of distinct elements in their respective inputs and simply add the counts. This yields a 2-approximation with little communication. Similarly, for sufficiently large , a lower bound for -approximation of cannot be derived from a two-party communication lower bound.
[1] also shows that their argument cannot be extended to general -party communication problems. In contrast, our next theorem proved in Section 5 shows that for protocols computing total functions with any number of parties, such a derandomization is possible. Informally, this means that any deterministic streaming memory lower bound for a total function also holds in the white-box streaming model.
Theorem 3.
For and a total function (not necessarily boolean), if there is a white-box communication protocol that solves with probability better than , then there is also a one-way deterministic communication protocol that solves with the same communication.
Separating white-box from deterministic streaming.
Theorems 1 and 3, along with the derandomization result of [1], indicate that for many streaming problems, the white-box and deterministic memory requirements are effectively the same. Additionally, the best known separations between the two models are quantitatively small (at least for streams of polynomial length). For example, [1] show that the deterministic space complexity of the approximate counting problem is , whereas the Morris counter algorithm, which uses only space, can be implemented in the white-box setting666We note that in models with computationally bounded adversaries, significantly larger separations have been shown under cryptographic assumptions [1, 11]. However, in this work, we focus on the information-theoretic notion of white-box adversaries..
Can white-box streaming algorithms use substantially less memory than deterministic ones? Theorem 3 rules out such separations for total functions. However, our next theorem proved in Section 6 shows that large separations do exist for (boolean) partial functions777Such separations are trivially possible for sampling problems. For instance, outputting a random bit or a random element from the stream can be done with space by a white-box algorithm, but makes little sense for deterministic streaming algorithms..
Theorem 4.
There is a boolean partial function for which there exists a white-box streaming algorithm that computes it using memory, while any deterministic algorithm that computes it uses memory.
At a high level, the partial function used in the proof of Theorem 4 forces the adversary to “commit” to part of the stream by imposing a promise that couples the prefix and the suffix of the stream. Consequently, even if the adversary can identify future stream updates that would cause the algorithm to fail, it cannot introduce them without violating the promise.
1.2 Additional Related Work
Several alternatives to the classical streaming model have recently received significant attention. One such extensively studied model, that is closely related to the white-box streaming model, is the adversarially robust streaming model [6, 5]. In this model, the streaming algorithm must respond to a query after each update (insertion or deletion), and the adversary may select the next update based on the algorithm’s response. For example, to -approximate , the algorithm must, after each update, output (with high probability) an -approximation of the number of distinct elements seen so far. The adversary can then use this information to adaptively determine the next update.
Clearly, any algorithm that works in the white-box streaming model also works in the adversarially robust model. The robust model can be viewed as a “black-box” adversarial streaming model, since the adversary does not have access to the algorithm’s internal state, only to the outputs it reveals through queries.
In contrast to our Theorem 1, which shows that for any constant , memory is required to -approximate in the white-box insertion-only model, [5] design algorithms that use sublinear space for the same task in the adversarially robust insertion-only model. The memory requirements of their algorithms match those of classical randomized algorithms for estimation (up to logarithmic factors). These algorithms work by changing their responses to queries only a small number of times, thereby revealing only a limited amount of their randomness. However, they fail entirely if the adversary is given access to the full internal state of the algorithm.
A major open problem posed by [5] is to determine the space complexity of adversarially robust -estimation in the turnstile streaming model. A recent result by [15] makes substantial progress by ruling out linear sketches. Note that since the white-box lower bound in Theorem 1 is proved for insertion-only streams, it also applies to the white-box turnstile model.
The white-box streaming model, introduced by [1], captures a richer class of adversarial scenarios. As discussed above, [1] prove lower bounds for this model that are derived from deterministic two-party communication lower bounds. On the algorithmic side, the significant power granted to adversaries in the white-box model has led most research to focus on settings where adversaries are computationally bounded, often under cryptographic assumptions. Surprisingly, despite the fact that streaming algorithms in the white-box model lack even a secret key, [1, 11] were able to leverage cryptographic tools to design space-efficient algorithms for a range of classical problems, including -heavy hitters, turnstile estimation, the rank decision problem, string pattern matching, sparse vector recovery, low-rank matrix and tensor recovery, and low-rank plus sparse matrix recovery.
A very recent work of [14] gives an almost-optimal lower bound on the white-box streaming space complexity of the Longest Increasing Subsequence (LIS) problem. Although near-tight deterministic lower bounds for LIS have been known for decades [13, 10], no superlogarithmic randomized streaming lower bound space is currently known.
Like the white-box streaming model, the pan-private streaming model [9, 19], also considers settings where the internal state of the streaming algorithm may be exposed. However, the two models differ in their objectives. The white-box model focuses on ensuring correctness in the face of adaptive adversaries, whereas the pan-private model is concerned with privacy. In the pan-private setting, stream elements typically represent sensitive individual data (e.g., financial or medical records), and the goal is to ensure that even if the internal state of the algorithm is compromised, the privacy of each individual’s data remains protected.
2 Proof Overview
2.1 Lower Bound for Moment Estimation
We overview the proof of Theorem 1 in this section. For simplicity sake, we restrict our attention to the case of , where the moment is simply the number of distinct elements in the stream and thus, estimating the moment is the same as estimating the number of distinct elements. Essentially the same ideas also extend to other values of , as streams with few distinct elements will have a lot of repetitions and therefore, a very different moment than streams that have a lot of distinct elements.
As is standard, we prove the desired white-box streaming lower bound by proving a corresponding communication lower bound. For our result, we consider a -party communication problem, called the Set Union () problem, where all the parties gets as input a set of size from a universe of size . The goal is to distinguish between the (“YES”) case where the sets received by all the parties are the same implying that the size of the union of all the sets is small and the (“NO”) case where the sets received by all the parties are (very) different implying that the size of the union of all the sets is large. As the size of the union is just the number of distinct elements, a lower bound for the Set Union problem also implies a lower bound for the problem of estimating the number of distinct elements.
In terms of parameters, we require that in the NO case, the size of the union of all the sets is at least , that is, on average every set other than contributes at least fresh elements to the union. As the size of the union in the YES case is , showing that the YES and the NO cases are indistinguishable rules out the possibility of approximating the distinct elements to within a factor . As can be arbitrarily large, we have the desired result. We mention that the approximation factor we obtain for the -party problem is tight up to constant factors. Indeed, it is easy to see that the size of the union lies in the interval implying that a -approximation is trivial. This also establishes that it is impossible to obtain Theorem 1 via two-party techniques (even for ).
We show that a white-box communication protocol with communication cannot distinguish between the YES case and the NO case of the Set Union problem. This is tight up to constant factors because of a simple protocol where the first party simply sends and all the other parties check if their sets are the same as or not.
White-box adversaries and a hybrid argument.
We start by recalling the white-box communication model. In this model, the input of the first party is chosen by a (possibly randomized) adversary. Then, this party uses its own private randomness to compute a message to send to the second party. The adversary then sees this randomness and chooses an input for the second party who can use it to compute a message using its own randomness. This continues till party computes a message that is either YES or NO, which constitutes the output of the protocol.
Note that, in the YES case of Set Union, all the adversary can do is to choose the input as the other inputs are promised to be the same. We call the set of all such adversaries . On the other hand, in the NO case, the adversary can choose any sets as long as the promise of a large union is satisfied. We call the set of all such adversaries . If there exists a white-box protocol that distinguishes the YES case from the NO case, then should output YES with high probability in the presence of any adversary from and should output NO with high probability in the presence of any adversary from . In other words, if denotes the probability that outputs YES in the presence of adversary , the desired lower bound follows if we show that for any protocol where every party sends bits, it holds that (the first in this expression can be replaced by a . However, our proof establishes a stronger statement so we retain the ):
| (1) |
To show this statement, we use the hybrid technique. Instead of arguing about adversaries from and , we construct intermediate “hybrid” adversaries , for all , and show that the difference between consecutive hybrids is at most , that is, we have:
| (2) |
By summing this result for all , we have the desired lower bound. Roughly speaking, the set is the set of adversaries that behave like an adversary from for the first parties and an adversary from for the last parties. That is, any adversary in the set ensures that the input sets received by the first parties are always the same while the sets received by the last parties can be different but they satisfy the promise so that each such set adds fresh elements to the union on average.
On hybrid mismatch.
Before showing that the difference of outputting YES between pairs of consecutive hybrids is small, we note a subtle point about the versus issue mentioned above. For the purposes of our lower bound it suffices to show that Equation 1 with the in the first term replaced by a as a correct protocol should output YES with high probability for any adversary from the set . In terms of the proof, this means that while it suffices to show that some adversary in is close to an adversary in , we actually show that all adversaries in are close to an adversary in .
This difference turns out to be crucial for the hybrid argument to work. Indeed, suppose all we know is that some adversary in is close to an adversary in and some adversary in is close to an adversary in and so on, then there is no way to conclude anything about the difference between and from just these claims. This is because the adversary in that is close to could be completely unrelated to the adversary in that is close to . On the other hand, we have this claims about all adversaries, then it is straightforward to combine them and obtain a claim about closeness between and . Put differently, the reason for proving Equation 1 with a instead of is to avoid a mismatch in the adversaries considered in different pairs of consecutive hybrids.
Showing consecutive hybrids are indistinguishable.
It now boils down to showing that for protocols with -communication, any pair and of consecutive hybrids satisfies Equation 2. For this, note that both hybrids and have the property that the input to the first parties is the same. Thus, for adversaries from both these hybrids, party knows that the input of any party before it matches his own, and can simulate their behavior. In turn, we can conclude that the first parties do not need to send anything, which effectively means we can ignore these parties in our analysis. This means that the proof for the case , when no parties can be ignored, will also extend to all other , and we can focus solely on this case.
To this end, fix an protocol with communication and look at Equation 2 for . One of the main ingredients in our proof is that it is always possible to derandomize the first party. Indeed, note that if the first party uses randomness to compute its message it can go over all possible random strings and optimize to see which one performs the best over all the possible choices the adversary has for the future parties. The reason this is only true for the first party (and does not imply that the whole protocol can be derandomized which would have contradicted Theorem 4) is that the remaining parties do not know what inputs were given to the parties before them. All they see is the message they received which may not reveal the inputs entirely. Thus, they have no way of knowing the set of all possible choices the adversary has for the parties after them making it impossible to perform the optimization above.
Overall, we are now in situation where the first party is deterministic. Now, for each possible input for the first party, let be the message the first party sends to the second party. Note that the fact the has low communication implies that the message is the same for many different inputs for the first party. Let be the set of all such inputs and consider what happens when the input to first party is replaced by a random input that may or may not be the same as . With this modified input, if it is the case that the set of inputs to the parties satisfies the promise for , then the fact that the message is the same for both and implies that the protocol does not distinguish well between and . Thus, it suffices to show that with high probability, a uniformly random input satisfies the promise for .
For this, recall that and note that the promise for requires that , where we define for notational convenience. As any adversary in requires that and we have the promise for , we have that . Thus, the only way the promise is violated is when . To finish, we use the fact that is sampled from a large set to get that the probability of this happening, even when conditioned on a given value of that is determined by the parties’ and the adversary’s future randomness independently of the choice of , is very small, and in particular, is , as required for Equation 2.
2.2 Derandomization for Total Functions
We overview the proof of Theorem 3 in this section, focusing on the case , which can be easily generalized to any . Fix a 3-party white-box communication protocol that computes a total function . As mentioned in Section 2.1, the first party can easily be derandomized. Let denote the maximum success probability of in computing , given that the first party’s input is and its random string is . In our derandomized protocol, like in the derandomized protocol of [1], the first party fixes its random string to the string that maximizes .
Crucially, the first party can compute by enumerating all possible white-box adversaries , calculating the success probability of against each conditioned on and , and taking the minimum. To compute the success probability against a fixed , the first party iterates over all random strings for the second and third parties, simulates , and compares the output to the correct value of .
Like the first party, to derandomize its strategy, the second party aims to fix its randomness to the string that maximizes , the protocol’s success probability given inputs , and the random string for the second party (note that the first party is now deterministic). However, the second party does not know ; it only observes the message sent by the first party.
The key observation is that if computes a total function, then for every , , as long as on input the first party also sends the message . Since for a fixed , gives the same output on inputs and , and since , we get that the value of only depends on the message , and not on the specific value of . Therefore, the second party can compute this value using any input consistent with the received message , instead of .
We note that this argument does not extend to partial functions, since when computing , the second party must only consider adversaries that generate inputs satisfying the promise of . For example, suppose the promise of requires that . If the second party substitutes the actual with some when simulating such an adversary, then the third party receives , which differs from the true input held by the first party. As a result, the generated input tuple is “inconsistent”, as it violates the promise of the function.
We note that in the proof of Theorem 1, we are able to avoid the consistency issue and successfully derandomize party by restricting our attention to adversaries that assign the same input to all of the first parties. As a result, since party knows its own input, it also knows the inputs of all earlier parties and therefore does not need to generate inputs for them.
Observe that this issue of consistency does not arise in the case of total functions, where all input combinations are valid by definition, so any choice of remains consistent with any .
In the case of two-party () partial functions, no consistency issues arise, as there is no third party involved, and therefore no risk of violating the promise. This fact makes the derandomization of [1] work. We note that their derandomization also requires to be boolean (if not a total function).
2.3 Separation of White-Box from Deterministic
Theorem 3 and the derandomization result of [1] leave open the possibility that partial functions or relations, , that are either boolean with or non-boolean with , might have white-box communication protocols that require significantly less memory than deterministic ones. Theorems 5 and 6 show that large separations are possible in both these cases. Note that Theorem 5 implies Theorem 4.
Theorem 5.
There is a boolean partial function , such that its white box -party communication complexity is , while its one-way deterministic communication complexity is , where is the length of the inputs. In fact, also has a -memory white-box streaming algorithm.
Roughly speaking, the inputs and to the partial function are vectors of length . It is promised that for at least of the indices . Additionally, for every index where , it is promised that . The goal is to distinguish between the following two cases: (i) For all indices where , we have ; or (ii) For all such indices , we have .
The following is a white box protocol for : The second party sends to the third party a set of random pairs (no message from the first party to the second). The pairs are selected using reservoir sampling, which, upon receiving , flips coins to decide whether to add to the set. Note that had the protocol decided ahead of time on this random set of indices, the white-box adversary could have made sure that for all ’s in the set. Next, the third party goes over all indices in the set, searching for one with . Such an index should exist with high probability, and if , the algorithm identifies case (i); otherwise, if , it identifies case (ii).
To complete the proof of Theorem 5, we show an lower bound on the memory required by any deterministic algorithm that solves . Observe that our derandomization argument from the proof of Theorem 3 fails when applied to the above white-box protocol for . This is because determines the set of indices where . Therefore, without knowing this set, the second party cannot generate an input such that and are consistent with the third party’s input .
Theorem 6.
There is a (non-boolean) relation , such that its white-box -party communication complexity is , while its one-way deterministic communication complexity is , where is the length of the inputs. In fact, also has a -memory white-box streaming algorithm.
Roughly speaking, the relation considers input vectors and with the same promise as in . The goal is to output a set of indices such that, for at least one of them, .
A white-box protocol for simply has the second party output a uniformly random set of coordinates (note that there is no communication between the parties). An deterministic lower bound for is derived from that of .
3 Model and Preliminaries
3.1 Notation
For integers , denotes , denotes , and represents the collection of all -subsets of . Throughout, logarithms are base-.
A total function is a function that is defined for every input in its domain, whereas a partial function may only be defined on a subset of the inputs.
3.2 White-Box Communication
The standard approach of proving streaming lower bounds is via communication complexity. So we define the following (one-way) white-box communication model. Let be a -party protocol and be an adversary. Initially, . At the -th step, the -th party computes based on , its input , and its (private) randomness 888The definition of the model can be modified to compute based on , and . This essentially corresponds to free access to a random oracle for streaming algorithms. Our lower bounds in this paper hold even against this strongest form of randomness. In particular, in the hybrid argument for proving Lemma 11, we partially derandomize a prefix of parties. This is essentially the same as revealing their randomness to all later parties., where is picked by the adversary (possibly randomly) based on . At the end, the -th party outputs .
Let be a relation. The success probability of in solving against is defined to be , where the probability is over both and the randomness of , and are the input generated by on those randomness. Also define the communication complexity of to be the maximum length of over all and all possible inputs . Note that the communication complexity is defined to be the maximum per-party communication due to the following connection between streaming and communication.
Observation 7.
For any relation , if there is a white-box streaming algorithm that solves with space , then there is also a white-box communication protocol (for any number of parties) that solves with the same probability and communication .
4 Lower Bound for Moment Estimation
In this section, we prove Theorem 1, a white-box streaming lower bound for the moment estimation problem, defined as follows: Given a vector , we denote by the frequency (number of appearances) of element in . The -th moment of is defined as . For , an (insertion-only) streaming algorithm -approximates on with probability , if given a stream of elements , with , the algorithm outputs a number such that , with probability at least .
To prove Theorem 1, in Section 4.1, we introduce a -party promise problem in the white-box communication model. A proof of the lower bound for is presented in Section 4.2.
4.1 -Party Promise Problem
Definition 8 (Set Union).
For and , each party has . needs to distinguish between the following two cases:
- (YES)
-
, or equivalently ;
- (NO)
-
.
We remark that is similar to the communication problem used by [7], but our proof approach is quite different and tailored to white-box communication. To see the connection between and -approximate moment estimation, we have the following reductions.
Lemma 9.
For and , if there is a white-box streaming algorithm that solves -approximate moment estimation on with space , then there is also a white-box communication protocol that solves with the same probability and communication , where .
Proof.
In the YES case of , the frequency vector has exactly coordinates of value and all other coordinates are zero. Its -th moment is always . On the other hand, the frequency vector has at least nonzero coordinates in the NO case. So the -th moment is larger than . By Observation 7, a white-box streaming algorithm for -approximate moment estimation implies a white-box communication protocol for so long as . This is satisfied by the given parameters999The reduction actually works for any value of . is needed only to satisfy the condition of Lemma 11. The same holds for Lemma 10..
Lemma 10.
For and , if there is a white-box streaming algorithm that solves -approximate moment estimation on with space , then there is also a white-box communication protocol that solves with the same probability and communication , where .
Proof.
In the YES case of , the frequency vector has exactly coordinates of value and all other coordinates are zero. Its -th moment is always . On the other hand, the frequency vector has at least nonzero coordinates in the NO case. Meanwhile, all the coordinates sum up to and each coordinate is in because each element appears at most once in the input of each party. Note that for . It implies that the maximum possible value of the -th moment is obtained when each nonzero coordinate is either or . As the number of coordinates with value is less than due to , the -th moment is upper bounded by . By Observation 7, a white-box streaming algorithm for -approximate moment estimation implies a white-box communication protocol for so long as . This is satisfied by the given parameters.
Now, we are ready to prove Theorem 1, assuming the following lower bound for .
Lemma 11.
For and such that , any white-box communication protocol that solves with constant probability better than , requires communication.
Proof of Theorem 1.
Suppose there is a white-box streaming algorithm for -approximate moment estimation on with space and constant probability better than . By Lemmas 9 and 10, there is also a white-box communication protocol for with communication and the same probability, where . Lemma 11 then implies that . Plugging in concludes the proof.
4.2 Proof of Lemma 11
This section constitutes a proof of Lemma 11. We first define the following sets of adversaries . For , an adversary is in if for any protocol, the generated input satisfies all requirements below.
-
1.
.
-
2.
.
-
3.
is uniformly random over .
Intuitively, adversaries in generate input such that the first parties get a (partial) YES case while the last parties get a (partial) NO case. We say the input is of type if the first two requirements above are satisfied.
For protocol and adversary , let denote the probability of outputting YES against (over the randomness of both and )101010Although is a promise problem, any protocol for it can be arbitrarily extended to also output YES/NO on input not in YES/NO cases.. Also let for . Fix a protocol with communication and probability . For any adversary , it only generates type- inputs, which are always in the YES case by Definition 8, so . This further implies . Similarly, we have . Consider the maximization over all protocols with (per-party) communication at most . Altogether, this means .
On the other hand, however, we show that if . This is a contradiction, hence proving Lemma 11. To this end, it is sufficient to show that for all , where the maximization is over all protocols with communication at most .
Fix from now on. Let . Let be a protocol with communication at most such that . Observe that and only involve adversaries in and , who only generate type- and type- inputs. Therefore, each of the first parties of knows that . In this case, the -th party can simulate the first parties and compute by itself the same message it would have in .
Let be the protocol obtained from by replacing the messages of the first parties by the empty message and having the -th party simulate the first parties to compute . So we have . Now, for any possible randomness for the -th party, let be the protocol obtained from by fixing the randomness of the -th party to . We select to be for the that maximizes . We next show that . As shown above, since we are considering only and , we always that , and thus it suffices for the adversary to only select inputs for parties . Indeed, we have
So we get that , as claimed.
Let be an adversary in such that . It suffices to construct another adversary such that . Let be the function computed by the -th party in 111111 depends solely on , but not , because the first parties do no computation and the -th party is deterministic.. Consider the adversary , who generates input as follows:
-
1.
Let be generated by . Sample uniformly at random from . For the first parties, generate .
-
2.
For , let be generated by , who pretends that for , the -th party gets as input121212In particular, this means .. If , then generate for the -th party. Otherwise, for all parties , generate that is disjoint from .
Remark 12.
Informally, faithfully simulates except that:
-
1.
It re-samples a uniformly random conditioned on .
-
2.
Once , it disregards and generates disjoint sets for all remaining parties. This is well-defined because .
We first claim . The first requirement is satisfied because and . For the second requirement, let be the largest index such that during the execution131313This is well defined because the inequality is always satisfied by index .. By Item 2 of Remark 12, we have
So always generates type- input. Regarding the third requirement, as is uniformly random over due to , the probability of generating any is
Therefore, .
Finally, we conclude the proof of Lemma 11 by showing . Observe that by Item 1 of Remark 12, the resampling of ensures that remains the same. As a result, if this were the only deviation from , i.e., for all , the joint distribution of for was exactly the same as if were executed against . In particular, this means that the probability of outputting YES would be . In the actual execution of against , this probability is lowered only in the case for some , which also implies . Note that as always generates type- input. Combining the two inequalities, we get , where . Let . Altogether, we have
| (as is uniformly random in ) | |||
| (as is uniformly random in and independent of given ) | |||
| (enumerating over ) | |||
| (as has communication at most ) | |||
| (as ) | |||
| (as ) | |||
| (as ) | |||
| (as ) |
as claimed.
4.3 Proof of Theorem 2
This section proves Theorem 2, a white-box streaming space lower bound for estimating MMS. Fix . An (insertion-only) streaming algorithm is said to -approximate MMS with success probability if, on any stream of undirected edges , it outputs a value satisfying with probability at least , where denotes the size of a maximum matching in the graph with edge set .
Proof of Theorem 2.
We show any white-box streaming algorithm that -approximates MMS with space and success probability , implies a white-box algorithm that -approximates on with space and success probability , where is the length of the stream. The algorithm works by feeding edges of a bipartite graph , with and (assume that is known to in advance), constructed as follows: maintains a counter , initialized to . Upon receiving an item , it increments and feeds the edge to . At the end of the stream, outputs the estimate produced by multiplied by .
Below we prove that for any stream for (possibly obtained by a white-box adversary), the maximum matching size in the graph , fed to by , equals the number of distinct elements in , i.e., . Additionally, every white-box adversary for induces an adversary for : if, in time , the adversary inserts the element to the stream , the adversary inserts the edge . Since is a white-box algorithm that -approximates with probability , with probability at least , it outputs an -approximation of . Since , this output, multiplied by , is an -approximation of . We got that, for every white-box adversary , the algorithm outputs an -approximation of with probability , and therefore is a white-box algorithm for -approximation of with probability .
In terms of space, aside from the working memory of , the algorithm only stores the counter , which requires bits. Hence the total memory used by is at most . Observe that in the hard instances used to prove Theorem 1, the stream length satisfies and the lower bound follows even if the algorithm knows . Therefore, by Theorem 1, every white-box streaming algorithm that -approximates on streams of length over the universe with probability must use memory. Since uses at most memory for streams of length and succeeds with probability , we conclude that if , then , as claimed by the theorem.
To conclude the proof, it remains to show that for every stream , the graph obtained from it satisfies, . First, let be any matching in , and define Since is a matching, each left vertex is incident to at most one edge of , hence the mapping is injective on and therefore . Moreover, if then by construction , so every appears in , implying . Hence , and taking the maximum over matching gives .
Conversely, let be the set of distinct elements appearing in , so . For each , choose an (arbitrary) index such that ; then . The set is a matching: the vertices correspond to different left vertices, therefore cannot be matched with the same right vertex. The reason is that each right vertex is incident to at most one edge in (this edge connects it to the stream element at time ). Since , we get that . Combining the two inequalities yields , and the claim of the theorem follows.
5 Derandomization for Total Functions
This section constitutes a proof of Theorem 3, showing that every white-box communication protocol that computes a total function can be derandomized. Let , be sets, and be a total function. Fix a white-box communication protocol with probability better than . The proof is by induction on the parties. Suppose the first parties are deterministic, which holds vacuously for . Let be the (deterministic) function jointly computed by the first parties. Also let . The -th party is derandomized as follows.
-
1.
Pick an arbitrary .
-
2.
Pick the best that maximizes the probability of (against the worst adversary), pretending that for , the -th party gets as input. This is done by, for all possible and adversary , computing the success probability of , conditioned on , against . This is well-defined because it can compute the success probability of exactly given the input of the first parties.
To show the correctness of the above derandomization, we first claim that the choice of is irrelevant in the sense that always evaluates to the same value.
Claim 13.
For , and for , it holds that .
Proof.
Consider two adversaries and that always generate and , respectively. As the first parties are deterministic, always computes against either or . Furthermore, since both and always generate for the remaining parties, the output distribution of must be the same in two cases. Also note that outputs with probability more than against while outputting with probability more than against . This is possible only if .
Note that the assumption of the function being total is crucial as otherwise, may not be compatible with . As a corollary of Claim 13, conditioned on , the success probability of is independent of both the actual input for the first parties and the choice of made by the -th party.
By arbitrarily fixing , the -th party can then pick the best to maximize the probability of . Thus, this derandomization step never decreases the probability of by an averaging argument141414This is specific to the white-box setting. In the white-box setting, the adversary picks the input of the next party only after seeing the randomness of the current party. So the success probability can be viewed as an expectation, over , of a minimization, over , of the conditional success probability. Thus, picking the best is possible. In standard randomized setting, however, the entire input is fixed at the beginning. So it is not always possible to pick a single best for all possible inputs.. After derandomizing all parties, we get a deterministic protocol that outputs correctly against all possible adversaries, implying that it must be correct on all possible inputs. This concludes the proof of Theorem 3 as our derandomization step does not increase communication.
6 Separation of White-Box from Deterministic
We use defined in the following. Section 6.1 proves the optimal separation for -party boolean partial functions, using with constant , as claimed in Theorem 5.
Definition 14 (Equal Not Equal).
For , , and , , , let . Define to be
A similar separation is shown in the -party setting for relations in general, as claimed in Theorem 6. We use defined as follows. In Section 6.2, we derive the separation for as a corollary of the separation for .
Definition 15.
For , , and , let . A set of size at most is in the correct set of outputs for the instance if and only if or .
6.1 -Party Boolean Partial Functions
The following lemma shows can be efficiently computed by sampling in white-box streaming, and therefore also by a short -party communication protocol.
Lemma 16.
For and , there is a white-box streaming algorithm that solves with high probability in space .
Proof.
The algorithm works as follows.
-
1.
Ignore all .
-
2.
Independently sample and store each with probability .
-
3.
Upon the first such that and is stored, output .
Let be generated by an arbitrary adversary. By Definition 14, for all . Also note that for any with , we know . So the algorithm never outputs incorrectly.
It now remains to bound the probability of the algorithm failing to output. Since , by Chernoff bound151515Note that the existence of the adversary does not invalidate Chernoff bound. This is because the adversary has to generate the input first, determining whether or not , and only after that will the algorithm sample. Formally, we can still define independent events denoting if the -th smallest index in is sampled. All these events are also independent of the adversary., at least one for is stored with high probability. If so, upon for the first such , the algorithm always outputs correctly.
Finally, again by Chernoff bound, the total number of stored by the algorithm is with high probability. This concludes the proof as each takes space.
In the rest of this section, we prove the deterministic lower bound for the corresponding -party communication problem, where Alice has , Bob has , and Charlie has .
First consider the following gap version of -party set disjointness.
Definition 17.
For and , Alice has and Bob has . needs to decide if or .
Lemma 18.
For and , any deterministic communication protocol (not necessarily one-way) for requires communication.
Proof.
The proof constructs a fooling set by probabilistic method. Consider a set of uniformly randomly sampled , where independently includes with probability . For each and of the set, and with probability by Chernoff bound. On the other hand, always holds. By union bound, a sampled set of size is a fooling set with nonzero probability. Thus, there is a fooling set of size , concluding the proof.
Using Lemma 18, we prove a lower bound for the following -party communication problem , which essentially reformulates the -party communication problem corresponding to . Indeed, Alice arbitrarily sets such that if and only if . Meanwhile, Bob sets such that if and otherwise. Similarly, Charlie sets such that if and otherwise. It can be verified that the conditions and values of and are equivalent. For conciseness, we work with in the following.
Definition 19.
For and , Alice has , Bob has satisfying and function , and Charlie has and function . needs to decide if for all , or for all .
Lemma 20.
There exist constants and such that any one-way deterministic communication protocol for requires communication.
Let the constants be determined later. Suppose for the sake of contradiction that there is a one-way deterministic communication protocol for with communication . Let and be the messages sent by Alice and Bob, respectively. Also let be the collection of on which Alice sends . Intuitively, without Alice sending a significant portion of , Bob cannot even find any item in . This is formalized by the following claim.
Claim 21.
For , there exist and such that for all subset of size at most , for some .
Proof.
Fix . Suppose for the sake of contradiction that for all and , there exists subset of size at most which satisfies for any . Consider the following protocol (partially) simulating .
-
1.
Based on , Alice sends to Bob.
-
2.
Based on , Bob sends to Alice.
-
3.
Alice outputs “” if and only if .
Observe that if indeed , then regardless of . Otherwise, since , our above assumption on implies . Therefore, is a deterministic communication protocol for with communication
where . However, this contradicts Lemma 18 for sufficiently small .
Let be the function computed by Bob. Building upon Claim 21, we next show that Charlie cannot output correctly without Bob finding items in .
Claim 22.
For fixed and , there exists and such that and .
Proof.
The proof is via probabilistic method. Consider a set of sampled uniformly at random. For each of the set, with probability by Chernoff bound. By union bound, there is a set of size such that every of the set satisfy . Furthermore, since for sufficiently large , there must be of the set satisfying as well.
Finally, we are ready to prove Lemma 20.
Proof of Lemma 20.
Arbitrarily fix . Let and be guaranteed by Claim 21. Also let and be guaranteed by Claim 22. Then we have that is a subset of and is of size at most . Claim 21 implies there exists such that . Define for all . Observe that for all because . In other words, must output differently on and . However, Alice sends in both cases, and Bob sends in both cases by Claim 22. Consequently, Charlie cannot distinguish the two cases, contradicting the correctness of .
6.2 -Party Relations
Note that a similar argument to Lemma 16 shows can be efficiently solved by sampling in white-box streaming, and therefore also by a short -party communication protocol.
Lemma 23.
For and , there is a white-box streaming algorithm for with high probability and space .
Next, we show a deterministic lower bound for the -party communication problem corresponding to , which is reformulated as .
Definition 24.
For and , Alice has and Bob has . needs to return of size at most such that or .
Lemma 25.
There exists constant such that any one-way deterministic communication protocol for requires communication.
Proof.
Suppose for the sake of contradiction that there is a protocol for with communication. For any , a protocol for can be constructed by Alice and Bob simulating , and Bob sending to Charlie for all , which is sufficient for Charlie to decide. The communication of is as the size of is at most . This contradicts Lemma 20.
References
- [1] Miklós Ajtai, Vladimir Braverman, T. S. Jayram, Sandeep Silwal, Alec Sun, David P. Woodruff, and Samson Zhou. The white-box adversarial data stream model. In International Conference on Management of Data (PODS), pages 15–27, 2022. doi:10.1145/3517804.3526228.
- [2] Noga Alon, Yossi Matias, and Mario Szegedy. The space complexity of approximating the frequency moments. Journal of Computer and System Sciences, 58(1):137–147, 1999. doi:10.1006/jcss.1997.1545.
- [3] Sepehr Assadi, Sanjeev Khanna, and Yang Li. On estimating maximum matching size in graph streams. In Philip N. Klein, editor, Symposium on Discrete Algorithms (SODA), pages 1723–1742, 2017. doi:10.1137/1.9781611974782.113.
- [4] Ziv Bar-Yossef, T. S. Jayram, Ravi Kumar, and D. Sivakumar. An information statistics approach to data stream and communication complexity. Journal of Computer and System Sciences, 68(4):702–732, 2004. doi:10.1016/j.jcss.2003.11.006.
- [5] Omri Ben-Eliezer, Rajesh Jayaram, David P. Woodruff, , and Eylon Yogev. A framework for adversarially robust streaming algorithms. Journal of the ACM, 69(2), 2022. doi:10.1145/3498334.
- [6] Omri Ben-Eliezer and Eylon Yogev. The adversarial robustness of sampling. In Symposium on Principlesvof Database Systems (PODS), pages 49–62, 2020. doi:10.1145/3375395.3387643.
- [7] Amit Chakrabarti and Sagar Kale. Strong fooling sets for multi-player communication with applications to deterministic estimation of stream statistics. In Symposium on Foundations of Computer Science (FOCS), pages 41–50, 2016. doi:10.1109/FOCS.2016.14.
- [8] Sourav Chakraborty, N. V. Vinodchandran, and Kuldeep S. Meel. Distinct Elements in Streams: An Algorithm for the (Text) Book. In European Symposium on Algorithms (ESA), pages 34:1–34:6, 2022. doi:10.4230/LIPIcs.ESA.2022.34.
- [9] Cynthia Dwork, Moni Naor, Toniann Pitassi, Guy N. Rothblum, and Sergey Yekhanin. Pan-private streaming algorithms. In Innovations in Computer Science (ICS), pages 66–80, 2010. URL: http://conference.iiis.tsinghua.edu.cn/ICS2010/content/papers/6.html.
- [10] Funda Ergün and Hossein Jowhari. On the monotonicity of a data stream. Comb., 35(6):641–653, 2015. doi:10.1007/s00493-014-3035-1.
- [11] Ying Feng and David P. Woodruff. Improved algorithms for white-box adversarial streams. In International Conference on Machine Learning (ICML), volume 202, pages 9962–9975, 2023. URL: https://proceedings.mlr.press/v202/feng23d.html.
- [12] Philippe Flajolet and G. Nigel Martin. Probabilistic counting algorithms for data base applications. Journal of Computer and System Sciences, 31(2):182–209, 1985. doi:10.1016/0022-0000(85)90041-8.
- [13] Anna Gál and Parikshit Gopalan. Lower bounds on streaming algorithms for approximating the length of the longest increasing subsequence. SIAM Journal on Computing, 39(8):3463–3479, 2010. doi:10.1137/090770801.
- [14] Anna Gál, Gillat Kol, Raghuvansh R. Saxena, and Huacheng Yu. Optimal white-box adversarial streaming lower bounds for approximating LIS length. In Shubhangi Saraf, editor, 17th Innovations in Theoretical Computer Science Conference, ITCS 2026, Bocconi University, Milan, Italy, January 27-30, 2026, volume 362 of LIPIcs, pages 64:1–64:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.ITCS.2026.64.
- [15] Elena Gribelyuk, Honghao Lin, David P. Woodruff, Huacheng Yu, and Samson Zhou. Lifting linear sketches: Optimal bounds and adversarial robustness. In Michal Koucký and Nikhil Bansal, editors, Symposium on Theory of Computing (STOC), pages 395–406, 2025. doi:10.1145/3717823.3718227.
- [16] Piotr Indyk. Stable distributions, pseudorandom generators, embeddings, and data stream computation. Journal of the ACM, 53(3):307–323, 2006. doi:10.1145/1147954.1147955.
- [17] Piotr Indyk and David P. Woodruff. Optimal approximations of the frequency moments of data streams. In Harold N. Gabow and Ronald Fagin, editors, Symposium on Theory of Computing (STOC), pages 202–208, 2005. doi:10.1145/1060590.1060621.
- [18] Michael Kapralov, Sanjeev Khanna, and Madhu Sudan. Approximating matching size from random streams. In Chandra Chekuri, editor, Symposium on Discrete Algorithms (SODA), pages 734–751, 2014. doi:10.1137/1.9781611973402.55.
- [19] Darakhshan J. Mir, S. Muthukrishnan, Aleksandar Nikolov, and Rebecca N. Wright. Pan-private algorithms via statistics on sketches. In Symposium on Principles of Database Systems (PODS), pages 37–48, 2011. doi:10.1145/1989284.1989290.
