Quantize and Conquer: A Dimensionality-Recursive Solution to Clustering, Vector Quantization, and Image Retrieval

Yannis Avrithis

Introduction

In computer vision, high-dimensional descriptors such as SIFT (128D) are fundamental for tasks like image retrieval and object recognition. However, processing these descriptors at scale presents significant computational challenges. The standard approach, $k$-means clustering, becomes a bottleneck due to the "assignment step," where each of $N$ data points must be compared against $k$ centroids. While approximate nearest neighbor (ANN) searches are often employed to mitigate this, they remain separate from the clustering process. Furthermore, traditional grid-based methods that excel in low dimensions suffer from the "curse of dimensionality," as the number of cells grows exponentially with the number of dimensions.

This paper introduces Dimensionality-Recursive Clustering (DRC), a novel paradigm that decomposes high-dimensional spaces into a hierarchy of 2D grids. By treating dimensions as the recursive element rather than data points, the proposed method achieves clustering speeds nearly independent of dataset size and enables vector quantization via rapid lookups.

Methodology: Dimensionality-Recursive Clustering

The core of the "Quantize and Conquer" strategy is the recursive decomposition of a $D$-dimensional space into lower-dimensional subspaces.

Recursive Structure

The algorithm begins with a 1D base case using simple scalar quantization. For higher dimensions, a $2d$-dimensional space is represented as the Cartesian product of two $d$-dimensional subspaces ($S = S^L \times S^R$). This creates a tree structure where each node represents a product space.

Product Propagation (PP)

To perform clustering in a $2d$ space, the algorithm utilizes a 2D discrete grid where the axes correspond to the centroids of the two constituent subspaces. A Dijkstra-like "fast marching" algorithm is used to propagate distances across this grid, effectively "painting" Voronoi cells onto the 2D map. This allows the algorithm to determine the topology of the high-dimensional space without directly comparing every point to every centroid.

Visualization of the 2D grid-based Voronoi cell propagation in the product space.

Dimensionality-Recursive Quantization (DRQ)

Quantization of a new vector is performed by recursively looking up its position within the subspace grids. This transformation reduces vector quantization to a sequence of $D$ scalar quantizations and $2D-1$ lookups. Consequently, the quantization complexity is $O(D)$, making it constant relative to the number of centroids ($K$).

Experimental Results

The authors evaluated the DRC approach on standard image retrieval benchmarks, including Oxford 5K, Paris 6K, and their large-scale counterparts (Oxford 105K and Paris 106K), using 12.5 million SIFT descriptors.

Computational Efficiency

The proposed method demonstrates significant speedups. For a 4K codebook, DRC was approximately 25x faster than standard approximate $k$-means (20 seconds compared to 504 seconds). Furthermore, the quantization process is extremely efficient: exact quantization for a 4K codebook took 0.51 ms per point, while the approximate lookup-based version required only 0.80 μs.

Retrieval Performance

As shown in the table below, the DRC method achieves competitive mean Average Precision (mAP) across various benchmarks. On the Oxford 5K dataset, it reached an mAP of 0.716, outperforming several established methods without requiring complex post-processing or geometric verification.

Comparison of retrieval performance (mAP) on Oxford and Paris benchmarks against state-of-the-art methods.

The results also indicate strong generalization capabilities; a codebook trained on the Oxford dataset maintained high performance when tested on the Paris dataset, suggesting that the recursive grid structure effectively captures the intrinsic distribution of the descriptor space.

Conclusion

Dimensionality-Recursive Clustering offers a scalable and efficient solution for high-dimensional data processing. By shifting the focus from data-point recursion to dimensionality recursion, the method overcomes the traditional bottlenecks of $k$-means and the curse of dimensionality. The resulting $O(D)$ quantization and data-independent training phases provide a robust framework for large-scale image retrieval and vector quantization tasks. Future work may explore the application of this recursive structure to broader nearest neighbor search problems.

Summary updated

BibTeX
@inproceedings{avrithis2013quantize,
  author = {Yannis Avrithis},
  title = {{Quantize and Conquer: A Dimensionality-Recursive Solution to Clustering, Vector Quantization, and Image Retrieval}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.376},
}
Figure