arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.06085cs.LGcs.MScs.NAmath.NAphysics.comp-ph
收藏

跨越 PDE 与机器学习壁垒的可微编程

Differentiable programming across the PDE and Machine Learning barrier

I-X Centre for AI In Science(I-X科学人工智能中心);Imperial College London(伦敦帝国学院)

Nacime Bouziani, David A. Ham, Ado Farsi

AI总结:

本文提出通用可微编程抽象,通过代码生成自动耦合任意 PDE 系统与机器学习模型,已集成于 Firedrake 并支持 PyTorch、JAX。

摘要:

机器学习与物理定律的结合,在求解由偏微分方程(PDE)驱动的科学问题方面展现出巨大潜力,并有望实现快速推理、零样本泛化以及发现新物理的能力。相关例子包括:将基本物理定律用作机器学习算法的归纳偏置,这也被称为物理驱动的机器学习;以及应用机器学习来表示微分方程中未表示的特征,例如针对未解析时空尺度的闭合模型。然而,要通过将先进的 PDE 数值方法与最先进的机器学习相耦合来模拟复杂物理系统,需要把专业的 PDE 求解框架与行业标准的机器学习工具组合起来。手工实现 PDE 求解器或神经网络都无法满足要求。在本工作中,我们提出一种通用的可微编程抽象,为科学家和工程师提供一种高效的方式来指定端到端可微模型,使机器学习与基于 PDE 的组件相耦合,同时依靠代码生成实现高性能。我们的接口自动化了任意基于 PDE 的系统与机器学习模型之间的耦合,并开启了此前无法处理的新应用,而只需对现有代码进行微不足道的修改。我们的框架已被 Firedrake 有限元库采用,并支持 PyTorch 和 JAX 生态系统以及下游库。

英文摘要:

The combination of machine learning and physical laws has shown immense potential for solving scientific problems driven by partial differential equations (PDEs) with the promise of fast inference, zero-shot generalisation, and the ability to discover new physics. Examples include the use of fundamental physical laws as inductive bias to machine learning algorithms, also referred to as physics-driven machine learning, and the application of machine learning to represent features not represented in the differential equations such as closures for unresolved spatiotemporal scales. However, the simulation of complex physical systems by coupling advanced numerics for PDEs with state-of-the-art machine learning demands the composition of specialist PDE solving frameworks with industry-standard machine learning tools. Hand-rolling either the PDE solver or the neural net will not cut it. In this work, we introduce a generic differentiable programming abstraction that provides scientists and engineers with a highly productive way of specifying end-to-end differentiable models coupling machine learning and PDE-based components, while relying on code generation for high performance. Our interface automates the coupling of arbitrary PDE-based systems and machine learning models and unlocks new applications that could not hitherto be tackled, while only requiring trivial changes to existing code. Our framework has been adopted in the Firedrake finite-element library and supports the PyTorch and JAX ecosystems, as well as downstream libraries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑