Gradients of Functions of Large Matrices
Nicholas Krämer, Pablo Moreno-Muñoz, Hrittik Roy, Søren Hauberg
摘要
Tuning scientific and probabilistic machine learning models for example, partial differential equations, Gaussian processes, or Bayesian neural networks often relies on evaluating functions of matrices whose size grows with the data set or the number of parameters. While the state-of-the-art for evaluating these quantities is almost always based on Lanczos and Arnoldi iterations, the present work is the first to explain how to differentiate these workhorses of numerical linear algebra efficiently. To get there, we derive previously unknown adjoint systems for Lanczos and Arnoldi iterations, implement them in JAX, and show that the resulting code can compete with Diffrax when it comes to differentiating PDEs, GPyTorch for selecting Gaussian process models and beats standard factorisation methods for calibrating Bayesian neural networks. All this is achieved without any problem-specific code optimisation. Find the code at https://github.com/pnkraemer/experiments-lanczos-adjoints and install the library with pip install matfree.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- Bayesian Deep Learning via Subnetwork Inference 引用了 Scalable Marginal Likelihood Estimation for Model Selection in Deep Learning
- Bayesian Deep Learning via Subnetwork Inference 引用了 Laplace Redux - Effortless Bayesian Deep Learning
- Laplace Redux - Effortless Bayesian Deep Learning 引用了 Bayesian Deep Learning via Subnetwork Inference
- Scalable Marginal Likelihood Estimation for Model Selection in Deep Learning 引用了 Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networks
- Laplace Redux - Effortless Bayesian Deep Learning 引用了 Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU Networks
- Laplace Redux - Effortless Bayesian Deep Learning 引用了 Scalable Marginal Likelihood Estimation for Model Selection in Deep Learning
它引用的 Paper16
- Laplace Redux - Effortless Bayesian Deep LearningErik A. Daxberger, Agustinus Kristiadi, Alexander Immer, Runa Eschenhagen 等NeurIPS 2021 · 508 次引用
- Efficient and Modular Implicit DifferentiationMathieu Blondel, Quentin Berthet, Marco Cuturi, Roy Frostig 等NeurIPS 2022 · 386 次引用
- Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU NetworksAgustinus Kristiadi, Matthias Hein, Philipp HennigICML 2020 · 344 次引用
- Scalable Marginal Likelihood Estimation for Model Selection in Deep LearningAlexander Immer, Matthias Bauer, Vincent Fortuin, Gunnar Rätsch 等ICML 2021 · 130 次引用
- Bayesian Deep Learning via Subnetwork InferenceErik A. Daxberger, Eric T. Nalisnick, James Urquhart Allingham, Javier Antorán 等ICML 2021 · 108 次引用
相关 Paper
- CoLA: Exploiting Compositional Structure for Automatic and Efficient Numerical Linear AlgebraAndres Potapczynski, Marc Finzi, Geoff Pleiss, Andrew Gordon WilsonNeurIPS 2023 · 13 次引用
- Collapsing Taylor Mode Automatic DifferentiationFelix Dangel, Tim Siebert, Marius Zeinhofer, Andrea WaltherNeurIPS 2025 · 1 次引用
- Adjoint-aided inference of Gaussian process driven differential equationsPaterne Gahungu, Christopher W. Lanyon, Mauricio A. Álvarez, Engineer Bainomugisha 等NeurIPS 2022 · 6 次引用
- ΦFlow: Differentiable Simulations for PyTorch, TensorFlow and JaxPhilipp Holl, Nils ThuereyICML 2024 · 29 次引用
- Hamiltonian Monte Carlo using an adjoint-differentiated Laplace approximation: Bayesian inference for latent Gaussian models and beyondCharles C. Margossian, Aki Vehtari, Daniel Simpson, Raj AgrawalNeurIPS 2020 · 30 次引用
