arXiv:2610.20369cs.LGOct 2026

Manuscript Offprint

arXiv:2610.20369

ReAl: Refine neural operators via aligning dynamical flow

Jing Xu, Zenglin Xu, Li Yi, Ruoxi Jiang, Yuan Qi

ABSTRACT

Neural partial differential equation (PDE) surrogates trained with mean squared error (MSE) can capture dominant dynamics but often lose high-frequency information and fine-scale structures. Generative models (e.g., Flow Matching) can capture the distribution of fine-scale details, yet stochastic errors may accumulate during autoregressive rollouts and compromise long-term stability. To address these limitations, we introduce Refine and Align (ReAI), a model-agnostic plug-in that augments pretrained PDE surrogates to improve the reconstruction of high-frequency structures associated with complex physical phenomena. In the refinement stage, a conditional flow-matching model learns the residual distribution around the deterministic base prediction, recovering missing fine-scale structures while retaining the dominant dynamics. In the alignment stage, to mitigate the generative discrepancies amplified in the autoregressive rollout, particularly in chaotic systems, we generate multiple trajectories from the same input and reinforce the refiner with trajectory-level rewards, thereby achieving long-horizon dynamical alignment. Experiments across diverse surrogate architectures and PDE tasks demonstrate that ReAI consistently improves high-frequency fidelity, forecasting accuracy, and long-horizon stability.

1 INTRODUCTION

Partial differential equations (PDEs) are fundamental to modeling physical systems across fluid mechanics (Davidson, 2004), heat and mass transfer (Bergman, 2011), electromagnetics (Schwinger et al., 1998), and chemical diffusion (Crank, 1979). Classical finite-difference (Morton & Mayers, 1994) and finite-element methods (Hughes, 2003) provide reliable solutions, but their computational costs grow rapidly with spatial resolution, dimensionality, and parameter-space size. This limitation has driven the development of deep-learning-based PDE surrogates and neural operators, including DeepONet (Lu et al., 2021), the Fourier Neural Operator (Li et al., 2020), and the Physics-Informed Neural Operator (Goswami et al., 2023). By approximating PDE solution operators, these methods enable substantially faster inference for large-scale simulation and real-time scientific prediction.

Most deep-learning-based PDE surrogates are trained with mean squared error (MSE) objective, which provides stable optimization and effectively captures large-scale, low-frequency dynamics. However, as a mean-regression objective, MSE tends to suppress high-frequency information, local vortices, and sharp interfaces (Lippe et al., 2023; Fotiadis et al., 2025), particularly on real-world datasets such as RealPDEBench (Hu et al., 2026), where measurement noise and unresolved physical processes further complicate the underlying dynamics. Generative models (Ho et al., 2020; Rombach et al., 2022; Lipman et al., 2023) can alleviate this limitation by modeling the conditional distribution of PDE solutions instead of producing only one deterministic prediction, enabling richer high-frequency details (Yao et al., 2026; Utkarsh et al., 2026; Hu et al., 2025). However, stochastic sampling may introduce predictive variance and compromise the dynamical consistency and long-term stability required by deterministic PDE systems.

Motivated by these observations, we adopt a complementary modeling strategy: retain the MSE-trained surrogate as a stable predictor of dominant dynamics and apply a conditional flow-based refiner to its output. Rather than regenerating the entire PDE state, the refiner is conditioned on

Figure

(a) Necessity of refinement

Figure

(b) Necessity of alignment

Figure 1: (a) MSE training leads to high-frequency information loss, while stochastic refiner recovers the structures. (b) Sampling variability accumulates during stochastic autoregressive rollout, especially in the high-frequency regime. Our ReAI mitigates this accumulation of sampling variability.

the base prediction and learns to generate its fine-scale residual correction (Fotiadis et al., 2025). As shown in Fig.1 (a), this strategy recovers high-frequency information lost by MSE training while preserving low-frequency dynamics consistent in PDE predictions. Despite these benefits, a generative refiner can only partially mitigate the rollout shift rather than completely eliminate it. Stochastic perturbations can accumulate during autoregressive rollout, creating a gap between recovering fine-scale structures at individual steps and maintaining forecasting accuracy over the resulting trajectory (Luo, 2025; Yoo et al., 2026). As shown in Fig.1 (b), the base model preserves low-frequency dynamics over longer horizons, while high-frequency errors progressively accumulate and amplify, degrading long-term stability and physical consistency.

These observations motivate optimizing the refiner beyond individual prediction quality by accounting for its cumulative effect on the entire autoregressive trajectory. To this end, inspired by reinforcement learning for diffusion models (Liu et al., 2025; Zheng et al., 2026), we introduce trajectory-alignment post-training for the flow-based refiner. Starting from the same input state, we sample multiple autoregressive trajectories using independent random seeds and evaluate their long-term quality with trajectory-level rewards. These rewards guide flow-matching updates to the same refiner, favoring refinements that yield accurate long-horizon forecasts. This extends the optimization target from one-step accuracy to long-term trajectory quality without sacrificing the refiner's ability to recover fine-scale structures. Our main contributions are summarized as follows:

• We propose Refine and Align (ReAI), a lightweight, model-agnostic PDE forecasting plug-in based on Flow Matching. ReAI addresses the loss of high-frequency information and fine-scale structures commonly observed in MSE-pretrained surrogates on real-world data, refining their predictions without modifying the underlying architectures.

• To the best of our knowledge, we are the first to post-train long-term autoregressive PDE trajectories from a reinforcement learning perspective. ReAI samples multiple stochastic rollouts from the same initial state and optimizes the Flow refiner with trajectory-level rewards, aligning local residual corrections with long-term dynamical evolution.

• Extensive experiments demonstrate that ReAI improves both prediction accuracy and long-term stability. Compared with the base models, it reduces the average RMSE by 34.3% at the 1-st rollout step and by 45.4% at the 20-th step, with larger gains over longer horizons on RealPDEBench. ReAI also recovers high-frequency physical structures, suppresses long-term error accumulation, and mitigates numerical dissipation.

References (41)