Foundations to Frontier
Tests
H. Generative Models › H8 Generative Models for Science

Super-resolution and downscaling of scientific data

Downscaling turns coarse fields (a climate model at 25 km, a coarse ocean or wind product, a low-resolution microscope image) into fine fields. The problem is one-to-many: many fine fields average to the same coarse field, so there is no single right answer. A network trained with MSE or L1 returns the average of them, which is blurred: it scores well on RMSE and PSNR and badly on everything that depends on small scales, such as spectra, gradients, gusts and extremes. Generative downscaling samples instead. Adversarial super-resolution of wind and solar fields (Stengel et al., 2020), stochastic precipitation downscaling (Harris et al., 2022) and NVIDIA's CorrDiff, a regression plus diffusion model that maps 25 km ERA5 to 2 km over Taiwan (Mardani et al., 2025), are examples. This page covers the ill-posedness, the perception–distortion trade-off (Blau and Michaeli, 2018), hard physical constraints such as conserving coarse-cell means, and evaluation by spectra, extremes, CRPS and conservation. In the exercises you write block averaging, a conservation projection and band-power and exceedance measures. You then downscale a toy field by 8×. The MSE-optimal model had the best RMSE (0.651 against 0.919 for a sample, a factor 1.41 ≈ √2) but retained only 4% of the power above the coarse grid's wavenumber and flagged 0.37% of points as extreme where 2.29% were. Generative samples matched the spectrum (1.005) and the extreme rate (0.0219), at √2 worse RMSE. White residual noise matched extremes but was 74% too rough and broke the coarse means by 0.88.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Inventing detail that the coarse data cannot know

A climate model may give one number for a 25-kilometre square, but a wind farm, a city or a drone needs the detail inside it. That detail is not in the coarse number: many different fine patterns average to the same value. A model trained to make the smallest average error picks the compromise, a smooth field with none of the gusts or downpours. A generative model instead draws one plausible fine pattern, then another, each sharp and consistent with the coarse value. The demo shows a coarse field, the interpolated guess and a sampled fine field whose block averages match the coarse data exactly.

Science generative lab
Truth (red), coarse blocks (grey), linear interpolation (green), generative sample (yellow). RMSE: interpolation 0.29, sample 0.45; gradient energy vs truth: interpolation 0.25, sample 2.01. The sample keeps every block mean exactly.
Why engineers care

Downscaled wind and solar fields drive turbine siting and grid forecasts, downscaled precipitation drives flood models, and super-resolved satellite and microscope images support inspection and science; in each case the extremes and the texture matter more than the average.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Downscaling a coarse field is…
  2. 2. A model trained with MSE returns…
  3. 3. A generative downscaler returns…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Methods, constraints and metrics

  • The problem: given a coarse field c = A u (block averaging, or a point-spread function and sampling), sample from p(u | c). An 8× upscaling in two dimensions invents 63 unknown values per observed one.
  • Deterministic baselines: bilinear or bicubic interpolation; CNN super-resolution (SRCNN, EDSR) and DeepSD for precipitation (Vandal et al., 2017); neural operators. All trained with MSE or L1, all blurred.
  • Generative downscaling: adversarial models (SRGAN and ESRGAN lineage, see H4-13) applied to climatological wind and solar data at 50× (Stengel et al., PNAS 2020); conditional GANs for stochastic precipitation downscaling of forecasts (Harris et al., JAMES 2022); diffusion models, including CorrDiff (Mardani et al., Communications Earth and Environment 2025), which first regresses the mean field then uses a diffusion model for the residual, mapping 25 km ERA5 to 2 km over Taiwan; and flow-matching variants.
  • Residual or two-stage design: predict the conditional mean with a cheap regression, then learn only the stochastic residual. This keeps the large scales accurate and lets the generative part concentrate on texture.
  • Hard constraints: project the output so that coarse-cell means (mass, energy, water) are reproduced exactly, or build the constraint into the last layer (Harder et al., 2023); enforce non-negativity for precipitation and radiances; respect land–sea masks and orography, which are static inputs the coarse field does not contain.
  • Evaluation: never PSNR alone. Use power spectra or structure functions, gradient and variance statistics, exceedance and return-level curves for extremes, CRPS and reliability for ensembles, and conservation errors. Check generalisation out of distribution (warmer climates, unseen storms) and whether the model hallucinates structures that are not implied by the coarse field.
  • Known failure modes: hallucinated detail that looks plausible but is in the wrong place, double-counted variance when a biased coarse field is downscaled without bias correction, and ‘super-resolution’ that merely sharpens edges without adding correct small-scale statistics.
📝 Quick check (Level 1)
0/3 answered
  1. 1. CorrDiff combines…
  2. 2. A hard constraint often imposed on downscaled fields is…
  3. 3. PSNR alone is a poor metric because…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

Coarsening, projecting and measuring

Exercise 1.

  • Block averaging and piecewise-constant upsampling.
  • A projection that makes a fine prediction reproduce the coarse data exactly.
  • Band power from an FFT and exceedance rates for extremes.

Practice.

  • Build the forward operator (block average, point-spread function, land mask) explicitly and train against it; do not assume the coarse data is a plain subsample.
  • Use a two-stage design: regress the mean, then generate the residual.
  • Apply the conservation projection at the end; it costs nothing and removes a whole class of complaints.
  • Report spectra, extremes and conservation alongside RMSE; state which metric you optimised.
  • For ensembles, report CRPS and spread/skill; a single sample’s RMSE is about √2 times the conditional mean’s and that is expected, not a bug.
  • Test on held-out regions, seasons and a warmer climate: downscaling models extrapolate badly.
import torch
# CorrDiff-style two stage: deterministic mean, then a diffusion model for the residual
mean = unet(coarse)                                  # trained with MSE
res = diffusion_sample(cond=torch.cat([coarse, mean, orography], 1))
fine = mean + res
# hard constraint: make block averages match the coarse field exactly
blocks = torch.nn.functional.avg_pool2d(fine, 8)
fine = fine + torch.nn.functional.interpolate(coarse - blocks, scale_factor=8, mode="nearest")
🐍 Exercise 1: coarsening, conservation and spectra
Write block averaging, upsampling, a conservation projection, band power and an exceedance rate.
📝 Quick check (Level 2)
0/3 answered
  1. 1. The forward operator should be…
  2. 2. A single sample's RMSE compared with the conditional mean's is about…
  3. 3. Downscaling models should be tested on…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

Ill-posedness. Block averaging by f maps f values to one, so its null space has dimension f − 1 per block (63 of 64 directions for an 8× upscaling in two dimensions). Everything in that null space is unconstrained by the data and must come from the prior, that is, from the training distribution.

What MSE returns. The minimiser of E‖u − g(c)‖² is g(c) = E[u | c], whose power in each unconstrained direction is the posterior mean’s, not the field’s: the posterior variance is missing. For a field whose spectrum is a power law, almost all of the lost power sits above the coarse grid’s wavenumber, which is exactly where texture, gradients and extremes live.

Why extremes vanish. If u = m(c) + ε with ε the posterior fluctuation, then P(u greater than t) involves the tail of ε. Replacing ε by zero removes it: a threshold at two standard deviations of the full field is reached far less often by m(c) alone. Blurring therefore under-predicts extremes systematically, not just on average.

Perception–distortion trade-off (Blau and Michaeli, 2018). No estimator can simultaneously minimise distortion (MSE) and match the data distribution. Moving along the trade-off, a perfect-distribution sampler pays a factor of about √2 in RMSE for a Gaussian posterior, because E‖u − u’‖² = 2 E‖u − m‖² for two independent samples.

Conservation. The projection u ↦ u + Aᵗ(c − Au)/f restores the coarse means, changing the field only by a constant per block and never making the error larger when the coarse data is exact (it is an orthogonal projection onto the affine constraint set).

Exercise check. On seed 0 the coarse field explained 57% of the variance, so 43% of it was pure posterior uncertainty; the sample-to-mean RMSE ratio was 1.412 against √2 = 1.414, and the 16-member mean was 1.032 times the conditional mean’s RMSE against the predicted √(17/16) = 1.031.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The null space of 8× block averaging in 2-D has, per block, dimension…
  2. 2. A perfect sampler's RMSE penalty for a Gaussian posterior is about…
  3. 3. The conservation projection changes the field by…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

What does an MSE-trained downscaler lose, what does a sampler pay for it, and does the noise structure matter?

History.

  • T. Vandal et al., “DeepSD: generating high resolution climate change projections through single image super-resolution” (KDD 2017).
  • Y. Blau and T. Michaeli, “The perception-distortion tradeoff” (CVPR 2018).
  • K. Stengel, A. Glaws, D. Hettinger and R. N. King, “Adversarial super-resolution of climatological wind and solar data” (PNAS, 2020).
  • L. Harris, A. T. T. McRae, M. Chantry, P. D. Dueben and T. N. Palmer, “A generative deep learning approach to stochastic downscaling of precipitation forecasts” (JAMES, 2022).
  • P. Harder et al., “Hard-constrained deep learning for climate downscaling” (JMLR, 2023).
  • M. Mardani et al., “Residual corrective diffusion modeling for km-scale atmospheric downscaling” (Communications Earth and Environment, 2025; CorrDiff).

Exercise 2.

  • Fields: periodic 1-D fields of 128 points built from wavenumbers 1 to 48 with a |k|^(-1/2) amplitude (power slope 1), standardised to unit variance. 4000 training fields, 400 test fields.
  • Coarse data: block averages by a factor of 8 (16 values), exact and noise-free.
  • Models: piecewise-constant blocks; periodic linear interpolation; the least-squares (MSE-optimal) linear map from coarse to fine; generative samples of that map plus residual noise with the full residual covariance; and the same with white noise of matching pointwise variance. 16 members where an ensemble is used.
  • Measures: RMSE; power above wavenumber 8 relative to the truth; gradient energy ratio; share of points above two standard deviations; largest block-mean error.
measure (seed 0) linear interpolation MSE model one sample one sample, white noise
RMSE 0.668 0.651 0.919 0.925
power above wavenumber 8, relative to truth 0.014 0.043 1.005 0.726
gradient-energy ratio 0.017 0.042 1.012 1.741
share above two standard deviations (truth 0.0229) 0.0013 0.0037 0.0219 0.0231
largest block-mean error 0 0 below 1e-5 0.882
  • RMSE and physics disagree: the MSE model won on RMSE (0.651; blocks 0.673, interpolation 0.668) and lost on everything else, keeping 4.3% of the power above the coarse grid’s wavenumber and 4.2% of the gradient energy.
  • Extremes: the MSE model flagged 0.37% of points above two standard deviations where 2.29% were, a 6× under-count; linear interpolation was worse (0.13%). Samples gave 2.19%.
  • The price of sampling: one sample’s RMSE was 1.412 times the MSE model’s, matching the √2 of the perception-distortion trade-off. Averaging 16 samples recovered RMSE 0.672, which is 1.032 times the conditional mean’s, as √(17/16) predicts: you can have the mean back whenever you want it.
  • Noise structure matters: white residual noise matched the extreme rate but was 74% too rough in gradient energy, had only 73% of the high-band power (it spreads power to the wrong wavenumbers, including the highest) and broke the coarse means by up to 0.88. The correlated residual conserved them to round-off.
  • How much was unknowable: the coarse data explained 57% of the variance; the remaining 43% is posterior uncertainty that no deterministic model can recover.
  • Seeds 1 and 2: MSE-model RMSE 0.649 and 0.643, sample 0.910 and 0.912; high-band power 0.042 and 0.043 for the MSE model against 0.992 and 1.013 for samples; extreme rate 0.0045 and 0.0039 against truths 0.0222 and 0.0224.
  • Caveat: linear-Gaussian toy with an exact forward operator. Real downscaling has non-Gaussian fields (precipitation is non-negative and intermittent), biased coarse inputs and static predictors such as orography, all of which make the generative part harder than a Cholesky factor.
🐍 Exercise 2 (research): what does an MSE-trained downscaler lose, what does a sampler pay for it, and does the noise structure matter?
Downscale a toy field by 8×, then compare interpolation, the MSE-optimal model and generative samples on RMSE, spectra, extremes and conservation.

Downscaling in AI, robotics and aerospace

  • Earth observation: super-resolving satellite products (Sentinel-2 bands, sea-surface temperature, soil moisture) while keeping the instrument’s forward model honest.
  • Wind and solar: generative downscaling of reanalysis to turbine scale for siting, yield and ramp-rate studies.
  • Flight and launch: km-scale downscaled winds, turbulence and convection for routing and launch windows; CorrDiff-style models run in minutes.
  • Instruments: denoising and super-resolution in microscopy and radio astronomy, where a sampled posterior is more honest than a single sharpened image.

References

  1. T. Vandal, E. Kodra, S. Ganguly, A. Michaelis, R. Nemani and A. R. Ganguly (2017). “DeepSD: generating high resolution climate change projections through single image super-resolution.” KDD.
  2. Y. Blau and T. Michaeli (2018). “The perception-distortion tradeoff.” CVPR.
  3. K. Stengel, A. Glaws, D. Hettinger and R. N. King (2020). “Adversarial super-resolution of climatological wind and solar data.” PNAS 117.
  4. L. Harris, A. T. T. McRae, M. Chantry, P. D. Dueben and T. N. Palmer (2022). “A generative deep learning approach to stochastic downscaling of precipitation forecasts.” JAMES 14.
  5. P. Harder, A. Hernandez-Garcia, V. Ramesh, Q. Yang, P. Sattigeri, D. Szwarcman, C. Watson and D. Rolnick (2023). “Hard-constrained deep learning for climate downscaling.” JMLR 24.
  6. M. Mardani et al. (2025). “Residual corrective diffusion modeling for km-scale atmospheric downscaling.” Communications Earth and Environment 6.