Source-linked AI summary

FourCastNet: Accelerating Global High-Resolution Weather Forecasting using Adaptive Fourier Neural Operators

Thorsten Kurth, Shashank Subramanian, Peter Harrington, Jaideep Pathak, Morteza Mardani, David Hall, Andrea Miele, Karthik Kashinath, Animashree Anandkumar

arXiv:2208.05419v1physics.ao-phcs.AIcs.CVcs.LGcs.PF

TL;DR

High-resolution weather forecasting is limited by the computational cost of numerical prediction, especially for ensembles and finer resolutions. FourCastNet uses a data-driven AFNO-based Earth-system emulator to generate global forecasts, reporting 80,000-times-faster ensemble inference and higher resolution than prior deep-learning surrogates.

  • Problem

    High-resolution numerical weather prediction is computationally expensive, while ensembles and finer resolutions require substantially greater resources.

    Source: §II · p. 2
  • Method

    FourCastNet uses an AFNO-based transformer that tokenizes global weather fields, mixes spatial and channel information, and reconstructs the next forecast frame.

    Source: A. Model Innovations · p. 4
  • Results

    80,000 times faster than IFS, FourCastNet generates a 100-member ensemble forecast in 12.41 node-seconds instead of 984,000 node-seconds.

    Source: 2) Data-driven surrogates · p. 3
  • Takeaways & Limitations

    FourCastNet supports higher-resolution forecasting and large ensembles that can resolve extreme events such as tropical cyclones and atmospheric rivers.

    Source: 2) Data-driven surrogates · p. 3

Abstract

from arXiv · show

Extreme weather amplified by climate change is causing increasingly devastating impacts across the globe. The current use of physics-based numerical weather prediction (NWP) limits accuracy due to high computational cost and strict time-to-solution limits. We report that a data-driven deep learning Earth system emulator, FourCastNet, can predict global weather and generate medium-range forecasts five orders-of-magnitude faster than NWP while approaching state-of-the-art accuracy. FourCast-Net is optimized and scales efficiently on three supercomputing systems: Selene, Perlmutter, and JUWELS Booster up to 3,808 NVIDIA A100 GPUs, attaining 140.8 petaFLOPS in mixed precision (11.9%of peak at that scale). The time-to-solution for training FourCastNet measured on JUWELS Booster on 3,072GPUs is 67.4minutes, resulting in an 80,000times faster time-to-solution relative to state-of-the-art NWP, in inference. FourCastNet produces accurate instantaneous weather predictions for a week in advance, enables enormous ensembles that better capture weather extremes, and supports higher global forecast resolutions.

I. HIGHLIGHTS

FourCastNet targets the computational and scalability barriers that limit high-resolution weather and climate modeling, especially for ensembles, scenarios, and interactive analysis. It reports substantially faster global weather emulation while scaling to thousands of GPUs and higher resolution.

  • 67.4 minutes trains FourCastNet on 3,072 GPUs, while scalability extends to 3,808 GPUs at 8X higher resolution than state-of-the-art deep learning models.Source: §I · p. 1
  • 80,000X reduces the 24-hour 100-member ensemble forecast time from 984,000 to 12.4 node-seconds versus state-of-the-art numerical simulations.Source: §I · p. 1
  • Climate change amplifies extreme weather frequency and intensity, increasing stress on natural and human ecosystems.Source: §II · p. 1
  • High-resolution Earth-system simulation is constrained by coupled nonlinear physics, enormous dimensionality, and computational costs that grow sharply with resolution.Source: §II · pp. 1–2
  • Large ensembles are needed to characterize uncertainty and confidently predict rare events at the distribution tails.Source: §II · p. 2
  • Weather and climate workflows require substantial throughput for repeated forecasts, scenarios, experiments, and multidecadal projections on thousands of nodes.Source: §II · p. 2

III. STATE OF THE ART

The current weather and climate modeling landscape is shaped by two approaches: numerical prediction and deep learning.

  • Weather and climate modeling currently centers on numerical prediction and deep learning.Source: §III · p. 2

A. Numerical Prediction

Numerical prediction has advanced through high-performance computing, but kilometer-scale global simulations remain costly and difficult to scale. Deep learning and neural operators provide alternative computational approaches for modeling complex physical systems.

A. Numerical Prediction

  • HPC advances have enabled global weather and climate simulations at kilometer scale, with simulation performance doubling every two years.Source: A. Numerical Prediction · p. 2
  • 0.3 SYPD was achieved for hydrostatic IFS simulations on close to 4,000 Summit nodes, while non-hydrostatic simulations reached 0.085 SYPD on close to 5,000 Piz Daint nodes.Source: A. Numerical Prediction · p. 3
  • Kilometer-scale ICON global simulations require approximately 1,000 nodes at minimum because of memory requirements, with scalability also limited by load imbalances.Source: A. Numerical Prediction · p. 3
  • Single numerical weather and climate runs approach 1 SYPD on thousands of leadership-class nodes, while large ensembles and scenarios multiply energy requirements.Source: A. Numerical Prediction · p. 3
  • Neural operators learn mappings between infinite-dimensional spaces, and Fourier Neural Operators efficiently implement global convolution using FFTs for nonlinear PDEs.Source: 1) Operator learning and transformers · p. 3

1) Operator learning and transformers:

High-resolution weather data makes standard vision-transformer attention computationally prohibitive, motivating AFNO-based architectures. FourCastNet combines this efficient approach with strong accuracy and substantially faster ensemble inference.

1) Operator learning and transformers:

  • At kilometer-scale weather resolution, vision-transformer self-attention becomes prohibitive because computation and memory scale quadratically with image resolution.Source: 1) Operator learning and transformers · p. 3
  • Sparse, low-rank, and kernel attention approximations address transformer inefficiency but fall short at the desired kilometer-scale weather resolution.Source: 1) Operator learning and transformers · p. 3
  • AFNO handles continuous inputs and high resolutions efficiently, and FourCastNet uses it to achieve unprecedented accuracy and resolution.Source: 1) Operator learning and transformers · p. 3
  • FourCastNet provides 8X greater resolution than the leading deep-learning surrogate, 25 km versus 200 km, while resolving tropical cyclones and atmospheric rivers.Source: 2) Data-driven surrogates · p. 3
  • 80,000 times faster than IFS, FourCastNet generates a 100-member ensemble forecast in 12.41 node-seconds instead of 984,000 node-seconds.Source: 2) Data-driven surrogates · p. 3
  • Figure 1 compares ACC and RMSE for Z500 across FourCastNet, IFS, and a baseline DLWP model, reporting FourCastNet's superior DLWP performance at 8X higher resolution.Source: Figure 1 · p. 4

IV. INNOVATIONS

The AFNO transformer converts high-resolution weather fields into token embeddings, applies Fourier-domain spatial mixing and channel mixing, then reconstructs the forecast field. FourCastNet is trained for autoregressive multi-step prediction using its own intermediate output.

AFNO transformer

  • FourCastNet divides each 20×720×1440 input field into 180×360 patches and embeds the resulting tokens into high-dimensional vectors.The patch size is p = 4, and an example embedding has 1,024 numerical entries.Source: A. Model Innovations · p. 4, B. Training and Inference · p. 4
  • The AFNO spatial mixer applies an FFT, block-diagonal Fourier-space channel mixing, and an inverse FFT.The block-diagonal MLP processes each token’s 1,024 channels, while the inverse transform returns the representation to the spatial domain.Source: A. Model Innovations · p. 4
  • The final linear decoder reconstructs pixels for the forecast frame X(t+∆t) from the last transformer-layer embedding.Each transformer layer performs both token mixing and channel mixing; the channel mixer is a single-layer MLP.Source: A. Model Innovations · p. 4

Parallel forecast architecture

  • The architecture produces a 6-hour forecast with the same 20×720×1440 dimensions as its input.Model parallelism splits channels across GPUs; FFT spatial mixing operates on disjoint blocks, while channel mixing requires communication.Source: Figure 2 · p. 4

Autoregressive training

  • For two-step training, the model predicts X(t+1), feeds that prediction back as input, and minimizes the summed losses against both ground-truth outputs.This procedure starts from a previously pre-trained model.Source: B. Training and Inference · p. 5

C. Implementation Details

FourCastNet’s implementation combines PyTorch-based spectral operations, feature and data parallelism, optimized data movement, and GPU execution techniques designed to reduce communication and launch overhead.

Framework

  • FourCastNet is implemented in PyTorch to combine rapid prototyping with low-level performance optimization.PyTorch is described as a domain-specific language for deep learning in the supplied passage.Source: C. Implementation Details · p. 5

Parallelism

  • Feature parallelism splits channels across GPUs, while data parallelism splits the global batch across independent model instances.Feature-mixing operations require communication, whereas FFTs that do not mix feature maps are embarrassingly parallel.Source: C. Implementation Details · p. 5

Spectral convolution

  • The spectral-convolution layer uses real-to-complex and complex-to-real FFTs, with batched transforms over batch and feature dimensions.Its spectral-space MLP is implemented with torch.einsum.Source: C. Implementation Details · p. 5
  • Complex tensor layouts are chosen so PyTorch can generate a single batched complex GEMM through cuBLAS.The torch.einsum kernel cost can vary by up to 400% depending on weight and input data layout.Source: C. Implementation Details · p. 5

MLP

  • MLP matrix multiplications use pointwise convolutions, with row-wise parallelism in the first multiplication and column-wise parallelism in the second.The hidden dimension has 4,096 units compared with a 1,024-unit embedding size.Source: C. Implementation Details · p. 5

I/O pipeline

  • The I/O pipeline loads yearly HDF5 arrays, normalizes variables by mean and variance, adds Gaussian noise, and uses NVIDIA DALI with double buffering.The supplied passage ends while describing pinned host memory.Source: C. Implementation Details · p. 5

Execution optimization

  • CUDA graphs capture the full forward and backward training step to reduce CPU interference with kernel launches.The optimizer accounts for 5–8% of overall training time, while I/O runs concurrently with training.Source: C. Implementation Details · pp. 5–6
  • torch.jit.script fuses lightweight operations in composite layers and metrics to reduce launch latency and improve memory locality.This is especially used for validation code not captured in a CUDA graph.Source: C. Implementation Details · p. 6

V. PERFORMANCE MEASUREMENT

Performance is evaluated primarily through time-to-solution and measured FLOPS, using full training runs where feasible and short scaled runs to estimate epoch-time behavior across systems.

Time-to-solution

  • 80 epochs define FourCastNet pre-training for single-step prediction, with the target chosen empirically to optimize 192-hour forecasting skill after fine-tuning.Pre-training is later followed by a more expensive multi-timestep training procedure.Source: A. Measurement Methodology · p. 6
  • Because 80-epoch runs are computationally prohibitive at every scale, scaled configurations are trained for 5 epochs to obtain per-epoch timing statistics.The method assumes the number of epochs to convergence is the same across scales, making per-epoch time directly correlated with total training time.Source: A. Measurement Methodology · p. 6

Timing procedure

  • Epoch timers include validation and exposed I/O overhead, while scaffolding time is excluded from measurements.Scaffolding includes NCCL communicator startup, 20 warm-up steps, and CUDA graph capture.Source: A. Measurement Methodology · p. 6

FLOPS measurement

  • Floating-point operations are measured with NVIDIA Nsight Compute using instruction-specific weighting factors.Weights include 1 for multiplication or addition, 2 for FP32 and FP64 FMA, and 4 for FP16 double FMA.Source: A. Measurement Methodology · p. 6
  • Table I summarizes the FLOPS weighting factors for GPU instructions relevant to the implementation.Source: Table I · p. 6
  • The total FLOPS estimate multiplies per-iteration FLOPS by the number of iterations, assuming perfect load balance across model- and data-parallel ranks.Validation FLOPS are also included.Source: A. Measurement Methodology · p. 6

Measurement caveat

  • The reported peak FLOPS rate is underestimated because it is averaged over a full epoch and excludes CPU work and data-parallel weight-gradient reductions.The omitted contributions are described as a small fraction of the overall FLOPS count.Source: A. Measurement Methodology · p. 7

B. Systems and Environment

FourCastNet is evaluated on Selene, Perlmutter, and JUWELS Booster, three A100-based supercomputing environments with different node counts, interconnects, memory capacities, and storage systems.

Perlmutter

  • Perlmutter’s GPU partition contains 1,536 nodes with four NVIDIA A100-40 GB GPUs per node connected by NVLink3.It uses the HPE Cray Slingshot 10 interconnect and an all-flash Lustre global file system.Source: 1) Perlmutter · p. 7

JUWELS Booster

  • JUWELS Booster contains 936 nodes with four NVIDIA A100-40 GB GPUs per node and uses NVLink3 plus DragonFly+ HDR200 InfiniBand.Its global file system is GPFS-based, with a peak bandwidth of 1 TB/s, and experiments use an NVMe-based cache layer.Source: 2) JUWELS Booster Module · p. 7

Selene

  • Selene comprises 560 DGX-A100 nodes, each with eight NVIDIA A100-80 GB GPUs connected through NVLink3 groups.The GPUs are partitioned into two groups of four, with additional NVLink3 connections between the groups.Source: 3) Selene · p. 7

3) Selene:

The Selene experiments quantify FourCastNet’s single-instance performance and show that increasing model size lowers per-GPU throughput because communication becomes more significant.

Measurement

  • FLOPS per iteration are reported per GPU for different model instance sizes and precisions, with tensor-instruction FLOPS combined into one category.The measurement uses batch size 1 and includes data loading, preprocessing, forward and backward passes, weight updates, and scheduling.Source: A. Performance: Single Model Instance · p. 7, Table II · p. 7

Performance

  • 160 TFLOP/s on one GPU corresponds to 51% of dense FP16 tensor-core peak performance.The average step time is about 517 ms for model instance size 1.Source: A. Performance: Single Model Instance · p. 7
  • Per-GPU performance decreases from 160 TFLOP/s to 115 TFLOP/s and 76 TFLOP/s for model instance sizes 1, 2, 4, and 8.The reported decline is associated with additional communication in forward and backward passes.Source: A. Performance: Single Model Instance · p. 7

Operation breakdown

  • Communication cannot be overlapped with computation because the network is strictly feed-forward and lacks branches with substantial compute.The time breakdown is reported in Table III for different model instance sizes.Source: A. Performance: Single Model Instance · p. 8
  • Communication becomes the dominant part of each iteration for larger model instance sizes.FFT time remains subdominant because AFNO patch embedding produces grids with very small FFT dimensions.Source: A. Performance: Single Model Instance · p. 8

B. Scalability

FourCastNet is evaluated across JUWELS Booster, Perlmutter, and Selene to characterize scaling across model and data parallelism. The results show system-dependent scaling behavior and high aggregate performance at thousands of GPUs.

Experimental setup

  • FourCastNet scaling experiments bind GPUs to nearby cores, memory, and interconnects across all three systems.Selene additionally partitions model instances so GPUs on the same socket ideally share an instance; this is unnecessary on the all-to-all-connected Perlmutter and JUWELS Booster systems.Source: B. Scalability · p. 8

Scaling behavior

  • Model instances of size 4 outperform size 2 on JUWELS Booster and Perlmutter, whereas Selene gains more from increased data parallelism than model parallelism.Selene’s balanced intranode and internode bandwidth supports hybrid NVLink/InfiniBand algorithms and reduces the impact of large collective operations.Source: B. Scalability · p. 8

Figures

  • Validation loss is plotted against wall-clock time for multiple FourCastNet configurations on JUWELS Booster, Perlmutter, and Selene.The figure indicates reduced solution times as parallelism increases.Source: Figure 3 · p. 8, Figure 4 · p. 9

Aggregate performance

  • 140.8 PFLOP/s is reached on 3,808 GPUs, compared with 99.1 PFLOP/s on 3,072 GPUs and 91.8 PFLOP/s on 1,024 GPUs.These are the peak performances measured on Perlmutter, JUWELS Booster, and Selene, respectively.Source: B. Scalability · p. 9

C. Convergence and Time-to-Solution

FourCastNet’s scalable training and inference substantially reduce weather-emulation time while preserving a pathway toward higher-resolution, larger-scale Earth-system modeling. The approach also exposes a key boundary: changing climate conditions make extrapolation beyond observed data a central challenge.

  • Training time-to-solution falls to just over an hour through increased model parallelism across major supercomputing systems.A baseline configuration without model parallelism is estimated at roughly 40 hours.Source: C. Convergence and Time-to-Solution · p. 9
  • Efficient scaling enables larger models, faster experimentation, and more rapid hyper-parameter exploration.The authors report that this is achieved by consuming more resources for shorter periods.Source: C. Convergence and Time-to-Solution · p. 9
  • Five orders-of-magnitude speedup over traditional numerical simulations is achieved while maintaining high accuracy.Source: A. Implications for Weather and… · p. 9
  • FourCastNet’s resolution, dimensionality, and scalability position it for kilometer-scale emulation, although current weather emulation operates at 25 km.The proposed path includes smaller AFNO patch sizes, larger batch sizes, and more GPUs.Source: A. Implications for Weather and… · p. 9
  • Inference efficiency addresses throughput and data-movement bottlenecks, reaching close to 100,000 simulated years per day at the cost of 1 simulated year per day conventionally.A century-long kilometer-scale climate simulation could generate an exabyte of data when outputs are written every 30 simulated minutes.Source: A. Implications for Weather and… · pp. 9–10
  • Because Earth’s climate is changing and observations degrade backward in time, future FourCastNet generations will need physical laws to extrapolate into unprecedented futures.Source: A. Implications for Weather and… · p. 10

B. Implications for Future Supercomputing Systems

FourCastNet is presented as a foundation for AI-enabled Earth-system computing beyond conventional forecasting workflows. Its throughput and scalability could support digital twins, virtualization, and interactive access to weather and climate information.

  • FourCastNet makes in-situ deep-learning training and analytics a near-term possibility for exascale weather and climate computing.The passage connects this possibility to emerging AI supercomputers and digital twins of Earth.Source: B. Implications for Future… · p. 10
  • FourCastNet could help build digital twins that let users access information and intervene despite exabyte-scale weather and climate data.Source: C. Implications for Society · p. 10
Loading 2208.05419v1…