Debias Coarsely, Sample Conditionally: Statistical Downscaling through Optimal Transport and Probabilistic Diffusion Models

Zhong Yi Wan, Ricardo Baptista, Anudhyan Boral, Yi-Fan Chen, John Anderson, Fei Sha, Leonardo Zepeda-Nunez

Overview

Researchers have developed a two-stage framework that solves a major challenge in climate modeling and fluid dynamics: statistical downscaling with unpaired, biased data. By first correcting physical biases using Optimal Transport (OT) and then generating high-resolution details with conditional Diffusion Models, this method produces physically accurate simulations at 8× and 16× resolution increases without requiring perfectly aligned training pairs.

The Challenge: Pairing and Bias

In computational physics, we often face a trade-off between "fast and blurry" or "slow and sharp." Coarse-grained numerical simulations (Low-Resolution, LR) are computationally cheap but lack small-scale details. Crucially, they are often physically biased. Their large-scale patterns fundamentally differ from high-fidelity (High-Resolution, HR) models.

Existing Machine Learning (ML) approaches to "upsample" these simulations face two massive hurdles:

  1. The Pairing Problem: Because fluid systems are chaotic, two simulations starting from nearly identical points diverge rapidly. This makes it nearly impossible to create a "before and after" dataset where every LR frame perfectly matches an HR frame.
  2. The Bias Problem: Standard image super-resolution assumes the low-frequency (blurry) part of an input is correct. In physics, the low-frequency content of a cheap simulation is often "wrong" compared to a premium one. Without fixing this bias first, ML models simply generate "sharp versions of wrong data."

Proposed Framework: Decoupling Debiasing and Upsampling

The authors propose a two-stage probabilistic framework that decouples debiasing from upsampling.

Conceptual diagram of the two-stage framework
  1. Stage 1: Debiasing via Optimal Transport (OT). Instead of mapping pixels directly, the authors use Optimal Transport to map the distribution of the biased LR data to the distribution of "unbiased" low-res data (derived from HR samples). Using the Sinkhorn algorithm, they find a map that shifts the biased samples so their statistics align with the high-fidelity ground truth. As illustrated above, this corrects the low-frequency content (shifting the biased red spectrum to the unbiased blue spectrum) before any new details are added.

  2. Stage 2: Upsampling via Conditional Diffusion. Once the data is debiased, a probabilistic diffusion model fills in the high-resolution details (the dotted blue extrapolation). Crucially, the authors use a posteriori conditional sampling. This allows the model to treat the debiased LR data as a constraint, generating multiple possible HR realizations that are all physically consistent with the input.

By factorizing the problem, the model doesn't need paired data; it only needs independent sets of LR and HR examples.

Experimental Setup

The framework was evaluated on two classic benchmarks for fluid turbulence generated using jax-cfd:

  • 1D Kuramoto-Sivashinsky (KS) Equation: A canonical model for chaotic systems.
  • 2D Navier-Stokes (NS) Equation: Simulated under Kolmogorov forcing to mimic the complex, swirling vorticity fields found in planetary atmospheres.

The models were tested at 8× and 16× downscaling factors (e.g., upsampling a 32×32 grid to 512×512).

Key Results

The proposed method (OT + conditional Diffusion) significantly outperformed baselines like CycleGAN and ClimAlign across multiple metrics.

Performance on KS and NS datasets
  • Physical Accuracy: In the 2D Navier-Stokes test, the Mean Energy Log Ratio (MELR)—a measure of how well the model captures the physics of energy distribution—was nearly an order of magnitude better than competing "unpaired" methods. The energy spectra of the generated samples closely matched the reference HR data.
  • Visual Fidelity: Qualitatively, the model produced sharp, realistic vortices even at 16× upsampling. Deterministic models (like Vision Transformers) tended to produce excessive smoothing or unnatural color shifts.
  • Statistical Consistency: Even when the input LR data had a completely different energy spectrum than the target, the OT-debiasing step successfully "anchored" the diffusion process to the correct physical regime, ensuring the marginal PDFs and conditional samples aligned with the ground truth.

Limitations and Future Work

While highly effective, the approach has a few limitations. Optimal Transport scales quadratically with the size of the training set, which could become a computational bottleneck for massive global climate datasets. Additionally, the current work focuses on individual spatial "snapshots." Extending this framework to spatio-temporal downscaling—ensuring that high-resolution video generations remain temporally smooth and physically consistent over time—is a logical next step. Finally, testing the robustness of the OT mapping against real-world sensor noise and missing values will be critical for operational weather forecasting.

Summary updated

BibTeX
@inproceedings{wan2023debias,
  author = {Zhong Yi Wan and Ricardo Baptista and Anudhyan Boral and Yi-Fan Chen and John Anderson and Fei Sha and Leonardo Zepeda-Nunez},
  title = {{Debias Coarsely, Sample Conditionally: Statistical Downscaling through Optimal Transport and Probabilistic Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=5NxJuc0T1P},
}
Figure