Norm of Mean Contextualized Embeddings Determines their Variance
Not on the map. Why?
Abstract (arXiv)
Contextualized embeddings vary by context, even for the same token, and form a distribution in the embedding space. To analyze this distribution, we focus on the norm of the mean embedding and the variance of the embeddings. In this study, we first demonstrate that these values follow the well-known formula for variance in statistics and provide an efficient sequential computation method. Then, by observing embeddings from intermediate layers of several Transformer models, we found a strong trade-off relationship between the norm and the variance: as the mean embedding becomes closer to the origin, the variance increases. This trade-off is likely influenced by the layer normalization mechanism used in Transformer models. Furthermore, when the sets of token embeddings are treated as clusters, we show that the variance of the entire embedding set can theoretically be decomposed into the within-cluster variance and the between-cluster variance. We found experimentally that as the layers of Transformer models deepen, the embeddings move farther from the origin, the between-cluster variance relatively decreases, and the within-cluster variance relatively increases. These results are consistent with existing studies on the anisotropy of the embedding spaces across layers.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 26 of its 42 references that are in the map. First posted on arXiv 17 Sep 2024.
Builds on
26 of 42 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2018Deep contextualized word representationscited by 2,285
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 770
- 2019Linguistic Knowledge and Transferability of Contextual Representationscited by 382
- 2024Anisotropy Is Inherent to Self-Attention in Transformerscited by 62
- 2022Problems with Cosine as a Measure of Embedding Similarity for High Frequency Wordscited by 49
- 2020Word Rotator's Distancecited by 32
14 more
- 2021Rare Tokens Degenerate All Tokens: Improving Neural Text Generation via Adaptive Gradient Gating for Rare Token Embeddingscited by 27
- 2021Learning to Remove: Towards Isotropic Pre-trained BERT Embeddingcited by 23
- 2015Measuring Word Significance using Distributed Representations of Wordscited by 21
- 2020Stolen Probability: A Structural Weakness of Neural Language Modelscited by 21
- 2022Norm of Word Embedding Encodes Information Gaincited by 21
- 2022Contextualized language models for semantic change detection: lessons learnedcited by 20
- 2021Frequency-based Distortions in Contextualized Word Embeddingscited by 19
- 2023Discovering Universal Geometry in Embeddings with ICAcited by 19
- 2024Why do small language models underperform? Studying Language Model Saturation via the Softmax Bottleneckcited by 19
- 2021Not All Models Localize Linguistic Knowledge in the Same Place: A Layer-wise Probing on BERToids' Representationscited by 16
- 2021Effect of Post-processing on Contextualized Word Representationscited by 7
- 2018How much does a word weigh? Weighting word embeddings for word sense inductioncited by 6
- 2023Solving Cosine Similarity Underestimation between High Frequency Words by L2 Norm Discountingcited by 5
- 2024Revisiting Cosine Similarity via Normalized ICA-transformed Embeddingscited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.