paper-with-me

Papers

Global Contrastive Batch Sampling via Optimization on Sample Permutations

2022-10-23 · Vin Sachidananda, ZiYi Yang, Chenguang Zhu

Contrastive Learning has recently achieved state-of-the-art performance in a wide range of tasks. Many contrastive learning approaches use mined hard negatives to make batches more informative during training but these approaches are inefficient as they increase epoch length proportional to the number of mined negatives and require frequent updates of nearest neighbor indices or mining from recent batches. In this work, we provide an alternative to hard negative mining, Global Contrastive Batch Sampling (GCBS), an efficient approximation to the batch assignment problem that upper bounds the gap between the global and training losses, $\mathcal{L}^{Global} - \mathcal{L}^{Train}$, in contrastive learning settings. Through experimentation we find GCBS improves state-of-the-art performance in sentence embedding and code-search tasks. Additionally, GCBS is easy to implement as it requires only a few additional lines of code, does not maintain external data structures such as nearest neighbor indices, is more computationally efficient than the most minimal hard negative mining approaches, and makes no changes to the model being trained.

📄 PDF Abstract BibTeX arXiv:2210.12874

Code (1)

vinayak1/gcbs 공식 구현 pytorch

Tasks

Code SearchContrastive LearningSentenceSentence EmbeddingSentence-Embedding

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

EMC$^2$: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergence

2024-04-16 · Chung-Yiu Yau, Hoi-To Wai, Parameswaran Raman, Soumajyoti Sarkar 외

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 d…

Contrastive Learning

BatchSampler: Sampling Mini-Batches for Contrastive Learning in Vision, Language, and Graphs

2023-06-06 · Zhen Yang, Tinglin Huang, Ming Ding, Yuxiao Dong 외

In-Batch contrastive learning is a state-of-the-art self-supervised method that brings semantically-similar instances close while pushing dissimilar instances apart within a mini-batch. Its key to success is the negative…

Contrastive LearningSTS

Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performance

2022-02-24 · Zhuoning Yuan, Yuexin Wu, Zi-Hao Qiu, Xianzhi Du 외

In this paper, we study contrastive learning from an optimization perspective, aiming to analyze and address a fundamental issue of existing contrastive learning methods that either rely on a large batch size or a large …

Contrastive LearningSelf-Supervised LearningStochastic Optimization

Mini-Batch Optimization of Contrastive Loss

2023-07-12 · Jaewoong Cho, Kartik Sreenivasan, Keon Lee, Kyunghoo Mun 외

Contrastive learning has gained significant attention as a method for self-supervised learning. The contrastive loss function ensures that embeddings of positive sample pairs (e.g., different samples from the same class …

Contrastive LearningSelf-Supervised Learning

Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detection

2024-06-12 · JaeHoon Kim, Seungwan Jin, SoHyun Park, Someen Park 외

Detecting implicit hate speech that is not directly hateful remains a challenge. Recent research has attempted to detect implicit hate speech by applying contrastive learning to pre-trained language models such as BERT a…

Contrastive LearningHate Speech Detection