Learning to Hash Naturally Sorts

01/31/2022
by   Yuming Shen, et al.
0

Locality sensitive hashing pictures a list-wise sorting problem. Its testing metrics, e.g., mean-average precision, count on a sorted candidate list ordered by pair-wise code similarity. However, scarcely does one train a deep hashing model with the sorted results end-to-end because of the non-differentiable nature of the sorting operation. This inconsistency in the objectives of training and test may lead to sub-optimal performance since the training loss often fails to reflect the actual retrieval metric. In this paper, we tackle this problem by introducing Naturally-Sorted Hashing (NSH). We sort the Hamming distances of samples' hash codes and accordingly gather their latent representations for self-supervised training. Thanks to the recent advances in differentiable sorting approximations, the hash head receives gradients from the sorter so that the hash encoder can be optimized along with the training procedure. Additionally, we describe a novel Sorted Noise-Contrastive Estimation (SortedNCE) loss that selectively picks positive and negative samples for contrastive learning, which allows NSH to mine data semantic relations during training in an unsupervised manner. Our extensive experiments show the proposed NSH model significantly outperforms the existing unsupervised hashing methods on three benchmarked datasets.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/28/2022

Weighted Contrastive Hashing

The development of unsupervised hashing is advanced by the recent popula...
research
03/26/2021

Unsupervised Multi-Index Semantic Hashing

Semantic hashing represents documents as compact binary vectors (hash co...
research
05/13/2021

Unsupervised Hashing with Contrastive Information Bottleneck

Many unsupervised hashing methods are implicitly established on the idea...
research
12/17/2022

Hyperbolic Hierarchical Contrastive Hashing

Hierarchical semantic structures, naturally existing in real-world datas...
research
10/13/2020

It's the Best Only When It Fits You Most: Finding Related Models for Serving Based on Dynamic Locality Sensitive Hashing

In recent, deep learning has become the most popular direction in machin...
research
06/06/2022

Hashing Learning with Hyper-Class Representation

Existing unsupervised hash learning is a kind of attribute-centered calc...

Please sign up or login with your details

Forgot password? Click here to reset