Skip to content
Preprint

Variational Inference Using a Differentiable Multigrid Linear Solver

Aug 2026 · 0 citations · 39 references
Mathematics Computer Science Physics

TL;DR

A differentiable multigrid solver is developed for steady-state diffusion-absorption problems and derive its adjoint operations analytically through the full multigrid hierarchy, establishing differentiable multigrid solvers as practical building blocks for variational inference in PDE-constrained problems.

Abstract

Gradient-based Bayesian inference methods require efficient access to Jacobian and adjoint-Jacobian operators of high-dimensional forward models. While multigrid solvers provide near-optimal complexity for elliptic partial differential equations, they are rarely available in forms compatible with automatic differentiation (AD). We develop a differentiable multigrid solver for steady-state diffusion-absorption problems and derive its adjoint operations analytically through the full multigrid hierarchy. The resulting solver, DMGS, is implemented in C++ and interfaced with JAX to provide efficient Jacobian-vector and vector-Jacobian products for variational inference in the NIFTy framework. We validate the approach on a 3D inverse problem involving diffuse radiative transfer in tissue, reconstructing an effective radiative source from Monte Carlo-simulated data. The reconstruction reproduces the data at a reduced chi-squared of 1.1 and generalizes to 32 independent validation datasets. Benchmarks against a JAX-native multigrid implementation show comparable runtimes and consistently lower peak memory for the hand-derived adjoint, with modest reverse-mode overhead. These results establish differentiable multigrid solvers as practical building blocks for variational inference in PDE-constrained problems.

View source

Similar papers

Case report Sep 2026

Implicit Lagrangian Hydrodynamics with High-Order Finite Elements

A smooth artificial viscosity treatment based on smooth approximations of non-differentiable pointwise operations is introduced based on smooth approximations of non-differentiable pointwise operations to ensure robust and differentiable nonlinear solves in the presence of shocks.

Julian Andrej, Jean-Sylvain Camier, V. Dobrev et al. · 0 citations
Open access Sep 2026

Efficient Numerical Methods for the Uncertain Boltzmann Equation Based on a Hybrid Solver

This work proposes and compares several approaches to solve the Boltzmann equation with uncertain parameters, including multilevel Monte Carlo and multifidelity methods that employ an asymptotic-preserving-hybrid scheme for the deterministic Boltzmann model and provides practical guidelines for selection between APH-ba...

Yi-Wen Lin, Liu Liu · 0 citations
Preprint Sep 2026

Mixed-precision GPU algorithms for efficient turbulent flow simulations with Raviart-Thomas finite elements

A solution framework with fast matrix-free operator evaluation for all ingredients, combined with multigrid solvers for the Poisson problem, and a robust mixed-precision algorithmic framework to generate accurate initial guesses for the iterative linear solvers are developed.

Ivan Prusak, Enes Mustafa Soydan, Ivan Pribec et al. · 0 citations
Open access Sep 2026

Performance Portable Adjoints for Structured Mesh Applications with OPS

This work extends the Oxford Parallel library for Structured mesh solvers (OPS) domain-specific language to compute derivatives using the reverse mode of AD, and focuses on adjoint-mode AD for structured mesh stencil applications.

G. D. Balogh, J. Lotz, J. du Toit et al. · 0 citations
Preprint Aug 2026

An asymptotic-preserving adjoint unified gas kinetic scheme for sensitivity analysis

High-dimensional sensitivity analysis and uncertainty quantification for multiscale gas dynamics, spanning the continuum to rarefied regimes, require computationally efficient and mathematically consistent gradient evaluation. This paper develops a discrete adjoint method for the unified gas-kinetic scheme (UGKS) based...

Yue Zhang, Jun Cao, Wen-Pei Long et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.