TL;DR LAMP is the first deep learning surrogate model that jointly learns to simulate physical systems and dynamically optimize their spatial resolution. By using a Graph Neural Network (GNN) paired with a reinforcement learning-based "actor-critic" policy, it focuses computational power on highly dynamic regions (like shock fronts) while coarsening stable areas, achieving significantly better accuracy-to-compute tradeoffs than fixed-grid models or classical adaptive methods.
The Challenge of Multi-Resolution Dynamics
Simulating physical systems—from weather patterns to fluid dynamics—is computationally expensive. A major bottleneck is that these systems are often "multi-resolution" in nature: most of the system changes slowly, while a tiny fraction (like a wave breaking or a flame front) is extremely dynamic.
Standard deep learning surrogate models typically use a uniform spatial grid. To capture the fast-moving parts, the entire grid must be fine-grained, which wastes massive amounts of compute on the "boring" parts of the simulation. While classical solvers use Adaptive Mesh Refinement (AMR) to fix this, these heuristics are often slow and don't integrate well with modern deep learning pipelines. The challenge is: can we learn an evolution model and an adaptive mesh policy simultaneously?
Introducing LAMP
The authors introduce LAMP (Learning controllable Adaptive simulation for Multi-resolution Physics). The architecture consists of two main components that work in tandem:
- Evolution Model ($f^{evo}$): A GNN that predicts the next state of the system based on the current mesh.
- Actor-Critic Policy ($f^{policy}$): A GNN-based reinforcement learning agent that decides which edges in the mesh to refine (split to add detail) or coarsen (merge to save compute).
The "Controllable" Secret Sauce: The model is trained with a reward function that balances prediction error against computational cost (defined by the number of nodes). A hyperparameter, $\beta$, acts as a "knob" that weights the importance of speed vs. accuracy. By sampling different $\beta$ values during training, a single trained LAMP model can be "controlled" at inference time to prioritize either extreme precision or high-speed execution.
Key Insights and Dynamic Focus
- Joint Optimization is Key: Unlike previous works that used supervised learning to mimic classical AMR, LAMP uses Reinforcement Learning to optimize for the actual objective: minimizing error while staying under a compute budget. This allows it to discover mesh strategies that classical heuristics might miss.
- The Pareto Frontier: LAMP doesn't just provide one "good" simulation; it improves the entire Pareto frontier. This means for any given amount of compute, LAMP provides lower error than baselines, and for any target error level, it runs faster.
- Dynamic Focus: Qualitative results show the model "learning" to follow the action. In 1D simulations, it dynamically clusters nodes around shock fronts, allocating compute exactly where it is needed most. In 2D, it adds resolution to high-curvature folds while leaving flat areas coarse.
Datasets and Results
The researchers evaluated LAMP on two distinct benchmarks:
- 1D Nonlinear PDEs: A family of equations (including Burgers' and others) that produce complex shock waves. This tested the model's ability to generalize to unseen equations within the same family. LAMP achieved an average 33.7% reduction in long-term prediction error compared to state-of-the-art models like MP-PDE and FNO. In a constrained "25-node" scenario, LAMP reduced error by 83.6% compared to a version of itself without remeshing, with only a modest increase in average node count.
- 2D Mesh-based Paper Folding: A challenging simulation of a square sheet of paper being folded by external forces, requiring the model to handle complex 2D topological changes. LAMP outperformed the combination of MeshGraphNets + classical AMR, proving that a fully learned adaptive pipeline is more effective than "bolting" a neural network onto a traditional mesh refiner.
Limitations and Future Work
While LAMP is a significant step forward, the authors note a few areas for growth:
- Action Space Complexity: The current action space involves sampling a specific number of edges to refine/coarsen. While efficient, scaling this to massive 3D simulations with millions of nodes remains a challenge.
- GNN Overhead: The computational cost of the GNN itself must be balanced against the savings from the reduced mesh size.
- Future Directions: The authors suggest extending LAMP to 3D fluid dynamics and exploring more sophisticated RL algorithms to handle even more complex mesh topologies.
Reference: Wu, T., Maruyama, T., Zhao, Q., Wetzstein, G., & Leskovec, J. (2023). Learning Controllable Adaptive Simulation for Multi-resolution Physics. Published as a conference paper at ICLR 2023. Project Website
Summary updated