SupMPN: Supervised Multiple Positives and Negatives Contrastive Learning Model for Semantic Textual Similarity

被引:5
作者
Dehghan, Somaiyeh [1 ]
Amasyali, Mehmet Fatih [1 ]
机构
[1] Yildiz Tech Univ, Dept Comp Engn, TR-34220 Istanbul, Turkey
来源
APPLIED SCIENCES-BASEL | 2022年 / 12卷 / 19期
关键词
Natural Language Processing; sentence embedding; Semantic Textual Similarity; BERT; contrastive learning; deep learning; ACTIVITY RECOGNITION;
D O I
10.3390/app12199659
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
Semantic Textual Similarity (STS) is an important task in the area of Natural Language Processing (NLP) that measures the similarity of the underlying semantics of two texts. Although pre-trained contextual embedding models such as Bidirectional Encoder Representations from Transformers (BERT) have achieved state-of-the-art performance on several NLP tasks, BERT-derived sentence embeddings have been proven to collapse in some way, i.e., sentence embeddings generated by BERT depend on the frequency of words. Therefore, almost all BERT-derived sentence embeddings are mapped into a small area and have a high cosine similarity. Hence, sentence embeddings generated by BERT are not so robust in the STS task as they cannot capture the full semantic meaning of the sentences. In this paper, we propose SupMPN: A Supervised Multiple Positives and Negatives Contrastive Learning Model, which accepts multiple hard-positive sentences and multiple hard-negative sentences simultaneously and then tries to bring hard-positive sentences closer, while pushing hard-negative sentences away from them. In other words, SupMPN brings similar sentences closer together in the representation space by discrimination among multiple similar and dissimilar sentences. In this way, SupMPN can learn the semantic meanings of sentences by contrasting among multiple similar and dissimilar sentences and can generate sentence embeddings based on the semantic meaning instead of the frequency of the words. We evaluate our model on standard STS and transfer-learning tasks. The results reveal that SupMPN outperforms state-of-the-art SimCSE and all other previous supervised and unsupervised models.
引用
收藏
页数:20
相关论文
共 94 条
[1]  
Agirre E, 2013, SEM, P32
[2]  
Agirre E., 2015, P 9 INT WORKSHOP SEM, P252, DOI 10.18653/v1/S15-2045
[3]  
Agirre Eneko, 2016, P 10 INT WORKSHOP SE, P497
[4]  
Agirre Eneko, 2012, P 1 JOINT C LEXICAL, P385, DOI DOI 10.5555/2387636.2387697
[5]   Advancements of Image Processing and Vision in Healthcare [J].
Ahad, Md Atiqur Rahman ;
Kobashi, Syoji ;
Tavares, Joao Manuel R. S. .
JOURNAL OF HEALTHCARE ENGINEERING, 2018, 2018
[6]  
[Anonymous], 2004, P 42 ANN M ASS COMPU
[7]  
[Anonymous], 2004, P 10 ACM SIGKDD INT
[8]  
[Anonymous], 2002, P 19 INT C COMP LING, DOI DOI 10.3115/1072228.1072378
[9]  
Bojanowski P., 2017, Transactions of the association for computational linguistics, V5, P135, DOI [10.1162/tacl_a_00051, 10.1162/tacla00051, DOI 10.1162/TACL_A_00051]
[10]  
Bordes A., 2014, P 2014 C EMP METH NA, P615