[Paper Review] CNN Based Hashing for Image Retrieval
This paper proposes CNNBH, a novel end-to-end CNN-based hashing method that generates binary hash codes by binarizing the signs of activations from a fully connected layer, achieving state-of-the-art performance on MNIST and the best results on CIFAR-10, with significant improvements (8–16% higher MAP) over prior methods.
Along with data on the web increasing dramatically, hashing is becoming more and more popular as a method of approximate nearest neighbor search. Previous supervised hashing methods utilized similarity/dissimilarity matrix to get semantic information. But the matrix is not easy to construct for a new dataset. Rather than to reconstruct the matrix, we proposed a straightforward CNN-based hashing method, i.e. binarilizing the activations of a fully connected layer with threshold 0 and taking the binary result as hash codes. This method achieved the best performance on CIFAR-10 and was comparable with the state-of-the-art on MNIST. And our experiments on CIFAR-10 suggested that the signs of activations may carry more information than the relative values of activations between samples, and that the co-adaption between feature extractor and hash functions is important for hashing.
Motivation & Objective
- To address the limitations of existing supervised hashing methods that rely on complex similarity matrix construction.
- To explore whether the signs of deep CNN features alone can serve as effective hash codes.
- To develop a simple, end-to-end trainable hashing framework that integrates feature learning and hashing.
- To investigate whether co-adaptation between feature extractor and hash function improves retrieval performance.
- To demonstrate that sign-based binarization of deep features can outperform value-based similarity metrics and kernelized hashing methods.
Proposed method
- The method uses a standard CNN trained end-to-end for image classification, with no separate hashing stage.
- Binary hash codes are generated by thresholding the activations of a selected fully connected layer at zero: $ h_i = \begin{cases} 1 & \text{if } a_i \geq 0 \\ 0 & \text{otherwise} \end{cases} $
- The model is trained to minimize classification loss, implicitly optimizing feature representations for retrieval.
- The approach avoids matrix decomposition or separate optimization for hash codes, simplifying training.
- The final hash code is derived directly from the sign of the penultimate fully connected layer’s output.
- The method is evaluated using standard metrics like Mean Average Precision (MAP) on CIFAR-10 and MNIST.
Experimental results
Research questions
- RQ1Can the signs of deep CNN features alone serve as effective binary hash codes for image retrieval?
- RQ2Does end-to-end training of a CNN for classification yield better hash codes than two-stage methods like CNNH?
- RQ3Is the co-adaptation between feature learning and hashing crucial for performance?
- RQ4How does sign-based binarization compare to value-based similarity measures like Euclidean distance?
- RQ5Can a simple binarization of feature signs outperform more complex kernelized hashing methods like KSH?
Key findings
- CNNBH achieved the best performance on CIFAR-10, with a 16% improvement in Mean Average Precision (MAP) over the previous state-of-the-art.
- On MNIST, CNNBH achieved state-of-the-art performance, outperforming all baseline methods including KSH and Euclidean distance ranking.
- The signs of activations were found to carry more discriminative information than the relative magnitudes of activations between samples.
- The performance of L2_fc+ (rectified features) slightly exceeded L2_fc, suggesting that sign information is more informative than intra-sign magnitude differences.
- KSH using features from the same layer as CNNBH performed worse than CNNBH, indicating that the end-to-end joint learning of features and hashing is more effective.
- The method outperformed LSH-based hashing with both Gist and CNN features, showing that CNN features are more effective than handcrafted features for hashing.
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.