Abstract
Traditional streaming algorithms assume an oblivious adversary or, at most, a black-box adaptive one. This paper introduces the white-box adversarial model, where an adaptive adversary observes the algorithm's entire internal state, including its randomness. We demonstrate that while standard sketches fail, randomized algorithms can remain robust by leveraging cryptographic assumptions or specific sampling techniques. We provide sublinear-space algorithms for $L_1$-heavy hitters and $L_0$ estimation, alongside lower bounds that establish a fundamental gap between computationally bounded and unbounded adversaries.
1. Introduction
In the standard theory of streaming algorithms, we typically operate under the "oblivious" assumption: the input sequence is fixed before the algorithm begins. Recent shifts toward "adversarial" streaming have introduced the black-box model, where the adversary chooses inputs based on the algorithm's previous outputs. However, real-world deployments—such as distributed systems or secure hardware—often face "white-box" threats. In a white-box setting, the adversary can inspect the algorithm’s memory, including its internal parameters and the outcomes of its random coin flips.
This transparency is devastating for classical randomized sketches. For instance, the Alon-Matias-Szegedy (AMS) sketch for $F_2$ estimation relies on a secret random sign vector. If an adversary knows this vector, they can easily construct a stream of elements that align perfectly with the signs, causing the estimate to grow quadratically rather than linearly, or conversely, to vanish. This paper investigates whether sublinear-space algorithms can exist when the "secret" randomness is no longer secret.
2. Regimes of Robustness
The authors categorize white-box robustness into two distinct regimes based on the adversary's power.
2.1 Information-Theoretic Robustness
For certain problems, it is possible to achieve robustness against an all-powerful (unbounded) adversary. The authors focus on $L_1$-heavy hitters, combining the deterministic Misra-Gries algorithm with Bernoulli sampling. A key challenge in the white-box setting is maintaining an accurate count of the stream length without allowing the adversary to manipulate the sampling rate. The authors prove that Morris counters—a staple of sublinear-space counting—are inherently white-box robust. By using these counters to estimate the stream length $m$, the algorithm can dynamically adjust its sampling probability, achieving a space complexity of $O(\frac{1}{\epsilon}(\log n + \log \frac{1}{\epsilon}) + \log \log m)$.
2.2 Computational Robustness
For more complex problems like $L_0$ (distinct elements) estimation, information-theoretic security is impossible in sublinear space. Here, the authors turn to cryptography, assuming the adversary is computationally bounded (e.g., restricted to polynomial time).
The core idea is to use primitives that are "hard" to exploit even if their parameters are known. Specifically, the authors employ:
- Collision-Resistant Hash Functions (CRHFs): These ensure that an adversary cannot efficiently find two different inputs that map to the same internal state, preventing the creation of "collisions" that would distort the sketch.
- Short Integer Solution (SIS): By basing sketching matrices on the SIS problem from lattice-based cryptography, the authors ensure that finding a vector in the kernel of the sketch (which would zero out the estimate) is as difficult as breaking standard cryptographic protocols.
3. Key Results and Complexity Bounds
The paper establishes several new bounds for white-box robust streaming:
- $L_1$-Heavy Hitters: The proposed algorithm outperforms the optimal deterministic Misra-Gries algorithm on long streams by utilizing the robust Morris counter framework.
- $L_0$ Estimation: The authors provide an algorithm that achieves an $n^\epsilon$ multiplicative approximation in $O(n^{1-\epsilon+c\epsilon})$ space against computationally bounded adversaries. This is a significant result, as $L_0$ estimation is impossible for deterministic algorithms in sublinear space.
- Moment Estimation ($F_p$): For $p \neq 1$, the authors prove a lower bound of $\Omega(n)$ space against unbounded white-box adversaries. This creates a sharp separation: while $F_p$ estimation is possible in polylogarithmic space in the oblivious model, it requires linear space in the white-box model unless the adversary is computationally restricted.
- String Matching: A robust algorithm for pattern matching is presented using only $O(\log T)$ bits, where $T$ represents the adversary's total runtime.
4. The "Timer" Paradox
A fascinating theoretical insight from the work is the role of temporal information. In deterministic approximate counting, one might assume that knowing the exact number of elements processed (a "timer") would assist the algorithm. However, the authors show that even with a timer, a deterministic algorithm requires $\Omega(\log n)$ bits for a constant-factor approximation. This highlights a fundamental gap between deterministic approaches and randomized ones (like Morris counters), even when the randomness is fully exposed.
5. Conclusion and Future Work
The white-box adversarial model represents a new frontier in streaming complexity. By bridging the gap between streaming and cryptography, this work shows that "exposed" randomness still provides a significant advantage over determinism, provided the adversary cannot solve hard lattice problems.
Future research remains to be done on whether these cryptographic techniques can be generalized to other linear algebraic problems or if tighter bounds can be found for the gap between black-box and white-box space requirements. The reliance on computational assumptions for $L_0$ and $F_p$ estimation suggests that the security of streaming sketches may eventually become as foundational to system design as the security of encryption itself.
Summary updated