mlsanityData to 14 Oct 2026

Simple and Effective Balance of Contrastive Losses

arXiv 2112.11743 ↗First posted 22 Dec 2021cs.LG cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

Contrastive losses have long been a key ingredient of deep metric learning and are now becoming more popular due to the success of self-supervised learning. Recent research has shown the benefit of decomposing such losses into two sub-losses which act in a complementary way when learning the representation network: a positive term and an entropy term. Although the overall loss is thus defined as a combination of two terms, the balance of these two terms is often hidden behind implementation details and is largely ignored and sub-optimal in practice. In this work, we approach the balance of contrastive losses as a hyper-parameter optimization problem, and propose a coordinate descent-based search method that efficiently find the hyper-parameters that optimize evaluation performance. In the process, we extend existing balance analyses to the contrastive margin loss, include batch size in the balance, and explain how to aggregate loss elements from the batch to maintain near-optimal performance over a larger range of batch sizes. Extensive experiments with benchmarks from deep metric learning and self-supervised learning show that optimal hyper-parameters are found faster with our method than with other common search methods.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 47 of its 58 references that are in the map. First posted on arXiv 22 Dec 2021.

Builds on

47 of 58 references.

References · 47

  1. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  2. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  3. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
  4. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  5. 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,750
  6. 2020Exploring Simple Siamese Representation Learningcited by 2,866
  7. 2020Unsupervised Learning of Visual Features by Contrasting Cluster Assignmentscited by 2,857
  8. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,849
  9. 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,501
  10. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
  11. 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,405
  12. 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
35 more
  1. 2019Contrastive Multiview Codingcited by 1,301
  2. 2016Optimization Methods for Large-Scale Machine Learningcited by 1,150
  3. 2019Self-Supervised Learning of Pretext-Invariant Representationscited by 808
  4. 2017In Defense of the Triplet Loss for Person Re-Identificationcited by 786
  5. 2017Fine-tuning CNN Image Retrieval with No Human Annotationcited by 499
  6. 2015Deep Metric Learning via Lifted Structured Feature Embeddingcited by 449
  7. 2020RocketQA: An Optimized Training Approach to Dense Passage Retrieval for Open-Domain Question Answeringcited by 413
  8. 2019Multi-Similarity Loss with General Pair Weighting for Deep Metric Learningcited by 368
  9. 2020A Metric Learning Reality Checkcited by 321
  10. 2017Sampling Matters in Deep Embedding Learningcited by 285
  11. 2017Three Factors Influencing Minima in SGDcited by 273
  12. 2021Self-supervised Pretraining of Visual Features in the Wildcited by 198
  13. 2018Revisiting Oxford and Paris: Large-Scale Image Retrieval Benchmarkingcited by 191
  14. 2016Joint Detection and Identification Feature Learning for Person Searchcited by 190
  15. 2019Learning with Average Precision: Training Image Retrieval with a Listwise Losscited by 185
  16. 2019SoftTriple Loss: Deep Metric Learning Without Triplet Samplingcited by 163
  17. 2016Deep Image Retrieval: Learning global representations for image searchcited by 147
  18. 2015Learning Deep Structure-Preserving Image-Text Embeddingscited by 139
  19. 2017A Bayesian Perspective on Generalization and Stochastic Gradient Descentcited by 135
  20. 2019Cross-Batch Memory for Embedding Learningcited by 132
  21. 2016End-to-end Learning of Deep Visual Representations for Image Retrievalcited by 122
  22. 2021Semi-Supervised Learning of Visual Features by Non-Parametrically Predicting View Assignments with Support Samplescited by 114
  23. 2020Revisiting Training Strategies and Generalization Performance in Deep Metric Learningcited by 100
  24. 2017Smart Mining for Deep Metric Learningcited by 96
  25. 2020Hard negative examples are hard, but usefulcited by 82
  26. 2019Improved Embeddings with Easy Positive Triplet Miningcited by 67
  27. 2020Understanding Self-supervised Learning with Dual Deep Networkscited by 62
  28. 2016CMA-ES for Hyperparameter Optimization of Deep Neural Networkscited by 48
  29. 2020Self-Supervised Relational Reasoning for Representation Learningcited by 37
  30. 2017AdaBatch: Adaptive Batch Sizes for Training Deep Neural Networkscited by 29
  31. 2021It Takes Two to Tango: Mixup for Deep Metric Learningcited by 23
  32. 2015Visual Search at Pinterestcited by 19
  33. 2019Unbiased Evaluation of Deep Metric Learning Algorithmscited by 10
  34. 2020A Simple General Approach to Balance Task Difficulty in Multi-Task Learningcited by 8
  35. 2021Rethinking Deep Contrastive Learning with Embedding Memorycited by 3

Built on by

Not cited yet.