FLEX: A Backbone for Diffusion-Based Modeling of Spatio-temporal Physical Systems
N. Benjamin Erichson, Vinicius Mikuni, Dongwei Lyu, Yang Gao, Omri Azencot, Soon Hoe Lim, Michael W. Mahoney
TL;DR
FLEX tackles the challenge of modeling high-dimensional spatio-temporal physical systems with diffusion, introducing a residual-space, velocity-parametrized diffusion backbone that embeds a latent Transformer within a U-Net. It achieves hierarchical conditioning via a task-specific encoder, enabling both weak and strong conditioning to balance diversity and fidelity. Theoretical analysis indicates residual-space initialization reduces the variance of the optimal velocity field, improving stability, while experiments on 2048×2048 2D turbulence demonstrate state-of-the-art super-resolution and forecasting with calibrated uncertainty and zero-shot generalization to unseen observables and boundary conditions. Overall, FLEX provides a scalable, uncertainty-aware framework that integrates global context modeling with local detail for physics-guided generative modeling of complex flows.
Abstract
We introduce FLEX (FLow EXpert), a backbone architecture for generative modeling of spatio-temporal physical systems using diffusion models. FLEX operates in the residual space rather than on raw data, a modeling choice that we motivate theoretically, showing that it reduces the variance of the velocity field in the diffusion model, which helps stabilize training. FLEX integrates a latent Transformer into a U-Net with standard convolutional ResNet layers and incorporates a redesigned skip connection scheme. This hybrid design enables the model to capture both local spatial detail and long-range dependencies in latent space. To improve spatio-temporal conditioning, FLEX uses a task-specific encoder that processes auxiliary inputs such as coarse or past snapshots. Weak conditioning is applied to the shared encoder via skip connections to promote generalization, while strong conditioning is applied to the decoder through both skip and bottleneck features to ensure reconstruction fidelity. FLEX achieves accurate predictions for super-resolution and forecasting tasks using as few as two reverse diffusion steps. It also produces calibrated uncertainty estimates through sampling. Evaluations on high-resolution 2D turbulence data show that FLEX outperforms strong baselines and generalizes to out-of-distribution settings, including unseen Reynolds numbers, physical observables (e.g., fluid flow velocity fields), and boundary conditions.
