Built independently by an author, for readers. Read the story and support ChapterPal

keyword

spectral hashing

Spectral hashing is an unsupervised algorithm designed for fast similarity search and approximate nearest neighbor retrieval in large datasets by mapping high-dimensional data points into compact binary codes. It formulates the objective of preserving pairwise data similarities as a graph-partitioning problem, ensuring that similar items produce binary codewords with a small Hamming distance between them. Because this discrete optimization problem is computationally intractable, spectral hashing applies a continuous relaxation to solve it using the thresholded eigenvectors of a graph Laplacian matrix. Under multidimensional distribution assumptions, these solutions can be computed analytically using eigenfunctions along principal component axes, enabling efficient out-of-sample encoding of new data points without explicitly constructing a pairwise graph.

3 items

Iterative Quantization: A Procrustean Approach to Learning Binary Codes for Large-Scale Image Retrieval

Iterative Quantization: A Procrustean Approach to Learning Binary Codes for Large-Scale Image Retrieval

Yunchao Gong, Svetlana Lazebnik, Albert Gordo, Florent Perronnin

OrganizationsUniversitat Autònoma de BarcelonaUniversity of Illinois Urbana-ChampaignUniversity of North Carolina at Chapel HillXerox

Why you should read this

Proposes an alternating minimization method, Iterative Quantization, that finds an optimal orthogonal rotation to align dimensionally-reduced data with the vertices of a binary hypercube, significantly improving retrieval accuracy and scalability for large-scale image search.

This paper addresses the problem of learning similarity-preserving binary codes for efficient similarity search in large-scale image collections. We formulate this problem in terms of finding a rotation of zero-centered data so as to minimize the quantization error of mapping this data to the vertices of a zero-centered binary hypercube, and propose a simple and efficient alternating minimization algorithm to accomplish this task. This algorithm, dubbed iterative quantization (ITQ), has connections to multi-class spectral clustering and to the orthogonal Procrustes problem, and it can be used both with unsupervised data embeddings such as PCA and supervised embeddings such as canonical correlation analysis (CCA). The resulting binary codes significantly outperform several other state-of-the-art methods. We also show that further performance improvements can result from transforming the data with a nonlinear kernel mapping prior to PCA or CCA. Finally, we demonstrate an application of ITQ to learning binary attributes or “classemes” on the ImageNet dataset.

Added

2026-09-24

Product Quantization for Nearest Neighbor Search

Product Quantization for Nearest Neighbor Search

Hervé Jégou, Matthijs Douze, Cordelia Schmid

OrganizationsINRIA

Why you should read this

Formulates the mathematics of decomposing high-dimensional spaces into lower-dimensional Cartesian products to compress vectors and radically accelerate distance estimations.

This paper introduces a product quantization-based approach for approximate nearest neighbor search. The idea is to decompose the space into a Cartesian product of low-dimensional subspaces and to quantize each subspace separately. A vector is represented by a short code composed of its subspace quantization indices. The euclidean distance between two vectors can be efficiently estimated from their codes. An asymmetric version increases precision, as it computes the approximate distance between a vector and a code. Experimental results show that our approach searches for nearest neighbors efficiently, in particular in combination with an inverted file system. Results for SIFT and GIST image descriptors show excellent search accuracy, outperforming three state-of-the-art approaches. The scalability of our approach is validated on a data set of two billion vectors.

Added

2026-05-03