Positional Artefacts Propagate Through Masked Language Model Embeddings
Ziyang Luo, Artur Kulmizev, Xiaoxi Mao
摘要
In this work, we demonstrate that the contextualized word vectors derived from pretrained masked language model-based encoders share a common, perhaps undesirable pattern across layers. Namely, we find cases of persistent outlier neurons within BERT and RoBERTa's hidden state vectors that consistently bear the smallest or largest values in said vectors. In an attempt to investigate the source of this information, we introduce a neuron-level analysis method, which reveals that the outliers are closely related to information captured by positional embeddings. We also pre-train the RoBERTa-base models from scratch and find that the outliers disappear without using positional embeddings. These outliers, we find, are the major cause of anisotropy of encoders' raw vector spaces, and clipping them leads to increased similarity across vectors. We demonstrate this in practice by showing that clipped vectors can more accurately distinguish word senses, as well as lead to better sentence embeddings when mean pooling. In three supervised tasks, we find that clipping does not affect the performance.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 13 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- A Simple and Effective Pruning Approach for Large Language Models 引用了 Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Models
- A Simple and Effective Pruning Approach for Large Language Models 引用了 All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Quality
- All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Quality 引用了 On the Sentence Embeddings from Pre-trained Language Models
- The case for 4-bit precision: k-bit Inference Scaling Laws 引用了 Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Models
- The case for 4-bit precision: k-bit Inference Scaling Laws 引用了 All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Quality
引用它的顶会 Paper13
- A Simple and Effective Pruning Approach for Large Language ModelsMingjie Sun, Zhuang Liu, Anna Bair, J. Zico KolterICLR 2024 · 794 次引用
- The Impact of Positional Encoding on Length Generalization in TransformersAmirhossein Kazemnejad, Inkit Padhi, Karthikeyan Natesan Ramamurthy, Payel Das 等NeurIPS 2023 · 444 次引用
- The case for 4-bit precision: k-bit Inference Scaling LawsTim Dettmers, Luke ZettlemoyerICML 2023 · 315 次引用
- Outlier Suppression: Pushing the Limit of Low-bit Transformer Language ModelsXiuying Wei, Yunchen Zhang, Xiangguo Zhang, Ruihao Gong 等NeurIPS 2022 · 238 次引用
- All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational QualityWilliam Timkey, Marten van SchijndelEMNLP 2021 · 59 次引用
它引用的 Paper5
- Deberta: decoding-Enhanced Bert with Disentangled AttentionPengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu ChenICLR 2021 · 3,729 次引用
- On the Sentence Embeddings from Pre-trained Language ModelsBohan Li, Hao Zhou, Junxian He, Mingxuan Wang 等EMNLP 2020 · 538 次引用
- Attention is Not Only a Weight: Analyzing Transformers with Vector NormsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2020 · 138 次引用
- Quantifying the Contextualization of Word Representations with Semantic Class ProbingMengjie Zhao, Philipp Dufter, Yadollah Yaghoobzadeh, Hinrich SchützeEMNLP Findings 2020 · 13 次引用
- Analyzing Individual Neurons in Pre-trained Language ModelsNadir Durrani, Hassan Sajjad, Fahim Dalvi, Yonatan BelinkovEMNLP 2020 · 5 次引用
相关 Paper
- Outlier Dimensions that Disrupt Transformers are Driven by FrequencyGiovanni Puccetti, Anna Rogers, Aleksandr Drozd, Felice Dell'OrlettaEMNLP Findings 2022 · 10 次引用
- IsoBN: Fine-Tuning BERT with Isotropic Batch NormalizationWenxuan Zhou, Bill Yuchen Lin, Xiang RenAAAI 2021 · 29 次引用
- Is anisotropy really the cause of BERT embeddings not being semantic?Alejandro Fuster Baggetto, Víctor FresnoEMNLP Findings 2022 · 9 次引用
- Exploring Anisotropy and Outliers in Multilingual Language Models for Cross-Lingual Semantic Sentence SimilarityKatharina Hämmerl, Alina Fastowski, Jindrich Libovický, Alexander FraserACL Findings 2023 · 2 次引用
- On the Robustness of Language Encoders against Grammatical ErrorsFan Yin, Quanyu Long, Tao Meng, Kai-Wei ChangACL 2020 · 32 次引用
