[Paper Review] Tiny Descriptors for Image Retrieval with Unsupervised Triplet Hashing
This paper proposes Unsupervised Triplet Hashing (UTH), a two-stage method that first compresses high-dimensional deep neural network descriptors using Stacked Restricted Boltzmann Machines (SRBM) and then fine-tunes the binary codes via triplet networks to preserve metric structure. UTH achieves state-of-the-art performance in unsupervised image retrieval, outperforming existing methods by up to +5% in recall@100 at 32-bit encoding on benchmarks like UKbench and Holidays.
A typical image retrieval pipeline starts with the comparison of global descriptors from a large database to find a short list of candidate matches. A good image descriptor is key to the retrieval pipeline and should reconcile two contradictory requirements: providing recall rates as high as possible and being as compact as possible for fast matching. Following the recent successes of Deep Convolutional Neural Networks (DCNN) for large scale image classification, descriptors extracted from DCNNs are increasingly used in place of the traditional hand crafted descriptors such as Fisher Vectors (FV) with better retrieval performances. Nevertheless, the dimensionality of a typical DCNN descriptor --extracted either from the visual feature pyramid or the fully-connected layers-- remains quite high at several thousands of scalar values. In this paper, we propose Unsupervised Triplet Hashing (UTH), a fully unsupervised method to compute extremely compact binary hashes --in the 32-256 bits range-- from high-dimensional global descriptors. UTH consists of two successive deep learning steps. First, Stacked Restricted Boltzmann Machines (SRBM), a type of unsupervised deep neural nets, are used to learn binary embedding functions able to bring the descriptor size down to the desired bitrate. SRBMs are typically able to ensure a very high compression rate at the expense of loosing some desirable metric properties of the original DCNN descriptor space. Then, triplet networks, a rank learning scheme based on weight sharing nets is used to fine-tune the binary embedding functions to retain as much as possible of the useful metric properties of the original space. A thorough empirical evaluation conducted on multiple publicly available dataset using DCNN descriptors shows that our method is able to significantly outperform state-of-the-art unsupervised schemes in the target bit range.
Motivation & Objective
- To address the challenge of compressing high-dimensional deep image descriptors to extremely compact binary codes for efficient large-scale image retrieval.
- To preserve the metric properties of original deep descriptors during compression, ensuring high retrieval recall despite extreme bit-rate reduction.
- To develop a fully unsupervised method that avoids reliance on costly supervision or side information while maintaining competitive performance.
- To improve upon existing unsupervised hashing schemes by combining representation learning with metric-preserving fine-tuning.
Proposed method
- First, Stacked Restricted Boltzmann Machines (SRBM) are trained in an unsupervised manner to learn a low-dimensional binary embedding function that compresses 4096-dimensional DCNN descriptors to 32–256 bits.
- Second, the learned binary embedding is fine-tuned using a triplet network with shared weights, which optimizes the binary codes to preserve relative similarity relationships from the original descriptor space.
- The triplet network uses anchor, positive, and negative image triplets to learn a ranking loss that maintains the relative ordering of similarity scores.
- The method is fully unsupervised except for the use of image triplets derived from the dataset’s inherent similarity structure, avoiding the need for labels or annotations.
- The final binary codes are computed via a differentiable soft-to-hard binarization process during training, followed by hard thresholding for inference.
- Evaluation uses Hamming distance for binary codes and L2 distance for uncompressed descriptors, with standard metrics including Recall@R, mAP, and large-scale retrieval with 1M distractors.
Experimental results
Research questions
- RQ1Can a two-stage unsupervised method effectively compress high-dimensional deep image descriptors to 32–256-bit binary codes while preserving retrieval performance?
- RQ2Does fine-tuning the binary codes via triplet networks significantly improve retrieval accuracy compared to unsupervised pretraining alone?
- RQ3How does the proposed UTH method compare to state-of-the-art unsupervised hashing schemes like ITQ, PCAHash, and LSH in terms of recall and mAP across multiple datasets?
- RQ4To what extent does the performance gap between compressed and uncompressed descriptors narrow as bit depth increases?
Key findings
- UTH outperforms all baseline unsupervised hashing schemes, including ITQ, PCAHash, and LSH, across all datasets and bitrates, with a +5% improvement in recall@100 on UKbench at 32 bits.
- The fine-tuning stage significantly improves performance over SRBM alone, especially at low bitrates, indicating effective preservation of metric structure.
- On Oxford5k, UTH performs within -2% mAP of top baselines like ITQ and PCAHash, which corresponds to a minor performance drop on only one query on average.
- At 256 bits, UTH achieves a 2% drop in recall@10 compared to the uncompressed 4096-dimensional descriptor on Holidays, compared to a 26% drop at 32 bits.
- In large-scale retrieval with 1 million distractors, UTH maintains superior performance across all bitrates on both Holidays+1M and UKbench+1M, confirming scalability.
- The performance gap between compressed and uncompressed descriptors remains substantial at 32 bits but narrows significantly at higher bitrates, indicating room for improvement at extreme 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.