SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.00818 · 2023

Swarm Reinforcement Learning For Adaptive Mesh Refinement

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
niklasfreymuth/asmr canonical 3 of 3
FunctionStatusWhere it lives
calculate_reference_solutions Ran niklasfreymuth/asmr/asmr_evaluations/evaluate_inference_speed.py
code served (permissive licence) · get_code("219e294614c78360")
get_clean_base_params Ran niklasfreymuth/asmr/modules/swarm_environments/get_environments.py
code served (permissive licence) · get_code("b270de64d4cfaf77")
get_config_path Ran niklasfreymuth/asmr/asmr_evaluations/evaluation_util.py
code served (permissive licence) · get_code("16c84d3cf855a9df")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Adaptive Mesh Refinement (AMR) enhances the Finite Element Method, an important technique for simulating complex problems in engineering, by dynamically refining mesh regions, enabling a favorable trade-off between computational speed and simulation accuracy. Classical methods for AMR depend on heuristics or expensive error estimators, hindering their use for complex simulations. Recent learning-based AMR methods tackle these issues, but so far scale only to simple toy examples. We formulate AMR as a novel Adaptive Swarm Markov Decision Process in which a mesh is modeled as a system of simple collaborating agents that may split into multiple new agents. This framework allows for a spatial reward formulation that simplifies the credit assignment problem, which we combine with Message Passing Networks to propagate information between neighboring mesh elements. We experimentally validate our approach, Adaptive Swarm Mesh Refinement (ASMR), on challenging refinement tasks. Our approach learns reliable and efficient refinement strategies that can robustly generalize to different domains during inference. Additionally, it achieves a speedup of up to $2$ orders of magnitude compared to uniform refinements in more demanding simulations. We outperform learned baselines and heuristics, achieving a refinement quality that is on par with costly error-based oracle AMR strategies.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2304.00818")
get_code_for_paper("2304.00818")
have("2304.00818")

Connect an agent — have() is free.