PromptBERT: Improving BERT Sentence Embeddings with Prompts
Ting Jiang, Jian Jiao, Shaohan Huang, Zihan Zhang, Deqing Wang, Fuzhen Zhuang, Furu Wei, Haizhen Huang, Denvy Deng, Qi Zhang
Abstract
We propose PromptBERT, a novel contrastive learning method for learning better sentence representation. We firstly analyze the drawback of current sentence embedding from original BERT and find that it is mainly due to the static token embedding bias and ineffective BERT layers. Then we propose the first prompt-based sentence embeddings method and discuss two prompt representing methods and three prompt searching methods to make BERT achieve better sentence embeddings. Moreover, we propose a novel unsupervised training objective by the technology of template denoising, which substantially shortens the performance gap between the supervised and unsupervised settings. Extensive experiments show the effectiveness of our method. Compared to SimCSE, PromptBert achieves 2.29 and 2.58 points of improvement based on BERT and RoBERTa in the unsupervised setting. Our code is available at https://github.com/kongds/ Prompt-BERT .
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.
39 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddings cites An Unsupervised Sentence Embedding Method by Mutual Information Maximization
- Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddings cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- Meaning Representations from Trajectories in Autoregressive Models cites Language Models are Few-Shot Learners
- Meaning Representations from Trajectories in Autoregressive Models cites An Unsupervised Sentence Embedding Method by Mutual Information Maximization
- A Learnable Discrete-Prior Fusion Autoencoder with Contrastive Learning for Tabular Data Synthesis cites Non-Linguistic Supervision for Contrastive Learning of Sentence Embeddings
- Ranking-Enhanced Unsupervised Sentence Representation Learning cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
- Ranking-Enhanced Unsupervised Sentence Representation Learning cites ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer
- SimCSE: Simple Contrastive Learning of Sentence Embeddings cites An Unsupervised Sentence Embedding Method by Mutual Information Maximization
- SimCSE: Simple Contrastive Learning of Sentence Embeddings cites ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer
- ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer cites An Unsupervised Sentence Embedding Method by Mutual Information Maximization
- Can GNN be Good Adapter for LLMs? cites Language Models are Few-Shot Learners
- Can GNN be Good Adapter for LLMs? cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
Cited by top-tier papers39
- Can GNN be Good Adapter for LLMs?Xuanwen Huang, Kaiqiao Han, Yang Yang, Dezheng Bao et al.WWW 2024 · 107 citations
- Meaning Representations from Trajectories in Autoregressive ModelsTian Yu Liu, Matthew Trager, Alessandro Achille, Pramuditha Perera et al.ICLR 2024 · 22 citations
- Non-Linguistic Supervision for Contrastive Learning of Sentence EmbeddingsYiren Jian, Chongyang Gao, Soroush VosoughiNeurIPS 2022 · 20 citations
- A Learnable Discrete-Prior Fusion Autoencoder with Contrastive Learning for Tabular Data SynthesisRongchao Zhang, Yiwei Lou, Dexuan Xu, Yongzhi Cao et al.AAAI 2024 · 14 citations
- Ranking-Enhanced Unsupervised Sentence Representation LearningYeon Seonwoo, Guoyin Wang, Changmin Seo, Sajal Choudhary et al.ACL 2023 · 12 citations
Builds on4
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
- An Unsupervised Sentence Embedding Method by Mutual Information MaximizationYan Zhang, Ruidan He, Zuozhu Liu, Kwan Hui Lim et al.EMNLP 2020 · 126 citations
- ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation TransferYuanmeng Yan, Rumei Li, Sirui Wang, Fuzheng Zhang et al.ACL 2021
Related papers
- InfoCSE: Information-aggregated Contrastive Learning of Sentence EmbeddingsXing Wu, Chaochen Gao, Zijia Lin, Jizhong Han et al.EMNLP Findings 2022 · 24 citations
- A Sentence is Worth 128 Pseudo Tokens: A Semantic-Aware Contrastive Learning Framework for Sentence EmbeddingsHaochen Tan, Wei Shao, Han Wu, Ke Yang et al.ACL Findings 2022 · 16 citations
- Alleviating Over-smoothing for Unsupervised Sentence RepresentationNuo Chen, Linjun Shou, Jian Pei, Ming Gong et al.ACL 2023 · 10 citations
- Self-Guided Contrastive Learning for BERT Sentence RepresentationsTaeuk Kim, Kang Min Yoo, Sang-goo LeeACL 2021
- Instance Smoothed Contrastive Learning for Unsupervised Sentence EmbeddingHongliang He, Junlei Zhang, Zhenzhong Lan, Yue ZhangAAAI 2023 · 10 citations
