Abstract
In the era of big data, social media, large-scale video, image, and text data is produced every day. The approximate nearest neighbor (ANN) search has drawn significant attention for content-based image retrieval applications to ensure retrieval quality and computational efficiency. Hashing has become a cutting-edge technology for image retrieval and big data applications due to its low-storage and high-computational efficiency. Hashing algorithms are useful for mapping images into short binary codes and generating a similar binary code for similar data points from the database. Many supervised/unsupervised hashing methods have been deployed for retrieving the query points from the database images, and many recently developed methods can achieve a higher accuracy regarding image retrieval performance. However, the current state-of-the-art algorithms can only improve binary code hashing, and the retrieval performance of binary representation is not good. To overcome this issue, we propose an asymmetric learning method that generates the hash codes. This work proposes a novel asymmetric learning-based generative adversarial network (AGAN) for image retrieval, which integrates the feature learning with hashing to an end-to-end learning framework. Moreover, to equip with the binary representation of image retrieval; we propose three loss functions, i.e., encoder loss, generator loss, and discriminator loss, which significantly improve retrieval performance. The extensive experiments show that our proposed method outperformed several state-of-the-art methods.
Similar content being viewed by others
References
Andoni A, Indyk P (2006) Near-optimal hashing algorithms for approximate nearest neighbor in high dimensions. In: 2006 47th annual IEEE symposium on foundations of computer science (FOCS’06). IEEE, pp 459–468
Andoni A, Razenshteyn I (2015) Optimal data-dependent hashing for approximate near neighbors. In: Proceedings of the forty-seventh annual ACM symposium on theory of computing, pp 793–801
Becker C, Rigamonti R, Lepetit V, Fua P (2013) Supervised feature learning for curvilinear structure segmentation. In: International conference on medical image computing and computer-assisted intervention. Springer, pp 526–533
Cao Z, Long M, Wang J, Yu PS (2017) Hashnet: Deep learning to hash by continuation. In: Proceedings of the IEEE international conference on computer vision, pp 5608–5617
Chatfield K, Simonyan K, Vedaldi A, Zisserman A (2020) Return of the devil in the details: Delving deep into convolutional nets. arXiv:1405.3531
Chen X, Duan Y, Houthooft R, Schulman J, Sutskever I, Abbeel P (2016) Infogan: Interpretable representation learning by information maximizing generative adversarial nets. In: Advances in neural information processing systems, pp 2172–2180
Chua T-S, Tang J, Hong R, Li H, Luo Z, Zheng Y (2009) Nus-wide: a real-world web image database from national university of singapore. In: Proceedings of the ACM international conference on image and video retrieval, pp 1–9
Do T-T, Doan A-D, Cheung N-M (2016) Learning to hash with binary deep neural network. In: European conference on computer vision. Springer, pp 219–234
Gao X, Shen F, Yang Y, Xu X, Li H, Shen HT (2017) Asymmetric sparse hashing. In: 2017 IEEE international conference on multimedia and expo (ICME). IEEE, pp 127–132
Gionis A, Indyk P, Motwani R et al (1999) Similarity search in high dimensions via hashing. In: Vldb, vol 99, pp 518–529
Gong Y, Lazebnik S, Gordo A, Perronnin F (2012) Iterative quantization: a procrustean approach to learning binary codes for large-scale image retrieval. IEEE Transactions on Pattern Analysis and Machine Intelligence 35(12):2916–2929
Goodfellow I, Pouget-Abadie J, Mirza M, Xu B, Warde-Farley D, Ozair S, Courville A, Bengio Y (2014) Generative adversarial nets. In: Advances in neural information processing systems, pp 2672– 2680
Jiang Q-Y, Li W-J (2015) Scalable graph hashing with feature transformation. In: Twenty-fourth international joint conference on artificial intelligence
Jiang Q-Y, Li W-J (2018) Asymmetric deep supervised hashing. In: Thirty-second AAAI conference on artificial intelligence
Kang W-C, Li W-J, Zhou Z-H (2016) Column sampling based discrete supervised hashing. In: Thirtieth AAAI conference on artificial intelligence
Kong W, Li W-J (2012) Isotropic hashing. In: Advances in neural information processing systems, pp 1646–1654
Krizhevsky A, Hinton G et al (2020) Learning multiple layers of features from tiny images
Krizhevsky A, Sutskever I, Hinton GE (2012) Imagenet classification with deep convolutional neural networks. In: Advances in neural information processing systems, pp 1097–1105
Kulis B, Grauman K (2009) Kernelized locality-sensitive hashing for scalable image search. In: 2009 IEEE 12th international conference on computer vision. IEEE, pp 2130–2137
Lai H, Pan Y, Liu Y, Yan S (2015) Simultaneous feature learning and hash coding with deep neural networks. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 3270–3278
Lange K, Hunter DR, Yang I (2000) Optimization transfer using surrogate objective functions. J Comput Graph Stat 9(1):1–20
Larsen ABL, Sønderby SK, Larochelle H, Winther O (2016) Autoencoding beyond pixels using a learned similarity metric. arXiv:1512.09300
Ledig C, Theis L, Huszár F, Caballero J, Cunningham A, Acosta A, Aitken A, Tejani A, Totz J, Wang Z et al (2017) Photo-realistic single image super-resolution using a generative adversarial network. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 4681–4690
Li W-J, Wang S, Kang W-C (2020) Feature learning based deep supervised hashing with pairwise labels. arXiv:1511.03855
Li F, Wang T, Zhu L, Zhang Z, Wang X (2021) Task-adaptive asymmetric deep cross-modal hashing. Knowl-Based Syst 219:106851
Lin G, Shen C, Shi Q, Van den Hengel A, Suter D (2014) Fast supervised hashing with decision trees for high-dimensional data. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 1963–1970
Liu H, Ji R, Wu Y, Liu W (2016) Towards optimal binary code learning via ordinal embedding. In: Thirtieth AAAI conference on artificial intelligence
Liu W., Mu C, Kumar S, Chang S-F (2014) Discrete graph hashing. In: Advances in neural information processing systems, pp 3419–3427
Liu W, Wang J, Ji R, Jiang Y-G, Chang S-F (2012) Supervised hashing with kernels. In: 2012 IEEE conference on computer vision and pattern recognition. IEEE, pp 2074–2081
Liu H, Wang R, Shan S, Chen X (2016) Deep supervised hashing for fast image retrieval. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 2064–2072
Ma L, Li H, Meng F, Wu Q, Ngan KN (2020) Discriminative deep metric learning for asymmetric discrete hashing. Neurocomputing 380:115–124
Magliani F , Fontanini T, Prati A (2018) Efficient nearest neighbors search for large-scale landmark recognition. In: International symposium on visual computing. Springer, pp 541–551
Neyshabur B, Srebro N, Salakhutdinov RR, Makarychev Y, Yadollahpour P (2013) The power of asymmetry in binary hashing. In: Advances in neural information processing systems, pp 2823–2831
Norouzi M, Fleet DJ, Salakhutdinov RR (2012) Hamming distance metric learning. In: Advances in neural information processing systems, pp 1061–1069
Odena A, Olah C, Shlens J (2017) Conditional image synthesis with auxiliary classifier gans. In: International conference on machine learning, PMLR, pp 2642–2651
Radford A, Metz L, Chintala S (2020) Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv:1511.06434
Shen F, Gao X, Liu L, Yang Y, Shen HT (2017) Deep asymmetric pairwise hashing. In: Proceedings of the 25th ACM international conference on Multimedia, pp 1522–1530
Shen F, Shen C, Liu W, Tao Shen H (2015) Supervised discrete hashing. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 37–45
Shen F, Yang Y, Liu L, Liu W, Tao D, Shen HT (2017) Asymmetric binary coding for image search. IEEE Transactions on Multimedia 19(9):2022–2032
Shi X, Xing F, Xu K, Sapkota M, Yang L (2017) Asymmetric discrete graph hashing. In: Thirty-first AAAI conference on artificial intelligence
Somasundaram A, Reddy US (2016) Data imbalance: Effects and solutions for classification of large and highly imbalanced data. In: International conference on research in engineering, computers and technology (ICRECT 2016), pp 1–16
Song J, He T, Gao L, Xu X, Hanjalic A, Shen HT (2018) Binary generative adversarial networks for image retrieval. In: Thirty-second AAAI conference on artificial intelligence
Sun Y, Wong AK, Kamel MS (2009) Classification of imbalanced data: a review. Int J Pattern Recognit Artif Intell 23(04):687–719
Tang J, Lin J, Li Z, Yang J (2018) Discriminative deep quantization hashing for face image retrieval. IEEE transactions on neural networks and learning systems 29(12):6154–6162
Weiss Y, Torralba A, Fergus R (2009) Spectral hashing. In: Advances in neural information processing systems, pp 1753–1760
Xia R, Pan Y, Lai H, Liu C, Yan S (2014) Supervised hashing for image retrieval via image representation learning. In: Twenty-eighth AAAI conference on artificial intelligence
Xie D, Deng C, Li C, Liu X, Tao D (2020) Multi-task consistency-preserving adversarial hashing for cross-modal retrieval. IEEE Trans Image Process 29:3626–3637
Xu R, Yang Y, Shen F, Xie N, Shen HT (2017) Efficient binary coding for subspace-based query-by-image video retrieval. In: Proceedings of the 25th ACM international conference on multimedia, pp 1354–1362
Zhang P, Zhang W, Li W-J, Guo M (2014) Supervised hashing with latent factor models. In: Proceedings of the 37th international ACM SIGIR conference on research & development in information retrieval, pp 173–182
Zhang L, Zhang Y, Tang J, Lu K, Tian Q (2013) Binary code ranking with weighted hamming distance. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 1586–1593
Zhu H, Long M, Wang J, Cao Y (2016) Deep hashing network for efficient similarity retrieval. In: Thirtieth AAAI conference on artificial intelligence
Acknowledgements
We would like to express our gratitude to anonymous reviewers for their careful examination of our manuscript and providing us constructive feedback to help us improve the quality of our proposed work.
Funding
This research was supported by the National Nature Science Foundation of China (No. 62102163) and the Natural Science Foundation of Shandong Province (Nos. ZR2019MF013, ZR2019BF026, ZR2020KF015).
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of Interests
The authors declare that they have no conflict of interest.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Hassan, M.U., Niu, D., Zhang, M. et al. Asymmetric hashing based on generative adversarial network. Multimed Tools Appl 82, 389–405 (2023). https://doi.org/10.1007/s11042-022-13141-2
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-022-13141-2