paper-with-me

Papers

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 etc. This study demonstrates limitations of application of cosine similarity. Particularly, this study demonstrates that traditional cosine similarity metric is valid only in the Euclidean space, whereas the original data resides in a random variable space. When there is variance and correlation in the data, then cosine distance is not a completely accurate measure of similarity. While new similarity and distance metrics have been developed to make up for the limitations of cosine similarity, these metrics are used as substitutes to cosine distance, and do not make modifications to cosine distance to overcome its limitations. Subsequently, we propose a modified cosine similarity metric, where cosine distance is adjusted by variance-covariance of the data. Application of variance-adjusted cosine distance gives better similarity performance compared to traditional cosine distance. KNN modelling on the Wisconsin Breast Cancer Dataset is performed using both traditional and modified cosine similarity measures and compared. The modified formula shows 100% test accuracy on the data.

📄 PDF Abstract BibTeX arXiv:2502.02233

Code (0)

등록된 구현이 없습니다.

Tasks

valid

Similar Papers 제목 키워드 기반

A Triangle Inequality for Cosine Similarity

2021-07-08 · Erich Schubert

Similarity search is a fundamental problem for many data analysis techniques. Many efficient search techniques rely on the triangle inequality of metrics, which allows pruning parts of the search space based on transitiv…

A note and a correction on measuring cognitive distance in multiple dimensions

2016-07-15 · Rousseau Ronald, Rahman A. I. M. Jakaria, Guns Raf, Engels Tim C. E.

In a previous article (Rahman, Guns, Rousseau, and Engels, 2015) we described several approaches to determine the cognitive distance between two units. One of these approaches was based on what we called barycenters in N…

In Defense of Cosine Similarity: Normalization Eliminates the Gauge Freedom

2026-02-23 · Taha Bouhsine arxiv

Steck, Ekanadham, and Kallus [arXiv:2403.05440] demonstrate that cosine similarity of learned embeddings from matrix factorization models can be rendered arbitrary by a diagonal ``gauge'' matrix $D$. Their result is corr…

Anisotropy Decides Cosine vs. Rank Metrics for Text Embeddings

2026-06-28 · V. S. Raghu Parupudi arxiv

The standard way to compare two text embeddings is cosine similarity. Scattered studies report that a different metric does better, but never pin down the geometric condition that decides when, or why. We settle both wit…

Histopathology Image Classification using Deep Manifold Contrastive Learning

2023-06-26 · Jing Wei Tan, Won-Ki Jeong

Contrastive learning has gained popularity due to its robustness with good feature representation performance. However, cosine distance, the commonly used similarity metric in contrastive learning, is not well suited to …

ClassificationClusteringContrastive Learningimage-classification+1