arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.01816cs.LGcs.HC
收藏

从 $t$-SNE 到 UMAP:基于对比学习

From $t$-SNE to UMAP with contrastive learning

IWR at Heidelberg University(海德堡大学IWR研究所);University of Tübingen(蒂宾根大学)

Sebastian Damrich, Jan Niklas Böhm, Fred A. Hamprecht, Dmitry Kobak

AI总结:

本研究通过对比学习揭示了 $t$-SNE 与 UMAP 的概念联系,发现其差异源于负采样失真,并提出泛化负采样方法实现两者间的插值与外推,以平衡局部与全局结构,降低过度解释风险。

摘要:

邻域嵌入方法 $t$-SNE 和 UMAP 是高维数据集可视化的事实标准。它们的损失函数源于完全不同的视角,似乎互不相关。在实践中,它们产生截然不同的嵌入,可能对同一数据提出相互冲突的解释。这种现象的根本原因以及更一般地 $t$-SNE 与 UMAP 之间的确切关系一直不清楚。在本研究中,我们通过对对比学习方法的新见解揭示了它们的概念联系。噪声对比估计可用于优化 $t$-SNE,而 UMAP 依赖于另一种对比方法——负采样。我们发现了这两种对比方法之间的精确关系,并对负采样引入的失真进行了数学刻画。在视觉上,这种失真导致 UMAP 相比 $t$-SNE 生成更紧凑、簇更紧密的嵌入。我们利用这一新概念联系,提出并实现了负采样的泛化方法,允许我们在 $t$-SNE 和 UMAP 及其各自嵌入之间进行插值(甚至外推)。沿此嵌入谱系移动,可在离散/局部与连续/全局结构间权衡,降低对任何单一嵌入表面特征过度解释的风险。我们提供了 PyTorch 实现。

英文摘要:

Neighbor embedding methods $t$-SNE and UMAP are the de facto standard for visualizing high-dimensional datasets. Motivated from entirely different viewpoints, their loss functions appear to be unrelated. In practice, they yield strongly differing embeddings and can suggest conflicting interpretations of the same data. The fundamental reasons for this and, more generally, the exact relationship between $t$-SNE and UMAP have remained unclear. In this work, we uncover their conceptual connection via a new insight into contrastive learning methods. Noise-contrastive estimation can be used to optimize $t$-SNE, while UMAP relies on negative sampling, another contrastive method. We find the precise relationship between these two contrastive methods and provide a mathematical characterization of the distortion introduced by negative sampling. Visually, this distortion results in UMAP generating more compact embeddings with tighter clusters compared to $t$-SNE. We exploit this new conceptual connection to propose and implement a generalization of negative sampling, allowing us to interpolate between (and even extrapolate beyond) $t$-SNE and UMAP and their respective embeddings. Moving along this spectrum of embeddings leads to a trade-off between discrete / local and continuous / global structures, mitigating the risk of over-interpreting ostensible features of any single embedding. We provide a PyTorch implementation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑