Flow Marching Transformer for PDEs
- The paper introduces FMT as a generative PDE backbone that couples diffusion forcing with latent flow matching to reduce long-term rollout drift.
- FMT is built with a SiT-style transformer using AdaLN-Zero and leverages a multi-scale latent temporal pyramid from a physics-pretrained VAE for efficient temporal conditioning.
- Empirical results show FMT achieves up to 15× throughput gains and improved few-shot adaptation on turbulent PDE simulations compared to deterministic models.
Searching arXiv for the specified paper and closely related work to ground the article. arxiv_search: query="1(Chen et al., 23 Sep 2025) OR \1"Flow marching for a generative PDE foundation model\""
Flow Marching Transformer (FMT) is the core neural backbone introduced in “Flow marching for a generative PDE foundation model” for generative modeling of PDE-governed spatiotemporal dynamics (&&&1(Chen et al., 23 Sep 2025) OR \1&&&). Within the broader Flow Marching framework, FMT implements the conditional flow-marching velocity field PRESERVED_PLACEHOLDER_1(Chen et al., 23 Sep 2025) OR \1^ that transports a noisy latent state toward its clean successor, thereby coupling neural operator learning with flow matching. The model operates on latent embeddings produced by a Physics-Pretrained Variational Autoencoder (P2VAE), combines a diffusion-forcing history filter with a multi-scale latent temporal pyramid, and is trained on a corpus of approximately trajectories spanning 12 distinct PDE families. Its stated purpose is to reduce long-term rollout drift while enabling uncertainty-aware ensemble generation, in contrast to deterministic Transformer-based PDE foundation models that lack generative flexibility (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
1. Functional role in the Flow Marching framework
FMT occupies the predictive core of the Flow Marching pipeline. The P2VAE first maps each physical frame to a latent grid . For a block of four consecutive times , noisy latent states are constructed, passed through a small GRU or RNN with parameters , and summarized into history codes that serve as the “diffusion-forcing” state. FMT then processes the multi-scale latent tokens together with temporal conditioning and the history summary to predict a preconditioned residual of the form
The model is therefore not a direct next-step regressor in the deterministic neural-operator sense. Instead, it learns a unified velocity field over jointly sampled physical time and noise level. In the formulation given for FMT, the transformer stack fuses noisy latent observations from several recent time points, while the RNN state provides a learned summary of prior dynamics. A plausible implication is that the model treats short-term state evolution and uncertainty transport as parts of a single conditional generative process rather than as separate forecasting and noise-injection stages (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
2. Flow-marching objective and diffusion-forcing formulation
For each physical step , Flow Marching samples
and constructs the noisy state
1(Chen et al., 23 Sep 2025) OR \1^
After P2VAE encoding, the analogous expression is used in latent space for 1.
The instantaneous ground-truth velocity is defined as
2
and the paper states the decomposition
3
To avoid feeding 4 into the network, the training rule adopts the simpler frame-interpolation target
5
Preconditioning near 6 yields the flow-marching objective
7
The diffusion-forcing filter updates the latent history according to
8
and the conditional objective becomes
9
A recurrent misconception would be to view 1(Chen et al., 23 Sep 2025) OR \1^ as an explicit conditioning variable required by the backbone. In the formulation used for FMT, the model is trained with noisy states generated from jointly sampled 1, but the prediction target is chosen so that the network need not receive 2 directly (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
3. Transformer architecture and conditioning pathway
FMT is described as a SiT-style transformer with AdaLN-Zero conditioning. Its inputs are the flattened noisy latents drawn from four pyramid scales corresponding to four consecutive time points. Positional and time embeddings for each 3 are added, and at each transformer layer the history code is injected through AdaLN-Zero. The implementation uses multi-head self-attention with FlashAttention v2, SwiGLU feed-forwards, and RMSNorm throughout.
The high-level execution sequence is fixed. First, the P2VAE encoder 4 maps physical states to latent grids. Second, noisy latent versions of adjacent states are formed using the sampled noise levels and Gaussian perturbations. Third, a small GRU or RNN consumes each noisy latent together with its sampled time to produce history codes. Fourth, the stacked latent-token sequence is processed by the transformer. Finally, the output token sequence is reassembled into a grid of the same shape as the most recent latent and linearly projected to the velocity field 5 (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
The model therefore combines two distinct forms of temporal conditioning: explicit tokenized latent context from recent frames and an implicit recurrent state summarizing the past. The paper states that all architectural modules follow standard implementations, and on that basis FMT is said to scale from 6 M to 138 M parameters with linear compute scaling (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
4. Latent temporal pyramids and the P2VAE interface
The latent temporal pyramid is central to FMT’s efficiency. The rationale given is that physics is often near-Markovian: recent frames matter more, while older frames can be processed more coarsely. For four consecutive latent frames 6, the construction is:
| Frame level | Spatial treatment | Role |
|---|---|---|
| Level 1(Chen et al., 23 Sep 2025) OR \1^ | Downsample 7 by factor 8 | Oldest coarse context |
| Level 1 | Downsample 8 by factor 4 | Intermediate context |
| Level 2 | Downsample 9 by factor 2 | Recent context |
| Level 3 | Use 1(Chen et al., 23 Sep 2025) OR \1^ at full latent resolution | Current detailed state |
These token sets are stacked along the sequence dimension, augmented with time embeddings, and passed into the transformer. Self-attention then fuses information across all pyramid scales, allowing the model to route fine-scale information from the most recent state while retaining coarse summaries of earlier states. A plausible implication is that FMT reallocates attention budget toward the temporally local information most relevant for near-Markovian dynamics.
The P2VAE provides the latent space in which FMT operates. The encoder-decoder pair is
1
with a latent downscaling of 2 and channel compression 3. The VAE is pretrained using the ELBO-style loss
4
with 5 during P2VAE pretraining. Once these weights are frozen, every physical state 6 is replaced by its latent 7, and the paper states that FMT then sees only sequences of latent states, reducing memory and compute by approximately 8 (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
5. Training regime and sampling procedures
Training is organized in two stages. First, the P2VAE is pretrained for 11(Chen et al., 23 Sep 2025) OR \1(Chen et al., 23 Sep 2025) OR \1k steps to minimize 9. Second, the P2VAE is frozen and FMT together with the diffusion-forcing RNN is trained for 11(Chen et al., 23 Sep 2025) OR \1(Chen et al., 23 Sep 2025) OR \1k steps to minimize 1(Chen et al., 23 Sep 2025) OR \1. For joint fine-tuning on a new system, the total loss is
1
with a stop-gradient placed on 2 to preserve the VAE (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
For deterministic long-term rollouts, sampling follows a probability-flow ODE. Given a clean history 3 from 4, the current step sets 5 so that no initial-condition noise is injected. The procedure initializes 6 and 7, then iterates for 8 with 9:
1(Chen et al., 23 Sep 2025) OR \1^
The resulting terminal state approximates 1. The paper states that this procedure exactly integrates the continuity equation and is numerically stable.
For aleatoric uncertainty, the model uses the reverse-time SDE adapted from PF-ODE:
2
discretized by Euler–Maruyama. Here 3 controls the noise amplitude. A separate initial-condition uncertainty control is provided by setting 4 only at the final step while keeping the history clean. The paper explicitly states that ensembles generated by varying 5 isolate initial-condition uncertainty from aleatoric noise (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
6. Computational profile, benchmarks, and interpretation
The efficiency claim for FMT is derived from its pyramid attention structure. A naive 4-frame video model with 256 tokens per frame incurs attention cost of order 6 per layer. FMT instead uses token counts corresponding to the four pyramid resolutions, with
7
in place of
8
The stated efficiency gain is
9
Empirically, the paper reports that FMT attains up to 1(Chen et al., 23 Sep 2025) OR \1^ throughput increase compared to a bi-directional self-attention video-diffusion baseline (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
The reported downstream results include few-shot adaptation on unseen Kolmogorov turbulence at 1. With only 5k finetune steps, the model yields 2 relative error 3 and 4, whereas training from scratch under the same budget gives 5. For long-term rollout on PDEArena–NS and PDEBench–CNS–Low/High, FMT-B with 42 M parameters is reported to outperform VICON-88 M uniformly; on PA-NS at step 11(Chen et al., 23 Sep 2025) OR \1, the average L2RE is 1(Chen et al., 23 Sep 2025) OR \1.2234 versus 1(Chen et al., 23 Sep 2025) OR \1.3618. The uncertainty-stratified ensembles are described as showing coherent spreads as 6 or 7 vary, without spurious artifacts (&&&1(Chen et al., 23 Sep 2025) OR \1&&&).
These results frame FMT as a generative PDE foundation-model backbone rather than a conventional deterministic sequence predictor. A common misunderstanding would be to classify it as a full-length video diffusion model. The paper instead characterizes it as a flow-matching model in latent space, equipped with diffusion forcing and temporal pyramids, and designed specifically to support stable rollouts and uncertainty-aware ensemble generation in PDE settings.