mlsanityData to 14 Oct 2026

Solving Cosine Similarity Underestimation between High Frequency Words by L2 Norm Discounting

arXiv 2305.10610 ↗First posted 17 May 2023cs.CLcited by 5

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
  3. 2016Semantics derived automatically from language corpora contain human-like biasescited by 901
  4. 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 659
  5. 2019On Measuring Social Biases in Sentence Encoderscited by 398
  6. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
  7. 2021Unmasking the Mask -- Evaluating Social Biases in Masked Language Modelscited by 60
  8. 2022Gender Bias in Masked Language Models for Multiple Languagescited by 60
  9. 2019Understanding Undesirable Word Embedding Associationscited by 59
  10. 2018Towards Understanding Linear Word Analogiescited by 57
  11. 2022Problems with Cosine as a Measure of Embedding Similarity for High Frequency Wordscited by 49
  12. 2018Factors Influencing the Surprising Instability of Word Embeddingscited by 33
4 more
  1. 2021Evaluating User Perception of Speech Recognition System Quality with Semantic Distance Metriccited by 21
  2. 2021Frequency-based Distortions in Contextualized Word Embeddingscited by 20
  3. 2020A Qualitative Evaluation of Language Models on Automatic Question-Answering for COVID-19cited by 7
  4. 2017Using k-way Co-occurrences for Learning Word Embeddingscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 1; 2026: 1.

5 papers.