paper-with-me

Papers

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

2023-05-17 · 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 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.

📄 PDF Abstract BibTeX arXiv:2305.10610

Code (1)

livnlp/cosine-discounting 공식 구현

Tasks

Word Similarity

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Multi-Head Attention 설명 없음
Adam 설명 없음
Residual Connection 설명 없음
WordPiece 설명 없음
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.

Similar Papers 제목 키워드 기반

Problems with Cosine as a Measure of Embedding Similarity for High Frequency Words

2022-05-10 · ACL 2022 5 · Kaitlyn Zhou, Kawin Ethayarajh, Dallas Card, Dan Jurafsky

Cosine similarity of contextual embeddings is used in many NLP tasks (e.g., QA, IR, MT) and metrics (e.g., BERTScore). Here, we uncover systematic ways in which word similarities estimated by cosine over BERT embeddings …

Is Cosine-Similarity of Embeddings Really About Similarity?

2024-03-08 · Harald Steck, Chaitanya Ekanadham, Nathan Kallus

Cosine-similarity is the cosine of the angle between two vectors, or equivalently the dot product between their normalizations. A popular application is to quantify semantic similarity between high-dimensional objects by…

Semantic SimilaritySemantic Textual Similarity

What Cosine Similarity of Label Representations Can and Cannot Tell us

2026-03-31 · Beatrix M. G. Nielsen, Andreas Grivas arxiv

Cosine similarity is often used to measure the similarity of vector representations of neural network models. However, the cosine similarity of representations is not guaranteed to tell us anything about model probabilit…

Variance-Adjusted Cosine Distance as Similarity Metric

2025-02-04 · Satyajeet Sahoo, Jhareswar Maiti

Cosine similarity is a popular distance measure that measures the similarity between two vectors in the inner product space. It is widely used in many data classification algorithms like K-Nearest Neighbors, Clustering e…

valid

COS-Mix: Cosine Similarity and Distance Fusion for Improved Information Retrieval

2024-06-02 · Kush Juvekar, Anupam Purwar

This study proposes a novel hybrid retrieval strategy for Retrieval-Augmented Generation (RAG) that integrates cosine similarity and cosine distance measures to improve retrieval performance, particularly for sparse data…

Information RetrievalRAGRetrievalRetrieval-augmented Generation