User Guide: Pulsar™ Weather Station (Columbia Weather Systems)
Coupling Neural Networks to GCMs
1. Noah Brenowitz
July 30, 2019
Princeton AOS Workshop, Princeton, NJ
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
Coupling Neural Networks
to GCMs
1
2. Climate Modeling at Vulcan Inc.
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
2
Christopher Bretherton
University of Washington
Oliver Fuhrer, MeteoSwiss
More people to
come….
Research will be open source and openly published
Collaborating with the FV3 Team at GFDL
3. Coarse-resolution dynamics
Apparent heating (K/day)
Apparent moistening
(g/kg/day)
s = T +
g
cp
z q =
Mass water vapor
Mass dry air
@s
@t
+ v · rs = Q1
@q
@t
+ v · rq = Q2
@u
@t
+ v · ru + f ⇥ u
1
⇢
rp = Q3
SW+ LW radiation, latent heating, etc
https://trello.com/c/wV03fVXiz
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
4. One climate model grid box.
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
4Photo Credit: Becky Hornbrook, published on WCRP webpage
6. Climate models have biases in mean state
CMIP5
(models)
GPCP
(observations)
Hwang and Frierson (2013)
7. Machine learning builds black boxes
Many 1000s of parameters
Need a lot of data
Designed to be trained not interpreted
Examples: Decision trees, neural networks, support vector
machines
Easy to tune/train Easy to interpret
Many parameters Few parameters
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
8. Neural networks are a popular machine learning model
x1 = (A1x0 + b1)
x2 = (A2x1 + b2)
...
y = out(Anxn 1 + bn)
Input #1
Input #2
Input #3
Input #4
Output #1
Output #2
Output #3
Output #4
Hidden
layer
Input
layer
Activation
layer
Output
layer
Activation function
14. Training Approach 1
1. Use finite differences to compute residual tendencies
2. Train neural network :
Q2 ⇡
¯qv(t + 3 h) ¯qv(t)
3 h
gLS(t), gLS(t) = ¯v · r¯qv
q, s, SHF, LHF, TOA Q1, Q2
Neural
Network
(1 layer of 256 nodes ≅ 70,000 parameters)
15. Neural networks can diagnose Q1 and Q2
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
15
Neural Network
~ 100,000 parameters
Millions of samples
Heating (K/day)
(finite diff.)
!" ≈ .50
Similar to Krasnopolsky et. al. (2013)
16. But its coupled!
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
1 6
Neural
Network
Dry
Dynamics
17. Test with single column model
1 7
Neural
Network
Single
column
model
18. Single Column Dynamics
x = [qv, s]
y = [SHF,LHF, TOASW,#]
dx
dt
= f(x, y(t)) + gLS(t)
Prognostic variables
Auxiliary variables
20. Is fitting Q1 and Q2 the right approach?
Assumes that model dynamics are continuous in
time
• But they are not (Donahue and Caldwell, 2018)
Assumes moist physics tendencies are available
and accurate
• Not true for DYAMOND outputs
• Not true for observations
Does not ensure good predictions over many time
steps
21. Fitting the approximate Q1 and Q2 is
equivalent to minimizing one-step error
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0
50
100
150
200
Error
Truth
Prediction
Hours
22. …but that does not ensure longer term
performance
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0
50
100
150
200
Error
Truth
Prediction
Hours
23. Stable and accurate single column model simulations
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
23
Community Atmosphere
Model Version 5 (CAM5)
Single Column Mode
(default physics, no
chemistry)
Humidity Anomaly
(from true zonal mean)
(g/kg)
days Brenowitz and Bretherton (2018)
24. Will it work in a GCM?
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
2 4
Neural
Network
Dry Dynamical
Core
Brenowitz and Bretherton (2019)
25. Coupled simulations with this model blow-up!
25
• 160 km resolution
• System for Atmos. Modeling
(SAM)
• Fortran calling python
0 5 10 15 20
x (1000 km )
0.0
2.5
5.0
7.5
10.0
y(1000km)
0
15
30
45
60
50 75 100125
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
26. The neural network finds spurious correlations!
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
26
Humidity at 200 mb and precipitation
27. Synchronization is hard for machine learning
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
27
Pendulums Synchronize People clapping
Distinct sub-systems (clappers, pendulums) are perfectly correlated
Timme, Max Planck Institute for Dynamics and Self-organization
Domain
Knowledge
Domain knowledge
28. Ignoring upper atmospheric humidity stabilizes coupled
simulation
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
28
Precipitable water after 5 days
Brenowitz and Bretherton, 2019
42. Eigenmodes of this Linear System
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
42
With upper atmospheric input (unstable in GCM) Without upper atmospheric input (stable in GCM)
Phase speed (m/s) Phase speed (m/s)
Growthrate(1/day)
Wavenumber
(1/km)
Wavenumber
(1/km)
43. A scary eigenmode (w/ unstable NN)
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
43
45. Conclusions and Future Directions
• Coupling with GCM makes ML parameterization hard
• Synchronization due to time-scale separation pollutes our training data
• Ignoring synchronized inputs stabilizes spatially extended simulations
• Accurate for ~2 days for precipitation, ~5 days for humidity and temperature
• Longer term drifts in the climate
• The NN is physically plausible:
• Increase humidity controls the strength of the predicted precipitation
• Increasing tropospheric stability controls the height of the predictions
• Linearized Response Functions can be coupled to waves
• Plot wave-speed/growth rate curves and wave structures.
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
45
46. References
Brenowitz, N. D., & Bretherton, C. S. Spatially Extended Tests of a Neural Network
Parametrization Trained by Coarse-graining. JAMES (2019).
Brenowitz, N. D. & Bretherton, C. S. Prognostic Validation of a Neural Network Unified
Physics Parameterization. Geophys. Res. Lett. 17, 2493 (2018).
S. Rasp, M. S. Pritchard, P. Gentine, Deep learning to represent subgrid processes in
climate models. Proc. Natl. Acad. Sci. U. S. A. 115, 9684–9689 (2018).
NOAH D. BRENOWITZ - NOAHB@VULCAN.COM
46