Pair-Level Supervised Contrastive Learning for Natural Language Inference

01/26/2022
by   Shu'ang Li, et al.
0

Natural language inference (NLI) is an increasingly important task for natural language understanding, which requires one to infer the relationship between the sentence pair (premise and hypothesis). Many recent works have used contrastive learning by incorporating the relationship of the sentence pair from NLI datasets to learn sentence representation. However, these methods only focus on comparisons with sentence-level representations. In this paper, we propose a Pair-level Supervised Contrastive Learning approach (PairSCL). We adopt a cross attention module to learn the joint representations of the sentence pairs. A contrastive learning objective is designed to distinguish the varied classes of sentence pairs by pulling those in one class together and pushing apart the pairs in other classes. We evaluate PairSCL on two public datasets of NLI where the accuracy of PairSCL outperforms other methods by 2.1 on average. Furthermore, our method outperforms the previous state-of-the-art method on seven transfer tasks of text classification.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/31/2022

A Multi-level Supervised Contrastive Learning Framework for Low-Resource Natural Language Inference

Natural Language Inference (NLI) is a growingly essential task in natura...
research
09/12/2021

Pairwise Supervised Contrastive Learning of Sentence Representations

Many recent successes in sentence representation learning have been achi...
research
05/22/2020

SentPWNet: A Unified Sentence Pair Weighting Network for Task-specific Sentence Embedding

Pair-based metric learning has been widely adopted to learn sentence emb...
research
11/01/2021

Interpretable contrastive word mover's embedding

This paper shows that a popular approach to the supervised embedding of ...
research
05/02/2022

Debiased Contrastive Learning of Unsupervised Sentence Representations

Recently, contrastive learning has been shown to be effective in improvi...
research
09/27/2022

Regularized Contrastive Learning of Semantic Search

Semantic search is an important task which objective is to find the rele...
research
03/09/2023

ESCL: Equivariant Self-Contrastive Learning for Sentence Representations

Previous contrastive learning methods for sentence representations often...

Please sign up or login with your details

Forgot password? Click here to reset