Solving Cosine Similarity Underestimation between High Frequency Words by L2 Norm Discounting
Not on the map. Why?
Abstract (arXiv)
Cosine similarity between two words, computed using their contextualised token embeddings obtained from masked language models (MLMs) such as BERT has shown to underestimate the actual similarity between those words (Zhou et al., 2022). This similarity underestimation problem is particularly severe for highly frequent words. Although this problem has been noted in prior work, no solution has been proposed thus far. We observe that the L2 norm of contextualised embeddings of a word correlates with its log-frequency in the pretraining corpus. Consequently, the larger L2 norms associated with the highly frequent words reduce the cosine similarity values measured between them, thus underestimating the similarity scores. To solve this issue, we propose a method to discount the L2 norm of a contextualised word embedding by the frequency of that word in a corpus when measuring the cosine similarities between words. We show that the so called stop words behave differently from the rest of the words, which require special consideration during their discounting process. Experimental results on a contextualised word similarity dataset show that our proposed discounting method accurately solves the similarity underestimation problem.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 16 of its 26 references that are in the map. First posted on arXiv 17 May 2023.
Builds on
16 of 26 references.
References · 16
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2016Semantics derived automatically from language corpora contain human-like biasescited by 901
- 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 659
- 2019On Measuring Social Biases in Sentence Encoderscited by 398
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
- 2021Unmasking the Mask -- Evaluating Social Biases in Masked Language Modelscited by 60
- 2022Gender Bias in Masked Language Models for Multiple Languagescited by 60
- 2019Understanding Undesirable Word Embedding Associationscited by 59
- 2018Towards Understanding Linear Word Analogiescited by 57
- 2022Problems with Cosine as a Measure of Embedding Similarity for High Frequency Wordscited by 49
- 2018Factors Influencing the Surprising Instability of Word Embeddingscited by 33
4 more
- 2021Evaluating User Perception of Speech Recognition System Quality with Semantic Distance Metriccited by 21
- 2021Frequency-based Distortions in Contextualized Word Embeddingscited by 20
- 2020A Qualitative Evaluation of Language Models on Automatic Question-Answering for COVID-19cited by 7
- 2017Using k-way Co-occurrences for Learning Word Embeddingscited by 5
Built on by
Citing papers per year: 2024: 3; 2025: 1; 2026: 1.
5 papers.
- 2024Injecting Wiktionary to improve token-level contextual representations using contrastive learningcited by 1
- 2024Norm of Mean Contextualized Embeddings Determines their Variancecited by 1
- 2025Data-Efficient Biomedical In-Context Learning: A Diversity-Enhanced Submodular Perspectivecited by 1
- 2024Topological quantification of ambiguity in semantic searchcited by 0
- 2026Optimization Dynamics Imprint Semantic Specificity in Contrastive Embedding Normscited by 0
- 2026Optimization Dynamics Imprint Semantic Specificity in Contrastive Embedding Norms29 Jun 2026
- 2025Data-Efficient Biomedical In-Context Learning: A Diversity-Enhanced Submodular Perspective11 Aug 2025
- 2024Norm of Mean Contextualized Embeddings Determines their Variance17 Sep 2024
- 2024Topological quantification of ambiguity in semantic search12 Jun 2024
- 2024Injecting Wiktionary to improve token-level contextual representations using contrastive learning12 Feb 2024