arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.14449cs.CVcs.LG
收藏

One Loss for All:基于单余弦相似度的深度哈希

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

Universiti Malaya(马来亚大学);University of Surrey(萨里大学);Geek+(极智嘉);iFlyTek-Surrey Joint Research Centre on Artificial Intelligence(科大讯飞-萨里人工智能联合研究中心)

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

摘要:

深度哈希模型通常有两个主要的学习目标:使学习的二进制哈希码具有区分性和最小化量化误差。在诸如比特平衡和码正交性的进一步约束的情况下,现有模型采用大量(>4)损耗并不罕见。这导致模型培训的困难,并随后阻碍其有效性。在这项工作中,我们提出了一种新的深度哈希模型,只有一个学习目标。具体来说,我们表明,最大限度地提高连续码和相应的二进制正交码之间的余弦相似性,可以确保散列码的鉴别力和量化误差最小化。此外,利用该学习目标,可以通过简单地使用批量归一化(BN)层来实现代码平衡,并且多标签分类也可以直接使用标签平滑。其结果是一个单损失深度哈希模型,消除了调整各种损失权重的所有麻烦。重要的是,大量的实验表明,我们的模型是非常有效的,在三个大规模的实例检索基准测试中,性能优于最先进的多损失哈希模型,通常是显著的利润率。代码可在https://github.com/kamwoh/orthohash上获得

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑