Teach to Hash: A Deep Supervised Hashing Framework with Data Selection

  • Xiang Li
  • Chao Ma
  • Jie YangEmail author
  • Yu Qiao
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11301)


Recent years have witnessed wide applications of deep learning for large-scale image hashing tasks, as deep hashing algorithms can simultaneously learn feature representations and hash codes in an end-to-end way. However, although these methods have obtained promising results to some extent, they seldom take the effect of different training samples into account and treat all samples equally throughout the training procedure. Therefore, in this paper, we propose a novel deep hashing algorithm dubbed “Teach to Hash” (T2H), which introduces a “teacher” to automatically select the most effective samples for the current training period. To be specific, the “teacher” utilizes two criteria to measure the effectivity of all samples, and iteratively update the training set with the most effective ones. Experimental results on two typical image datasets indicate that the introduced “teacher” can significantly improve the performance of deep hashing framework and the proposed method outperforms the state-of-the-art hashing methods.


Deep learning Data selection Supervised hashing 



This research is partly supported by NSFC, China (No: 61572315, 6151101179) and 973 Plan, China (No. 2015CB856004).


  1. 1.
    Bengio, Y., Louradour, J., Collobert, R., Weston, J.: Curriculum learning. In: Proceedings of the 26th Annual International Conference on Machine Learning, pp. 41–48. ACM (2009)Google Scholar
  2. 2.
    Chang, S.F.: Supervised hashing with kernels. In: IEEE Conference on Computer Vision and Pattern Recognition, pp. 2074–2081 (2012)Google Scholar
  3. 3.
    Chua, T.S., Tang, J., Hong, R., Li, H., Luo, Z., Zheng, Y.T.: NUS-WIDE: a real-world web image database from national university of Singapore. In: Proceedings of ACM Conference on Image and Video Retrieval (CIVR 2009), Santorini, Greece, 8–10 July 2009Google Scholar
  4. 4.
    Gionis, A., Indyk, P., Motwani, R.: Similarity search in high dimensions via hashing. vol. 8, no. 2, pp. 518–529 (1999)Google Scholar
  5. 5.
    Gong, C., Tao, D., Liu, W., Liu, L., Yang, J.: Label propagation via teaching-to-learn and learning-to-teach. IEEE Trans. Neural Netw. Learn. Syst. 28(6), 1452–1465 (2017)CrossRefGoogle Scholar
  6. 6.
    Gong, Y., Lazebnik, S., Gordo, A., Perronnin, F.: Iterative quantization: a procrustean approach to learning binary codes for large-scale image retrieval. IEEE Trans. Pattern Anal. Mach. Intell. 35(12), 2916–2929 (2013)CrossRefGoogle Scholar
  7. 7.
    Jiang, L., Meng, D., Yu, S.I., Lan, Z., Shan, S., Hauptmann, A.: Self-paced learning with diversity. In: Advances in Neural Information Processing Systems, pp. 2078–2086 (2014)Google Scholar
  8. 8.
    Krizhevsky, A.: Learning multiple layers of features from tiny images (2009)Google Scholar
  9. 9.
    Krizhevsky, A., Sutskever, I., Hinton, G.E.: ImageNet classification with deep convolutional neural networks. In: Advances in Neural Information Processing Systems, pp. 1097–1105 (2012)Google Scholar
  10. 10.
    Lai, H., Pan, Y., Liu, Y., Yan, S.: Simultaneous feature learning and hash coding with deep neural networks, pp. 3270–3278 (2015)Google Scholar
  11. 11.
    Li, W.J., Wang, S., Kang, W.C.: Feature learning based deep supervised hashing with pairwise labels. In: International Joint Conference on Artificial Intelligence, pp. 1711–1717 (2016)Google Scholar
  12. 12.
    Lin, G., Shen, C., Shi, Q., Hengel, A.V.D., Suter, D.: Fast supervised hashing with decision trees for high-dimensional data. In: Computer Vision and Pattern Recognition, pp. 1971–1978 (2014)Google Scholar
  13. 13.
    Loshchilov, I., Hutter, F.: Online batch selection for faster training of neural networks. arXiv preprint arXiv:1511.06343 (2015)
  14. 14.
    Ma, C., Gong, C., Gu, Y., Yang, J., Feng, D.: SHISS: supervised hashing with informative set selection. Pattern Recognit. Lett. 107, 105–113 (2017)CrossRefGoogle Scholar
  15. 15.
    Russakovsky, O., et al.: Imagenet large scale visual recognition challenge. Int. J. Comput. Vis. 115(3), 211–252 (2015)MathSciNetCrossRefGoogle Scholar
  16. 16.
    Shen, F., Shen, C., Liu, W., Shen, H.T.: Supervised discrete hashing. In: Computer Vision and Pattern Recognition, pp. 37–45 (2015)Google Scholar
  17. 17.
    Wang, J., Zhang, T., Song, J., Sebe, N., Shen, H.T.: A survey on learning to hash. IEEE Trans. Pattern Anal. Mach. Intell. 40(4), 769–790 (2018)CrossRefGoogle Scholar
  18. 18.
    Wang, J., Kumar, S., Chang, S.F.: Sequential projection learning for hashing with compact codes. In: International Conference on International Conference on Machine Learning, pp. 1127–1134 (2010)Google Scholar
  19. 19.
    Wang, Q., Si, L., Zhang, Z., Zhang, N.: Active hashing with joint data example and tag selection. In: International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 405–414 (2014)Google Scholar
  20. 20.
    Weiss, Y., Torralba, A., Fergus, R.: Spectral hashing. In: International Conference on Neural Information Processing Systems, pp. 1753–1760 (2008)Google Scholar
  21. 21.
    Xia, R., Pan, Y., Lai, H., Liu, C., Yan, S.: Supervised hashing for image retrieval via image representation learning. In: AAAI Conference on Artificial Intelligence (2012)Google Scholar
  22. 22.
    Zhang, P., Zhang, W., Li, W.J., Guo, M.: Supervised hashing with latent factor models. In: Proceedings of the 37th International ACM SIGIR Conference on Research & Development in Information Retrieval, pp. 173–182. ACM (2014)Google Scholar
  23. 23.
    Zhen, Y., Yeung, D.Y.: Active hashing and its application to image and text retrieval. Data Min. Knowl. Discov. 26(2), 255–274 (2013)MathSciNetCrossRefGoogle Scholar
  24. 24.
    Zhu, H., Long, M., Wang, J., Cao, Y.: Deep hashing network for efficient similarity retrieval. In: AAAI, pp. 2415–2421 (2016)Google Scholar

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  1. 1.Institute of Image Processing and Pattern RecognitionShanghai Jiao Tong UniversityShanghaiChina

Personalised recommendations