Unsupervised Space Partitioning for Nearest Neighbor Search

Abrar Fahim, Mohammed Eunus Ali, Muhammad Aamir Cheema
6/16/2022
cs.LGcs.DBcs.IR

Official code: abrar-fahim/Neural-Partitioner (1 star, Python, last commit 2022-06-17).

Abstract

Approximate Nearest Neighbor Search (ANNS) in high dimensional spaces is crucial for many real-life applications (e.g., e-commerce, web, multimedia, etc.) dealing with an abundance of data. This paper proposes an end-to-end learning framework that couples the partitioning (one critical step of ANNS) and learning-to-search steps using a custom loss function.

Show full abstract

A key advantage of our proposed solution is that it does not require any expensive pre-processing of the dataset, which is one of the critical limitations of the state-of-the-art approach. We achieve the above edge by formulating a multi-objective custom loss function that does not need ground truth labels to quantify the quality of a given data-space partition, making it entirely unsupervised. We also propose an ensembling technique by adding varying input weights to the loss function to train an ensemble of models to enhance the search quality. On several standard benchmarks for ANNS, we show that our method beats the state-of-the-art space partitioning method and the ubiquitous K-means clustering method while using fewer parameters and shorter offline training times. We also show that incorporating our space-partitioning strategy into state-of-the-art ANNS techniques such as ScaNN can improve their performance significantly. Finally, we present our unsupervised partitioning approach as a promising alternative to many widely used clustering methods, such as K-means clustering and DBSCAN.

View on arXivView PDF

Code Implementations(1)

Unsupervised Space Partitioning for Nearest Neighbor Search: Using a custom loss function to train ML models to learn partitions of high-dimensional and large datasets.

12PythonJun 2, 20224 years ago
approximate-nearest-neighbor-searchclusteringlearning-to-rankloss-functionssearch

Similar Papers

Cite this paper

@article{fahim2022unsupervised,
  title  = {Unsupervised Space Partitioning for Nearest Neighbor Search},
  author = {Abrar Fahim and Mohammed Eunus Ali and Muhammad Aamir Cheema},
  year   = {2022},
  eprint = {2206.08091},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.08091}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.08091.svg)](https://codeofpaper.com/paper/2206.08091)

Discussion