arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.14934stat.MLcs.LG

预训练网络中的激活空间不确定性量化

Activation-Space Uncertainty Quantification for Pretrained Networks

Department of Engineering, University of Cambridge, Cambridge, UK(剑桥大学工程系);Mathematical Institute(数学研究所);Oxford-Man Institute, University of Oxford, Oxford, UK(牛津大学奥克斯曼研究所)

Richard Bergna, Stefan Depeweg, Sergio Calvo-Ordoñez, Jonathan Plenk, Alvaro Cartea, Jose Miguel Hernández-Lobato

AI总结:

GAPA通过在激活空间中提供闭合形式的epistemic方差,实现了预训练网络的高效不确定性量化,无需采样或反向传播。

摘要:

可靠的不确定性估计对于部署预训练模型至关重要;然而,许多强大的不确定性量化方法需要重新训练、蒙特卡洛采样或昂贵的二次计算,可能会改变冻结主干网络的预测。为此,我们引入了高斯过程激活(GAPA),一种后处理方法,将贝叶斯建模从权重转移到激活上。GAPA将标准非线性替换为高斯过程激活,其后验均值恰好匹配原始激活,通过构造性地保持主干网络的点预测,同时在激活空间中提供闭合形式的epistemic方差。为了扩展到现代架构,我们使用稀疏变分诱导点近似来处理缓存的训练激活,并结合局部k最近邻子集条件,使确定性单次传递不确定性传播成为可能,而无需采样、反向传播或二次信息。在回归、分类、图像分割和语言模型中,GAPA在校准和异常检测方面与强大的后处理基线相匹配或表现更好,同时在测试时保持高效。

英文摘要:

Reliable uncertainty estimates are crucial for deploying pretrained models; yet, many strong methods for quantifying uncertainty require retraining, Monte Carlo sampling, or expensive second-order computations and may alter a frozen backbone's predictions. To address this, we introduce Gaussian Process Activations (GAPA), a post-hoc method that shifts Bayesian modeling from weights to activations. GAPA replaces standard nonlinearities with Gaussian-process activations whose posterior mean exactly matches the original activation, preserving the backbone's point predictions by construction while providing closed-form epistemic variances in activation space. To scale to modern architectures, we use a sparse variational inducing-point approximation over cached training activations, combined with local k-nearest-neighbor subset conditioning, enabling deterministic single-pass uncertainty propagation without sampling, backpropagation, or second-order information. Across regression, classification, image segmentation, and language modeling, GAPA matches or outperforms strong post-hoc baselines in calibration and out-of-distribution detection while remaining efficient at test time.

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

↑