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