Learning to Remove: Towards Isotropic Pre-trained BERT Embedding
Yuxin Liang, Rui Cao, Jie Zheng, Jie Ren, Ling Gao

TL;DR
This paper identifies the non-isotropic nature of BERT embeddings and proposes a simple method to make them more isotropic, resulting in improved performance on various NLP tasks.
Contribution
The paper introduces a novel, effective technique to enhance BERT embeddings by removing dominant directions, improving their isotropy and downstream task performance.
Findings
Processed embeddings are more isotropic after applying the method.
Significant performance improvements on word similarity, analogy, and textual similarity tasks.
Method outperforms baseline approaches and is robust to hyperparameter changes.
Abstract
Pre-trained language models such as BERT have become a more common choice of natural language processing (NLP) tasks. Research in word representation shows that isotropic embeddings can significantly improve performance on downstream tasks. However, we measure and analyze the geometry of pre-trained BERT embedding and find that it is far from isotropic. We find that the word vectors are not centered around the origin, and the average cosine similarity between two random words is much higher than zero, which indicates that the word vectors are distributed in a narrow cone and deteriorate the representation capacity of word embedding. We propose a simple, and yet effective method to fix this problem: remove several dominant directions of BERT embedding with a set of learnable weights. We train the weights on word similarity tasks and show that processed embedding is more isotropic. Our…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Multimodal Machine Learning Applications
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Softmax · Weight Decay · Layer Normalization · Linear Warmup With Linear Decay · Attention Dropout · WordPiece · Residual Connection
