Skip to main content
QUICK REVIEW

[Paper Review] Reinforcement Learning for Adaptive Mesh Refinement

Jiachen Yang, Tarik Dzanic|arXiv (Cornell University)|Mar 1, 2021
Model Reduction and Neural NetworksPhysics and Astronomy44 references7 citations
TL;DR

This paper formulates adaptive mesh refinement (AMR) as a Markov decision process and uses deep reinforcement learning (RL) to train mesh refinement policies that optimize long-term accuracy under computational budgets. The approach outperforms traditional Zienkiewicz-Zhu error estimators, generalizes across mesh sizes and refinement budgets, and works without ground truth solutions—demonstrating that RL can learn anticipatory, non-greedy refinement strategies superior to instantaneous error-based heuristics.

ABSTRACT

Large-scale finite element simulations of complex physical systems governed by partial differential equations (PDE) crucially depend on adaptive mesh refinement (AMR) to allocate computational budget to regions where higher resolution is required. Existing scalable AMR methods make heuristic refinement decisions based on instantaneous error estimation and thus do not aim for long-term optimality over an entire simulation. We propose a novel formulation of AMR as a Markov decision process and apply deep reinforcement learning (RL) to train refinement policies directly from simulation. AMR poses a new problem for RL as both the state dimension and available action set changes at every step, which we solve by proposing new policy architectures with differing generality and inductive bias. The model sizes of these policy architectures are independent of the mesh size and hence can be deployed on larger simulations than those used at train time. We demonstrate in comprehensive experiments on static function estimation and time-dependent equations that RL policies can be trained on problems without using ground truth solutions, are competitive with a widely-used error estimator, and generalize to larger, more complex, and unseen test problems.

Motivation & Objective

  • To address the limitation of existing AMR methods that rely on heuristic, greedy refinement decisions based on instantaneous error estimation, which may not yield long-term optimality.
  • To reformulate AMR as a sequential decision-making problem using a Markov decision process (MDP), enabling optimization of cumulative accuracy over the entire simulation.
  • To design scalable, variable-size policy architectures for RL that are independent of mesh size, allowing deployment on larger simulations than used in training.
  • To train RL policies on small, representative problems with known solutions and transfer them to larger, unseen problems—even without ground truth solutions—using a novel reward formulation.
  • To evaluate whether RL can learn superior, non-greedy refinement strategies that anticipate future solution features, such as propagating fronts or discontinuities.

Proposed method

  • Formalize AMR as a Markov decision process (MDP) with state and action spaces that dynamically change with mesh refinement, where the state is the current mesh and solution, and actions are element refinement choices.
  • Propose three novel policy architectures—Graphnet, IPN, and GNN-based—designed to handle variable-sized state and action spaces by leveraging mesh topology and local feature interactions.
  • Design a reward function based on solution error relative to a reference solution for training, and extend it to problems without ground truth by using relative error improvement and simulation-based evaluation.
  • Train RL policies on small, static test problems (e.g., $8\times8$ meshes) with known analytic solutions, then deploy them on larger, unseen meshes and time-dependent problems.
  • Use curriculum learning and transfer learning strategies to enable generalization across refinement budgets and mesh resolutions, including $64\times64$ and $200\times200$ meshes.
  • Evaluate performance against baselines including the widely used Zienkiewicz-Zhu (ZZ) error estimator and an oracle using true error, using metrics like $L^2$ and $L^\infty$ error.

Experimental results

Research questions

  • RQ1Can reinforcement learning learn adaptive mesh refinement policies that outperform traditional, heuristic-based error estimators like Zienkiewicz-Zhu in terms of final solution accuracy?
  • RQ2Can RL policies trained on small, low-budget simulations generalize to larger meshes and higher refinement budgets without retraining?
  • RQ3Can RL policies transfer effectively from static problems to time-dependent problems such as advection, even when trained without access to ground truth solutions?
  • RQ4Does the RL policy learn anticipatory refinement behavior that avoids suboptimal greedy decisions based on instantaneous error?
  • RQ5Can scalable, mesh-size-independent policy architectures be designed to handle the dynamic state and action space of AMR in practical simulations?

Key findings

  • RL policies trained with a refinement budget of $ B=10 $ on $ 8\times8 $ meshes outperformed the Zienkiewicz-Zhu (ZZ) estimator on $ 16\times16 $ and $ 64\times64 $ meshes, demonstrating strong generalization across mesh sizes.
  • On time-dependent advection problems, an RL policy (Graphnet) trained with $ B=20 $ significantly outperformed both ZZ and the true error baseline when tested with $ B=50 $, especially on circular features.
  • An IPN policy trained with $ B=10 $ generalized to $ B=100 $ and made qualitatively correct refinement decisions on propagating fronts, even when the budget was increased fivefold.
  • On $ 200\times200 $ meshes with preserved solution-to-mesh length scale ratios, the IPN policy outperformed the true error baseline on circular features, indicating robustness to scale and complexity.
  • The RL policy trained without ground truth solutions still achieved performance competitive with the true error oracle, validating the effectiveness of the proposed reward formulation in real-world scenarios.
  • The IPN and Graphnet architectures showed complementary strengths: IPN excelled on stationary or slowly propagating features (e.g., Burgers equation), while Graphnet performed better on smooth, moving features (e.g., advection of bumps).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.