TL;DR
GraphCast is a neural network that forecasts the global weather 10 days ahead, one 6-hour step at a time. It reads the current weather and the weather six hours earlier, passes information between points on a triangular mesh of the sphere with a message passing network, and predicts the next state. On held-out data from 2018 onward it was more accurate than the operational forecast of the European Centre for Medium-Range Weather Forecasts (ECMWF) on most of the variables and lead times it was compared on, and it makes a 10-day forecast in under a minute on one accelerator.
Builds on: Message Passing Neural Network, Mean Squared Error, Icosahedral Mesh · Leads to: Graph Neural Network applications in physical forecasting
Why it mattered
Weather forecasts for the coming days are produced by supercomputers that solve the equations of fluid flow on a grid. Those forecasts are among the most valuable scientific products in use, and the best of them come from a few national and European centres. GraphCast showed that a learned model, trained on decades of past weather, could match or beat that approach on the metrics forecasters use. The paper says that this result "marks a turning point" and that learned methods are now competitive with traditional forecasting.
The work also changed what counts as a serious weather model. Its code and trained weights were published on GitHub, so other groups could run the model and test it on their own data. The architecture belongs to the same family of graph networks that earlier learned simulators used for fluids and other physical systems, and the paper argues that the same kind of learned simulator can be applied to climate, energy and agriculture as well as weather.
The problem
To forecast the weather, one needs the state of the atmosphere everywhere at one time. Traditional numerical weather prediction (NWP) starts from that state, uses the physical equations of the atmosphere, which are partial differential equations, and steps them forward on a grid. The main costs are the computing power needed for the physics and the expertise needed to build and tune it.
A learned model has to solve a different problem. It must learn, from data, how the state changes from one step to the next, and it must do so for the whole planet at once. A simple network that treats each grid point on its own would ignore the way weather moves across space. A convolutional network on a latitude-longitude grid would face a distortion: the grid cells shrink towards the poles. GraphCast addresses both issues by using a graph whose nodes are spread evenly over the sphere and whose edges carry information between neighbours, including distant ones.
How it works
GraphCast takes two weather states, the one now and the one six hours earlier, and outputs the next state six hours later. Each state is a set of variables (temperature, wind, humidity, pressure and so on) on a grid of points, about 28 km apart at the equator. The pipeline has four stages, and its output is fed back in for the next step.
- Input. The current and previous states are normalised so that each variable has mean 0 and variance 1. Normalisation keeps variables measured in kelvin, metres and kilograms per kilogram on a comparable scale.
- Encoder. One graph neural network layer maps the variables on each grid point to a learned feature vector on the nodes of the mesh. The mesh is a set of nodes on the sphere, far fewer than the grid points, so the information from many grid points is gathered into each mesh node.
- Processor. Sixteen layers of message passing run on the mesh. In each layer, every mesh node sends a message to its neighbours, collects the messages it receives and updates its features. Because the mesh includes edges from coarser refinements, a message can travel across the globe in a few steps.
- Decoder. One more graph layer maps the mesh features back to the grid points. The decoder predicts a change, not the full next state, and adds it to the current state. This is a residual update, which lets the network learn small corrections.
- Repeat. The predicted state is fed back as input, and the model runs again. Forty of these 6-hour steps give a 10-day forecast.
Here is the scheme on a toy example with invented numbers, not model output. Suppose one grid point holds a temperature of 280 K now and 278 K six hours earlier.
- The encoder turns the two values into features at the nearby mesh nodes. Check: the features depend on both values, not just the current one.
- The processor passes messages across the mesh, so the feature at this location now knows about the warm air to the west.
- The decoder predicts a change of K. Check: this is a small correction, since the model only learns the difference.
- The new state is K. This value becomes input for the next step.
flowchart LR A["Two states on the grid (now, 6 h earlier)"] --> B["Encoder: grid to mesh"] B --> C["Processor: 16 message-passing layers on the mesh"] C --> D["Decoder: mesh to grid, residual update"] D --> E["Next state, 6 h later"] E -->|feed back| A
The math
GraphCast is a function from the current state and the previous state to the next state. Writing for the true state at step , the one-step model is
where is the predicted next state. The notation marks a prediction, as opposed to the true state . Inside the network, the decoder's output is a residual that is added to to give the prediction.
The rollout in symbols
A forecast of steps is produced by feeding each prediction back in. The first two predictions are
and so on up to . For a 10-day forecast at 6-hour steps, , because .
The training loss in symbols
The model is trained to make its rollout close to the ERA5 reanalysis, which serves as ground truth. The loss is the mean squared error (Mean Squared Error) between the predicted and true states, averaged over the steps of the rollout and weighted by vertical level:
where is the number of autoregressive steps, indexes the variables and grid points, and is the weight of each vertical level. The paper raises during training from 1 step (6 hours) to 12 steps (3 days), so the model first learns short forecasts and then learns to roll out longer ones.
The mesh in symbols
The mesh starts from an icosahedron with 12 nodes, 20 faces and 30 edges. Each refinement divides every triangle into four, and the new corners are pushed onto the sphere. After six refinements the finest mesh has nodes, the count the paper reports for its multi-mesh. The processor uses the union of the edges from all refinement levels, so nearby nodes are linked by short edges and distant nodes by long ones.
Results
The paper compares GraphCast with HRES, the high-resolution deterministic forecast of ECMWF, which was the operational reference at the time. Skill is measured by the root mean square error (RMSE), which is the square root of the mean squared error, and by the anomaly correlation coefficient (ACC). Forecasts are compared only at times when both models have the same information, so the paper uses initial times at 06z and 18z, and it checks lead times every 12 hours.
| Measure | Result reported in the paper |
|---|---|
| Model size | 36.7 million parameters |
| Training | about four weeks on 32 Cloud TPU v4 devices, using 1979 to 2017 data |
| Speed | a 10-day forecast in under 60 seconds on one Cloud TPU v4 |
| Targets better than HRES (1380 variable, level and lead-time targets) | 90.3 percent |
| Targets significantly better than HRES | 89.9 percent |
| Targets better than HRES, leaving out the 50 hPa level | 96.9 percent of 1280 |
| Targets better than HRES, leaving out the 50 and 100 hPa levels | 99.7 percent of 1180 |
| Targets better than Pangu-Weather (252 targets from its paper) | 99.2 percent |
| Improvement on the z500 headline field | about 7 to 14 percent in skill score |
Three points qualify these numbers. First, HRES did better in parts of the stratosphere, which has the lowest loss weight in training. Second, at short lead times of 12 hours to a day, HRES was better than GraphCast on some variables at scales of about 200 to 2000 km. Third, GraphCast was run at 37 vertical levels and 6-hour steps, while HRES runs at 137 levels with steps as short as 1 hour, so the comparison is between a smaller model and a larger one.
For severe events, which GraphCast was not trained to predict, the paper reports a lower median track error for tropical cyclones than HRES, significantly better between lead times of 18 hours and 4.75 days. For atmospheric rivers the paper reports an improvement in water vapour transport prediction of 25 percent at short lead times, falling to 10 percent at longer ones. For extreme heat, GraphCast's precision-recall curves lie above HRES at 5- and 10-day lead times, though HRES is better at 12 hours.
The authors also note limits. GraphCast gives deterministic forecasts, and its MSE training makes its predictions blurrier at long lead times, which may limit its value for some applications. Ensemble forecasting, which runs many forecasts to show spread, remains important for 10-day forecasts and is not addressed here. The paper also says that data-driven forecasting depends on large quantities of high-quality data assimilated by traditional NWP, so it should be seen as a complement to traditional forecasting rather than a replacement.
Reading guide
The paper is short in the main text and long in its supplements. Read it in this order.
- GraphCast (method). Needs Message Passing Neural Network for the processor, Graph Neural Network for the encoder and decoder, and Icosahedral Mesh for the mesh. Start here after the lessons on the three prerequisites.
- Verification methods. Needs Mean Squared Error for RMSE and the idea of a forecast being compared with a reference. The ACC needs only the idea of a correlation between two fields.
- Forecast verification results. Read the headline figure (Figure 2) and the scorecard (Figure 2d). The percentages are about counting targets, not about the size of the gap.
- Severe event forecasting. Needs nothing new beyond the verification ideas, but read the tracking method in the supplements if you want to see how the cyclone tracks were built.
- Effect of training data recency. Shows that retraining on newer data improves skill, an advantage a learned model has over a fixed physical model. The rollout itself is the autoregressive loop from the How it works section.
- Conclusions and limitations. Read the paragraph on uncertainty closely; it is the clearest statement of what the method does not yet do.
Check yourself
QuestionRecall: what does GraphCast take as input, and what does it output?Show answer
It takes the weather state now and the state six hours earlier, both on the latitude-longitude grid. It outputs the predicted state six hours later, computed as the current state plus a learned residual.
QuestionComputation: how many 6-hour steps make a 10-day forecast, and how many mesh nodes does the finest mesh have?Show answer
A 10-day forecast has hours, so steps. The finest mesh comes from six refinements of an icosahedron, so it has nodes.
QuestionWhy: why does the processor run message passing on a mesh rather than on the latitude-longitude grid?Show answer
The latitude-longitude grid has cells that shrink towards the poles and make the neighbourhoods unequal, so a network run on it would weight the poles very differently from the tropics. The icosahedral mesh has nodes spread almost evenly over the sphere, and its multi-level edges let a message reach across the globe in a few steps, which the processor needs for long-range effects.
QuestionApplied: a forecaster sees that GraphCast beats HRES on 90 percent of targets but loses on the stratosphere. Should they use GraphCast for stratospheric forecasts?Show answer
Not without checking. The paper reports that HRES is better in the stratosphere, where the training loss weight is lowest, so the aggregate result hides a weakness in that region. A careful forecaster would verify GraphCast on the stratospheric variables they need, compare it with HRES there, and use the result for each region and level separately.