Is Cosine-Similarity of Embeddings Really About Similarity?

相似性(几何) 余弦相似度 计算机科学 三角函数 人工智能 数学 模式识别(心理学) 几何学 图像(数学)
作者
Harald Steck,Chaitanya Ekanadham,Nathan Kallus
标识
DOI:10.1145/3589335.3651526
摘要

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 applying cosine-similarity to a learned low-dimensional feature embedding. This can work better but sometimes also worse than the unnormalized dot-product between embedded vectors in practice. To gain insight into this empirical observation, we study embeddings derived from regularized linear models, where closed-form solutions facilitate analytical insights. We derive analytically how cosine-similarity can yield arbitrary and therefore meaningless 'similarities.' For some linear models the similarities are not even unique, while for others they are implicitly controlled by the regularization. We discuss implications beyond linear models: a combination of different regularizations are employed when learning deep models; these have implicit and unintended effects when taking cosine-similarities of the resulting embeddings, rendering results opaque and possibly arbitrary. Based on these insights, we caution against blindly using cosine-similarity and outline alternatives.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
1秒前
1秒前
1秒前
晚秋北斗完成签到 ,获得积分10
1秒前
3秒前
所所应助RC_Wang采纳,获得10
4秒前
5秒前
5秒前
minggong发布了新的文献求助10
5秒前
6秒前
6秒前
家伟发布了新的文献求助10
7秒前
7秒前
ww发布了新的文献求助10
8秒前
liviawong完成签到,获得积分10
9秒前
10秒前
桐桐应助xinxin采纳,获得10
10秒前
马尔尼菲蓝状菌完成签到,获得积分10
11秒前
11秒前
林een发布了新的文献求助30
11秒前
12秒前
莫兮佐发布了新的文献求助10
12秒前
Saber完成签到,获得积分10
14秒前
15秒前
15秒前
苏打完成签到,获得积分10
15秒前
lysh应助没有昵称采纳,获得80
16秒前
16秒前
追忆发布了新的文献求助10
17秒前
17秒前
pjwl完成签到 ,获得积分10
17秒前
研友_8yN60L发布了新的文献求助10
17秒前
罗四夕完成签到,获得积分10
18秒前
18秒前
18秒前
18秒前
川川完成签到,获得积分10
18秒前
19秒前
超级训熊师完成签到,获得积分10
19秒前
cherlie应助兴奋的铸海采纳,获得10
19秒前
高分求助中
The Mother of All Tableaux Order, Equivalence, and Geometry in the Large-scale Structure of Optimality Theory 2400
Ophthalmic Equipment Market by Devices(surgical: vitreorentinal,IOLs,OVDs,contact lens,RGP lens,backflush,diagnostic&monitoring:OCT,actorefractor,keratometer,tonometer,ophthalmoscpe,OVD), End User,Buying Criteria-Global Forecast to2029 2000
A new approach to the extrapolation of accelerated life test data 1000
Cognitive Neuroscience: The Biology of the Mind 1000
Cognitive Neuroscience: The Biology of the Mind (Sixth Edition) 1000
Optimal Transport: A Comprehensive Introduction to Modeling, Analysis, Simulation, Applications 800
Official Methods of Analysis of AOAC INTERNATIONAL 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 内科学 纳米技术 计算机科学 化学工程 复合材料 遗传学 基因 物理化学 催化作用 冶金 细胞生物学 免疫学
热门帖子
关注 科研通微信公众号,转发送积分 3959110
求助须知:如何正确求助?哪些是违规求助? 3505445
关于积分的说明 11123768
捐赠科研通 3237126
什么是DOI,文献DOI怎么找? 1788987
邀请新用户注册赠送积分活动 871477
科研通“疑难数据库(出版商)”最低求助积分说明 802821