Adaptive Flow Matching for Resolving Small-Scale Physics

Stathi Fotiadis, Noah D Brenowitz, Tomas Geffner, Yair Cohen, Michael Pritchard, Arash Vahdat, Morteza MardaniICML 2025

Adaptive Flow Matching (AFM) is a novel generative framework designed to super-resolve small-scale physical phenomena—such as local weather patterns—from coarse-grained data. By combining a deterministic encoder with a noise-adaptive Flow Matching model, AFM successfully handles the "divergent trajectories" and spatial misalignments common in physical simulations while maintaining superior ensemble calibration.

The Challenge of Physical Super-Resolution

In traditional computer vision, super-resolution (SR) typically assumes that a low-resolution image is merely a blurred version of a high-resolution original. In the physical sciences, however, the relationship is much more complex.

When simulating weather at a 25 km resolution versus a 2 km resolution, scientists aren't just changing the "pixel size"—they are often capturing different physical equations (PDEs) and dynamics. Because weather is inherently chaotic, these two simulations can produce divergent trajectories. For instance, a typhoon’s eye might be shifted by several kilometers between the coarse and fine models.

Conceptual visualization of divergent trajectories in physical systems.

Standard generative models, like conditional diffusion, struggle with this spatial misalignment, often producing blurry results or failing to capture the correct physics. Furthermore, different physical variables exhibit varying degrees of chaos: temperature is relatively deterministic and smooth, while radar reflectivity (precipitation) is highly stochastic. Existing models often fail to balance these varying scales of uncertainty.

The Adaptive Flow Matching (AFM) Approach

To address these challenges, the authors propose an end-to-end architecture consisting of three main components:

  1. The Deterministic Encoder: Instead of feeding raw coarse data directly into a generative model, an encoder first maps the input to a latent space. This stage handles the deterministic aspects of the physics, aligning large-scale structures and synthesizing new channels (e.g., generating radar data from wind and temperature inputs).
  2. Adaptive Noise Scaling: This is the framework's core innovation. The model injects noise into the latent space to account for uncertainty, but the amount of noise is dynamically adjusted based on the Maximum Likelihood (ML) estimate of the encoder's error. If the encoder struggles to predict a highly stochastic variable, the model automatically increases the noise, giving the generative component more "room" to imagine small-scale details.
  3. Flow Matching (FM): Starting from this noisy latent distribution, the model uses Flow Matching—a generative technique that learns a vector field to transport samples toward the target high-resolution distribution. Unlike standard diffusion, Flow Matching often allows for faster, more stable sampling via ODE solvers.

Datasets and Evaluation

The researchers evaluated AFM on two distinct types of data:

  • CWA (Taiwan) Dataset: A real-world regional weather downscaling task mapping 25 km resolution global data (ERA5) to 2 km resolution local observations from Taiwan’s Central Weather Administration. This requires complex "channel synthesis," as the model must generate variables like radar reflectivity that are absent from the input data.
  • Multiscale Kolmogorov Flow: A synthetic 2D fluid dynamics simulation used as a controlled laboratory to precisely tune the degree of spatial misalignment between low-res and high-res simulations.
Ensemble predictions of weather patterns over Taiwan, demonstrating AFM's ability to generate diverse, calibrated outcomes.

Key Insights and Results

AFM demonstrates significant improvements over existing state-of-the-art methods:

  • End-to-End Superiority: Prior methods often used a two-stage approach (regress the mean, then model residuals with diffusion), which can lead to overfitting in the first stage and "starve" the second stage of necessary variability. AFM trains everything end-to-end, maintaining a healthy balance between deterministic structure and stochastic detail.
  • Physics-Aware Uncertainty: By scaling noise per-channel, AFM treats smooth variables (low noise) and chaotic variables (high noise) with the specific mathematical respect their underlying physics requires.
  • Better Calibration: In weather forecasting, an "ensemble" of possible outcomes is crucial. AFM achieved a superior Spread-Skill Ratio (SSR), meaning the diversity of its generated ensembles accurately reflects the true uncertainty of the weather.
  • Robustness to Chaos: In synthetic fluid tests, standard models failed as the spatial misalignment between input and output increased. AFM remained robust, successfully realigning features that were spatially offset.

Limitations and Future Work

While AFM shows great promise, the authors note a few areas for future development. Currently, the framework requires paired data (coarse and fine versions of the same event), whereas many scientific fields only have unpaired observations. Extending AFM to the unpaired regime is a major goal. Additionally, replacing the current ML-based noise estimator with more complex stochastic encoders (like Variational Autoencoders) could further improve uncertainty handling. Beyond weather and fluids, AFM's ability to handle misaligned data could prove highly valuable in fields like medical imaging.

Summary updated

BibTeX
@inproceedings{fotiadis2025adaptive,
  author = {Stathi Fotiadis and Noah D Brenowitz and Tomas Geffner and Yair Cohen and Michael Pritchard and Arash Vahdat and Morteza Mardani},
  title = {{Adaptive Flow Matching for Resolving Small-Scale Physics}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=YJ1My9ttEN},
}
Figure