Producing the embedding of a sentence in an unsupervised way is valuable to natural language matching and retrieval problems in practice. In this work, we conduct a thorough examination of pretrained model based unsupervised sentence embeddings. We study on four pretrained models and conduct massive experiments on seven datasets regarding sentence semantics. We have there main findings. First, averaging all tokens is better than only using [CLS] vector. Second, combining both top andbottom layers is better than only using top layers. Lastly, an easy whitening-based vector normalization strategy with less than 10 lines of code consistently boosts the performance.
WhiteningBERT: An Easy Unsupervised Sentence Embedding Approach
The examination of pretrained models for unsupervised sentence embeddings reveals that averaging all tokens and combining top and bottom layers improves performance, along with a simple whitening-based normalization strategy.
- Year
- 2021
- Venue
- Findings (EMNLP) 2021 11
- Authors
- 8
- Hosting
- Abstract onlyARXIV-DEFAULT
Cite
Notes
Only stored in your browser.
Attribution
- Abstract & full text
- arxiv.org/abs/2104.01767v3ARXIV-DEFAULT
- TL;DR
- Semantic Scholar