用激活层高斯过程实现预训练模型的后验不确定性量化
Post-Hoc Uncertainty Quantification in Pre-Trained Neural Networks via Activation-Level Gaussian Processes
- 将不确定性从参数空间转向激活层,通过高斯过程建模
- 提出GAPA-Variational方法,在多数数据集上优于拉普拉斯近似
- 无需重新训练,保留原始预测,适合大模型部署
通过Dropout、贝叶斯神经网络和拉普拉斯近似等方法进行神经网络不确定性量化,往往存在欠拟合或计算开销大的问题,难以适用于大规模数据集。本文提出一种新思路:从权重空间的不确定性转向激活层的不确定性,采用高斯过程建模。具体提出高斯过程激活函数(GAPA),在不改变预训练模型均值预测的前提下,实现后验不确定性量化。设计两种方法:GAPA-Free利用训练数据的核函数学习超参数,训练高效;GAPA-Variational通过梯度下降优化核函数超参数,灵活性更强。实验表明,GAPA-Variational在多数数据集上至少在一个不确定性评估指标上优于拉普拉斯近似。
原文摘要 · Abstract (English)
Uncertainty quantification in neural networks through methods such as Dropout, Bayesian neural networks and Laplace approximations is either prone to underfitting or computationally demanding, rendering these approaches impractical for large-scale datasets. In this work, we address these shortcomings by shifting the focus from uncertainty in the weight space to uncertainty at the activation level, via Gaussian processes. More specifically, we introduce the Gaussian Process Activation function (GAPA) to capture neuron-level uncertainties. Our approach operates in a post-hoc manner, preserving the original mean predictions of the pre-trained neural network and thereby avoiding the underfitting issues commonly encountered in previous methods. We propose two methods. The first, GAPA-Free, employs empirical kernel learning from the training data for the hyperparameters and is highly efficient during training. The second, GAPA-Variational, learns the hyperparameters via gradient descent on the kernels, thus affording greater flexibility. Empirical results demonstrate that GAPA-Variational outperforms the Laplace approximation on most datasets in at least one of the uncertainty quantification metrics.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。