Spreading vectors for similarity search

Alexandre Sablayrolles, Matthijs Douze, Cordelia Schmid, Hervé Jégou
6/8/2018
stat.MLcs.LG

Official code: facebookresearch/spreadingvectors (322 stars, last commit 2021-08-13).

Abstract

Discretizing multi-dimensional data distributions is a fundamental step of modern indexing methods. State-of-the-art techniques learn parameters of quantizers on training data for optimal performance, thus adapting quantizers to the data. In this work, we propose to reverse this paradigm and adapt the data to the quantizer: we train a neural net which last layer forms a fixed parameter-free quantizer, such as pre-defined points of a hyper-sphere. As a proxy objective, we design and train a neural network that favors uniformity in the spherical latent space, while preserving the neighborhood structure after the mapping. We propose a new regularizer derived from the Kozachenko--Leonenko differential entropy estimator to enforce uniformity and combine it with a locality-aware triplet loss. Experiments show that our end-to-end approach outperforms most learned quantization methods, and is competitive with the state of the art on widely adopted benchmarks. Furthermore, we show that training without the quantization step results in almost no difference in accuracy, but yields a generic catalyzer that can be applied with any subsequent quantizer.

View on arXivView PDF

Code Implementations(1)

Open source implementation of "Spreading Vectors for Similarity Search"

32236C++, ShellJan 28, 20195 years agoNOASSERTION

Cite this paper

@article{sablayrolles2018spreading,
  title  = {Spreading vectors for similarity search},
  author = {Alexandre Sablayrolles and Matthijs Douze and Cordelia Schmid and Hervé Jégou},
  year   = {2018},
  eprint = {1806.03198},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1806.03198}
}

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/1806.03198.svg)](https://codeofpaper.com/paper/1806.03198)

Discussion