Introduction
A climate model cannot resolve convection, clouds and turbulence on its grid, so it parameterises them: a sub-grid scheme maps the state of one atmospheric column (temperature, moisture, cloud water and ice, winds, on 60 vertical levels, plus surface fields) to the tendencies those processes produce. Embedding a high-resolution cloud-resolving model in every column gives far better tendencies at enormous cost, and a neural network trained to reproduce them is the cheap substitute the field is building towards [1, 2]. The question in this task is not how well such an emulator fits the data it was trained on, but how well it predicts on held-out parts of the data that it never saw in training or model selection.
Three things make this hard. First, the targets are wildly heterogeneous: temperature tendencies are large and smooth, cloud-ice and cloud-liquid tendencies are tiny and intermittent, and the momentum tendencies are close to unpredictable from one column state. Second, an accurate fit on the training distribution says little about behaviour outside it; a flexible network learns the mean behaviour of the columns it saw, and in unfamiliar columns its outputs extrapolate with no physical restraint. Third, the field's main answer to that, rescaling the inputs into climate-invariant thermodynamic variables [3], and its main answer to accuracy, ever larger architectures, as in a recent emulation competition [2], address one of these at a time.
Our starting observation is that the column already carries a strong, causal prior: the physics tendencies it experienced one and two model steps earlier. An emulator that learns only a correction on top of that memory has less to extrapolate. The method below takes that prior seriously, constrains its output with exact physical rules, and, as its central idea, refuses to let the learned correction be larger than the column's own recent variability justifies.
Method
Our emulator has four parts: a memory anchor, a vertical network that predicts innovations, a set of exact output projections, and the temporal trust projection that bounds the innovation. It takes the task's full input set, which includes the previous-step and two-steps-ago physics tendencies of temperature, the three water species and zonal wind, and is trained with a batch of 4096 rows.
A vertical network over the column
The column is treated as a sequence of 60 levels. Each level's normalised profile values are projected to a width of 192, a learned level embedding is added, and a small network of the column's scalar inputs is broadcast to every level. The scalar network receives one extra input: the surface latent heat flux divided by the latent heat of vaporisation and by the near-surface saturation deficit,
an effective bulk exchange coefficient rather than a flux, which removes the flux's first-order dependence on the near-surface moisture deficit. Here is computed from polynomial fits of saturation vapour pressure over liquid and ice, blended linearly between K and K, at the pressure given by the model's hybrid level coefficients.
def features(self, x):
b = x.shape[0]
profiles = x[:, :60 * self.n_profiles].reshape(b, self.n_profiles, 60).transpose(1, 2)
scalars = x[:, 60 * self.n_profiles:]
raw = x * self.inp_range + self.inp_mean
t = self.raw_profile(raw, 'state_t')
q = self.raw_profile(raw, 'state_q0001')
ps = raw[:, self.layout['state_ps'][1]]
pressure = 1e5 * self.hyam + ps[:, None] * self.hybm
qsat = _qsat(t, pressure)
extras = torch.zeros(b, 60, 20, device=x.device)
h = self.input(torch.cat([profiles, extras], dim=-1)) + self.level
deficit = (qsat[:, -1] - q[:, -1]).clamp_min(1e-3)
lhf = raw[:, self.layout['pbuf_LHFLX'][1]] / (2.501e6 * deficit) * 10
sh = self.scalar(torch.cat([scalars, lhf[:, None]], dim=1))
return h + sh[:, None], shThe sequence then passes through six blocks. Each block has three pre-normalised residual branches: a depthwise convolution over five neighbouring levels followed by a GELU expansion, which mixes information locally in the vertical; four-head self-attention, which lets any level see any other (deep convection couples the boundary layer to the upper troposphere); and a SwiGLU feed-forward layer. Each branch is scaled by a learned gain initialised at and passed through dropout of during training.
class VerticalBlock(nn.Module):
def __init__(self, dim, heads=4):
super().__init__()
self.norm_local = nn.LayerNorm(dim)
self.local = nn.Conv1d(dim, dim, 5, padding=2, groups=dim)
self.local_in = nn.Linear(dim, 4 * dim)
self.local_out = nn.Linear(4 * dim, dim)
self.norm_att = nn.LayerNorm(dim)
self.att = nn.MultiheadAttention(dim, heads, batch_first=True)
self.norm_ff = nn.LayerNorm(dim)
self.ff_in = nn.Linear(dim, 6 * dim)
self.ff_out = nn.Linear(3 * dim, dim)
self.gamma = nn.Parameter(torch.full((3,), 0.1))
def forward(self, x):
h = self.norm_local(x).transpose(1, 2)
h = self.local(h).transpose(1, 2)
h = self.local_out(F.gelu(self.local_in(h)))
x = x + F.dropout(self.gamma[0] * h, 0.05, self.training)
h = self.norm_att(x)
h = self.att(h, h, h, need_weights=False)[0]
x = x + F.dropout(self.gamma[1] * h, 0.05, self.training)
a, b = self.ff_in(self.norm_ff(x)).chunk(2, dim=-1)
return x + F.dropout(self.gamma[2] * self.ff_out(F.silu(a) * b), 0.05, self.training)A second-order memory anchor and the learned innovation
For each of the five anchored variables (temperature, water vapour, cloud liquid, cloud ice and zonal wind) and each level , the prediction is built around a learned second-order autoregressive anchor on the column's own past tendencies and :
A linear head reads the network's per-level output , and its value, multiplied by the output's standard deviation , is the innovation added to the anchor, . The head is initialised at zero, so training starts from the anchor. The meridional wind has no anchor and is predicted from the innovation alone.
Exact physical projections
The tendencies are then pushed through a projection that enforces three rules exactly. The top 11 levels receive zero tendency for water vapour, cloud liquid, cloud ice and both winds. Every water species must stay non-negative over one model step of s, so the tendency is replaced by
and the same for cloud liquid and ice. Temperature is left unconstrained at every level.
names = ('state_t_prvphy', 'state_q0001_prvphy', 'state_q0002_prvphy',
'state_q0003_prvphy', 'state_u_prvphy')
prev = [self.raw_profile(raw, n) for n in names]
older = [self.raw_profile(raw, 'tm_' + n) for n in names]
base = [self.memory_gate[i] * prev[i] + self.memory_previous[i] * older[i] for i in range(5)]
om = [self.out_mean[i * 60:(i + 1) * 60] for i in range(6)]
osd = [self.out_std[i * 60:(i + 1) * 60] for i in range(6)]
inactive = torch.zeros(11, device=x.device, dtype=torch.bool)
active = torch.cat([inactive, torch.ones(49, device=x.device, dtype=torch.bool)])
def project(values):
tend_t = base[0] + values[..., 0] * osd[0]
tend_q = base[1] + values[..., 1] * osd[1]
tend_u = (base[4] + values[..., 3] * osd[4]) * active
tend_v = values[..., 4] * osd[5] * active
new_q = (q + 1200 * tend_q).clamp_min(0)
tend_qc = base[2] + values[..., 2] * osd[2]
tend_qi = base[3] + values[..., 5] * osd[3]
tend_q = (new_q - q) / 1200 * active
new_qc = (qc + 1200 * tend_qc).clamp_min(0)
new_qi = (qi + 1200 * tend_qi).clamp_min(0)
tend_qc = (new_qc - qc) / 1200 * active
tend_qi = (new_qi - qi) / 1200 * active
return torch.cat([(tend_t - om[0]) / osd[0], (tend_q - om[1]) / osd[1],
(tend_qc - om[2]) / osd[2], (tend_qi - om[3]) / osd[3],
(tend_u - om[4]) / osd[4], (tend_v - om[5]) / osd[5]], dim=1)The temporal trust projection
The anchor alone gives ; the anchor plus the innovation gives , both in normalised output units. Their difference is the part of the prediction that the network contributes. For each column and each anchored variable we compare its size, over the 49 active levels, with the size of that column's own most recent change in tendency:
The reasoning is that a column whose physics barely changed between the last two steps gives no evidence for a large departure from its memory, so a large innovation there is more likely to be the network extrapolating than the physics changing. Where the innovation is no larger than the recent change (and its size is above the floor), and nothing happens. Three properties follow from the form. The rule uses only the column's causal inputs and the training normalisation, with no labels of any kind. Because is a convex combination of two outputs that both already satisfy the projection, non-negative next-state water and the inactive levels survive it. And the denominator is detached from the gradient, so acts as a constant per sample: a capped column still trains the anchor and, unless , the innovation, with the innovation's gradient scaled by . The projection is applied during training, and the network learns under it. The meridional wind is left out of the projection, since it has no anchor to fall back on.
profile_out = project(z)
anchor_out = project(torch.zeros_like(z))
innovation = profile_out - anchor_out
projected = []
for i in range(5):
change = (prev[i] - older[i])[:, 11:] / osd[i][11:]
numerator = change.square().mean(1).sqrt()
denominator = innovation[:, i * 60 + 11:(i + 1) * 60].detach().square().mean(1).sqrt()
scale = (numerator / denominator.clamp_min(1e-6)).clamp(max=1)
a = i * 60
projected.append(anchor_out[:, a:a + 60] + scale[:, None] * innovation[:, a:a + 60])
projected.append(profile_out[:, 300:360])
profile_out = torch.cat(projected, dim=1)Scalar outputs
The eight surface outputs are read from the mean and the lowest level of the final sequence, together with the scalar features. The two convective precipitation outputs (snow and total) instead come from a separate two-hidden-layer network of the raw normalised inputs, initialised at zero, and are then multiplied by a precipitation efficiency
where is the lowest-level specific humidity and its training mean: the precipitation the network proposes is scaled down in proportion for a column whose near-surface air is drier than the training mean, and left unchanged otherwise. All eight outputs are clamped to be non-negative in physical units, and the five shortwave outputs are set to zero wherever the incoming solar flux is not positive.
scalar_z = self.scalar_head(torch.cat([h.mean(1), h[:, -1], sh], dim=1))
scalar_z = torch.cat([scalar_z[:, :2], self.precip_head(x), scalar_z[:, 4:]], dim=1)
scalar_raw = self.out_mean[360:] + scalar_z * self.out_std[360:]
q_reference = self.inp_mean[self.layout['state_q0001'][1] + 59].clamp_min(1e-8)
efficiency = (q[:, -1] / q_reference).clamp(0, 1)
scalar_raw = torch.cat([scalar_raw[:, :2], scalar_raw[:, 2:4] * efficiency[:, None],
scalar_raw[:, 4:]], dim=1)
scalar_raw = scalar_raw.clamp_min(0)
solin = raw[:, self.layout['pbuf_SOLIN'][1]] > 0
solar = torch.tensor([1, 0, 0, 0, 1, 1, 1, 1], device=x.device, dtype=torch.bool)
scalar_raw = torch.where(solar & ~solin[:, None], torch.zeros_like(scalar_raw), scalar_raw)
scalar_out = (scalar_raw - self.out_mean[360:]) / self.out_std[360:]
return torch.cat([profile_out, scalar_out], dim=1)Training
The loss is the mean squared error over the output dimensions whose normalisation scale is not the placeholder value 1, so dimensions that carry no signal in training do not dilute it. We use AdamW with a learning rate of , and weight decay , a linear warm-up over the larger of 10 steps and one-fiftieth of training, and a per-step cosine decay to one hundredth of the peak rate. By our own count the model has about 6.03 million parameters.
Results
| Method | ① | ② | ③ |
|---|---|---|---|
| NMSE ↓ | NMSE ↓ | NMSE ↓ | |
| Kimi K3.1 Pro | 0.328 | 0.304 | 0.295 |
| CNN | 0.476 | 0.535 | 0.442 |
| Encoder-decoder | 0.841 | 0.859 | 0.812 |
| Hu et al. | 0.350 | 0.300 | 0.301 |
| HSR | 0.787 | 0.799 | 0.770 |
| Squeezeformer, as published | 0.297 | 0.273 | 0.266 |
| ConvNeXt | 0.345 | 0.316 | 0.314 |
| Pure ResLSTM | 0.427 | 0.367 | 0.364 |
| Climate-invariant MLP | 0.708 | 0.735 | 0.622 |
| Squeezeformer | 0.296 | 0.271 | 0.265 |
- ① ClimSim · held-out warm columns · 5 epochs
- ② ClimSim · held-out land columns · 5 epochs
- ③ ClimSim · warm half-year held out (all columns) · 5 epochs
On no setting is our emulator the best: the Squeezeformer of the crowdsourced emulation competition [2] leads everywhere, at 0.296 on Warm-cols against our 0.328, 0.271 on Land-cols against our 0.304, and 0.265 on Warm-season against our 0.295, and the gap is of similar size on all three.
Behind the Squeezeformer, our emulator is ahead of the other published architectures on Warm-cols and Warm-season: it improves on the ConvNeXt (0.345 and 0.314) and on the expanded-input U-Net [1] (0.350 and 0.301). On Land-cols the U-Net, at 0.300, is slightly ahead of our 0.304, which leaves us third there, still ahead of the ConvNeXt's 0.316. The remaining baselines, the residual LSTM, the CNN, the encoder-decoder, HSR and the climate-invariant MLP, are behind us on every setting.
These numbers do not bear out the comparison we made in development, where on one of our own held-out splits an earlier version of our model, before the trust projection, reached an NMSE of 0.329 against 0.463 for a Squeezeformer we trained on the same rows. That reference run was trained for fewer passes than our model, on a subset of the public data, and the published Squeezeformer results do not reproduce that gap.
How we got here
We began from three hypotheses, each meant to be tested by ablation on our own development splits, which held out groups of columns from training and model selection: that the previous physics tendency is a safer anchor than learning each column's absolute tendency, that thermodynamic, climate-invariant input coordinates [3] reduce extrapolation, and that hard next-state constraints remove a class of impossible predictions. A direct probe of the raw data showed that outside the active cloud-resolving levels the condensate tendencies amount to removing the existing cloud within one timestep, which we took as a candidate hard constraint; the reference architectures also prune the top levels. Before we had any valid network result, plain persistence of the previous tendency scored between about 0.61 and 0.75 NMSE across our development splits, and adding the physical projection improved each of them.
The ablations of our first network settled the anchor and removed the feature engineering. In our development measurements on one split, removing the persistence anchor raised NMSE from 0.573 to 0.705, removing attention's residual raised it slightly to 0.579, and replacing our phase-partitioned total-cloud output with direct liquid and ice outputs lowered it to 0.556. The climate-invariant feature block hurt: removing it lowered NMSE to 0.546 and improved the seen-column validation as well, so the final model keeps only the saturation-deficit transform of the latent heat flux. Combined, the simplified direct-cloud model reached 0.527.
The anchor became second order when an offline least-squares fit on training columns showed that a two-step extrapolation improved on persistence (0.733 to 0.658 on one split) and the learned one-step gates had barely moved from their initial 0.5; per-level coefficients gave a small further gain (0.522). Precipitation was the next failure. Output-specific attention over levels for the scalar outputs improved rain on one split but made the other scalars worse, and on a second split made rain, snow and longwave worse, while a direct network on the raw inputs cut the rain error there from the NMSE ceiling of 1.0 to 0.496. Residual dropout of was adopted after it lowered NMSE on the hardest split from 0.510 to 0.463 at a matched epoch, with little change elsewhere; a check made after that decision lowered it from 0.508 to 0.459 on an independent second split.
A long list of ideas did not survive matched comparisons: a worst-group validation selector (its groups had nearly identical losses, so it selected nothing different), Gaussian noise on the normalised inputs (it broke the inverse physical transforms), exponential weight averaging (neutral), a vertical-difference loss (mixed), four blocks instead of six (worse in a full-schedule comparison that we stopped early), log-transformed moisture and cloud channels (worse on the independent split), an online least-squares estimator for the anchor coefficients (worse on the hardest split, 0.511 against 0.478, which we read as in-sample persistence coefficients overfitting), wind corrections written as pressure-weighted flux divergences with surface stress at the boundary (worse for both winds), a batch-mean bias penalty (worse on the independent splits), a log-cosh loss (better on one split, worse on the hardest), a blend of it with MSE (worse early on the hardest split), deep supervision from the third block, dropping the history inputs during training, and replacing the precipitation head with a column water-budget estimate.
The trust projection came from a diagnostic, not from the literature. On trained checkpoints we scaled only the innovation over the anchor and found that factors of 0.5 to 0.75 lowered NMSE on our hardest split from about 0.44 to 0.39, while a factor of 1.0 remained best on another: the network's correction was too large on the split least like its training data. Since no label may say which column is which, we looked for a per-column signal and used the recent change in tendency. Applied after training, the rule lowered NMSE on the independent second split of the hardest case from 0.4213 to 0.3350, at a cost of 0.003 to 0.013 on the others; trained jointly, it lowered it from 0.4590 to 0.3569 with another split essentially unchanged. The weights trained with the projection scored 0.3569 with it and 0.6837 without it, so the network does learn to rely on it. A looser two-step radius was worse on the hardest split, and a smoothly relaxing radius fell between the two fixed ones without a better trade-off. Averaged over all of our development splits, the projection lowered the mean NMSE from 0.33777 to 0.33126, and from 0.33390 to 0.32393 on the independent splits; the gain was concentrated in a minority of them, and on others the plain model was better by about 0.004 to 0.010.
The precipitation efficiency was the last change, made to stop overprediction of rain where the near-surface air is drier than usual. Applied after training it made the average slightly worse; trained jointly it improved the mean NMSE over our development splits by only 0.000163, and 0.000339 on the independent splits, and lowered the hardest full-schedule split from 0.3703 to 0.3681. We kept it, but the evidence for it is marginal.
Limitations
- The best published baseline is ahead on every setting. The Squeezeformer leads by a similar margin on all three settings, and on Land-cols the expanded-input U-Net is also slightly ahead. What our emulator shows is that a model much smaller than the Squeezeformer, with a memory anchor and a bounded innovation, is competitive with the other published architectures, not that it beats the strongest one.
- Our development comparison misled us. The Squeezeformer we trained ourselves, on a subset of the public data and for fewer passes than our model, was far behind; the published one is not. Every development figure in this paper was measured under our own data subset and schedules, and none of them can be read as a prediction of the evaluation.
- The projection trades accuracy between kinds of column. In development its benefit was concentrated on the hardest held-out columns, and on several others the unprojected model was better by up to about a hundredth of NMSE. A column with an unusually quiet recent history has its innovation suppressed whether or not the physics is about to change; in a deliberately rescaled-history probe, the projection stayed finite but became less robust, so the rule depends on the history inputs behaving like the training data.
- Several components are only weakly supported. The precipitation efficiency changed our development mean in the fourth decimal place. The meridional wind is neither anchored nor projected and remained one of the worst-predicted outputs.
- The submitted code carries leftovers of rejected ideas. The input projection includes 20 channels that are always zero, a remnant of the removed feature block kept to preserve tensor shapes; the profile head has a seventh output channel that is never read; and saturation humidity is computed at every level but used only at the lowest one. They do not change the predictions, but they make the method look more elaborate than it is.
- The ablations rest on our own development reports.
References
- Zeyuan Hu, Akshay Subramaniam, Zhiming Kuang et al. (2024). Stable Machine-Learning Parameterization of Subgrid Processes in a Comprehensive Atmospheric Model Learned From Embedded Convection-Permitting Simulations.
- Jerry Lin, Zeyuan Hu, Tom Beucler et al. (2025). Crowdsourcing the Frontier: Advancing Hybrid Physics-ML Climate Simulation via a $50,000 Kaggle Competition.
- Tom Beucler, Pierre Gentine, Janni Yuval et al. (2021). Climate-Invariant Machine Learning.
- Sungduk Yu, Zeyuan Hu, Akshay Subramaniam et al. (2023). ClimSim-Online: A Large Multi-scale Dataset and Framework for Hybrid ML-physics Climate Emulation. NeurIPS.