TL;DR
This paper introduces Closure-RL, a novel framework that uses grid-based Reinforcement Learning (RL) with a Fully Convolutional Network (FCN) to automatically discover closure models for coarse-grained simulations of Partial Differential Equations (PDEs). This approach significantly improves the accuracy of these simulations, achieving results comparable to computationally expensive fine-grained simulations while offering substantial speedups.
What Problem Does This Paper Address?
Simulating complex physical phenomena like weather patterns, wildfire spread, or epidemic outbreaks often relies on Partial Differential Equations (PDEs). However, capturing all the intricate spatio-temporal scales involved in these PDEs requires immense computational resources, making full-scale simulations prohibitively expensive. To overcome this, researchers often resort to "coarse-grained simulations" (CGS). These simulations simplify the problem by using coarser grids and time steps, but this simplification leads to a loss of information about smaller scales. To compensate for this missing information, CGS typically employ heuristic "closure terms." The problem is that these closures are often domain-specific, require expert knowledge, and may not be universally applicable or accurate. This paper addresses the critical need for a systematic, automated, and generalizable method to discover these crucial closure terms for under-resolved PDEs.
Methods
The core of Closure-RL is a grid-based Reinforcement Learning (RL) framework. Instead of training individual agents for each grid point (which would be computationally prohibitive), they employ a single Fully Convolutional Network (FCN) to represent a central policy. This FCN acts as a shared policy for all "agents" (effectively, each grid point in the coarse simulation). This approach leverages locality as an inductive bias, meaning each agent primarily considers its immediate spatial neighborhood, mirroring how numerical discretizations of PDEs work.
The RL environment is set up such that the coarse-grained simulation (CGS) is the agent's environment. The FCN policy takes the current state of the CGS (including the solution and PDE parameters) as input and outputs an "action." This action is a forcing term that is added to the CGS equations. The goal is to train the policy to output forcing terms that correct the errors introduced by the coarse discretization, making the CGS solution converge towards the solution of a high-fidelity, fine-grained simulation (FGS).
The reward signal is designed to be local, measuring how much the agent's action reduces the difference between the CGS and FGS at each grid point. This local reward structure, inspired by image restoration tasks, allows for efficient training. The authors adapt the Proximal Policy Optimization (PPO) algorithm for this grid-based, multi-agent-like setting, using a shared FCN for both the policy and value networks.
Datasets
The paper uses synthetic data generated from solving PDEs. Specifically, for the advection equation, they use:
- MNIST dataset: For initial conditions of the concentration, scaled to values between 0 and 1.
- D_vortex^Train and D_vortex^Test: Custom-generated velocity fields based on combinations of Taylor-Greene vortices and translational fields. These distributions are used for training and testing, respectively, with D_vortex^Test introducing variations not seen during training.
- Fashion-MNIST dataset: Used for out-of-distribution testing of initial conditions.
For the Burgers' equation, they use:
- D_vortex: Similar to the advection case, but with modifications to ensure periodic boundary conditions are met and to use different wave numbers for the vortices.
Key Insights and Ideas
- RL for PDE Closures is Viable: The paper demonstrates that RL can be effectively used to automatically discover complex closure models for PDEs, moving beyond hand-crafted heuristics.
- FCN as a Shared Policy is Efficient: Using a single FCN for all grid points significantly reduces computational cost and training complexity compared to traditional multi-agent RL approaches. This FCN inherently captures spatial locality.
- Local Rewards Drive Global Accuracy: The local reward signal, focused on correcting errors at each grid point, is surprisingly effective at improving the overall accuracy of the coarse-grained simulation.
- Generalization to Unseen Conditions: The trained Closure-RL framework shows remarkable ability to generalize to initial conditions and velocity fields that were not encountered during training, indicating robust learning of underlying physics.
- Emulating Higher-Order Schemes: Closure-RL can effectively compensate for the errors of low-order numerical schemes, essentially emulating the behavior of higher-order, more accurate methods.
Key Results
- Advection Equation: Closure-RL reduced the relative Mean Absolute Error (MAE) of the coarse-grained simulation by over 30% compared to the baseline CGS, and even outperformed an "accurate coarse grid simulation" (ACGS) by 30-58%. This improvement was observed for both in-distribution and out-of-distribution test cases.
- Burgers' Equation: Closure-RL significantly improved the CGS, achieving error reductions of up to -80% in the initial stages of simulation. The method also demonstrated a substantial improvement in long-term accuracy, increasing the number of steps simulations could stay within a 10% relative error by two orders of magnitude.
- Speedup: While Closure-RL adds some computational overhead to the CGS, it remains significantly faster (by at least a factor of 5) than the fine-grained simulation (FGS), making it a practical approach for accelerating simulations.
- Qualitative Improvements: Visualizations show that Closure-RL qualitatively maintains the simulation closer to the FGS, preventing the divergence seen in the uncorrected CGS.
Limitations and Future Work
- Limitations:
- The current framework is designed for regular grids.
- The FGS simulation, used for generating training data and rewards, is still computationally expensive and not parallelized, representing a bottleneck.
- The current approach might not be sufficient for all types of PDEs, such as those with forcing terms, time-varying parameters, or integro-differential equations.
- Future Work:
- Extend the framework to irregular grids using Graph Convolutional Networks (GCNs).
- Adapt the approach for multi-grid solvers by defining separate rewards for each grid.
- Incorporate additional inductive biases or constraints into the action space.
- Explore the application to more complex PDE systems.
- Optimize the FGS simulation generation for parallelization.
Summary updated