Litcius/Paper detail

Pair-Level Supervised Contrastive Learning for Natural Language Inference

Shuang Li, Xuming Hu, Lin Li, Lijie Wen

2022ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)29 citationsDOIOpen Access PDF

Abstract

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.<sup>1</sup>

Topics & Concepts

Computer scienceSentenceNatural language processingArtificial intelligenceInferenceFocus (optics)PremiseTask (project management)Representation (politics)Natural languageClass (philosophy)LinguisticsManagementOpticsLawEconomicsPolitical sciencePhysicsPoliticsPhilosophyTopic ModelingNatural Language Processing TechniquesText and Document Classification Technologies