DynAMO: Multi-agent reinforcement learning for dynamic anticipatory mesh optimization with applications to hyperbolic conservation laws
Tarik Dzanic, Ketan Mittal, Dohyun Kim, Jiachen Yang, Socratis Petrides, Brendan Keith, Robert Anderson
TL;DR
DynAMO addresses the inefficiency of traditional adaptive mesh refinement for time-dependent hyperbolic PDEs by learning anticipatory refinement policies with multi-agent reinforcement learning. It formulates dynamic mesh optimization as a Dec-POMDP where element-level agents observe local, non-dimensional features and select refinement actions, trained via Independent PPO with a shared network. The approach demonstrates superior efficiency and lower error compared with threshold-based AMR across linear advection and nonlinear Euler equations, for both h- and p-refinement, and shows strong generalization to unseen problems, mesh resolutions, and longer remesh intervals. This RL-guided anticipatory refinement reduces the need for frequent remeshing and enables longer intervals between adaptations, offering practical performance benefits for large-scale, time-dependent simulations in engineering and science.
Abstract
We introduce DynAMO, a reinforcement learning paradigm for Dynamic Anticipatory Mesh Optimization. Adaptive mesh refinement is an effective tool for optimizing computational cost and solution accuracy in numerical methods for partial differential equations. However, traditional adaptive mesh refinement approaches for time-dependent problems typically rely only on instantaneous error indicators to guide adaptivity. As a result, standard strategies often require frequent remeshing to maintain accuracy. In the DynAMO approach, multi-agent reinforcement learning is used to discover new local refinement policies that can anticipate and respond to future solution states by producing meshes that deliver more accurate solutions for longer time intervals. By applying DynAMO to discontinuous Galerkin methods for the linear advection and compressible Euler equations in two dimensions, we demonstrate that this new mesh refinement paradigm can outperform conventional threshold-based strategies while also generalizing to different mesh sizes, remeshing and simulation times, and initial conditions.
