Reproduce “WhiteningBERT: An Easy Unsupervised Sentence Embedding Approach” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Junjie Huang, Duyu Tang, Wanjun Zhong, Shuai Lu, Linjun Shou, Ming Gong, Daxin Jiang, Nan Duan
This work introduces WhiteningBERT, a set of simple, unsupervised strategies for deriving high-quality sentence embeddings from pre-trained language models (PLMs). It demonstrates that combining averaged token representations from bottom and top layers, followed by a whitening transformation, consistently boosts performance on semantic textual similarity tasks, improving Spearman's by up to +8.19 points for RoBERTa-base and +4.79 for BERT-base.
Key insights
- Averaging all token representations from PLMs provides a more robust and semantically rich sentence embedding for unsupervised tasks than using only the `[CLS]` token.
- Combining representations from both bottom and top layers of PLMs is effective, indicating that different layers capture complementary linguistic information beneficial for sentence-level semantics.
- A straightforward linear whitening transformation effectively mitigates the anisotropic distribution of PLM embeddings, consistently boosting performance across various models with minimal computational overhead.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.