BayesCap:冻结神经网络中校准不确定性的贝叶斯身份上限
BayesCap: Bayesian Identity Cap for Calibrated Uncertainty in Frozen Neural Networks
摘要:
高质量的校准不确定性估计对于许多现实世界的应用至关重要,特别是对于基于深度学习的部署ML系统。虽然贝叶斯深度学习技术允许不确定性估计,但使用大规模数据集训练它们是一个昂贵的过程,并不总是产生与非贝叶斯同行竞争的模型。此外,许多已经训练和部署的高性能深度学习模型本质上是非贝叶斯的,并且不提供不确定性估计。为了解决这些问题,我们提出了BayesCap,学习冻结模型的贝叶斯身份映射,允许不确定性估计。BayesCap是一种内存效率高的方法,可以在原始数据集的一小部分上进行训练,通过为预测提供校准的不确定性估计来增强预训练的非贝叶斯计算机视觉模型,而不会(i)妨碍模型的性能,(ii)需要从头开始重新训练模型。所提出的方法是不可知的各种架构和任务。我们展示了我们的方法在各种各样的任务上的有效性,这些任务具有不同的架构,包括图像超分辨率,去模糊,修复以及医学图像翻译等关键应用。此外,我们应用导出的不确定性估计来检测关键场景中的分布样本,如自动驾驶中的深度估计。代码可在https://github.com/ExplainableML/BayesCap上获得。
英文摘要:
High-quality calibrated uncertainty estimates are crucial for numerous real-world applications, especially for deep learning-based deployed ML systems. While Bayesian deep learning techniques allow uncertainty estimation, training them with large-scale datasets is an expensive process that does not always yield models competitive with non-Bayesian counterparts. Moreover, many of the high-performing deep learning models that are already trained and deployed are non-Bayesian in nature and do not provide uncertainty estimates. To address these issues, we propose BayesCap that learns a Bayesian identity mapping for the frozen model, allowing uncertainty estimation. BayesCap is a memory-efficient method that can be trained on a small fraction of the original dataset, enhancing pretrained non-Bayesian computer vision models by providing calibrated uncertainty estimates for the predictions without (i) hampering the performance of the model and (ii) the need for expensive retraining the model from scratch. The proposed method is agnostic to various architectures and tasks. We show the efficacy of our method on a wide variety of tasks with a diverse set of architectures, including image super-resolution, deblurring, inpainting, and crucial application such as medical image translation. Moreover, we apply the derived uncertainty estimates to detect out-of-distribution samples in critical scenarios like depth estimation in autonomous driving. Code is available at https://github.com/ExplainableML/BayesCap.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。