# Surpassing Cosine Similarity for Multidimensional Comparisons: Dimension Insensitive Euclidean Metric

Source: [Surpassing Cosine Similarity for Multidimensional Comparisons: Dimension Insensitive Euclidean Metric](<https://www.sota2.com/research/paper/68fa775b1e209131cea72ae4>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T04:16:49.987Z

Authors: Federico Tessari, Kunpeng Yao, Neville Hogan

Published: 2024-07-11T16:00:22.000Z

## Abstract

Advances in computational power and hardware efficiency have enabled tackling increasingly complex, high-dimensional problems. While artificial intelligence (AI) achieves remarkable results, the interpretability of high-dimensional solutions remains challenging. A critical issue is the comparison of multidimensional quantities, essential in techniques like Principal Component Analysis. Metrics such as cosine similarity are often used, for example in the development of natural language processing algorithms or recommender systems. However, the interpretability of such metrics diminishes as dimensions increase. This paper analyzes the effects of dimensionality, revealing significant limitations of cosine similarity, particularly its dependency on the dimension of vectors, leading to biased and poorly interpretable outcomes. To address this, we introduce a Dimension Insensitive Euclidean Metric (DIEM) which demonstrates superior robustness and generalizability across dimensions. DIEM maintains consistent variability and eliminates the biases observed in traditional metrics, making it a reliable tool for high-dimensional comparisons. An example of the advantages of DIEM over cosine similarity is reported for a large language model application. This novel metric has the potential to replace cosine similarity, providing a more accurate and insightful method to analyze multidimensional data in fields ranging from neuromotor control to machine learning.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Spatial and Temporal Reasoning on MMSI-Bench (test)](<https://www.sota2.com/research/sota/spatial-and-temporal-reasoning-on-mmsi-bench-test.md>): Spatial and Temporal Reasoning; MMSI-Bench (test); Cam-Cam Accuracy: 43.

- [Spatio-temporal reasoning on STCR](<https://www.sota2.com/research/sota/spatio-temporal-reasoning-on-stcr.md>): Spatio-Temporal Reasoning; STCR; Accuracy: 55.4.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2407.08623>)

[PDF](<https://arxiv.org/pdf/2407.08623.pdf>)
