Whitening Sentence Representations for Better Semantics and Faster Retrieval

Jianlin Su, Jiarun Cao, Weijie Liu, Yangyiwen Ou
3/29/2021
416 citations
cs.CLcs.AIcs.LG

Official code: bojone/BERT-whitening (486 stars, Python, last commit 2021-06-17).

Abstract

Pre-training models such as BERT have achieved great success in many natural language processing tasks. However, how to obtain better sentence representation through these pre-training models is still worthy to exploit.

Show full abstract

Previous work has shown that the anisotropy problem is an critical bottleneck for BERT-based sentence representation which hinders the model to fully utilize the underlying semantic features. Therefore, some attempts of boosting the isotropy of sentence distribution, such as flow-based model, have been applied to sentence representations and achieved some improvement. In this paper, we find that the whitening operation in traditional machine learning can similarly enhance the isotropy of sentence representations and achieve competitive results. Furthermore, the whitening technique is also capable of reducing the dimensionality of the sentence representation. Our experimental results show that it can not only achieve promising performance but also significantly reduce the storage cost and accelerate the model retrieval speed.

View on arXivView PDF

Code Implementations(1)

简单的向量白化改善句向量质量

48665PythonJan 11, 20215 years ago

Similar Papers

Cite this paper

@article{su2021whitening,
  title  = {Whitening Sentence Representations for Better Semantics and Faster Retrieval},
  author = {Jianlin Su and Jiarun Cao and Weijie Liu and Yangyiwen Ou},
  year   = {2021},
  eprint = {2103.15316},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.15316}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.15316.svg)](https://codeofpaper.com/paper/2103.15316)

Discussion