Towards Physics-Constrained Rectified Flow for Climate Downscaling: What Projections Can Certify?

Arun SharmaarXiv 2026 · arXiv

TL;DR

This paper introduces Physics-Constrained Rectified Flow (PC-RF), a generative model for climate downscaling that uses hard inference-time projections to guarantee physical consistency. The authors demonstrate that while soft training penalties can nudge a model toward physical realism, hard projections are the only way to "certify" that downscaled precipitation is non-negative and conserves mass relative to its coarse input.

What Problem Does This Paper Address?

Climate downscaling—the process of turning coarse, low-resolution climate data into high-resolution regional details—is essential for planning against flooding and crop stress. Recently, deep generative models like diffusion and flow-matching have become the state-of-the-art for this task because they produce sharp, realistic-looking fields.

However, these models have a "physics problem." Because they are primarily optimized for perceptual similarity (looking like the target), they often produce physically impossible results: "negative" rainfall, wind fields that don't respect divergence laws, or a total mass of water that doesn't match the coarse-scale observation. Standard metrics like SSIM or PSNR can't detect these violations, meaning a model can look "perfect" while being scientifically useless.

Methods

The authors build upon Rectified Flow, a generative framework that learns to transport Gaussian noise to data along straight paths, making it more sampling-efficient than traditional diffusion.

The "Physics-Constrained" part of PC-RF involves two layers of defense:

  1. Soft Training Penalties: Three differentiable loss terms are added during training to penalize wind divergence, negative precipitation, and mass drift.
  2. Hard Inference Projection ($\Pi$): This is the paper's key contribution. After the model generates a sample, a projection step is applied to the precipitation channel. It clamps negative values to zero and then rescales the entire field so the high-resolution mean exactly matches the coarse-scale mean.
Figure 1: The trained PC-RF pipeline. The coarse ERA5 field x𝑐is upsampled and concatenated with x𝑡. The U-Net v𝜃uses self-attention only at its two coarsest resolutions and FiLM only for time. Training adds three penalties on the one-step estimate ˜x𝑓. Inference takes 20 Euler steps to ˆx𝑓, and Π then makes precipitation non-negative and mass-balanced.

Datasets

  • ERA5 Reanalysis: Coarse input data at 0.25° resolution (precipitation and 10m u/v wind).
  • ERA5-Land: Fine-scale target data at 0.1° resolution.
  • Synthetic Field: A custom 128x128 field with mathematically exact physics (divergence-free wind, known mass) used as a "mechanism check" to verify the constraints work in a controlled environment.

Key Insights and Ideas

  • Certification vs. Shaping: The authors argue for a distinction between shaping a model (using soft penalties during training) and certifying it (using hard projections at inference). They found that while penalties help, they cannot guarantee validity.
  • The "Pass-or-Fail" Gate: The authors propose that physical metrics like the Non-negativity Violation Rate (NVR) and Mass-Conservation Error (MCE) should be treated as "gates." If a model fails these, its perceptual scores (SSIM/PSNR) are irrelevant.
  • The Perceptual Trap: In a matched-budget comparison, the physics-constrained model (PC-RF) showed no significant perceptual gain over a baseline (RF-base) that used the same projection but no training penalties. This suggests that for downscaling, the projection does the heavy lifting.
  • A "Productive" Bug: Interestingly, the authors discovered a sign error in their divergence operator during the ERA5 experiments. Despite this "bug," the model still performed competitively on perceptual metrics, highlighting how insensitive standard AI metrics are to underlying physical truth.

Key Results

  • Hard Constraints Work: On both synthetic and real-world data, the hard projection successfully drove NVR and MCE to exactly zero (within floating-point rounding).
  • Baselines Fail Physics: Popular models like CorrDiff, when run without these projections, produced ensemble-mean precipitation where 45% of cells were negative.
  • Competitive Performance: PC-RF achieved the best SSIM (0.914) on the 2020 ERA5 test set compared to other generative baselines, though it trailed slightly in PSNR behind a reimplementation of CorrDiff.
Table 2: ERA5 2020, precipitation and two wind channels. The wind target is the upsampled coarse wind. Learned baselines are our reimplementations (300 epochs, no projection). RF-base used 200 epochs at batch 16, and PC-RF used 300 epochs at batch 32. Only the projected models have zero NVR and MCE. Bicubic DE is the wind reference. DE is the deformation-like term of Section 3, so it has no arrow or bold. Bold is the best other value (↑higher, ↓lower).

Limitations and Future Work

  • Data Quality: The authors note that ERA5-Land (their "ground truth") is itself an interpolated product and doesn't perfectly follow the mass-conservation laws the model tries to enforce. This makes it difficult to prove that physics penalties improve "skill" when the reference data is imperfect.
  • Wind Projection: While precipitation is easy to project (clamp and scale), wind is harder. A true divergence-free projection requires solving a Poisson equation, which is computationally expensive and wasn't implemented here.
  • Future Directions: The authors suggest using regional reanalysis data (like CERRA) which has more independent fine-scale structure, and implementing thermodynamic-consistency penalties to further ground the generative process in reality.

Summary updated

Abstract

Statistical downscaling restores the regional detail behind flooding and crop stress, but diffusion and flow-matching generators can produce sharp fields that break the conservation laws of their coarse input. Physics-Constrained Rectified Flow (PC-RF) is a conditional flow-matching downscaler. Its training penalties target wind divergence, negative precipitation, and mass drift from the coarse total, and a projection after sampling removes the last two exactly. On one corrupted synthetic field with no trained network, the projection drives the Non-negativity Violation Rate (NVR) from 0.236 and the Mass-Conservation Error (MCE) from 0.184 to zero, and the penalties lower the Divergence Error (DE) by about 30%. On ERA5 the projection gives PC-RF and RF-base, the penalty-free rectified-flow baseline, an NVR of exactly zero and an MCE of zero up to float32 rounding. The penalties add no perceptual gain that we can separate from training budget or run-to-run variation. At a matched budget on 2019-2021, PC-RF has no edge over RF-base (SSIM 0.939 vs. 0.942, PSNR 31.81 vs. 31.79, CRPS 0.771 vs. 0.772). Our unprojected CorrDiff reimplementation beats both flow models on PSNR (28.38) and CRPS (1.092) on 2020, yet 45% of its ensemble-mean precipitation cells are negative. On ERA5 a sign error in the divergence operator made that penalty and DE act on a deformation-like term. The fine reference is interpolated from ERA5 and accumulates precipitation over a longer window, so the perceptual scores cannot establish downscaling skill. NVR and MCE need one pass and no fine reference, so we argue they should run first as pass-or-fail checks, with DE as a diagnostic.
BibTeX
@misc{sharma2026towards,
  author = {Arun Sharma},
  title = {{Towards Physics-Constrained Rectified Flow for Climate Downscaling: What Projections Can Certify?}},
  year = {2026},
  eprint = {2611.22283},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.22283},
}
Figure