EMC2: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergence
Not on the map. Why?
Abstract (arXiv)
A key challenge in contrastive learning is to generate negative samples from a large sample set to contrast with positive samples, for learning better encoding of the data. These negative samples often follow a softmax distribution which are dynamically updated during the training process. However, sampling from this distribution is non-trivial due to the high computational costs in computing the partition function. In this paper, we propose an Efficient Markov Chain Monte Carlo negative sampling method for Contrastive learning (EMC2). We follow the global contrastive learning loss as introduced in SogCLR, and propose EMC2 which utilizes an adaptive Metropolis-Hastings subroutine to generate hardness-aware negative samples in an online fashion during the optimization. We prove that EMC2 finds an O(1/√T)-stationary point of the global contrastive loss in T iterations. Compared to prior works, EMC2 is the first algorithm that exhibits global convergence (to stationarity) regardless of the choice of batch size while exhibiting low computation and memory cost. Numerical experiments validate that EMC2 is effective with small batch training and achieves comparable or better performance than baseline algorithms. We report the results for pre-training image encoders on STL-10 and Imagenet-100.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 31 of its 43 references that are in the map. First posted on arXiv 16 Apr 2024.
Builds on
31 of 43 references.
References · 31
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
- 2022Reproducible scaling laws for contrastive language-image learningcited by 1,163
- 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,057
19 more
- 2021VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learningcited by 1,013
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2020Contrastive Learning with Hard Negative Samplescited by 619
- 2020LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understandingcited by 406
- 2023A Cookbook of Self-Supervised Learningcited by 248
- 2023Multimodal Foundation Models: From Specialists to General-Purpose Assistantscited by 247
- 2018A Finite Time Analysis of Temporal Difference Learning With Linear Function Approximationcited by 225
- 2021Contrastive Learning Inverts the Data Generating Processcited by 220
- 2018An efficient framework for learning sentence representationscited by 197
- 2019Finite-Time Error Bounds For Linear Stochastic Approximation and TD Learningcited by 165
- 2020Understanding Negative Sampling in Graph Representation Learningcited by 66
- 2018On Markov Chain Gradient Descentcited by 63
- 2019Non-asymptotic Analysis of Biased Stochastic Approximation Schemecited by 45
- 2023Temperature Schedules for Self-Supervised Contrastive Methods on Long-Tail Datacited by 44
- 2022Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performancecited by 40
- 2017Adaptive Sampled Softmax with Kernel Based Samplingcited by 38
- 2019Sampled Softmax with Random Fourier Featurescited by 33
- 2023FormNetV2: Multimodal Graph Contrastive Learning for Form Document Information Extractioncited by 20
- 2023Improving Dual-Encoder Training through Dynamic Indexes for Negative Miningcited by 5
Built on by
Citing papers per year: 2024: 1.
1 paper.