arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2111.00945cs.MScs.NAmath.NA
收藏

脱离抽象:统一表单语言[ UFL ]的外部函数接口

Escaping the abstraction: a foreign function interface for the Unified Form Language [UFL]

Nacime Bouziani, David A. Ham

摘要:

用于有限元法的高级域特定语言支持用于基于偏微分方程(PDE)的模拟的高生产率编程环境,同时采用自动代码生成来实现高性能。然而,这种方法的局限性是它不支持无法在向量演算中直接表达的运算符。这在偏微分方程不足以准确描述感兴趣的物理问题的应用中至关重要。深度学习技术的使用在填补这一知识空白方面变得越来越流行,例如包括微分方程中未表示的特征,或未解决的时空尺度的闭合。我们在Firedrake有限元系统中引入了一个接口,该接口可以与深度学习模型实现无缝接口。这一新功能与Firedrake的自动微分功能相结合,实现了逆问题的自动解决方案。我们的实现与PyTorch接口,可以扩展到其他机器学习库。由此产生的框架支持耦合PDE和深度学习的复杂模型,同时保持应用科学家和软件专家之间的关注点分离。

英文摘要:

High level domain specific languages for the finite element method underpin high productivity programming environments for simulations based on partial differential equations (PDE) while employing automatic code generation to achieve high performance. However, a limitation of this approach is that it does not support operators that are not directly expressible in the vector calculus. This is critical in applications where PDEs are not enough to accurately describe the physical problem of interest. The use of deep learning techniques have become increasingly popular in filling this knowledge gap, for example to include features not represented in the differential equations, or closures for unresolved spatiotemporal scales. We introduce an interface within the Firedrake finite element system that enables a seamless interface with deep learning models. This new feature composes with the automatic differentiation capabilities of Firedrake, enabling the automated solution of inverse problems. Our implementation interfaces with PyTorch and can be extended to other machine learning libraries. The resulting framework supports complex models coupling PDEs and deep learning whilst maintaining separation of concerns between application scientists and software experts.

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

↑