mlsanityData to 14 Oct 2026

Anisotropy Decides Cosine vs. Rank Metrics for Text Embeddings

arXiv 2606.29571 ↗First posted 28 Jun 2026cs.CLcited by 0

Not on the map. Why?

Abstract (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 with a comprehensive empirical study: nineteen parameter-free similarity metrics on nineteen encoders, from compact sentence transformers up to seven-billion-parameter large language models, across seven datasets. The answer is geometric. When an encoder spreads its variance evenly across directions, cosine is the best parameter-free choice and no other metric helps by a usable margin. When the variance concentrates into a few dominant directions, a property known as anisotropy, rank-based and L1-type metrics beat cosine by a clear margin. The absolute gain is modest, but because cosine starts low on these encoders it is a sizable relative improvement, around twenty percent on average and largest where cosine is weakest. What decides this is the geometry of the embedding space, not how the model was trained: where the two disagree, the metric follows the geometry. One number, the fraction of variance held by the single most dominant dimension, predicts how much the alternatives help across all nineteen encoders, with a rank correlation of 0.86 and a linear correlation of 0.95. To test this as the cause rather than a correlate, we project out the dominant directions: cosine recovers and the advantage of the other metrics nearly vanishes, but only on the encoders that were anisotropic to begin with. The effect is directional, not magnitude based, since it survives normalizing every vector to unit length. Among parameter-free metrics, then, cosine is the right tool wherever an encoder is well spread, which includes the fine-tuned embedders commonly deployed for retrieval, and we give a one-number diagnostic for when it is not.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 33 of its 50 references that are in the map. First posted on arXiv 28 Jun 2026.

Builds on

33 of 50 references.

References · 33

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2024Qwen2.5 Technical Reportcited by 4,942
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2023Mistral 7Bcited by 3,164
  7. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  8. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  9. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  10. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  11. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
  12. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
21 more
  1. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 1,001
  2. 2020MPNet: Masked and Permuted Pre-training for Language Understandingcited by 981
  3. 2019How Contextual are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddingscited by 784
  4. 2022MTEB: Massive Text Embedding Benchmarkcited by 640
  5. 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 578
  6. 2024LLM2Vec: Large Language Models Are Secretly Powerful Text Encoderscited by 404
  7. 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 402
  8. 2023Improving Text Embeddings with Large Language Modelscited by 303
  9. 2024Massive Activations in Large Language Modelscited by 294
  10. 2017All-but-the-Top: Simple and Effective Postprocessing for Word Representationscited by 212
  11. 2021Whitening Sentence Representations for Better Semantics and Faster Retrievalcited by 202
  12. 2021All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Qualitycited by 156
  13. 2021BERT Busters: Outlier Dimensions that Disrupt Transformerscited by 112
  14. 2024Is Cosine-Similarity of Embeddings Really About Similarity?cited by 89
  15. 2021WhiteningBERT: An Easy Unsupervised Sentence Embedding Approachcited by 69
  16. 2022Outliers Dimensions that Disrupt Transformers Are Driven by Frequencycited by 55
  17. 2021IsoScore: Measuring the Uniformity of Embedding Space Utilizationcited by 53
  18. 2023Exploring Anisotropy and Outliers in Multilingual Language Models for Cross-Lingual Semantic Sentence Similaritycited by 17
  19. 2024Surpassing Cosine Similarity for Multidimensional Comparisons: Dimension Insensitive Euclidean Metriccited by 9
  20. 2024A Guide to Similarity Measurescited by 4
  21. 2025Magnitude Matters: a Superior Class of Similarity Metrics for Holistic Semantic Understandingcited by 2

Built on by

Not cited yet.