ACL Findings2023
Solving Cosine Similarity Underestimation between High Frequency Words by ₂ Norm Discounting
Saeth Wannasuphoprasit, Yi Zhou, Danushka Bollegala
摘要
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 ℓ 2 norm of contextualised embeddings of a word correlates with its log-frequency in the pretraining corpus. Consequently, the larger ℓ 2 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 ℓ 2 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.
问 Lune
尽管问,回答会引用原文。
Lune 会读完全文和相关的 Paper,每个回答都附上所依据的原文段落。
它引用的 Paper1
相关 Paper
- On the Curious Case of l2 norm of Sense EmbeddingsYi Zhou, Danushka BollegalaEMNLP Findings 2022
- The Undesirable Dependence on Frequency of Gender Bias Metrics Based on Word EmbeddingsFrancisco Valentini, Germán Rosati, Diego Fernández Slezak, Edgar AltszylerEMNLP Findings 2022 · 5 次引用
- Investigating the Frequency Distortion of Word Embeddings and Its Impact on Bias MetricsFrancisco Valentini, Juan Sosa, Diego Fernández Slezak, Edgar AltszylerEMNLP Findings 2023 · 5 次引用
- RAW-C: Relatedness of Ambiguous Words in Context (A New Lexical Resource for English)Sean Trott, Benjamin K. BergenACL 2021
- All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational QualityWilliam Timkey, Marten van SchijndelEMNLP 2021 · 59 次引用
