atlas

Research map / Probabilistic and scientific modeling / Differential equations and PDEs

Gradients of Functions of Large Matrices

NeurIPS 2024 · Probabilistic and scientific modeling › Differential equations and PDEs · approach: Probabilistic inference for ODEs and SDEs · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Derives adjoint systems for the Lanczos and Arnoldi iterations and implements matrix-free reverse-mode gradients in JAX (matfree), showing competitiveness on GP model selection, PDE learning, and Laplace-approximated Bayesian neural networks.

Problem

Differentiating functions of large matrices (e.g. log-determinants, matrix exponentials) computed via matrix-free Lanczos/Arnoldi iterations, which previously lacked efficient, exact reverse-mode gradients for machine learning pipelines.

Approach

Treat the Lanczos and Arnoldi iterations as constrained dynamical systems and apply the adjoint method with Lagrange multipliers, yielding closed-form adjoint systems whose backward pass has the same linear time and memory complexity as the forward pass and uses only matrix-vector products.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use Lanczos with adjoint gradients instead of GPyTorch gradientsexact Gaussian process model selection · elevators, protein, kegg_dir, kegg_undirRMSE: 0.09 $\pm$ 0.002 vs 0.09 $\pm$ 0.003; 0.39 $\pm$ 0.005 vs 0.39 $\pm$ 0.005; 0.12 $\pm$ 0.002 vs 0.12 $\pm$ 0.005; 0.12 $No clear effect
use Lanczos with adjoint gradients instead of GPyTorch gradientsexact Gaussian process model selection · kin40kRMSE: 0.10 $\pm$ 0.010 -> 0.12 $\pm$ 0.004Hurt
use Arnoldi adjoints instead of Diffrax Dopri5PDE coefficient-field learning · PDE coefficient-field learningRuntime per epoch: 7.2e-02 $\pm$ 3.4e-05 vs 7.7e-02 $\pm$ 1.8e-05No clear effect
use Arnoldi adjoints instead of Diffrax Tsit5PDE coefficient-field learning · PDE coefficient-field learningRuntime per epoch: 2.7e-01 $\pm$ 1.1e-05 -> 7.7e-02 $\pm$ 1.8e-05Helped
use Arnoldi adjoints instead of Diffrax solversPDE coefficient-field learning · PDE coefficient-field learningParameter RMSE: Arnoldi: 2.9e-04 $\pm$ 4.4e-05; Dopri5: 2.6e-04 $\pm$ 5.0e-05; Tsit5: 2.7e-04 $\pm$ 5.2e-05No clear effect
use Lanczos instead of a stochastic diagonal GGN approximationBayesian VAN calibration · Bayesian VAN calibrationJoint likelihood: test (log): -5,260.9 $\pm$ 290.2 -> -66.5 $\pm$ 11.2Helped
use Lanczos instead of a stochastic diagonal GGN approximationBayesian VAN calibration · Bayesian VAN calibrationExpected calibration error: 0.2 $\pm$ 0.003 -> 0.5 $\pm$ 0.01Hurt
use Lanczos instead of a stochastic diagonal GGN approximationBayesian VAN calibration · places365 out-of-distributionAUROC (out-of-dist.): 0.5 $\pm$ 0.010 -> 0.9 $\pm$ 0.03Helped
increase Lanczos budget from 50 MVs to 150 MVs (ablation)Bayesian VAN calibration · Bayesian VAN calibrationMarginal likelihood (log): -192,757 -> -154,475Helped

Surprising findings

Limitations

Experimental setup

Datasets: UCI regression datasets (elevators, protein, kin40k, kegg_dir, kegg_undir) SuiteSparse bcsstk18 ImageNet places365

Benchmarks: UCI GP regression (RMSE, training loss, runtime) PDE coefficient learning (loss, parameter RMSE, runtime) Bayesian VAN calibration (marginal likelihood, ECE, AUROC)

Metrics: RMSE training loss runtime per epoch test loss parameter RMSE marginal likelihood expected calibration error AUROC

Baselines: GPyTorch Diffrax Dopri5 Diffrax Tsit5 diagonal GGN approximation

Builds on: adjoint method implicit differentiation stochastic trace estimation Lanczos iteration Arnoldi iteration

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy