TL;DR
Simulating complex Earth systems on coarse grids requires both tuning unknown physical parameters and learning neural network closures for unrepresented sub-grid physics. This paper introduces a differentiable programming framework that jointly infers physical parameters and trains a neural network sub-grid parameterization, followed by Stochastic Gradient Hamiltonian Monte Carlo (SG-HMC) to deliver principled uncertainty quantification across both domains.
What Problem Does This Paper Address?
Large-scale climate and weather models run on coarse spatial grids due to computational limits, meaning critical small-scale phenomena (e.g., turbulence, cloud microphysics) cannot be explicitly resolved. Instead, they are represented via parameterizations (or closures).
Traditional approaches rely on empirical formulas with uncertain physical parameters, which often struggle with non-linear dynamics. While deep learning offers flexible sub-grid closures, modern hybrid models face a dual challenge:
- Coupled Uncertainty: Real systems have both uncertain, low-dimensional physical parameters (like layer thickness or background velocity) and high-dimensional sub-grid parameterization parameters (neural network weights).
- High-Dimensional UQ: Standard Bayesian sampling methods (like standard MCMC or Ensemble Kalman Filters) scale poorly to neural network parameter spaces (millions of dimensions) and struggle with non-Gaussian, nonlinear dynamics.
Methods
The authors propose a two-stage hybrid Bayesian learning framework implemented within an automatic-differentiation PDE framework (PyQG JAX port):
[ Temporally Sparse Trajectories ]
│
▼
┌─────────────────────────────────────────┐
│ Stage 1: Online Deterministic Training │
│ • End-to-end backprop through PDE solver│
│ • Jointly optimize θ_phy and θ_NN │
│ • Freeze θ_phy at convergence, tune CNN │
└────────────────────┬────────────────────┘
│ Initial weights (θ*)
▼
┌─────────────────────────────────────────┐
│ Stage 2: Bayesian Inference via SG-HMC │
│ • Mini-batch log-likelihood gradients │
│ • Hierarchical priors on θ, data noise γ│
│ • Samples posterior: p(θ_phy, θ_NN | D) │
└─────────────────────────────────────────┘
- Differentiable Hybrid Solver: The model couples resolved dynamics $F(X; \theta_{\text{phy}})$ with a 6-layer convolutional neural network (CNN, $\sim$114k parameters) $G(X; \theta_{\text{NN}})$ predicting sub-grid tendencies.
- Online Deterministic Initialization: Using an end-to-end differentiable numerical solver, the parameters $\theta_{\text{phy}}$ and $\theta_{\text{NN}}$ are optimized using mini-batches of sparse temporal trajectory data with separate AdaBelief optimizers. Physical parameters converge early (~50 epochs) and are frozen while the CNN fine-tunes.
- Stochastic Gradient Hamiltonian Monte Carlo (SG-HMC): To avoid the prohibitive cost of full-dataset gradients, mini-batch SG-HMC is initialized at the deterministic solution $\theta^*$. This enables efficient sampling of the high-dimensional posterior $p(\theta, \gamma, \lambda \mid \mathcal{D})$ under hierarchical Laplace and Gamma priors.
Datasets
- Synthetic High-Resolution Simulation (Two-Layer Quasi-Geostrophic Model): High-resolution truth is generated on a $256 \times 256$ grid over a $1,000\,\text{km} \times 1,000\,\text{km}$ domain over a 10-year span ($\Delta t = 1\,\text{hour}$).
- Coarse-Graining: Filtered down to a $32 \times 32$ low-resolution grid via a sharp spectral cutoff filter.
- Dataset Splits: The first 5 years are discarded as spin-up. 60 trajectory simulations are used for training/inference, and 10 are reserved for testing. Training uses sparse trajectories of only 20 daily observations ($\Delta T = 24\,\Delta t$).
Key Insights and Ideas
- Overcoming the Equifinality & Scale Gap: Physical parameters ($\theta_{\text{phy}} \in \mathbb{R}^{d_1}$) and neural weights ($\theta_{\text{NN}} \in \mathbb{R}^{d_2}$) have dramatically different dimensions ($d_1 = 2$ vs. $d_2 = 113,766$). Decoupling their optimizer learning rates and convergence criteria during Stage 1 enables stable joint discovery.
- Warm-Starting SG-HMC: Sampling high-dimensional neural network posteriors usually suffers from long burn-in and bad local modes. Initializing SG-HMC with the deterministically trained $\theta^*$ bypasses lengthy transient phases.
- Preserving Energy vs. Over-Dissipation: Unparameterized coarse simulations suffer from numerical energy accumulation, while classical Smagorinsky parameterization over-dissipates kinetic energy. The learned hybrid model successfully maintains kinetic energy and long-term potential vorticity distributions.
Key Results
- Accurate Physical Parameter Recovery: Starting from poor initial guesses ($\delta = 0.01$, $U_1 = 0.001$), the deterministic stage recovered:
- Layer thickness ratio $\delta$: $0.25636$ vs. true $0.25$ ($2.54\%$ relative error).
- Velocity $U_1$: $0.02535$ vs. true $0.025$ ($1.43\%$ relative error).
- Extended Forecast Skill: Over a 1-year rollout ($8,640\,\Delta t$):
- Outperformed both Smagorinsky and no-parameterization baselines with the highest $R^2$ and lowest MSE out to $4,000$ hours.
- The posterior mean maintained high forecast accuracy with minimal spread over the first $2,500$ hours.
- Correctly retained total kinetic energy balance and captured the long-term empirical distribution of upper-layer vorticity over the final 100 days.
Limitations and Future Work
- Equifinality Issues: Jointly learning physics parameters and ML parameterizations can lead to non-unique solutions where the neural network compensates for incorrect physical constants.
- Data Assumptions: The study assumes spatially dense (though temporally sparse) observations without measurement noise in quasi-steady-state conditions. Future work aims to evaluate sparse spatial observations, noisy data, and simultaneous state inference.
- Gradient Precision: SG-HMC introduces noise in gradient estimation via mini-batching; authors note variance reduction methods like Control Variate Gradient HMC (CVG-HMC) may be needed for higher-precision tasks.
Summary updated