# Deep Class-Wise Hashing: Semantics-Preserving Hashing via Class-wise Loss

arXiv: https://arxiv.org/abs/1803.04137 · HTML: https://mlsanity.com/paper/1803.04137/

## Key facts

- Cited by 3 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 12 Mar 2018.

## Built on by (most cited first, 3 of 3)

- [Improved Deep Classwise Hashing With Centers Similarity Learning for Image Retrieval](https://mlsanity.com/paper/2103.09442/) (2021)
- [Orthonormal Product Quantization Network for Scalable Face Image Retrieval](https://mlsanity.com/paper/2107.00327/) (2021)
- [Cross-Scale Context Extracted Hashing for Fine-Grained Image Binary Encoding](https://mlsanity.com/paper/2210.07572/) (2022)

## Abstract (arXiv)

Deep supervised hashing has emerged as an influential solution to large-scale semantic image retrieval problems in computer vision. In the light of recent progress, convolutional neural network based hashing methods typically seek pair-wise or triplet labels to conduct the similarity preserving learning. However, complex semantic concepts of visual contents are hard to capture by similar/dissimilar labels, which limits the retrieval performance. Generally, pair-wise or triplet losses not only suffer from expensive training costs but also lack in extracting sufficient semantic information. In this regard, we propose a novel deep supervised hashing model to learn more compact class-level similarity preserving binary codes. Our deep learning based model is motivated by deep metric learning that directly takes semantic labels as supervised information in training and generates corresponding discriminant hashing code. Specifically, a novel cubic constraint loss function based on Gaussian distribution is proposed, which preserves semantic variations while penalizes the overlap part of different classes in the embedding space. To address the discrete optimization problem introduced by binary codes, a two-step optimization strategy is proposed to provide efficient training and avoid the problem of gradient vanishing. Extensive experiments on four large-scale benchmark databases show that our model can achieve the state-of-the-art retrieval performance. Moreover, when training samples are limited, our method surpasses other supervised deep hashing methods with non-negligible margins.
