paper-with-me

홈 › Papers

A Sentence is Worth 128 Pseudo Tokens: A Semantic-Aware Contrastive Learning Framework for Sentence Embeddings

2022-03-11 · Findings (ACL) 2022 5 · Haochen Tan, Wei Shao, Han Wu, Ke Yang, Linqi Song

Contrastive learning has shown great potential in unsupervised sentence embedding tasks, e.g., SimCSE. However, We find that these existing solutions are heavily affected by superficial features like the length of sentences or syntactic structures. In this paper, we propose a semantics-aware contrastive learning framework for sentence embeddings, termed Pseudo-Token BERT (PT-BERT), which is able to exploit the pseudo-token space (i.e., latent semantic space) representation of a sentence while eliminating the impact of superficial features such as sentence length and syntax. Specifically, we introduce an additional pseudo token embedding layer independent of the BERT encoder to map each sentence into a sequence of pseudo tokens in a fixed length. Leveraging these pseudo sequences, we are able to construct same-length positive and negative pairs based on the attention mechanism to perform contrastive learning. In addition, we utilize both the gradient-updating and momentum-updating encoders to encode instances while dynamically maintaining an additional queue to store the representation of sentence embeddings, enhancing the encoder's learning performance for negative examples. Experiments show that our model outperforms the state-of-the-art baselines on six standard semantic textual similarity (STS) tasks. Furthermore, experiments on alignments and uniformity losses, as well as hard examples with different sentence lengths and syntax, consistently verify the effectiveness of our method.

📄 PDF Abstract BibTeX arXiv:2203.05877

Code (1)

namco0816/pt-bert 공식 구현 pytorch

Tasks

Contrastive LearningSemantic Textual SimilaritySentenceSentence EmbeddingSentence-EmbeddingSentence EmbeddingsSTS

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Contrastive Learning 설명 없음
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

A Sentence is Worth 128 Pseudo Tokens: A Semantic-Aware Contrastive Learning Framework for Sentence Embeddings

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Contrastive learning has shown great potential in unsupervised sentence embedding tasks, e.g., SimCSE \citep{gao2021simcse}. However, these existing solutions are heavily affected by superficial features like the length …

Contrastive LearningSemantic Textual SimilaritySentenceSentence Embedding+3

UniPSDA: Unsupervised Pseudo Semantic Data Augmentation for Zero-Shot Cross-Lingual Natural Language Understanding

2024-06-24 · Dongyang Li, Taolin Zhang, Jiali Deng, Longtao Huang 외

Cross-lingual representation learning transfers knowledge from resource-rich data to resource-scarce ones to improve the semantic understanding abilities of different languages. However, previous works rely on shallow un…

Data AugmentationNatural Language UnderstandingQuestion AnsweringRepresentation Learning

Few-shot Named Entity Recognition with Joint Token and Sentence Awareness

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Few-shot learning has been proposed and rapidly emerging as a viable means for completing various tasks. Recently, few-shot models have been used for Named Entity Recognition (NER). Prototypical network shows high effici…

Few-Shot LearningFew-shot NERNamed Entity RecognitionNamed Entity Recognition (NER)+3

Using Sentence Embeddings and Semantic Similarity for Seeking Consensus when Assessing Trustworthy AI

2022-08-09 · Dennis Vetter, Jesmin Jahan Tithi, Magnus Westerlund, Roberto V. Zicari 외

Assessing the trustworthiness of artificial intelligence systems requires knowledge from many different disciplines. These disciplines do not necessarily share concepts between them and might use words with different mea…

Semantic SimilaritySemantic Textual SimilaritySentenceSentence Embeddings

Neural Check-Worthiness Ranking with Weak Supervision: Finding Sentences for Fact-Checking

2019-03-20 · Casper Hansen, Christian Hansen, Stephen Alstrup, Jakob Grue Simonsen 외

Automatic fact-checking systems detect misinformation, such as fake news, by (i) selecting check-worthy sentences for fact-checking, (ii) gathering related information to the sentences, and (iii) inferring the factuality…

Fact CheckingMisinformationSentence