WOR and p's: Sketches for ℓp-Sampling Without Replacement
Edith Cohen, Rasmus Pagh, David P. Woodruff
Abstract
Weighted sampling is a fundamental tool in data analysis and machine learning pipelines. Samples are used for efficient estimation of statistics or as sparse representations of the data. When weight distributions are skewed, as is often the case in practice, without-replacement (WOR) sampling is much more effective than with-replacement (WR) sampling: it provides a broader representation and higher accuracy for the same number of samples. We design novel composable sketches for WOR p sampling, weighted sampling of keys according to a power p ∈ [0, 2] of their frequency (or for signed data, sum of updates). Our sketches have size that grows only linearly with the sample size. Our design is simple and practical, despite intricate analysis, and based on off-the-shelf use of widely implemented heavy hitters sketches such as CountSketch. Our method is the first to provide WOR sampling in the important regime of p > 1 and the first to handle signed updates for p > 0.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Perfect Lp Sampling with Polylogarithmic Update Time cites Universal Perfect Samplers for Incremental Streams
- Tricking the Hashing Trick: A Tight Lower Bound on the Robustness of CountSketch to Adaptive Inputs cites On the Robustness of CountSketch to Adaptive Inputs
Cited by top-tier papers6
- On the Robustness of CountSketch to Adaptive InputsEdith Cohen, Xin Lyu, Jelani Nelson, Tamás Sarlós et al.ICML 2022 · 29 citations
- Composable Sketches for Functions of Frequencies: Beyond the Worst CaseEdith Cohen, Ofir Geri, Rasmus PaghICML 2020 · 17 citations
- Tricking the Hashing Trick: A Tight Lower Bound on the Robustness of CountSketch to Adaptive InputsEdith Cohen, Jelani Nelson, Tamás Sarlós, Uri StemmerAAAI 2023 · 14 citations
- Universal Perfect Samplers for Incremental StreamsSeth Pettie, Dingyu WangSODA 2025 · 1 citation
- Perfect Lp Sampling with Polylogarithmic Update TimeWilliam Swartworth, David P. Woodruff, Samson ZhouFOCS 2025 · 1 citation
Builds on1
Related papers
- Efficient Dynamic Weighted Set Sampling and Its ExtensionFangyuan Zhang, Mengxu Jiang, Sibo WangVLDB 2024 · 9 citations
- Improved Frequency Estimation Algorithms with and without PredictionsAnders Aamand, Justin Y. Chen, Huy Lê Nguyen, Sandeep Silwal et al.NeurIPS 2023 · 16 citations
- DISCO: A Dynamically Configurable Sketch Framework in Skewed Data StreamsJiaqian Liu, Ran Ben Basat, Louis De Wardt, Haipeng Dai et al.ICDE 2024 · 3 citations
- Adaptive Threshold SamplingDaniel TingSIGMOD 2022 · 3 citations
- Sampling Methods for Inner Product SketchingMajid Daliri, Juliana Freire, Christopher Musco, Aécio S. R. Santos et al.VLDB 2024 · 8 citations
