NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Complementary Projection Hashing

Zhongming Jin, Yao Hu, Yue Lin, Debing Zhang, Shiding Lin, Deng Cai, Xuelong Li

Abstract

Complementary Projection Hashing (CPH) is a novel hashing algorithm designed for efficient approximate nearest neighbor search in high-dimensional spaces. Unlike traditional methods that treat hash bits independently, CPH sequentially learns hash functions to cross sparse data regions while ensuring an even distribution of data points across the hash bucket space. By balancing search accuracy with bit efficiency, CPH addresses the common pitfalls of redundant bit generation and cluster-splitting. Experimental results on large-scale datasets like CIFAR-10, GIST-1M, and SIFT-1M demonstrate that CPH consistently outperforms state-of-the-art hashing techniques in terms of precision and recall.

Introduction

Approximate nearest neighbor (ANN) search is a cornerstone of modern computer vision, enabling fast retrieval in massive image and descriptor databases. Hashing has emerged as a dominant paradigm for ANN, mapping high-dimensional features into compact binary codes. An ideal hashing scheme must satisfy two competing objectives: accuracy (preserving local neighborhoods in Hamming space) and efficiency (maximizing the entropy of the hash codes to avoid bucket collisions).

Existing approaches often struggle to balance these needs. Data-independent methods like Locality Sensitive Hashing (LSH) require long codes to achieve high precision. Data-dependent methods, while more compact, often produce redundant bits that fail to utilize the full capacity of the $2^c$ available hash buckets. CPH addresses these limitations by learning bits that are explicitly complementary.

Methodology

The CPH framework is built upon two core principles: crossing sparse regions and pairwise bucket balance.

Crossing Sparse Regions

To maintain high retrieval accuracy, hash hyperplanes should ideally pass through sparse regions of the data distribution. If a hyperplane bisects a dense cluster, it is likely to separate close neighbors, increasing the Hamming distance between them. CPH implements this by applying an accumulative penalty to data points near the boundaries of previously learned hyperplanes. This "boundary-avoidance" mechanism forces subsequent hash functions to seek out untapped gaps in the data space.

Pairwise Bucket Balance

Efficiency is achieved when data is distributed uniformly across all possible hash buckets. CPH introduces a "pairwise hash buckets balance condition" that minimizes the correlation between the current bit and all previously learned bits. This ensures that each new bit adds maximal information, effectively partitioning the space into $2^c$ equally populated regions.

Illustration of bit selection strategies: (a) and (b) show single partitions, while (c) and (d) demonstrate how multiple bits can be combined to balance data distribution across buckets.

Kernelization and Optimization

To capture non-linear structures, CPH utilizes a kernelized mapping based on a set of anchor points. The resulting optimization problem involves a non-differentiable objective function. The authors resolve this using spectral relaxation to obtain an initial solution, followed by refinement via a smooth surrogate function and Nesterov’s accelerated gradient descent.

Experimental Evaluation

CPH was evaluated against several state-of-the-art methods, including Iterative Quantization (ITQ), Spectral Hashing (SH), and Spherical Hashing (SPH), on three benchmarks: CIFAR-10, GIST-1M, and SIFT-1M.

Performance Metrics

The algorithm's performance was measured using Mean Average Precision (MAP), Hash Lookup Precision (HLP) at a Hamming radius of 2, and Recall curves.

Comprehensive performance evaluation of CPH against state-of-the-art methods across three datasets, showing MAP, Precision @ radius 2, and Recall.

As shown in the results, CPH consistently achieves superior MAP across all bit lengths. Notably, its Hash Lookup Precision peaks significantly higher than competitors, particularly around the 32-bit mark. This suggests that CPH's "complementary" approach leads to much better bucket utilization. In terms of recall, CPH requires fewer retrieved samples to reach target thresholds, confirming its efficiency for large-scale applications.

Conclusion

Complementary Projection Hashing offers a robust solution to the redundancy problem in learning-based hashing. By prioritizing the crossing of sparse regions and enforcing bit complementarity, it achieves a superior balance of accuracy and efficiency. Future work may explore more sophisticated anchor point selection strategies and further optimization of the sequential learning process to reduce training overhead.

Summary updated

BibTeX
@inproceedings{jin2013complementary,
  author = {Zhongming Jin and Yao Hu and Yue Lin and Debing Zhang and Shiding Lin and Deng Cai and Xuelong Li},
  title = {{Complementary Projection Hashing}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  doi = {10.1109/iccv.2013.39},
}
Figure