Uncertainty approximation in text classification is an important area with applications in domain adaptation and interpretability. One of the most widely used uncertainty approximation methods is Monte Carlo (MC) Dropout, which is computationally expensive as it requires multiple forward passes through the model. A cheaper alternative is to simply use the softmax based on a single forward pass without dropout to estimate model uncertainty. However, prior work has indicated that these predictions tend to be overconfident. In this paper, we perform a thorough empirical analysis of these methods on five datasets with two base neural architectures in order to identify the trade-offs between the two. We compare both softmax and an efficient version of MC Dropout on their uncertainty approximations and downstream text classification performance, while weighing their runtime (cost) against performance (benefit). We find that, while MC dropout produces the best uncertainty approximations, using a simple softmax leads to competitive and in some cases better uncertainty estimation for text classification at a much lower computational cost, suggesting that softmax can in fact be a sufficient uncertainty estimate when computational resources are a concern.
Revisiting Uncertainty Estimation and Calibration of Large Language Models
School of Computer Science University of Sydney(悉尼大学计算机科学学院);City University of Hong Kong(香港城市大学);Shanghai Jiao Tong University(上海交通大学);Department of Engineering Science University of Oxford(牛津大学工程科学系)
Revisiting Incremental Stochastic Majorization-Minimization Algorithms with Applications to Mixture of Experts
School of Computing, National University of Singapore(新加坡国立大学计算机学院);ARC Centre of Excellence for the Mathematical Analysis of Cellular Systems(细胞系统数学分析卓越中心);School of Mathematical Sciences, Queensland University of Technology(昆士兰科技大学数学科学学院);Laboratoire d’Analyse et d’Architecture des Systèmes, CNRS(系统分析与架构实验室,CNRS);School of Medicine and Dentistry, Griffith University(格里菲斯大学医学与牙科学院);Department of Mathematics and Physical Sciences, La Trobe University(拉特罗布大学数学与物理科学系);Institute of Mathematics for Industry, Kyushu University(工业数学研究所,九州大学);Faculty of Mathematics and Computer Science, University of Science, Ho Chi Minh City(胡志明市大学数学与计算机科学学院);Vietnam National University, Ho Chi Minh City(越南国家大学,胡志明市);Univ. Grenoble Alpes, Inria, CNRS, Grenoble INP, LJK(格勒诺布尔阿尔卑斯大学,Inria,CNRS,格勒诺布尔INP,LJK)
Transformer Uncertainty Estimation with Hierarchical Stochastic Attention
University of Amsterdam(阿姆斯特丹大学);Amazon Development Center Germany GmbH(亚马逊德国开发中心有限公司)
Transformers在广泛的NLP任务中是最先进的,也已应用于许多现实世界的产品。了解Transformer模型预测的可靠性和确定性对于构建可信的机器学习应用程序至关重要,例如,医学诊断虽然最近已经提出了许多Transformer扩展,Transformer模型的不确定性估计的研究是欠探索。在这项工作中,我们提出了一种新的方法,使Transformers具有不确定性估计的能力,同时,保持原来的预测性能。这是通过学习一个分层的随机自我注意力,分别出席值和一组可学习的质心。然后,使用Gumbel-Softmax技巧,用采样质心的混合物形成新的注意力头部。我们从理论上证明了从Gumbel分布采样的自注意近似是有界的。我们经验性地评估我们的模型在两个文本分类任务与域内(ID)和域外(OOD)数据集。实验结果表明:(1)在比较的方法中,该方法具有最好的预测性能和不确定性权衡;(2)在ID数据集上表现出非常有竞争力的(在大多数情况下,提高了)预测性能;(3)在OOD数据集上的不确定性估计中与Monte Carlo dropout和集成方法相当。
From Attention Sensitivity to Layer Role: Revisiting Mixed-Precision Quantization of Transformers
Sharif University of Technology(谢里夫理工大学);GISMA University of Applied Sciences(GISMA应用科学大学);BRAINS, Brandenburg Research Center for Applied Intelligent Systems(勃兰登堡应用智能系统研究中心);Max Planck Institute for Security and Privacy(马克斯·普朗克安全与隐私研究所);Computer Vision Center (CVC)(计算机视觉中心);University of Cambridge(剑桥大学)
Revisiting Kernel Attention with Correlated Gaussian Process Representation
FPT Software AI Center(FPT软件AI中心);School of Electrical Engineering and Computer Science, Washington State University(华盛顿州立大学电气工程与计算机科学学院);National University of Singapore(新加坡国立大学)
University of Oxford(牛津大学);OATML, Department of Computer Science, University of Oxford(牛津大学计算机科学系OATML);Torr Vision Group, Department of Engineering Science, University of Oxford(牛津大学工程科学系Torr视觉组)
可靠的不确定性从确定性的单正向传递模型的追求,因为传统的方法的不确定性量化计算昂贵。我们采用两种复杂的单向前传递不确定性方法,DUQ和SNGP,并检查它们是否主要依赖于一个良好的正则化特征空间。至关重要的是,在不使用更复杂的方法来估计不确定性的情况下,通过残差连接和频谱归一化实现的具有这种特征空间的单个softmax神经网络 * 优于 * DUQ和SNGP的认知不确定性预测,使用简单的高斯判别分析 * 后训练 * 作为单独的特征空间密度估计器-无需对OoD数据进行微调,特征集成或输入预处理。这个概念上简单的 * 深度确定性不确定性(DDU)* 基线也可用于解开任意和认知不确定性,并在几个OoD基准测试(CIFAR-10/100 vs SVHN/Tiny-ImageNet,ImageNet vs ImageNet-O)以及不同模型架构的主动学习设置中表现得与Deep Ensembles一样好,这是最先进的不确定性预测方法,但 * 计算成本更低 *。
Toward Efficient Uncertainty in LLMs through Evidential Knowledge Distillation
Department of Computer Science and Engineering, Indian Institute of Technology Hyderabad(计算机科学与工程系,印度理工学院海得拉巴分校);Jagiellonian University, Faculty of Mathematics and Computer Science(雅盖隆大学,数学与计算机科学学院)
Uncertainty-Aware Calibrated Clinical Text Classification with Large Language Models
Faculty of Dental Medicine and Oral Health Sciences, McGill University(牙医学院与口腔健康科学学院,麦吉尔大学);McGill University(麦吉尔大学);Mila–Quebec Artificial Intelligence Institute(魁北克人工智能研究所);School of Computer Science, McGill University(计算机科学学院,麦吉尔大学)
Revisiting Essential and Nonessential Settings of Evidential Deep Learning
National Lab of Pattern Recognition, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所模式识别国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Peng Cheng Laboratory(鹏城实验室)