Papers
Topics
Authors
Recent
Search
2000 character limit reached

Batch-Softmax Contrastive Loss for Pairwise Sentence Scoring Tasks

Published 10 Oct 2021 in cs.CL, cs.AI, cs.IR, cs.LG, and cs.NE | (2110.15725v1)

Abstract: The use of contrastive loss for representation learning has become prominent in computer vision, and it is now getting attention in NLP. Here, we explore the idea of using a batch-softmax contrastive loss when fine-tuning large-scale pre-trained transformer models to learn better task-specific sentence embeddings for pairwise sentence scoring tasks. We introduce and study a number of variations in the calculation of the loss as well as in the overall training procedure; in particular, we find that data shuffling can be quite important. Our experimental results show sizable improvements on a number of datasets and pairwise sentence scoring tasks including classification, ranking, and regression. Finally, we offer detailed analysis and discussion, which should be useful for researchers aiming to explore the utility of contrastive loss in NLP.

Citations (7)

Summary

Paper to Video (Beta)

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.