mlsanityData to 7 Oct 2026

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

arXiv 2109.14449 ↗First posted 29 Sep 2021cs.CV cs.LGcited by 43

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

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  3. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  4. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  5. 2018CosFace: Large Margin Cosine Loss for Deep Face Recognitioncited by 968
  6. 2017SphereFace: Deep Hypersphere Embedding for Face Recognitioncited by 733
  7. 2017Regularizing Neural Networks by Penalizing Confident Output Distributionscited by 461
  8. 2020Google Landmarks Dataset v2 -- A Large-Scale Benchmark for Instance-Level Recognition and Retrievalcited by 305
  9. 2018Revisiting Oxford and Paris: Large-Scale Image Retrieval Benchmarkingcited by 189
  10. 2014Return of the Devil in the Details: Delving Deep into Convolutional Netscited by 122
  11. 2017HashNet: Deep Learning to Hash by Continuationcited by 121
  12. 2016A Survey on Learning to Hashcited by 119
14 more
  1. 2019Central Similarity Quantization for Efficient Image and Video Retrievalcited by 77
  2. 2020A Decade Survey of Content Based Image Retrieval using Deep Learningcited by 72
  3. 2015Feature Learning based Deep Supervised Hashing with Pairwise Labelscited by 59
  4. 2015Simultaneous Feature Learning and Hash Coding with Deep Neural Networkscited by 44
  5. 2015Learning to Hash for Indexing Big Data - A Surveycited by 39
  6. 2017Deep Supervised Discrete Hashingcited by 36
  7. 2016Deep Supervised Hashing with Triplet Labelscited by 27
  8. 2015Deep Semantic Ranking Based Hashing for Multi-Label Image Retrievalcited by 24
  9. 2020Deep Unsupervised Image Hashing by Maximizing Bit Entropycited by 20
  10. 2019Deep Triplet Quantizationcited by 16
  11. 2019Supervised Online Hashing via Hadamard Codebook Learningcited by 7
  12. 2019Embarrassingly Simple Binary Representation Learningcited by 3
  13. 2019Neural Networks Weights Quantization: Target None-retraining Ternary (TNT)cited by 3
  14. 2013A General Two-Step Approach to Learning-Based Hashingcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 11; 2023: 8; 2024: 7; 2025: 10; 2026: 5.

43 papers.

Sort:

By area:

  1. 2022FashionViL: Fashion-Focused Vision-and-Language Representation Learningcited by 32
  2. 2024Prototypical Hash Encoding for On-the-Fly Fine-Grained Category Discoverycited by 19
  3. 2024COMAE: COMprehensive Attribute Exploration for Zero-shot Hashingcited by 16
  4. 2022SEMICON: A Learning-to-hash Solution for Large-scale Fine-grained Image Retrievalcited by 11
  5. 2022HashVFL: Defending Against Data Reconstruction Attacks in Vertical Federated Learningcited by 10
  6. 2021Deep Hash Distillation for Image Retrievalcited by 9
  7. 2022One Loss for Quantization: Deep Hashing with Discrete Wasserstein Distributional Matchingcited by 9
  8. 2023Attribute-Aware Deep Hashing with Self-Consistency for Large-Scale Fine-Grained Image Retrievalcited by 8
  9. 2023PMI Sampler: Patch Similarity Guided Frame Selection for Aerial Action Recognitioncited by 7
  10. 2021Making a Bird AI Expert Work for You and Mecited by 6
  11. 2023Semantic-Aware Adversarial Training for Reliable Deep Hashing Retrievalcited by 5
  12. 2022Hijack Vertical Federated Learning Models As One Partycited by 4
31 more
  1. 2023MITFAS: Mutual Information based Temporal Feature Alignment and Sampling for Aerial Video Action Recognitioncited by 4
  2. 2024Towards Cross-modal Backward-compatible Representation Learning for Vision-Language Modelscited by 4
  3. 2022HyP2 Loss: Beyond Hypersphere Metric Space for Multi-label Image Retrievalcited by 3
  4. 2024Constrained Multiview Representation for Self-supervised Contrastive Learningcited by 3
  5. 2025Deep Hashing with Semantic Hash Centers for Image Retrievalcited by 3
  6. 2025Mutual Learning for Hashing: Unlocking Strong Hash Functions from Weak Supervisioncited by 3
  7. 2022CgAT: Center-Guided Adversarial Training for Deep Hashing-Based Retrievalcited by 2
  8. 2022A Lower Bound of Hash Codes' Performancecited by 2
  9. 2023Unsupervised Hashing with Similarity Distribution Calibrationcited by 2
  10. 2023Deep Hashing via Householder Quantizationcited by 2
  11. 2024Sobolev neural network with residual weighting as a surrogate in linear and non-linear mechanicscited by 2
  12. 2024Nested Hash Layer: A Plug-and-play Module for Multiple-length Hash Code Learningcited by 2
  13. 2025Image Hashing via Cross-View Code Alignment in the Age of Foundation Modelscited by 2
  14. 2026Spruce: Scalable Private Outsourced Retrieval Using Compact Embeddingscited by 2
  15. 2022CoopHash: Cooperative Learning of Multipurpose Descriptor and Contrastive Pair Generator via Variational MCMC Teaching for Supervised Image Hashingcited by 1
  16. 2024ConceptHash: Interpretable Fine-Grained Hashing via Concept Discoverycited by 1
  17. 2025Learning Attribute-Aware Hash Codes for Fine-Grained Image Retrieval via Query Optimizationcited by 1
  18. 2025Codebook-Centric Deep Hashing: End-to-End Joint Learning of Semantic Hash Centers and Neural Hash Functioncited by 1
  19. 2026UniHash: Unifying Pointwise and Pairwise Hashing Paradigmscited by 1
  20. 2026Pointing the Way, Hiding the Destination: Practical Private Dense Retrieval at Scalecited by 1
  21. 2022Large-Scale Product Retrieval with Weakly Supervised Representation Learningcited by 0
  22. 2022Cross-Scale Context Extracted Hashing for Fine-Grained Image Binary Encodingcited by 0
  23. 2023Unsupervised Multi-Criteria Adversarial Detection in Deep Image Retrievalcited by 0
  24. 2023Towards Efficient Deep Hashing Retrieval: Condensing Your Data via Feature-Embedding Matchingcited by 0
  25. 2025Clean Image May be Dangerous: Data Poisoning Attacks Against Deep Hashingcited by 0
  26. 2025Vector-based loss functions for turbulent flow field inpaintingcited by 0
  27. 2025Adaptive von Mises-Fisher Likelihood Loss for Supervised Deep Time Series Hashingcited by 0
  28. 2025DualHash: A Stochastic Primal-Dual Algorithm with Theoretical Guarantee for Deep Hashingcited by 0
  29. 2025Dropout Prompt Learning: Towards Robust and Adaptive Vision-Language Modelscited by 0
  30. 2026Scalable Secure Biometric Authentication without Auxiliary Identifierscited by 0
  31. 2026Beyond Post-Quantization: Native Hash Learning with a Dedicated HASH Tokencited by 0