CVLGJan 31, 2022

Learning to Hash Naturally Sorts

arXiv:2201.13322v221 citations
Originality Incremental advance
AI Analysis

This work addresses a key bottleneck in unsupervised hashing for retrieval systems, offering an incremental but impactful improvement in training methodology.

The paper tackles the inconsistency between training and testing objectives in deep hashing models by introducing Naturally-Sorted Hashing (NSH), which uses differentiable sorting approximations for end-to-end training, resulting in significant performance improvements over existing unsupervised hashing methods on three benchmark datasets.

Learning to hash 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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes