Learning to hash with semantic similarity metrics and empirical KL divergence

05/11/2020
by   Heikki Arponen, et al.
0

Learning to hash is an efficient paradigm for exact and approximate nearest neighbor search from massive databases. Binary hash codes are typically extracted from an image by rounding output features from a CNN, which is trained on a supervised binary similar/ dissimilar task. Drawbacks of this approach are: (i) resulting codes do not necessarily capture semantic similarity of the input data (ii) rounding results in information loss, manifesting as decreased retrieval performance and (iii) Using only class-wise similarity as a target can lead to trivial solutions, simply encoding classifier outputs rather than learning more intricate relations, which is not detected by most performance metrics. We overcome (i) via a novel loss function encouraging the relative hash code distances of learned features to match those derived from their targets. We address (ii) via a differentiable estimate of the KL divergence between network outputs and a binary target distribution, resulting in minimal information loss when the features are rounded to binary. Finally, we resolve (iii) by focusing on a hierarchical precision metric. Efficiency of the methods is demonstrated with semantic image retrieval on the CIFAR-100, ImageNet and Conceptual Captions datasets, using similarities inferred from the WordNet label hierarchy or sentence embeddings.

READ FULL TEXT
research
08/12/2019

SHREWD: Semantic Hierarchy-based Relational Embeddings for Weakly-supervised Deep Hashing

Using class labels to represent class similarity is a typical approach t...
research
10/01/2018

Learning Hash Codes via Hamming Distance Targets

We present a powerful new loss function and training scheme for learning...
research
02/04/2016

An ensemble diversity approach to supervised binary hashing

Binary hashing is a well-known approach for fast approximate nearest-nei...
research
02/02/2017

HashNet: Deep Learning to Hash by Continuation

Learning to hash has been widely applied to approximate nearest neighbor...
research
09/04/2015

CNN Based Hashing for Image Retrieval

Along with data on the web increasing dramatically, hashing is becoming ...
research
08/11/2021

Instance-weighted Central Similarity for Multi-label Image Retrieval

Deep hashing has been widely applied to large-scale image retrieval by e...
research
01/30/2015

SHOE: Supervised Hashing with Output Embeddings

We present a supervised binary encoding scheme for image retrieval that ...

Please sign up or login with your details

Forgot password? Click here to reset