One Loss for All: Deep Hashing with a Single Cosine Similarity based Learning Objective
Not on the map. Why?
Abstract (arXiv)
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
Key facts. Cited by 43 papers in the map (data through 7 Oct 2026). Builds on 26 of its 54 references that are in the map. First posted on arXiv 29 Sep 2021.
Builds on
26 of 54 references.
References · 26
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
- 2018CosFace: Large Margin Cosine Loss for Deep Face Recognitioncited by 968
- 2017SphereFace: Deep Hypersphere Embedding for Face Recognitioncited by 733
- 2017Regularizing Neural Networks by Penalizing Confident Output Distributionscited by 461
- 2020Google Landmarks Dataset v2 -- A Large-Scale Benchmark for Instance-Level Recognition and Retrievalcited by 305
- 2018Revisiting Oxford and Paris: Large-Scale Image Retrieval Benchmarkingcited by 189
- 2014Return of the Devil in the Details: Delving Deep into Convolutional Netscited by 122
- 2017HashNet: Deep Learning to Hash by Continuationcited by 121
- 2016A Survey on Learning to Hashcited by 119
14 more
- 2019Central Similarity Quantization for Efficient Image and Video Retrievalcited by 77
- 2020A Decade Survey of Content Based Image Retrieval using Deep Learningcited by 72
- 2015Feature Learning based Deep Supervised Hashing with Pairwise Labelscited by 59
- 2015Simultaneous Feature Learning and Hash Coding with Deep Neural Networkscited by 44
- 2015Learning to Hash for Indexing Big Data - A Surveycited by 39
- 2017Deep Supervised Discrete Hashingcited by 36
- 2016Deep Supervised Hashing with Triplet Labelscited by 27
- 2015Deep Semantic Ranking Based Hashing for Multi-Label Image Retrievalcited by 24
- 2020Deep Unsupervised Image Hashing by Maximizing Bit Entropycited by 20
- 2019Deep Triplet Quantizationcited by 16
- 2019Supervised Online Hashing via Hadamard Codebook Learningcited by 7
- 2019Embarrassingly Simple Binary Representation Learningcited by 3
- 2019Neural Networks Weights Quantization: Target None-retraining Ternary (TNT)cited by 3
- 2013A General Two-Step Approach to Learning-Based Hashingcited by 2
Built on by
Citing papers per year: 2021: 2; 2022: 11; 2023: 8; 2024: 7; 2025: 10; 2026: 5.
43 papers.
Sort:
By area:
- 2022FashionViL: Fashion-Focused Vision-and-Language Representation Learningcited by 32
- 2024Prototypical Hash Encoding for On-the-Fly Fine-Grained Category Discoverycited by 19
- 2024COMAE: COMprehensive Attribute Exploration for Zero-shot Hashingcited by 16
- 2022SEMICON: A Learning-to-hash Solution for Large-scale Fine-grained Image Retrievalcited by 11
- 2022HashVFL: Defending Against Data Reconstruction Attacks in Vertical Federated Learningcited by 10
- 2021Deep Hash Distillation for Image Retrievalcited by 9
- 2022One Loss for Quantization: Deep Hashing with Discrete Wasserstein Distributional Matchingcited by 9
- 2023Attribute-Aware Deep Hashing with Self-Consistency for Large-Scale Fine-Grained Image Retrievalcited by 8
- 2023PMI Sampler: Patch Similarity Guided Frame Selection for Aerial Action Recognitioncited by 7
- 2021Making a Bird AI Expert Work for You and Mecited by 6
- 2023Semantic-Aware Adversarial Training for Reliable Deep Hashing Retrievalcited by 5
- 2022Hijack Vertical Federated Learning Models As One Partycited by 4
31 more
- 2023MITFAS: Mutual Information based Temporal Feature Alignment and Sampling for Aerial Video Action Recognitioncited by 4
- 2024Towards Cross-modal Backward-compatible Representation Learning for Vision-Language Modelscited by 4
- 2022HyP2 Loss: Beyond Hypersphere Metric Space for Multi-label Image Retrievalcited by 3
- 2024Constrained Multiview Representation for Self-supervised Contrastive Learningcited by 3
- 2025Deep Hashing with Semantic Hash Centers for Image Retrievalcited by 3
- 2025Mutual Learning for Hashing: Unlocking Strong Hash Functions from Weak Supervisioncited by 3
- 2022CgAT: Center-Guided Adversarial Training for Deep Hashing-Based Retrievalcited by 2
- 2022A Lower Bound of Hash Codes' Performancecited by 2
- 2023Unsupervised Hashing with Similarity Distribution Calibrationcited by 2
- 2023Deep Hashing via Householder Quantizationcited by 2
- 2024Sobolev neural network with residual weighting as a surrogate in linear and non-linear mechanicscited by 2
- 2024Nested Hash Layer: A Plug-and-play Module for Multiple-length Hash Code Learningcited by 2
- 2025Image Hashing via Cross-View Code Alignment in the Age of Foundation Modelscited by 2
- 2026Spruce: Scalable Private Outsourced Retrieval Using Compact Embeddingscited by 2
- 2022CoopHash: Cooperative Learning of Multipurpose Descriptor and Contrastive Pair Generator via Variational MCMC Teaching for Supervised Image Hashingcited by 1
- 2024ConceptHash: Interpretable Fine-Grained Hashing via Concept Discoverycited by 1
- 2025Learning Attribute-Aware Hash Codes for Fine-Grained Image Retrieval via Query Optimizationcited by 1
- 2025Codebook-Centric Deep Hashing: End-to-End Joint Learning of Semantic Hash Centers and Neural Hash Functioncited by 1
- 2026UniHash: Unifying Pointwise and Pairwise Hashing Paradigmscited by 1
- 2026Pointing the Way, Hiding the Destination: Practical Private Dense Retrieval at Scalecited by 1
- 2022Large-Scale Product Retrieval with Weakly Supervised Representation Learningcited by 0
- 2022Cross-Scale Context Extracted Hashing for Fine-Grained Image Binary Encodingcited by 0
- 2023Unsupervised Multi-Criteria Adversarial Detection in Deep Image Retrievalcited by 0
- 2023Towards Efficient Deep Hashing Retrieval: Condensing Your Data via Feature-Embedding Matchingcited by 0
- 2025Clean Image May be Dangerous: Data Poisoning Attacks Against Deep Hashingcited by 0
- 2025Vector-based loss functions for turbulent flow field inpaintingcited by 0
- 2025Adaptive von Mises-Fisher Likelihood Loss for Supervised Deep Time Series Hashingcited by 0
- 2025DualHash: A Stochastic Primal-Dual Algorithm with Theoretical Guarantee for Deep Hashingcited by 0
- 2025Dropout Prompt Learning: Towards Robust and Adaptive Vision-Language Modelscited by 0
- 2026Scalable Secure Biometric Authentication without Auxiliary Identifierscited by 0
- 2026Beyond Post-Quantization: Native Hash Learning with a Dedicated HASH Tokencited by 0
- 2026Spruce: Scalable Private Outsourced Retrieval Using Compact Embeddings3 Sep 2026
- 2026Pointing the Way, Hiding the Destination: Practical Private Dense Retrieval at Scale26 Aug 2026
- 2026Beyond Post-Quantization: Native Hash Learning with a Dedicated HASH Token3 Jul 2026
- 2026Scalable Secure Biometric Authentication without Auxiliary Identifiers27 Apr 2026
- 2026UniHash: Unifying Pointwise and Pairwise Hashing Paradigms14 Jan 2026
- 2025Dropout Prompt Learning: Towards Robust and Adaptive Vision-Language Models8 Dec 2025
- 2025Codebook-Centric Deep Hashing: End-to-End Joint Learning of Semantic Hash Centers and Neural Hash Function15 Nov 2025
- 2025Image Hashing via Cross-View Code Alignment in the Age of Foundation Models31 Oct 2025
- 2025DualHash: A Stochastic Primal-Dual Algorithm with Theoretical Guarantee for Deep Hashing21 Oct 2025
- 2025Mutual Learning for Hashing: Unlocking Strong Hash Functions from Weak Supervision9 Oct 2025
- 2025Adaptive von Mises-Fisher Likelihood Loss for Supervised Deep Time Series Hashing23 Sep 2025
- 2025Learning Attribute-Aware Hash Codes for Fine-Grained Image Retrieval via Query Optimization21 Sep 2025
31 more
- 2025Vector-based loss functions for turbulent flow field inpainting6 Sep 2025
- 2025Deep Hashing with Semantic Hash Centers for Image Retrieval11 Jul 2025
- 2025Clean Image May be Dangerous: Data Poisoning Attacks Against Deep Hashing27 Mar 2025
- 2024Nested Hash Layer: A Plug-and-play Module for Multiple-length Hash Code Learning12 Dec 2024
- 2024Prototypical Hash Encoding for On-the-Fly Fine-Grained Category Discovery24 Oct 2024
- 2024Sobolev neural network with residual weighting as a surrogate in linear and non-linear mechanics23 Jul 2024
- 2024ConceptHash: Interpretable Fine-Grained Hashing via Concept Discovery12 Jun 2024
- 2024Towards Cross-modal Backward-compatible Representation Learning for Vision-Language Models23 May 2024
- 2024COMAE: COMprehensive Attribute Exploration for Zero-shot Hashing26 Feb 2024
- 2024Constrained Multiview Representation for Self-supervised Contrastive Learning5 Feb 2024
- 2023Attribute-Aware Deep Hashing with Self-Consistency for Large-Scale Fine-Grained Image Retrieval21 Nov 2023
- 2023Deep Hashing via Householder Quantization7 Nov 2023
- 2023Semantic-Aware Adversarial Training for Reliable Deep Hashing Retrieval23 Oct 2023
- 2023Towards Efficient Deep Hashing Retrieval: Condensing Your Data via Feature-Embedding Matching29 May 2023
- 2023PMI Sampler: Patch Similarity Guided Frame Selection for Aerial Action Recognition14 Apr 2023
- 2023Unsupervised Multi-Criteria Adversarial Detection in Deep Image Retrieval9 Apr 2023
- 2023MITFAS: Mutual Information based Temporal Feature Alignment and Sampling for Aerial Video Action Recognition5 Mar 2023
- 2023Unsupervised Hashing with Similarity Distribution Calibration15 Feb 2023
- 2022HashVFL: Defending Against Data Reconstruction Attacks in Vertical Federated Learning1 Dec 2022
- 2022Hijack Vertical Federated Learning Models As One Party1 Dec 2022
- 2022Cross-Scale Context Extracted Hashing for Fine-Grained Image Binary Encoding14 Oct 2022
- 2022A Lower Bound of Hash Codes' Performance12 Oct 2022
- 2022CoopHash: Cooperative Learning of Multipurpose Descriptor and Contrastive Pair Generator via Variational MCMC Teaching for Supervised Image Hashing9 Oct 2022
- 2022SEMICON: A Learning-to-hash Solution for Large-scale Fine-grained Image Retrieval28 Sep 2022
- 2022HyP2 Loss: Beyond Hypersphere Metric Space for Multi-label Image Retrieval14 Aug 2022
- 2022Large-Scale Product Retrieval with Weakly Supervised Representation Learning1 Aug 2022
- 2022FashionViL: Fashion-Focused Vision-and-Language Representation Learning17 Jul 2022
- 2022One Loss for Quantization: Deep Hashing with Discrete Wasserstein Distributional Matching31 May 2022
- 2022CgAT: Center-Guided Adversarial Training for Deep Hashing-Based Retrieval18 Apr 2022
- 2021Deep Hash Distillation for Image Retrieval16 Dec 2021
- 2021Making a Bird AI Expert Work for You and Me6 Dec 2021
- 2022FashionViL: Fashion-Focused Vision-and-Language Representation Learningcited by 32
- 2024Prototypical Hash Encoding for On-the-Fly Fine-Grained Category Discoverycited by 19
- 2024COMAE: COMprehensive Attribute Exploration for Zero-shot Hashingcited by 16
- 2022SEMICON: A Learning-to-hash Solution for Large-scale Fine-grained Image Retrievalcited by 11
- 2022HashVFL: Defending Against Data Reconstruction Attacks in Vertical Federated Learningcited by 10
- 2021Deep Hash Distillation for Image Retrievalcited by 9
- 2022One Loss for Quantization: Deep Hashing with Discrete Wasserstein Distributional Matchingcited by 9
- 2023Attribute-Aware Deep Hashing with Self-Consistency for Large-Scale Fine-Grained Image Retrievalcited by 8
- 2023PMI Sampler: Patch Similarity Guided Frame Selection for Aerial Action Recognitioncited by 7
- 2021Making a Bird AI Expert Work for You and Mecited by 6
- 2023Semantic-Aware Adversarial Training for Reliable Deep Hashing Retrievalcited by 5
- 2022Hijack Vertical Federated Learning Models As One Partycited by 4
12 most cited of 38 All 38 (JSON)
- 2026Beyond Post-Quantization: Native Hash Learning with a Dedicated HASH Token3 Jul 2026
- 2026Scalable Secure Biometric Authentication without Auxiliary Identifiers27 Apr 2026
- 2026UniHash: Unifying Pointwise and Pairwise Hashing Paradigms14 Jan 2026
- 2025Codebook-Centric Deep Hashing: End-to-End Joint Learning of Semantic Hash Centers and Neural Hash Function15 Nov 2025
- 2025Image Hashing via Cross-View Code Alignment in the Age of Foundation Models31 Oct 2025
- 2025DualHash: A Stochastic Primal-Dual Algorithm with Theoretical Guarantee for Deep Hashing21 Oct 2025
- 2025Mutual Learning for Hashing: Unlocking Strong Hash Functions from Weak Supervision9 Oct 2025
- 2025Adaptive von Mises-Fisher Likelihood Loss for Supervised Deep Time Series Hashing23 Sep 2025
- 2025Learning Attribute-Aware Hash Codes for Fine-Grained Image Retrieval via Query Optimization21 Sep 2025
- 2025Vector-based loss functions for turbulent flow field inpainting6 Sep 2025
- 2025Deep Hashing with Semantic Hash Centers for Image Retrieval11 Jul 2025
- 2024Nested Hash Layer: A Plug-and-play Module for Multiple-length Hash Code Learning12 Dec 2024
12 newest of 38 All 38 (JSON)