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
翻译:深 hash 模式通常有两个主要学习目标: 使所学的二进制散列编码具有歧视性, 并尽量减少量化错误。 随着比特平衡和代码正正度等进一步的限制, 现有模型使用大量损失( > 4) 并不罕见。 这导致模型培训困难, 并随后妨碍其有效性。 在这项工作中, 我们提出了一个全新的深度散列模型, 只有一个学习目标 。 具体地说, 我们显示, 最大限度地实现连续代码与其对应的二进制或正反调代码之间的共生相似性, 既能确保散代制区分和量化错误最小化。 此外, 有了这一学习目标, 可以通过简单地使用 Batch 正常化( BN) 层和多标签分类来实现代码平衡。 其结果是, 一种一次性的深度散列模型, 消除了调各种损失的重量。 重要的是, 广泛的实验显示我们的模型非常有效, 超越了该级多亏损( Hash) 模式。 在三种大空格/ 标准中, 通常可以使用 MAW 基准 。