Skip to main content
Back

Fudan's PA-Net Beats Flash Flood Forecasting With Smarter AI Routing

PA-Net ties Mixture-of-Experts routing to rainfall intensity, giving rare extreme storms far more model capacity than uniform architectures allow.

Pro

Paper, Full Access
  • PA-Net dynamically scales MoE expert count per token based on local rainfall intensity, targeting long-tail extreme events.
  • Dual-Axis Compressed Latent Attention factorizes spatiotemporal attention with convolutional reduction for million-token grids.
  • On ERA5, hits 45.38 IoU vs 39.84 for best baseline, using only 18.9M parameters.
  • Rainstorm-category IoU jumps 9.37 points absolute (23.41 vs 14.04) over the strongest competitor.
  • Curriculum training progressively amplifies gradients from rare heavy-rain samples using a rainfall-weighted loss.
  • Limitations: predictions remain spatially diffuse, expert-budget thresholds are hand-set from climatology percentiles.

Predicting rain in the next few hours sounds like a solved problem until you look at the distribution of the target. In the ERA5 archive, a team from Fudan, the Chinese Academy of Sciences, and the China Meteorological Administration counted that more than 80% of grid cells record negligible precipitation while heavy-to-torrential events constitute fewer than 0.1% of all samples. Standard networks train on that skew, get good at forecasting drizzle, and quietly fail at the flash floods that actually matter.

PA-Net (Precipitation-Adaptive Network) is a Transformer designed around that asymmetry. Instead of spending the same compute on a dry pixel and a rainstorm pixel, it routes each token through a Mixture-of-Experts layer whose expert count grows with the local rainfall intensity. The heavier the rain, the more specialists get activated.

Why uniform capacity keeps losing to the tail

Two structural problems have blocked Transformer-based nowcasting from operational use. First, scale: when multi-variate atmospheric fields are discretized across high-resolution spatial grids and extended temporal windows, the resulting token count can reach into the millions, far exceeding the practical capacity of standard full-attention Transformers. Second, statistics: dense attention weighted by sample frequency ends up encoding what is common, not what is consequential.

Prior deep learning nowcasters, from ConvLSTM to radar-conditioned generative models like DGMR, are decent on light-to-moderate rain but degrade sharply on the tail. The authors argue this is a capacity-allocation problem more than a data problem, and they attack it at the routing layer.

PA-Net architecture pipeline showing patch tokenization, intra-frame and cross-frame attention, and PA-MoE module

The three pieces that make it work

PA-Net stacks three ideas on a ViT-style backbone that ingests patchified atmospheric variables (precipitation, humidity, temperature, and zonal and meridional winds at 500, 850, and 1000 hPa) plus a solar-elevation-angle positional encoding that folds latitude, longitude, and time-of-day into a single physically meaningful scalar.

  • Precipitation-Adaptive MoE (PA-MoE). The router looks up the rainfall rate at each token and picks a top-k of experts where k depends on intensity. The framework's computational budget is explicitly governed by rainfall intensity, and the number of activated experts per token is dynamically scaled according to local precipitation magnitude. Rainstorm tokens get a large ensemble, moderate rain gets a medium panel, and dry cells run through a minimal set. Thresholds are pulled from the empirical CDF of the training climatology (roughly the 75th and 95th percentiles).
  • Dual-Axis Compressed Latent Attention (DACLA). Instead of full spatiotemporal self-attention, DACLA runs intra-frame spatial attention and then cross-frame temporal attention, each preceded by a strided convolution that shrinks the token grid before attention and bilinear upsampling that restores it. That turns one quadratic explosion into two much smaller ones.
  • Intensity-Aware Training Protocol. A soft Dice loss counteracts class imbalance, a two-part MoE regularizer keeps the router honest (a dispatch-equity term stops expert collapse, an entropy term keeps gating decisions sharp), and a curriculum ramps up a per-sample weight w(r) = 1 + η·(r/r_ref)^α so extreme-rainfall gradients get amplified only after the model has learned the easy regimes.
PA-MoE routing diagram: rainstorm tokens activate more experts than rainless tokens

Numbers on ERA5

Training data: ERA5 with a native 0.25 degree grid cropped to a 221 by 281 regional domain, using 2016 to 2018 for training, 2019 for validation, and 2020 for test. Twelve input variables per timestep, six-hour forecast horizon, hourly outputs evaluated by IoU and Threat Score.

The headline result is a category-averaged 45.38 IoU and 24.62 TS, versus 39.84 IoU and 20.58 TS for the strongest baseline (TAU). What matters more is the per-intensity breakdown: on the rainstorm class, PA-Net hits 23.41 IoU where the best competitor manages 14.04, a 9.37 point absolute jump. The lift on heavy rain is 3.35 points and on moderate rain 6.12 points, without giving up ground on the dry and light-rain head of the distribution.

ModelParams (M)MACs (G)TSIoURainstorm IoU
ConvLSTM14.79463.720.6837.83-
SimVP14.08419.420.5239.8414.04
TAU10.05318.820.5839.7612.58
PA-Net18.90426.924.6245.3823.41

Parameter count matters here. At 18.9M params, PA-Net is roughly a third the size of SCCN (48.1M) and half the size of PFST (40.65M), so the gains are architectural rather than the result of scaling. The ablation isolates PA-MoE alone as worth +2.15 IoU over a vanilla Transformer, with DACLA and the training protocol adding another 2.30 IoU on top.

Where it holds up and where it doesn't

The temporal-decay curve is notably flatter than the baselines. At the 0 to 1 hour window PA-Net hits 53.78 IoU, roughly 9 points above the runner-up, and it retains a lead all the way out to 5 to 6 hours. The authors credit the enriched expert ensemble mobilized for intense-precipitation tokens with also improving temporal coherence.

The honest limitations are worth noting:

  1. Like all deep learning nowcasters here, PA-Net produces spatially diffuse rainfall fields relative to ground truth and occasionally misses isolated, small-scale precipitation cells.
  2. The three-tier expert budget (k_min, k_med, k_max) is set from fixed climatological percentiles, so a continuous or learned intensity-to-budget mapping is left as future work.
  3. The evaluation is a single regional crop of ERA5 rather than global or radar-only benchmarks like SEVIR, so generalization to radar-driven operational systems is not directly tested.

Practical read

There is no public code release or model checkpoint linked in the paper at the time of posting, so this is currently a methodology contribution on arXiv rather than a drop-in tool. The transferable ideas, though, are broadly useful. Any long-tailed spatiotemporal problem, whether it's extreme weather, rare disease imaging, or anomaly detection in sensor streams, faces the same capacity-allocation trap. Conditioning MoE routing on a physically meaningful proxy for sample difficulty, rather than on token identity alone, is a pattern that generalizes well beyond rainfall. The DACLA factorization is also a lightweight recipe for anyone hitting quadratic-attention walls on video-scale grids.

For teams working on MoE-based weather models or long-tail forecasting in general, the interesting question is whether the intensity-conditioned router can be replaced with a learned difficulty predictor, letting the network discover which regions deserve more compute without a hand-tuned threshold.