Semantics at an Angle: When Cosine Similarity Works Until It Doesn't

Kisung You
4/22/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Cosine similarity has become a standard metric for comparing embeddings in modern machine learning. Its scale-invariance and alignment with model training objectives have contributed to its widespread adoption. However, recent studies have revealed important limitations, particularly when embedding norms carry meaningful semantic information. This informal article offers a reflective and selective examination of the evolution, strengths, and limitations of cosine similarity. We highlight why it performs well in many settings, where it tends to break down, and how emerging alternatives are beginning to address its blind spots. We hope to offer a mix of conceptual clarity and practical perspective, especially for quantitative scientists who think about embeddings not just as vectors, but as geometric and philosophical objects.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{you2025semantics,
  title  = {Semantics at an Angle: When Cosine Similarity Works Until It Doesn't},
  author = {Kisung You},
  year   = {2025},
  eprint = {2504.16318},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.16318v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.16318.svg)](https://codeofpaper.com/paper/2504.16318)

Discussion