{"title":"将pde引入JAX,具有正向和反向模式的自动区分","authors":"Ivan Yashchuk","doi":"arxiv-2309.07137","DOIUrl":null,"url":null,"abstract":"Partial differential equations (PDEs) are used to describe a variety of\nphysical phenomena. Often these equations do not have analytical solutions and\nnumerical approximations are used instead. One of the common methods to solve\nPDEs is the finite element method. Computing derivative information of the\nsolution with respect to the input parameters is important in many tasks in\nscientific computing. We extend JAX automatic differentiation library with an\ninterface to Firedrake finite element library. High-level symbolic\nrepresentation of PDEs allows bypassing differentiating through low-level\npossibly many iterations of the underlying nonlinear solvers. Differentiating\nthrough Firedrake solvers is done using tangent-linear and adjoint equations.\nThis enables the efficient composition of finite element solvers with arbitrary\ndifferentiable programs. The code is available at\ngithub.com/IvanYashchuk/jax-firedrake.","PeriodicalId":501256,"journal":{"name":"arXiv - CS - Mathematical Software","volume":"28 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2023-08-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Bringing PDEs to JAX with forward and reverse modes automatic differentiation\",\"authors\":\"Ivan Yashchuk\",\"doi\":\"arxiv-2309.07137\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Partial differential equations (PDEs) are used to describe a variety of\\nphysical phenomena. Often these equations do not have analytical solutions and\\nnumerical approximations are used instead. One of the common methods to solve\\nPDEs is the finite element method. Computing derivative information of the\\nsolution with respect to the input parameters is important in many tasks in\\nscientific computing. We extend JAX automatic differentiation library with an\\ninterface to Firedrake finite element library. High-level symbolic\\nrepresentation of PDEs allows bypassing differentiating through low-level\\npossibly many iterations of the underlying nonlinear solvers. Differentiating\\nthrough Firedrake solvers is done using tangent-linear and adjoint equations.\\nThis enables the efficient composition of finite element solvers with arbitrary\\ndifferentiable programs. The code is available at\\ngithub.com/IvanYashchuk/jax-firedrake.\",\"PeriodicalId\":501256,\"journal\":{\"name\":\"arXiv - CS - Mathematical Software\",\"volume\":\"28 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2023-08-31\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Mathematical Software\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2309.07137\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Mathematical Software","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2309.07137","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Bringing PDEs to JAX with forward and reverse modes automatic differentiation
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.