Lune

ACL Findings2022

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

Haochen Tan, Wei Shao, Han Wu, Ke Yang, Linqi Song

Abstract

Contrastive learning has shown great potential in unsupervised sentence embedding tasks, e.g., SimCSE (Gao et al., 2021). 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 pseudotoken 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 gradientupdating 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • An Ensemble Distillation Framework for Sentence Embeddings with Multilingual Round-Trip Translation cites A Simple Framework for Contrastive Learning of Visual Representations
  • An Ensemble Distillation Framework for Sentence Embeddings with Multilingual Round-Trip Translation cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites A Simple Framework for Contrastive Learning of Visual Representations
  • COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • SimCSE: Simple Contrastive Learning of Sentence Embeddings cites COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining
  • Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere cites A Simple Framework for Contrastive Learning of Visual Representations
  • SimCSE++: Improving Contrastive Learning for Sentence Embeddings from Two Perspectives cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • SimCSE++: Improving Contrastive Learning for Sentence Embeddings from Two Perspectives cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • CSE-SFP: Enabling Unsupervised Sentence Representation Learning via a Single Forward Pass cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • CSE-SFP: Enabling Unsupervised Sentence Representation Learning via a Single Forward Pass cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • SimCSE: Simple Contrastive Learning of Sentence Embeddings cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • SimCSE: Simple Contrastive Learning of Sentence Embeddings cites A Simple Framework for Contrastive Learning of Visual Representations
  • 3R: Enhancing Sentence Representation Learning via Redundant Representation Reduction cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • 3R: Enhancing Sentence Representation Learning via Redundant Representation Reduction cites A Simple Framework for Contrastive Learning of Visual Representations
  • 3R: Enhancing Sentence Representation Learning via Redundant Representation Reduction cites SimCSE++: Improving Contrastive Learning for Sentence Embeddings from Two Perspectives
  • 3R: Enhancing Sentence Representation Learning via Redundant Representation Reduction cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Nugget: Neural Agglomerative Embeddings of TextGuanghui Qin, Benjamin Van DurmeICML 2023 · 24 citations
  2. SimCSE++: Improving Contrastive Learning for Sentence Embeddings from Two PerspectivesJiahao Xu, Wei Shao, Lihui Chen, Lemao LiuEMNLP 2023 · 7 citations
  3. An Ensemble Distillation Framework for Sentence Embeddings with Multilingual Round-Trip TranslationTianyu Zong, Likun ZhangAAAI 2023 · 1 citation
  4. CSE-SFP: Enabling Unsupervised Sentence Representation Learning via a Single Forward PassBowen Zhang, Zixin Song, Chunping LiSIGIR 2025
  5. 3R: Enhancing Sentence Representation Learning via Redundant Representation ReductionLongxuan Ma, Xiao Wu, Yuxin Huang, Shengxiang Gao et al.EMNLP 2025

Builds on12

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
  3. Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
  4. Poly-encoders: Architectures and Pre-training Strategies for Fast and Accurate Multi-sentence ScoringSamuel Humeau, Kurt Shuster, Marie-Anne Lachaux, Jason WestonICLR 2020 · 316 citations
  5. COCO-LM: Correcting and Contrasting Text Sequences for Language Model PretrainingYu Meng, Chenyan Xiong, Payal Bajaj, Saurabh Tiwary et al.NeurIPS 2021 · 231 citations

Related papers

  1. PromptBERT: Improving BERT Sentence Embeddings with PromptsTing Jiang, Jian Jiao, Shaohan Huang, Zihan Zhang et al.EMNLP 2022 · 148 citations
  2. InfoCSE: Information-aggregated Contrastive Learning of Sentence EmbeddingsXing Wu, Chaochen Gao, Zijia Lin, Jizhong Han et al.EMNLP Findings 2022 · 24 citations
  3. Instance Smoothed Contrastive Learning for Unsupervised Sentence EmbeddingHongliang He, Junlei Zhang, Zhenzhong Lan, Yue ZhangAAAI 2023 · 10 citations
  4. Alleviating Over-smoothing for Unsupervised Sentence RepresentationNuo Chen, Linjun Shou, Jian Pei, Ming Gong et al.ACL 2023 · 10 citations
  5. ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation TransferYuanmeng Yan, Rumei Li, Sirui Wang, Fuzheng Zhang et al.ACL 2021
Dusk over the sea between two cliffs drawn in fine vertical lines