Unbiased Insights: Optimal Streaming Algorithms for $\ell_p$ Sampling, the Forget Model, and Beyond
Abstract
We study sampling and frequency moment estimation in a single-pass insertion-only data stream. For , we present a nearly space-optimal approximate sampler that uses bits of space and for , we present a sampler with space complexity . This space complexity is optimal for and improves upon prior work by a factor. We further extend our construction to a continuous sampler, which outputs a valid sample index at every point during the stream. Leveraging these samplers, we design nearly unbiased estimators for in data streams that include forget operations, which reset individual element frequencies and introduce significant non-linear challenges. As a result, we obtain near-optimal algorithms for estimating for all in this model, originally proposed by Pavan, Chakraborty, Vinodchandran, and Meel [PODS'24], resolving all three open problems they posed. Furthermore, we generalize this model to what we call the suffix-prefix deletion model, and extend our techniques to estimate entropy as a corollary of our moment estimation algorithms. Finally, we show how to handle arbitrary coordinate-wise functions during the stream, for any , where includes all (linear or non-linear) contraction functions.
Cite
@article{arxiv.2508.07067,
title = {Unbiased Insights: Optimal Streaming Algorithms for $\ell_p$ Sampling, the Forget Model, and Beyond},
author = {Honghao Lin and Hoai-An Nguyen and William Swartworth and David P. Woodruff},
journal= {arXiv preprint arXiv:2508.07067},
year = {2026}
}
Comments
To appear in PODS 2026