Bringing PDEs to JAX with forward and reverse modes automatic differentiation

Ivan Yashchuk
8/31/2023
cs.MScs.LGmath.NA

No confident code implementation found for this paper.

Abstract

Partial differential equations (PDEs) are used to describe a variety of physical phenomena. Often these equations do not have analytical solutions and numerical approximations are used instead. One of the common methods to solve PDEs is the finite element method. Computing derivative information of the solution with respect to the input parameters is important in many tasks in scientific computing. We extend JAX automatic differentiation library with an interface to Firedrake finite element library. High-level symbolic representation of PDEs allows bypassing differentiating through low-level possibly many iterations of the underlying nonlinear solvers. Differentiating through Firedrake solvers is done using tangent-linear and adjoint equations. This enables the efficient composition of finite element solvers with arbitrary differentiable programs. The code is available at github.com/IvanYashchuk/jax-firedrake.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yashchuk2023bringing,
  title  = {Bringing PDEs to JAX with forward and reverse modes automatic differentiation},
  author = {Ivan Yashchuk},
  year   = {2023},
  eprint = {2309.07137},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.07137v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.07137.svg)](https://codeofpaper.com/paper/2309.07137)

Discussion