Simultaneous Compression and Quantization: A Joint Approach for Efficient Unsupervised Hashing

Tuan Hoang, Thanh-Toan Do, Dang-Khoa Le Tan, Ngai-Man CheungCVIU 2018 · DOI

TL;DR

This paper introduces Simultaneous Compression and Quantization (SCQ), a novel unsupervised hashing method that jointly learns to reduce data dimensionality and binarize it in a single step. SCQ outperforms existing methods in image retrieval accuracy and is significantly more computationally efficient, especially for training.

What Problem Does This Paper Address?

Efficient image retrieval relies on hashing techniques that can quickly search through large datasets. The core challenge in image hashing is to create compact binary codes that preserve the similarity between images. This means similar images should have similar binary codes (small Hamming distance), and dissimilar images should have dissimilar codes. Additionally, the hashing process itself needs to be fast for both training and generating codes for new images. Traditional methods often tackle dimensionality reduction and binary quantization separately, leading to suboptimal solutions. This paper aims to address this by jointly optimizing these two crucial aspects.

Methods

The paper proposes a new approach called Simultaneous Compression and Quantization (SCQ). SCQ formulates the problem as a single optimization objective that simultaneously compresses (reduces dimensionality) and binarizes input data. This is achieved under strict orthogonal constraints on the projection matrix.

Two main variants are introduced:

  • Orthonormal Encoder (OnE): This method enforces a strict orthonormal constraint on the projection matrix. To handle the challenging optimization problem, it employs a cyclic coordinate descent approach, iteratively updating one column of the projection matrix at a time.
  • Orthogonal Encoder (OgE): This is a relaxed version of OnE, where the orthonormal constraint is softened to a column orthogonal constraint. This relaxation simplifies the optimization, leading to faster training and improved retrieval performance.

Both methods utilize novel algorithms to tackle the difficult binary and orthogonal constraints, drawing inspiration from recent advances in optimization techniques.

Datasets

The paper evaluates its methods on three standard image datasets:

  • CIFAR-10: A dataset of 60,000 color images from 10 object classes.
  • LabelMe-12-50k: A dataset of 50,000 color images from 12 object classes.
  • SUN397: A dataset of approximately 35,000 color images from 397 scene categories.

For evaluation, images are represented by 4096-D feature vectors extracted from the fully-connected layer of a pre-trained VGG network.

Key Insights and Ideas

  • Joint Optimization is Crucial: Separating dimensionality reduction (like PCA) and binary quantization, as done in methods like ITQ, leads to suboptimal results. Jointly learning these processes is key to better performance.
  • Orthogonal Constraints are Powerful: Enforcing strict orthogonal constraints in the projection matrix helps preserve data variance and minimize quantization loss simultaneously, leading to improved retrieval accuracy.
  • Relaxation for Efficiency: Relaxing the orthonormal constraint to an orthogonal one (OgE) significantly speeds up training without sacrificing much accuracy, making it more practical for large-scale applications.
  • Scale as a Hyperparameter: The paper highlights the importance of a "scale" hyperparameter that balances the trade-off between retaining variance and minimizing quantization loss. They propose a data-driven method to determine this scale.
  • Computational Efficiency: SCQ methods are significantly faster than many deep learning-based hashing methods, both in training and in generating hash codes for new data points.

Key Results

  • State-of-the-Art Performance: SCQ methods (OnE and OgE) consistently outperform existing unsupervised hashing methods (SpH, KMH, BA, ITQ) in terms of mean Average Precision (mAP) and precision at Hamming radius 2 (prec@r2) across multiple datasets and code lengths.
  • Competitive with Deep Methods: SCQ methods achieve comparable or better performance than recent deep neural network and GAN-based hashing methods, while being much more computationally efficient.
  • Significant Speedup: OgE is particularly efficient, with a computational complexity linearly dependent on the number of training samples, feature dimension, and code length. Training time is drastically reduced compared to other methods, especially for large datasets.
  • Efficient Code Generation: Generating hash codes for new data points is very fast, requiring only a single linear transformation and a comparison operation.

Limitations and Future Work

  • Scale Hyperparameter Tuning: While the paper proposes a method to determine the scale hyperparameter, it acknowledges that finding the optimal balance between variance and quantization loss is dataset-dependent.
  • Unsupervised Focus: The current work focuses on unsupervised hashing. Future work could explore extending these methods to semi-supervised or supervised settings to potentially achieve even higher accuracy.
  • Further Optimization: While OgE offers significant speedups, further research into more efficient optimization strategies for the orthonormal constraint in OnE could be beneficial.

Summary updated

BibTeX
@article{hoang2018simultaneous,
  author = {Tuan Hoang and Thanh-Toan Do and Dang-Khoa Le Tan and Ngai-Man Cheung},
  title = {{Simultaneous Compression and Quantization: A Joint Approach for Efficient Unsupervised Hashing}},
  journal = {Comput. Vis. Image Underst.},
  year = {2018},
  doi = {10.1016/j.cviu.2019.102852},
}
Figure