paper-with-me

Papers

Beyond Cosine Similarity

2026-02-05 · Xinbo Ai arxiv

Cosine similarity, the standard metric for measuring semantic similarity in vector spaces, is mathematically grounded in the Cauchy-Schwarz inequality, which inherently limits it to capturing linear relationships--a constraint that fails to model the complex, nonlinear structures of real-world semantic spaces. We advance this theoretical underpinning by deriving a tighter upper bound for the dot product than the classical Cauchy-Schwarz bound. This new bound leads directly to recos, a similarity metric that normalizes the dot product by the sorted vector components. recos relaxes the condition for perfect similarity from strict linear dependence to ordinal concordance, thereby capturing a broader class of relationships. Extensive experiments across 11 embedding models--spanning static, contextualized, and universal types--demonstrate that recos consistently outperforms traditional cosine similarity, achieving higher correlation with human judgments on standard Semantic Textual Similarity (STS) benchmarks. Our work establishes recos as a mathematically principled and empirically superior alternative, offering enhanced accuracy for semantic analysis in complex embedding spaces.

📄 PDF Abstract BibTeX arXiv:2602.05266

Code (0)

등록된 구현이 없습니다.

Tasks

Semantic Textual SimilaritySemantic Similarity

Similar Papers 제목 키워드 기반

Rethinking Layer Relevance in Large Language Models Beyond Cosine Similarity

2026-05-13 · Cristian Hinostroza, Rodrigo Toro Icarte, Christ Devia, Andres Carvallo De Ferari 외 arxiv

Large language models (LLMs) have revolutionized natural language processing. Understanding their internal mechanisms is crucial for developing more interpretable and optimized architectures. Mechanistic interpretability…

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…

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

Beyond Cosine Similarity: Magnitude-Aware CLIP for No-Reference Image Quality Assessment

2025-11-13 · Zhicheng Liao, Dongxu Wu, Zhenshan Shi, Sijie Mai 외 arxiv

Recent efforts have repurposed the Contrastive Language-Image Pre-training (CLIP) model for No-Reference Image Quality Assessment (NR-IQA) by measuring the cosine similarity between the image embedding and textual prompt…

No-Reference Image Quality AssessmentSemantic Similarity

T-vMF Similarity for Regularizing Intra-Class Feature Distribution

2021-06-19 · CVPR 2021 1 · Takumi Kobayashi

Deep convolutional neural networks (CNNs) leverage large-scale training dataset to produce remarkable performance on various image classification tasks. It, however, is difficult to effectively train the CNNs on some…

image-classificationImage ClassificationRepresentation Learning