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.
Learning Robust Representations for Malicious Content Detection via Contrastive Sampling and Uncertainty Estimation
1 College of Engineering;Computer Science, University of Central Florida, Orlando, USA, 2 Department of Computer Science \& Engineering, Mississippi State University, MS State, USA , 3 Department of Computer Science, University of Nevada, Las Vegas, USA
Contrastive uncertainty learning for robust multi-structure segmentation in lower-pelvic MR
UCL Hawkes Institute, University College London(伦敦大学学院霍克斯研究所);Department of Medical Physics and Biomedical Engineering, University College London(伦敦大学学院医学物理与生物医学工程系);Centre for Bioengineering, School of Engineering and Materials Science, Queen Mary University of London(伦敦大学玛丽女王学院工程与材料科学学院生物工程中心);Digital Environment Research Institute, Queen Mary University of London(伦敦大学玛丽女王学院数字环境研究所);Department of Computer Science, University College London(伦敦大学学院计算机科学系)
Uncertainty-Aware Metabolic Stability Prediction with Dual-View Contrastive Learning
School of Cyber Science and Engineering, Huazhong University of Science and Technology(华中科技大学计算机科学与工程学院);School of Software Engineering, Huazhong University of Science and Technology(华中科技大学软件学院);School of Information and Communication Technology, Griffith University(格里菲斯大学信息与通信技术学院);Union Hospital, Tongji Medical College, Huazhong University of Science and Technology(华中科技大学同济医学院附属同济医院)
Beijing National Research Center for Information Science and Technology(BNRist)(北京信息科学与技术国家研究中心);Department of Computer Science and Technology Tsinghua University(清华大学计算机科学与技术系)
Probabilistic Contrastive Learning with Explicit Concentration on the Hypersphere
Athinoula A. Martinos Center(阿西努拉·A.马蒂诺斯中心);MGH, HMS, Harvard University(哈佛医学院、麻省总医院、哈佛大学);Imperial College London(伦敦帝国学院);Technical University of Munich(慕尼黑工业大学);University of Zurich(苏黎世大学)
Affinity Uncertainty-based Hard Negative Mining in Graph Contrastive Learning
Australian Artificial Intelligence Institute, University of Technology Sydney(悉尼科技大学澳大利亚人工智能研究院);School of Computing and Information Systems, Singapore Management University(新加坡管理大学计算与信息系统学院)
Temperature Schedules for Self-Supervised Contrastive Methods on Long-Tail Data
MPI for Informatics(马克斯·普朗克信息学研究所);Saarland Informatics Campus(萨尔兰信息学园区);Goethe University Frankfurt(法兰克福歌德大学);MIT-IBM Watson AI Lab(麻省理工学院-IBM沃森人工智能实验室);University of Oxford(牛津大学)
ETSCL: An Evidence Theory-Based Supervised Contrastive Learning Framework for Multi-modal Glaucoma Grading
Beihang University(北京航空航天大学);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院);Lee Kong Chian School of Medicine, Nanyang Technological University(南洋理工大学李光前医学院);Sun Yat-sen University(中山大学);National University of Singapore(新加坡国立大学);South China University of Technology(华南理工大学)
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);CAS Center for Excellence in Brain Science and Intelligence Technology(中国科学院脑科学与智能技术卓越创新中心)
Breaking the Prototype Bias Loop: Confidence-Aware Federated Contrastive Learning for Highly Imbalanced Clients
Key Laboratory of Water Big Data Technology of Ministry of Water Resources, College of Computer Science and Software Engineering, Hohai University, Nanjing, China(水利部水大数据技术重点实验室,计算机科学与软件工程学院,河海大学,南京,中国);Department of Computer Science, City University of Hong Kong, Hong Kong, China(计算机科学系,香港城市大学,香港,中国);State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing, China(新型软件技术国家重点实验室,南京大学,南京,中国);School of Artificial Intelligence and Information Technology, Nanjing University of Chinese Medicine, Nanjing, China(人工智能与信息技术学院,南京中医药大学,南京,中国)
Tight PAC-Bayesian Risk Certificates for Contrastive Learning
LTCI, Télécom Paris, Institut Polytechnique de Paris(LTCI,巴黎电信学院,巴黎高等理工学院);School of Computation Information and Technology, Technical University of Munich(计算信息与技术学院,慕尼黑技术大学)