paper-with-me

홈 › Papers

Temperature as Uncertainty in Contrastive Learning

2021-10-08 · Oliver Zhang, Mike Wu, Jasmine Bayrooti, Noah Goodman

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.

📄 PDF Abstract BibTeX arXiv:2110.04403

Code (1)

mhw32/temperature-as-uncertainty-public 공식 구현 pytorch

Tasks

Contrastive LearningLinear evaluationOut-of-Distribution Detection

Similar Papers 제목 키워드 기반

Learning Robust Representations for Malicious Content Detection via Contrastive Sampling and Uncertainty Estimation

2025-12-01 · Elias Hossain, Umesh Biswas, Charan Gudla, Sai Phani Parsa arxiv

We propose the Uncertainty Contrastive Framework (UCF), a Positive-Unlabeled (PU) representation learning framework that integrates uncertainty-aware contrastive loss, adaptive temperature scaling, and a self-attention-g…

Representation Learning

Probabilistic Contrastive Loss for Self-Supervised Learning

2021-12-02 · Shen Li, Jianqing Xu, Bryan Hooi

This paper proposes a probabilistic contrastive loss function for self-supervised learning. The well-known contrastive loss is deterministic and involves a temperature hyperparameter that scales the inner product between…

Contrastive LearningSelf-Supervised Learning

Adaptive Contrastive Search: Uncertainty-Guided Decoding for Open-Ended Text Generation

2024-07-26 · Esteban Garces Arias, Julian Rodemann, Meimingwei Li, Christian Heumann 외

Decoding from the output distributions of large language models to produce high-quality text is a complex challenge in language modeling. Various approaches, such as beam search, sampling with temperature, $k-$sampling, …

DiversityLanguage ModelingLanguage ModellingText Generation

MM-TS: Multi-Modal Temperature and Margin Schedules for Contrastive Learning with Long-Tail Data

2026-03-09 · Siarhei Sheludzko, Dhimitrios Duka, Bernt Schiele, Hilde Kuehne 외 arxiv

Contrastive learning has become a fundamental approach in both uni-modal and multi-modal frameworks. This learning paradigm pulls positive pairs of samples closer while pushing negatives apart. In the uni-modal setting (…

Contrastive Learning

Temperature-Free Loss Function for Contrastive Learning

2025-01-29 · Bum Jun Kim, Sang Woo Kim

As one of the most promising methods in self-supervised learning, contrastive learning has achieved a series of breakthroughs across numerous fields. A predominant approach to implementing contrastive learning is applyin…

Contrastive LearningSelf-Supervised Learningvalid