Universal Perfect Samplers for Incremental Streams
Seth Pettie, Dingyu Wang
Abstract
) and the G-sampling problem is to select an index v * ∈ [n] according to its contribution to the Gmoment, i.e., such that P(v
Approximate G-samplers may introduce multiplicative and/or additive errors to this probability, and some have a non-trivial probability of failure.
In this paper we focus on the exact G-sampling problem, where G is selected from the following class of functions.
The class G is perhaps more natural than it looks. It captures all Laplace exponents of nonnegative, one-dimensional Lévy processes, and includes several well studied classes such as pth moments G(z) = z p , p ∈ [0, 1], logarithms G(z) = log(1 + z), Cohen and Geri's [6] soft concave sublinear functions, which are used to approximate concave sublinear functions, including cap statistics.
In this paper we develop G-samplers for a vector x ∈ R n + that is presented as an incremental stream of positive updates. In particular:
• For any G ∈ G, we give a very simple G-sampler that uses 2 words of memory and stores at all times a v * ∈
• We give a "universal" G-sampler that uses O(log n) words of memory w.h.p., and given any G ∈ G at query time, produces an exact G-sample.
With an overhead of a factor of k, both samplers can be used to G-sample a sequence of k indices with or without replacement.
Our sampling framework is simple and versatile, and can easily be generalized to sampling from more complex objects like graphs and hypergraphs.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Towards Sampling Data Structures for Tensor Products in Turnstile StreamsZhao Song, Shenghao Xie, Samson ZhouICLR 2026 · 1 citation
- Perfect Lp Sampling with Polylogarithmic Update TimeWilliam Swartworth, David P. Woodruff, Samson ZhouFOCS 2025 · 1 citation
- Adaptively Robust Resettable StreamingEdith Cohen, Elena Gribelyuk, Jelani Nelson, Uri StemmerICML 2026
Builds on1
Related papers
- Lp Sampling in Distributed Data Streams with Applications to Adversarial RobustnessHonghao Lin, Zhao Song, David P. Woodruff, Shenghao Xie et al.SODA 2026
- An Efficient Streaming Algorithm for Approximating Graphlet DistributionsMarco Bressan, T.-H. Hubert Chan, Qipeng Kuang, Mauro SozioSIGMOD 2026
- Harmonic Decomposition in Data SketchesDingyu WangSTOC 2025 · 1 citation
- Efficient Streaming Algorithms for Graphlet SamplingYann Bourreau, Marco Bressan, T.-H. Hubert Chan, Qipeng Kuang et al.NeurIPS 2024 · 1 citation
- Adaptive Threshold SamplingDaniel TingSIGMOD 2022 · 3 citations
