English

Sub-linear Memory Sketches for Near Neighbor Search on Streaming Data

Data Structures and Algorithms 2020-09-15 v3 Computational Geometry Machine Learning Signal Processing Machine Learning

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 O(Nblog3N)O(N^b \log^3 N) in O(N(b+1)log3N)O(N^{(b+1)} \log^3 N) time, where b<1b < 1. This sketch can correctly report the nearest neighbors of any query that satisfies a stability condition parameterized by bb. 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.

Keywords

Cite

@article{arxiv.1902.06687,
  title  = {Sub-linear Memory Sketches for Near Neighbor Search on Streaming Data},
  author = {Benjamin Coleman and Richard G. Baraniuk and Anshumali Shrivastava},
  journal= {arXiv preprint arXiv:1902.06687},
  year   = {2020}
}

Comments

Published in ICML2020

R2 v1 2026-06-23T07:43:57.828Z