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

Collective Deep Quantization for Efficient Cross-Modal Retrieval

Yue Cao, Mingsheng Long, Jianmin Wang, Shichen Liu

Abstract

Collective Deep Quantization (CDQ) represents a significant advancement in cross-modal retrieval by integrating quantization directly into an end-to-end deep learning framework. Unlike traditional hashing methods that often suffer from information loss during binary conversion, CDQ jointly optimizes deep feature representations and a shared codebook. This approach minimizes quantization error and achieves state-of-the-art performance in both retrieval accuracy and search efficiency across large-scale benchmarks.

Introduction

In modern information retrieval, the ability to search across different modalities—such as using an image to find relevant text or vice versa—is crucial. This task, known as cross-modal retrieval, requires mapping disparate data types into a common semantic space. To handle the scale of big data, researchers typically rely on hashing to convert high-dimensional features into compact binary strings. However, standard hashing is a "hard" discretization process that can lead to significant information loss.

Quantization offers a more flexible alternative by representing data as combinations of codewords from a learned codebook. While deep learning has transformed feature extraction, effectively combining it with quantization for cross-modal tasks remained a challenge. Existing approaches often treated quantization as a post-processing step, leading to a "quantization gap" where deep features were not optimized for compression.

The CDQ Framework

The authors propose Collective Deep Quantization (CDQ) to bridge this gap. The architecture consists of two specialized pipelines for image and text data, unified by a shared quantization layer.

The CDQ architecture featuring dual networks and a collective codebook.

Key Components

  1. Dual-Network Architecture: The framework utilizes an image network (based on AlexNet) and a text network (a multi-layer perceptron) to extract high-level features. These features are passed through bottleneck layers to produce $R$-dimensional representations.
  2. Shared Codebook: A core innovation of CDQ is the use of a collective codebook shared by both modalities. This shared space acts as a semantic bridge, ensuring that similar concepts in different modalities (e.g., an image of a dog and the word "dog") are mapped to the same codewords.
  3. Adaptive Cross-Entropy Loss: To preserve semantic similarity, the model employs a modified cross-entropy loss with an adaptive hyperparameter ($\alpha$). This adjustment prevents gradient vanishing during training, facilitating more effective back-propagation.
  4. Collective Quantization Loss: This novel loss function encourages the networks to produce "quantizable" features. By minimizing the distance between continuous deep features and their quantized reconstructions, the model ensures that the resulting binary codes retain maximum semantic information.

Experimental Evaluation

CDQ was evaluated on two prominent large-scale benchmarks:

  • NUS-WIDE: A dataset of 195,834 image-text pairs covering 21 concepts.
  • MIR-Flickr: A collection of 25,000 images with associated semantic labels.

The performance was measured using Mean Average Precision (MAP) and Precision-Recall curves, comparing CDQ against a variety of shallow and deep hashing methods.

Results and Discussion

CDQ consistently outperformed existing state-of-the-art methods. As shown in the Precision-Recall curves, CDQ (represented by the red line) maintains higher precision across all recall levels compared to both deep hashing (e.g., CHN) and shallow methods (e.g., SCM).

Precision-Recall curves comparing CDQ against state-of-the-art methods.

Key Findings

  • Superior Accuracy: CDQ achieved a 2% to 8% improvement in MAP over the best deep hashing methods and up to a 23% increase over traditional shallow methods.
  • Efficiency: By utilizing Asymmetric Quantizer Distance (AQD) with lookup tables, CDQ provides search speeds comparable to Hamming distance while delivering significantly higher precision.
  • Quantizability: The inclusion of a specific quantization loss proved vital. It forces the network to learn feature distributions that are naturally easier to compress, effectively closing the "quantization gap."

Conclusion

Collective Deep Quantization demonstrates that integrating quantization into the deep learning pipeline is essential for efficient and accurate cross-modal retrieval. By treating quantizability as a first-class citizen and utilizing a shared codebook, CDQ establishes a new benchmark for the field. Future work may involve exploring more advanced text encoders, such as Transformers, and optimizing the framework for billion-scale datasets.

Summary updated

BibTeX
@inproceedings{cao2017collective,
  author = {Yue Cao and Mingsheng Long and Jianmin Wang and Shichen Liu},
  title = {{Collective Deep Quantization for Efficient Cross-Modal Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.11218},
}
Figure