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 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.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a161a24c-d4ed-42a9-9311-cd7de6413fb9Cited 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
