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

重新思考分类中的近似高斯推断

Rethinking Approximate Gaussian Inference in Classification

Tübingen AI Center University of Tübingen(图宾根人工智能中心 图宾根大学)

Bálint Mucsányi, Nathaël Da Costa, Philipp Hennig

AI总结:

本文提出用normCDF或sigmoid替代softmax,实现无采样的预测近似,提升分类任务中的不确定性量化能力。

摘要:

在分类任务中,softmax函数被广泛用作输出激活函数以产生预测概率。此类输出只能捕捉偶然不确定性。为了捕捉epistemic不确定性,已提出近似高斯推断方法。我们开发了一种通用的框架来描述此类方法,我们将其视为在logit空间上输出高斯分布。然后通过softmax获得预测值。然而,此类softmax高斯积分无法解析求解,且蒙特卡洛(MC)近似可能成本高且噪声大。我们提出用元素级normCDF或sigmoid替代softmax激活,这允许准确无采样的预测近似。这还使通过狄利克雷分布进行高斯推前的近似成为可能,通过矩匹配。这种方法完全消除了与MC采样相关的运行时间和内存开销。我们评估了该方法与几种近似高斯推断方法(拉普拉斯、HET、SNGP)结合在大规模和小规模数据集(ImageNet、CIFAR-100、CIFAR-10)上的效果,证明其相比softmax MC采样在不确定性量化方面有改进。我们的代码可在https://github.com/bmucsanyi/probit获得。

英文摘要:

In classification tasks, softmax functions are ubiquitously used as output activations to produce predictive probabilities. Such outputs only capture aleatoric uncertainty. To capture epistemic uncertainty, approximate Gaussian inference methods have been proposed. We develop a common formalism to describe such methods, which we view as outputting Gaussian distributions over the logit space. Predictives are then obtained as the expectations of the Gaussian distributions pushed forward through the softmax. However, such softmax Gaussian integrals cannot be solved analytically, and Monte Carlo (MC) approximations can be costly and noisy. We propose to replace the softmax activation by element-wise normCDF or sigmoid, which allows for the accurate sampling-free approximation of predictives. This also enables the approximation of the Gaussian pushforwards by Dirichlet distributions with moment matching. This approach entirely eliminates the runtime and memory overhead associated with MC sampling. We evaluate it combined with several approximate Gaussian inference methods (Laplace, HET, SNGP) on large- and small-scale datasets (ImageNet, CIFAR-100, CIFAR-10), demonstrating improved uncertainty quantification capabilities compared to softmax MC sampling. Our code is available at https://github.com/bmucsanyi/probit.

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

↑