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

Complementary Binary Quantization for Joint Multiple Indexing

Qiang Fu, Xu Han, Xianglong Liu, Jingkuan Song, Cheng Deng

Abstract

Complementary Binary Quantization (CBQ) is a novel framework designed to jointly learn multiple hash tables for large-scale similarity searches. Unlike traditional methods that construct tables sequentially or independently, CBQ utilizes "incomplete coding" to ensure that multiple hash tables are truly complementary. This approach addresses the redundancy inherent in existing multi-indexing schemes, leading to relative performance gains of up to 57% over state-of-the-art methods.

Introduction

In the era of big data, finding the nearest neighbor to a query in high-dimensional spaces is a significant computational challenge. Hashing has emerged as a standard solution, compressing data into short binary codes to facilitate fast searches in Hamming space. To improve accuracy, practitioners often employ multiple hash tables (multi-indexing), operating on the principle that if one table misses a neighbor, another may capture it.

However, existing multi-indexing methods face two primary limitations. First, tables are often learned without considering their mutual information, leading to high redundancy where different tables capture the same data structures and repeat the same errors. Second, many methods rely on linear projections, which are insufficient for capturing the complex, non-linear distributions found in real-world datasets.

Methodology

CBQ addresses these flaws by treating the creation of multiple tables as a single, joint optimization problem. The framework is built upon several key innovations:

Prototype-based Quantization

Rather than using simple linear splits, CBQ employs "prototypes"—centroids or representative points in the data space. Each data point is assigned to its nearest prototype, which is subsequently mapped to a unique binary code. This allows the hash functions to adapt more flexibly to the data's underlying geometry.

Joint Multi-Table Learning and Incomplete Coding

While previous methods build tables sequentially, CBQ optimizes all tables simultaneously. The "secret sauce" of this approach is Incomplete Coding. The algorithm does not require every table to be an accurate representation for every data point. Instead, it minimizes a multi-table quantization loss that only requires at least one table to provide a high-quality approximation for a given point. This mechanism naturally forces individual tables to specialize in different regions of the data space, ensuring they are complementary rather than redundant.

Figure 2: Comparison of quantization structures for ITQ, CH, and CBQ.

Optimization and Alignment

To ensure binary codes accurately reflect original data distances, the authors introduce a Space Alignment Loss. This term aligns distances in the original feature space with those in Hamming space using a dynamic scaling variable. The resulting complex optimization problem is solved using an efficient alternating algorithm that updates binary codes, moves prototypes, and adjusts the scale.

Experimental Evaluation

The authors evaluated CBQ on four large-scale benchmarks: SIFT-1M and GIST-1M (for Euclidean search), and CIFAR-10 and NUS-WIDE (for semantic similarity).

Key Results

CBQ consistently outperformed both traditional hashing and recent boosting-based complementary methods. On the SIFT-1M dataset, CBQ achieved an Average Precision (AP) of 57.76% with 16 tables, outperforming the previous best multi-table method, BCH (57.37%). Notably, standard methods like ITQ often see performance degradation when split into too many tables, whereas CBQ scales effectively.

Figure 5: F1-Measure performance on the CIFAR-10 dataset across varying numbers of hash tables.

On semantic tasks like CIFAR-10 and NUS-WIDE, the gains were even more pronounced. As shown in Figure 5, CBQ maintains a significant lead in F1-Measure as the number of tables increases, demonstrating its superior ability to capture semantic structures through its joint optimization framework.

Conclusion

By moving away from independent table construction and embracing joint optimization through incomplete coding, CBQ provides a robust framework for large-scale similarity search. The method effectively eliminates redundancy and offers non-linear flexibility through prototype-based quantization. Future work may involve integrating this joint complementary loss into end-to-end deep learning architectures to further enhance performance on complex visual data.

Summary updated

BibTeX
@inproceedings{fu2018complementary,
  author = {Qiang Fu and Xu Han and Xianglong Liu and Jingkuan Song and Cheng Deng},
  title = {{Complementary Binary Quantization for Joint Multiple Indexing}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/292},
}
Figure