arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.16110math.NAcs.LGcs.NAphysics.comp-ph
收藏

通过error correction在机器学习PDE求解器中保持不变

Invariant preservation in machine learned PDE solvers via error correction

Princeton University(普林斯顿大学);Princeton Plasma Physics Laboratory(普林斯顿等离子体物理实验室)

Nick McGreivy, Ammar Hakim

摘要:

机器学习偏微分方程(PDE)求解器用标准数值方法的可靠性换取精度和/或速度的潜在增益。求解器保证输出精确解的唯一方法是在网格间距$Δx$和时间步长$Δt$接近零的限制下使用收敛方法。机器学习求解器学习更新大$Δx$和/或$Δt$的解决方案,永远不能保证完美的准确性。一定量的错误是不可避免的,所以问题变成了:我们如何约束机器学习的求解器,让它给我们提供我们愿意容忍的错误?在本文中,我们通过保留底层PDE的连续不变量的离散类似物来设计更可靠的机器学习PDE求解器。这种不变量的例子包括质量守恒、能量守恒、热力学第二定律和/或非负密度。我们的关键见解很简单:为了保持不变量,在每个时间步对更新规则应用纠错算法。虽然该策略与标准求解器如何保持不变量不同,但是有必要保持允许机器学习求解器在大$Δx$和/或$Δt$上精确的灵活性。该策略可以应用于任意几何形状和任意边界条件下的任意时变偏微分方程的自回归求解。虽然这种策略是非常普遍的,具体的纠错算法需要量身定制的基本方程的不变量,以及解决方案的解决方案表示和时间步进计划的求解器。我们介绍的纠错算法有两个关键属性。首先,通过保持正确的不变量,它们保证了数值稳定性。其次,在封闭或周期系统中,它们这样做不会降低已经精确的求解器的精度。

英文摘要:

Machine learned partial differential equation (PDE) solvers trade the reliability of standard numerical methods for potential gains in accuracy and/or speed. The only way for a solver to guarantee that it outputs the exact solution is to use a convergent method in the limit that the grid spacing $Δx$ and timestep $Δt$ approach zero. Machine learned solvers, which learn to update the solution at large $Δx$ and/or $Δt$, can never guarantee perfect accuracy. Some amount of error is inevitable, so the question becomes: how do we constrain machine learned solvers to give us the sorts of errors that we are willing to tolerate? In this paper, we design more reliable machine learned PDE solvers by preserving discrete analogues of the continuous invariants of the underlying PDE. Examples of such invariants include conservation of mass, conservation of energy, the second law of thermodynamics, and/or non-negative density. Our key insight is simple: to preserve invariants, at each timestep apply an error-correcting algorithm to the update rule. Though this strategy is different from how standard solvers preserve invariants, it is necessary to retain the flexibility that allows machine learned solvers to be accurate at large $Δx$ and/or $Δt$. This strategy can be applied to any autoregressive solver for any time-dependent PDE in arbitrary geometries with arbitrary boundary conditions. Although this strategy is very general, the specific error-correcting algorithms need to be tailored to the invariants of the underlying equations as well as to the solution representation and time-stepping scheme of the solver. The error-correcting algorithms we introduce have two key properties. First, by preserving the right invariants they guarantee numerical stability. Second, in closed or periodic systems they do so without degrading the accuracy of an already-accurate solver.

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

↑