arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.04403cs.LG
收藏

温度作为对比学习的不确定性

Temperature as Uncertainty in Contrastive Learning

Stanford University(斯坦福大学)

Oliver Zhang, Mike Wu, Jasmine Bayrooti, Noah Goodman

摘要:

对比学习已经证明了在没有注释的情况下学习表示的强大能力,甚至优于监督基线。然而,它仍然缺乏对现实世界应用有用的重要属性,其中之一是不确定性。在本文中,我们提出了一种简单的方法,通过重新利用温度(一个用于缩放的神秘超参数)来生成许多对比方法的不确定性得分。通过观察温度控制目标对特定嵌入位置的敏感程度,我们的目标是将温度作为输入相关变量进行学习,将其视为嵌入置信度的度量。我们称这种方法为“温度不确定性”或TaU。通过实验,我们证明了TaU是有用的分布外检测,同时保持与基准的线性评价的竞争力。此外,我们还证明了TaU可以在预训练模型的基础上学习,从而能够使用流行的现成模型事后生成不确定性分数。总之,TaU是一种简单而通用的方法,用于生成对比学习的不确定性。开放源代码可以在www.example.com上找到。

英文摘要:

Contrastive learning has demonstrated great capability to learn representations without annotations, even outperforming supervised baselines. However, it still lacks important properties useful for real-world application, one of which is uncertainty. In this paper, we propose a simple way to generate uncertainty scores for many contrastive methods by re-purposing temperature, a mysterious hyperparameter used for scaling. By observing that temperature controls how sensitive the objective is to specific embedding locations, we aim to learn temperature as an input-dependent variable, treating it as a measure of embedding confidence. We call this approach "Temperature as Uncertainty", or TaU. Through experiments, we demonstrate that TaU is useful for out-of-distribution detection, while remaining competitive with benchmarks on linear evaluation. Moreover, we show that TaU can be learned on top of pretrained models, enabling uncertainty scores to be generated post-hoc with popular off-the-shelf models. In summary, TaU is a simple yet versatile method for generating uncertainties for contrastive learning. Open source code can be found at: https://github.com/mhw32/temperature-as-uncertainty-public.

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

↑