Embedding And Clustering Your Data Can Improve Contrastive Pretraining

Luke Merrick
7/26/2024
cs.LGcs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Recent studies of large-scale contrastive pretraining in the text embedding domain show that using single-source minibatches, rather than mixed-source minibatches, can substantially improve overall model accuracy. In this work, we explore extending training data stratification beyond source granularity by leveraging a pretrained text embedding model and the classic k-means clustering algorithm to further split training data apart by the semantic clusters within each source. Experimentally, we observe a notable increase in NDCG@10 when pretraining a BERT-based text embedding model on query-passage pairs from the MSMARCO passage retrieval dataset. Additionally, we conceptually connect our clustering approach to both the Topic Aware Sampling (TAS) aspect of the TAS-B methodology and the nearest-neighbor-based hard-negative mining aspect of the ANCE methodology and discuss how this unified view motivates future lines of research on the organization of contrastive pretraining data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{merrick2024embedding,
  title  = {Embedding And Clustering Your Data Can Improve Contrastive Pretraining},
  author = {Luke Merrick},
  year   = {2024},
  eprint = {2407.18887},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.18887v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.18887.svg)](https://codeofpaper.com/paper/2407.18887)

Discussion