arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.12642cs.LG
收藏

贝叶斯深度学习的加速线性拉普拉斯近似

Accelerated Linearized Laplace Approximation for Bayesian Deep Learning

Tsinghua University(清华大学);Renmin University of China(中国人民大学);Shanghai Jiao Tong University(上海交通大学)

Zhijie Deng, Feng Zhou, Jun Zhu

摘要:

拉普拉斯近似(LA)及其线性化变体(LLA)使预训练的深度神经网络能够轻松适应贝叶斯神经网络。广义高斯-牛顿(GGN)近似是典型的引入,以改善其易处理性。然而,LA和LLA仍然面临着非平凡的低效率问题,在实际应用中应该依赖于克罗内克因子,对角,甚至最后一层近似的GGN矩阵。这些近似值可能会损害学习结果的保真度。为了解决这个问题,受LLA和神经切线核(NTK)之间的联系的启发,我们开发了一个Nystrom近似NTK来加速LLA。我们的方法受益于流行的深度学习库的前向模式自动微分的能力,并享有可靠的理论保证。广泛的研究反映了所提出的方法在可扩展性和性能方面的优点。我们的方法甚至可以扩展到像视觉Transformer这样的架构。我们还提供有价值的消融研究来诊断我们的方法。代码可在\url{https://github.com/thudzj/ELLA}上获得。

英文摘要:

Laplace approximation (LA) and its linearized variant (LLA) enable effortless adaptation of pretrained deep neural networks to Bayesian neural networks. The generalized Gauss-Newton (GGN) approximation is typically introduced to improve their tractability. However, LA and LLA are still confronted with non-trivial inefficiency issues and should rely on Kronecker-factored, diagonal, or even last-layer approximate GGN matrices in practical use. These approximations are likely to harm the fidelity of learning outcomes. To tackle this issue, inspired by the connections between LLA and neural tangent kernels (NTKs), we develop a Nystrom approximation to NTKs to accelerate LLA. Our method benefits from the capability of popular deep learning libraries for forward mode automatic differentiation, and enjoys reassuring theoretical guarantees. Extensive studies reflect the merits of the proposed method in aspects of both scalability and performance. Our method can even scale up to architectures like vision transformers. We also offer valuable ablation studies to diagnose our method. Code is available at \url{https://github.com/thudzj/ELLA}.

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

↑