HypeR Adaptivity: Joint $hr$-Adaptive Meshing via Hypergraph Multi-Agent Deep Reinforcement Learning
Niccolò Grillo, James Rowbottom, Pietro Liò, Carola Bibiane Schönlieb, Stefania Fresca
TL;DR
<3-5 sentence high-level summary> HypeR addresses the inefficiencies of classical adaptive mesh refinement by proposing a unified, learning-based framework that jointly optimizes mesh topology (h) and vertex geometry (r) via deep reinforcement learning on a hypergraph representation. It introduces a dual-swarm MDP with a single, shared neural backbone that produces continuous vertex relocations and discrete refinement decisions, guaranteed to avoid mesh tangling through a diffusion-based Diffformer mechanism. Across four benchmark 2D PDEs, HypeR achieves 6–10x error reductions at comparable element counts and demonstrates strong generalization to unseen geometries and larger domains, while delivering substantial speedups over traditional refinement strategies. This work establishes joint hr-adaptivity learned policies as a powerful approach for automated, high-quality mesh generation in scientific computing contexts.
Abstract
Adaptive mesh refinement is central to the efficient solution of partial differential equations (PDEs) via the finite element method (FEM). Classical $r$-adaptivity optimizes vertex positions but requires solving expensive auxiliary PDEs such as the Monge-Ampère equation, while classical $h$-adaptivity modifies topology through element subdivision but suffers from expensive error indicator computation and is constrained by isotropic refinement patterns that impose accuracy ceilings. Combined $hr$-adaptive techniques naturally outperform single-modality approaches, yet inherit both computational bottlenecks and the restricted cost-accuracy trade-off. Emerging machine learning methods for adaptive mesh refinement seek to overcome these limitations, but existing approaches address $h$-adaptivity or $r$-adaptivity in isolation. We present HypeR, a deep reinforcement learning framework that jointly optimizes mesh relocation and refinement. HypeR casts the joint adaptation problem using tools from hypergraph neural networks and multi-agent reinforcement learning. Refinement is formulated as a heterogeneous multi-agent Markov decision process (MDP) where element agents decide discrete refinement actions, while relocation follows an anisotropic diffusion-based policy on vertex agents with provable prevention of mesh tangling. The reward function combines local and global error reduction to promote general accuracy. Across benchmark PDEs, HypeR reduces approximation error by up to 6--10$\times$ versus state-of-art $h$-adaptive baselines at comparable element counts, breaking through the uniform refinement accuracy ceiling that constrains subdivision-only methods. The framework produces meshes with improved shape metrics and alignment to solution anisotropy, demonstrating that jointly learned $hr$-adaptivity strategies can substantially enhance the capabilities of automated mesh generation.
