Tight Bounds for Rank Estimation in Turnstile Streams
Yang S. Hu, Cheng Jiang, Yinchen Liu, Huacheng Yu
Key points
From the paper's conclusion- We study rank estimation in turnstile streams.
Abstract
We study rank estimation in turnstile streams. A frequency vector $f$ over the universe $[U]$ receives insertions and deletions. Given a query $x\in[U]$, the goal is to estimate the rank $\sum_{u<x}f_u$ within additive error $\epsilon\|f\|_1$ with constant probability. The standard approach is Dyadic CountSketch by Luo, Wang, Yi and Cormode, using $\tilde{O}(\epsilon^{-1}\log^{3/2}U\log n)$ bits, where $n$ is the final $\ell_1$ norm of $f$. Bul\'anek, Kumar, Meka, Nelson, and Sarl\'os placed this approach in a matrix-factorization framework. They improved the space of Dyadic CountSketch to $O(\epsilon^{-1}\log^{3/2}U)$ words, and proved a lower bound of $\Omega(\epsilon^{-1}\log^2(\epsilon U))$ bits for all streaming algorithms when $U\le n\le U^{O(1)}$ and $\epsilon=U^{-1+\Omega(1)}$. This leaves a gap of $\sqrt{\log U}$. In this work, we fully determine the space cost of rank estimation up to an absolute constant. Our main result is a space lower bound for all streaming algorithms: for $0<\epsilon\le 1/8$ and $n\ge\log^2 U$, the space is at least $\Omega(\min\{\epsilon^{-1}L^{3/2}\log(2+n\epsilon/\sqrt{L}), \epsilon^{-2}\log U\log n, \log\binom{U+n}{n}\})$ bits, where $L=\log(2+U\epsilon)$. When $U\le n\le U^{O(1)}$ and $\epsilon=U^{-1+\Omega(1)}$, this simplifies to $\Omega(\min\{\epsilon^{-1}\log^{5/2}U, \epsilon^{-2}\log^2 U\})$ bits. Our proof uses a surprising hard distribution and novel information-theoretic techniques. The above bound matches Dyadic CountSketch when $n\ge U$ and $U^{-1+\Omega(1)}\le\epsilon\le O(1/\sqrt{\log U})$. The lower bound is also tight in the remaining regimes. For $\epsilon\ge(\log U)^{-1/2}$, there exists an algorithm that uses $O(\epsilon^{-2}\log U\log n)$ bits using $\ell_1$ samplers. For $\epsilon\le U^{-1+o(1)}$, we refine Dyadic CountSketch so that its space in bits matches the first term of the bound.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Constant-Factor Matching-Size Estimation in Random-Order StreamsarXiv · 2026
- Diva++: Dynamic Range Filtering over Hard WorkloadsarXiv · 2026
- Near-Optimal Space and Time Cut Sparsification in Turnstile StreamsarXiv · 2026
- On Euclidean Diameter in Dynamic StreamsarXiv · 2026
- Adaptive Data Analysis and Adversarial Robustness on Insertion-Deletion StreamsarXiv · 2026
- Differentially Private All-Pairs Min Cut ValuesarXiv · 2026