Sub-linear Memory Sketches for Near Neighbor Search on Streaming Data
Benjamin Coleman, Richard G. Baraniuk, Anshumali Shrivastava
Abstract
We present the first sublinear memory sketch that can be queried to find the nearest neighbors in a dataset. Our online sketching algorithm compresses an N element dataset to a sketch of size in time, where b < 1. This sketch can correctly report the nearest neighbors of any query that satisfies a stability condition parameterized by . We achieve sublinear memory performance on stable queries by combining recent advances in locality sensitive hash (LSH)-based estimators, online kernel density estimation, and compressed sensing. Our theoretical results shed new light on the memory-accuracy tradeoff for nearest neighbor search, and our sketch, which consists entirely of short integer arrays, has a variety of attractive features in practice. We evaluate the memory-recall tradeoff of our method on a friend recommendation task in the Google Plus social media network. We obtain orders of magnitude better compression than the random projection based alternative while retaining the ability to report the nearest neighbors of practical queries.
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.
7 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
- One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated Learning cites Sub-linear RACE Sketches for Approximate Kernel Density Estimation on Streaming Data
- One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated Learning cites One-Pass Diversified Sampling with Application to Terabyte-Scale Genomic Sequence Streams
- One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated Learning cites DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set Queries
- One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated Learning cites Practical Near Neighbor Search via Group Testing
- One-Pass Diversified Sampling with Application to Terabyte-Scale Genomic Sequence Streams cites Sub-linear RACE Sketches for Approximate Kernel Density Estimation on Streaming Data
- DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set Queries cites Sub-linear RACE Sketches for Approximate Kernel Density Estimation on Streaming Data
- DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set Queries cites Practical Near Neighbor Search via Group Testing
Cited by top-tier papers7
- DESSERT: An Efficient Algorithm for Vector Set Search with Vector Set QueriesJoshua Engels, Benjamin Coleman, Vihan Lakshman, Anshumali ShrivastavaNeurIPS 2023 · 27 citations
- One-Pass Distribution Sketch for Measuring Data Heterogeneity in Federated LearningZichang Liu, Zhaozhuo Xu, Benjamin Coleman, Anshumali ShrivastavaNeurIPS 2023 · 19 citations
- Practical Near Neighbor Search via Group TestingJoshua Engels, Benjamin Coleman, Anshumali ShrivastavaNeurIPS 2021 · 14 citations
- A Tale of Two Efficient and Informative Negative Sampling DistributionsShabnam Daghaghi, Tharun Medini, Nicholas Meisburger, Beidi Chen et al.ICML 2021 · 11 citations
- One-Pass Diversified Sampling with Application to Terabyte-Scale Genomic Sequence StreamsBenjamin Coleman, Benito Geordie, Li Chou, Ryan A. Leo Elworth et al.ICML 2022 · 11 citations
Builds on1
Related papers
- Sketch-GNN: Scalable Graph Neural Networks with Sublinear Training ComplexityMucong Ding, Tahseen Rabbani, Bang An, Evan Z. Wang et al.NeurIPS 2022 · 34 citations
- Average Distortion SketchingYiqiao Bao, Anubhav Baweja, Nicolas Menand, Erik Waingarten et al.FOCS 2025 · 3 citations
- A One-Pass Distributed and Private Sketch for Kernel Sums with Applications to Machine Learning at ScaleBenjamin Coleman, Anshumali ShrivastavaCCS 2021 · 1 citation
- Bidirectionally Densifying LSH Sketches with Empty BinsPeng Jia, Pinghui Wang, Junzhou Zhao, Shuo Zhang et al.SIGMOD 2021 · 16 citations
- PM-LSH: A Fast and Accurate LSH Framework for High-Dimensional Approximate NN SearchBolong Zheng, Xi Zhao, Lianggui Weng, Nguyen Quoc Viet Hung et al.VLDB 2020 · 64 citations
