Lune

NeurIPS2024顶会

Embedding Dimension of Contrastive Learning and k-Nearest Neighbors

Dmitrii Avdiukhin, Vaggos Chatziafratis, Orr Fischer, Grigory Yaroslavtsev

2024年份
5被引次数
3顶会引用

摘要

We study the embedding dimension of distance comparison data in two settings: contrastive learning and k-nearest neighbors (k-NN). Our goal is to find the smallest dimension d of an ℓ p -space in which a given dataset can be represented. We show that the arboricity of the associated graphs plays a key role in designing embeddings. For the most popular ℓ 2 -space, we get tight bounds in both settings. In contrastive learning, we are given m labeled samples (x i , y + i , z - i ) representing the fact that the positive example y i is closer to the anchor x i than the negative example z i (we also give results for t negatives). For representing such dataset in:

• ℓ 2 : d = Θ( √ m) is necessary and sufficient, consistent with our experiments.

• ℓ p for p ≥ 1: d = O(m) is sufficient and d = Ω( √ m) is necessary.

• ℓ ∞ : d = O(m 2/3 ) is sufficient and d = Ω( √ m) is necessary. In k-NN, for each of the n data points we are given an ordered set of the closest k points. We show that for preserving the ordering of the k-NN for every point in:

• ℓ 2 : d = Θ(k) is necessary and sufficient.

• ℓ p for p ≥ 1: d = Õ(k 2 ) is sufficient and d = Ω(k) is necessary.

• ℓ ∞ : d = Ω(k) is necessary. Furthermore, if the goal is to not just preserve the ordering of the k-NN but also keep them as the nearest neighbors, then d = Õ(poly(k)) suffices in ℓ p for p ≥ 1.

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了每一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

引用它的顶会 Paper3

问问它们各自怎么用它

它引用的顶会 Paper17

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖