[Paper Review] Spreading vectors for similarity search
This paper proposes a novel end-to-end learning framework that maps input vectors to a uniform distribution on a unit hypersphere using a learnable neural network (the 'catalyzer'), enabling superior performance with fixed, rigid quantizers like lattice or binary codes. By combining a Kozachenko–Leonenko-based differential entropy regularizer with a triplet loss, the method enhances similarity search accuracy without optimizing the quantizer, outperforming state-of-the-art learned quantization methods and enabling plug-and-play use with existing quantization techniques.
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.
Motivation & Objective
- To address the challenge of jointly optimizing neural networks and discrete quantization in similarity search, which is difficult due to non-differentiable discretization operations.
- To improve the performance of fixed, rigid quantizers—such as lattice or binary codes—by adapting the data distribution to better suit these quantizers, rather than adapting the quantizer to the data.
- To design a differentiable regularizer based on the Kozachenko–Leonenko estimator to enforce uniformity in the spherical latent space, promoting even coverage of the output space.
- To demonstrate that the learned network (catalyzer) can be trained without the quantization layer and still serve as a universal feature transform for various downstream quantization methods.
Proposed method
- The method trains a neural network to map input vectors to a unit hypersphere, where the final layer's output is treated as a fixed, parameter-free quantizer (e.g., sign function or lattice quantizer).
- A novel regularizer derived from the Kozachenko–Leonenko differential entropy estimator is used to enforce uniformity in the spherical output space, promoting even distribution of encoded vectors.
- The training objective combines this regularizer with a locality-aware triplet loss to preserve neighborhood structure in the input space during the mapping.
- The network is trained end-to-end, but the discretization step is fixed, avoiding optimization issues associated with differentiable quantization.
- The resulting 'catalyzer' network can be used independently to preprocess features before applying any standard quantization method, such as OPQ or binary hashing.
- The method is evaluated on Deep1B and BigAnn1M, showing strong performance with 64-bit codes and competitive speed-accuracy trade-offs.
Experimental results
Research questions
- RQ1Can we improve the performance of rigid, non-learned quantizers by learning a data transformation that makes the data distribution more compatible with these quantizers?
- RQ2Does enforcing uniformity in the latent space via a differential entropy regularizer lead to better quantization performance than end-to-end learning of the quantizer?
- RQ3Can a neural network trained without the quantization layer still serve as an effective universal feature transform for multiple quantization methods?
- RQ4How does the proposed method compare in accuracy and speed to state-of-the-art learned quantization techniques, especially at scale?
Key findings
- The proposed method achieves a recall@10 of 71.1% on the Deep1M dataset with 64-bit codes when combined with OPQ, outperforming the baseline OPQ (63.6%) and matching or exceeding state-of-the-art methods like LSQ.
- On the large-scale Deep1B dataset (1 billion vectors), the method maintains a 10% accuracy advantage over OPQ with 64-bit codes, achieving 37.8% recall@10 with lattice quantization.
- The method is 14× faster than LSQ, a state-of-the-art additive quantization method, while achieving competitive or better accuracy, making it practical for large-scale applications.
- The catalyzer improves binary hashing performance by 2–9 percentage points across all bit lengths (16–128 bits), outperforming LSH and ITQ on both Deep1M and BigAnn1M datasets.
- Training without the quantization layer yields a universal catalyzer that improves performance across multiple quantization methods, including OPQ and binary hashing, with minimal accuracy drop and significant speed gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.