[Paper Review] Unsupervised Hashing with Contrastive Information Bottleneck
This paper proposes CIBHash, a novel unsupervised hashing method that adapts contrastive learning to binary code learning by introducing a probabilistic Bernoulli representation layer for end-to-end training. By framing the method under the information bottleneck principle, it improves semantic representation learning, achieving state-of-the-art performance across three benchmark datasets with gains of up to 7.8% over prior methods.
Many unsupervised hashing methods are implicitly established on the idea of reconstructing the input data, which basically encourages the hashing codes to retain as much information of original data as possible. However, this requirement may force the models spending lots of their effort on reconstructing the unuseful background information, while ignoring to preserve the discriminative semantic information that is more important for the hashing task. To tackle this problem, inspired by the recent success of contrastive learning in learning continuous representations, we propose to adapt this framework to learn binary hashing codes. Specifically, we first propose to modify the objective function to meet the specific requirement of hashing and then introduce a probabilistic binary representation layer into the model to facilitate end-to-end training of the entire model. We further prove the strong connection between the proposed contrastive-learning-based hashing method and the mutual information, and show that the proposed model can be considered under the broader framework of the information bottleneck (IB). Under this perspective, a more general hashing model is naturally obtained. Extensive experimental results on three benchmark image datasets demonstrate that the proposed hashing method significantly outperforms existing baselines.
Motivation & Objective
- To address the limitation of reconstruction-based unsupervised hashing methods that overfit to non-discriminative background features.
- To adapt contrastive learning—successful in continuous representation learning—to the discrete binary hashing task.
- To enable end-to-end training of binary hashing models by introducing a differentiable probabilistic binary representation layer.
- To establish a theoretical connection between contrastive learning and the information bottleneck principle in the context of hashing.
- To improve retrieval performance by focusing on preserving discriminative semantic information rather than reconstructing input data.
Proposed method
- Modifies the contrastive learning objective to suit the discrete nature of hashing codes, removing the projection head to reduce objective mismatch.
- Introduces a probabilistic Bernoulli layer to model binary codes as stochastic variables, enabling backpropagation through discrete outputs via gradient estimators.
- Reformulates the contrastive learning objective under the information bottleneck framework to jointly minimize contrastive loss and mutual information between codes and input data.
- Uses a Lagrangian relaxation to balance the trade-off between representation quality and compression, with hyperparameter β controlling this trade-off.
- Employs data augmentation to generate positive pairs for contrastive learning, ensuring that the model learns invariant semantic features.
- Trains the entire model end-to-end using stochastic optimization, leveraging recent advances in gradient estimation for discrete latent variables.
Experimental results
Research questions
- RQ1Can contrastive learning be effectively adapted to learn high-quality binary hashing codes without relying on reconstruction?
- RQ2How can end-to-end training be achieved for discrete binary codes in a contrastive learning framework?
- RQ3What is the theoretical relationship between contrastive learning and the information bottleneck principle in the context of hashing?
- RQ4Does replacing reconstruction-based objectives with contrastive objectives lead to better semantic representation learning in unsupervised hashing?
- RQ5How do key hyperparameters like β and batch size affect the performance of the proposed method?
Key findings
- CIBHash achieves a 5.7% average improvement over the best baseline (TBH) on CIFAR-10 across code lengths from 16 to 64 bits.
- On NUS-WIDE, CIBHash achieves a 7.8% average improvement over the SOTA method, with even larger gains on shorter code lengths.
- On MSCOCO, CIBHash improves performance by 3.6% on average compared to the current SOTA method.
- The variant CLHash, which uses end-to-end training with a probabilistic binary layer, improves performance by 5.2% on CIFAR-10 compared to naive binarization of contrastive features.
- CIBHash further improves upon CLHash by 0.8% on CIFAR-10 and 1.0% on MSCOCO, confirming the benefit of integrating the IB framework.
- The model performs best with a balanced β value; performance degrades when β is too small or too large, indicating a critical trade-off between representation quality and compression.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.