2021.findings-emnlp.23@ACL

Total: 1

#1 WhiteningBERT: An Easy Unsupervised Sentence Embedding Approach [PDF] [Copy] [Kimi]

Authors: Junjie Huang ; Duyu Tang ; Wanjun Zhong ; Shuai Lu ; Linjun Shou ; Ming Gong ; Daxin Jiang ; Nan Duan

Producing the embedding of a sentence in anunsupervised 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 fourpretrained models and conduct massive experiments on seven datasets regarding sentence semantics. We have three main findings. First, averaging all tokens is better than only using [CLS] vector. Second, combining both topand bottom layers is better than only using toplayers. Lastly, an easy whitening-based vector normalization strategy with less than 10 linesof code consistently boosts the performance. The whole project including codes and data is publicly available at https://github.com/Jun-jie-Huang/WhiteningBERT.