Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

One Loss for All: Deep Hashing with a Single Cosine Similarity based Learning Objective

About

A deep hashing model typically has two main learning objectives: to make the learned binary hash codes discriminative and to minimize a quantization error. With further constraints such as bit balance and code orthogonality, it is not uncommon for existing models to employ a large number (>4) of losses. This leads to difficulties in model training and subsequently impedes their effectiveness. In this work, we propose a novel deep hashing model with only a single learning objective. Specifically, we show that maximizing the cosine similarity between the continuous codes and their corresponding binary orthogonal codes can ensure both hash code discriminativeness and quantization error minimization. Further, with this learning objective, code balancing can be achieved by simply using a Batch Normalization (BN) layer and multi-label classification is also straightforward with label smoothing. The result is an one-loss deep hashing model that removes all the hassles of tuning the weights of various losses. Importantly, extensive experiments show that our model is highly effective, outperforming the state-of-the-art multi-loss hashing models on three large-scale instance retrieval benchmarks, often by significant margins. Code is available at https://github.com/kamwoh/orthohash

Jiun Tian Hoe, Kam Woh Ng, Tianyu Zhang, Chee Seng Chan, Yi-Zhe Song, Tao Xiang• 2021

Related benchmarks

TaskDatasetResultRank
Image RetrievalImageNet @1000 (val)
mAP89.36
39
Image RetrievalCIFAR-10 @1000 (test)
mAP94.54
39
Image RetrievalMSCOCO @5000 (test)
mAP80.6
39
Image RetrievalImageNet @1000 15%-unseen
mAP (Unseen@Unseen)59.9
30
Image RetrievalImageNet seen classes @1000
mAP (Seen@Seen)91.5
30
Image RetrievalCIFAR-10 (@1000) 20%-unseen
mAP (Unseen@Unseen)83
30
Image RetrievalCIFAR-10 @1000 (seen classes)
Seen@Seen mAP95.7
30
Image RetrievalMSCOCO @5000 15%-unseen
mAP (Unseen@Unseen)53.3
24
Image RetrievalMSCOCO @5000 (seen classes)
Seen@Seen mAP68.5
24
Image HashingCUB (All/Old/New)
Accuracy (All)30
12
Showing 10 of 13 rows

Other info

Follow for update