Abstract
Adaptive Mesh Refinement (AMR) is a critical technique in computational science for balancing simulation accuracy with computational cost. Traditional AMR methods rely on reactive, local error heuristics that cannot account for future states of the system. This paper reformulates AMR as a cooperative multi-agent reinforcement learning (MARL) problem, where each mesh element acts as an independent agent. We introduce the Value Decomposition Graph Network (VDGN), which enables "anticipatory refinement"—the ability to preemptively increase resolution in regions where complex physical features are about to arrive. Our results demonstrate that VDGN significantly outperforms traditional heuristic-based methods, achieving up to 1.7x better efficiency and exhibiting robust zero-shot generalization across diverse mesh geometries.
Introduction
In the Finite Element Method (FEM), simulating physical phenomena like fluid dynamics or heat transfer requires discretizing space into a mesh. To optimize resources, researchers use Adaptive Mesh Refinement (AMR) to increase mesh density in "interesting" areas (e.g., shock waves) while maintaining a coarse mesh in flat regions.
However, standard AMR methods are fundamentally limited by their "greedy" nature; they rely on local error estimators to decide where to refine at the current timestep. For time-dependent problems, an ideal strategy would be anticipatory, refining a region just before a feature enters it. Designing such strategies is historically difficult because meshes are unstructured and the "agents" (mesh elements) are volatile—they are constantly created or destroyed as the mesh adapts, making long-term credit assignment nearly impossible for standard reinforcement learning algorithms.
Methodology: Value Decomposition Graph Networks
To address these challenges, we treat AMR as a fully-cooperative Markov game. The core of our approach is the Value Decomposition Graph Network (VDGN), which integrates two key architectural innovations:
- Value Decomposition (VDN): To solve the "posthumous credit assignment" problem, we utilize a centralized training approach. A global reward, based on the trade-off between total simulation error and computational cost, is decomposed into individual agent utilities. This allows the system to learn the long-term value of an action even if the specific agent that performed it is deleted before the final reward is realized.
- Graph Attention Networks (GAT): Because meshes are inherently graphs, we employ GNNs to handle varying geometries. Graph attention layers allow elements to "observe" their neighbors. By processing the velocity and features of incoming physical phenomena from adjacent cells, agents learn to refine preemptively.
Furthermore, we incorporate a multi-objective extension using Envelope Q-learning. This allows a single trained policy to navigate the Pareto front of the error-cost landscape, adapting to different user preferences for accuracy versus speed without retraining.
Experimental Setup
We evaluated the VDGN approach using the linear advection equation, a standard benchmark for wave propagation. The model was trained on 2D isotropic Gaussian waves on square meshes. To test the robustness of the learned policies, we conducted extensive out-of-distribution testing on:
- Anisotropic (stretched) Gaussian waves and ring-shaped features.
- Star-shaped meshes and triangular mesh elements.
- Simulations lasting 2500 steps (5x longer than the training horizon).
The environment was implemented using the open-source MFEM and PyMFEM finite element libraries.
Results and Discussion
Our experiments confirm that anticipatory refinement is not only possible but highly effective. MARL agents successfully learned to refine the entire path a wave was projected to take, a feat impossible for reactive threshold methods.
Key Findings:
- Efficiency Gains: VDGN policies showed an efficiency ratio up to 1.7x better than the best heuristic baselines. For a fixed computational budget, VDGN maintained significantly lower global error over time.
- Zero-Shot Generalization: Because the VDGN is defined by local computations with shared parameters, a policy trained on a simple 16x16 mesh can be deployed directly onto much larger, complex meshes or different element types (e.g., triangles) without performance degradation.
- Symmetry and Invariance: The VDGN policy is mathematically equivariant to rotations and translations, ensuring consistent physical handling regardless of the wave's direction.
Conclusion
By framing AMR as a multi-agent problem, we have unlocked a new class of anticipatory refinement strategies that surpass traditional heuristics. While this study focused on linear advection in 2D, the success of VDGN suggests a promising path forward for more complex, non-linear PDEs like the Navier-Stokes equations. Future work will explore extending this framework to 3D meshes and investigating meta-learning techniques to reduce the substantial training overhead associated with MARL.
Summary updated