Least-Action-Guided Diffusion for Physical Extrapolation
Summary
Introduces LAPG, a diffusion framework guided by the principle of least action to improve physical consistency during inference for out-of-distribution extrapolation tasks in physics.
View Cached Full Text
Cached at: 06/11/26, 01:46 PM
# Least-Action-Guided Diffusion for Physical Extrapolation
Source: [https://arxiv.org/html/2606.11277](https://arxiv.org/html/2606.11277)
[![[Uncaptioned image]](https://arxiv.org/html/2606.11277v1/x1.png)Zhongxin Yang](https://orcid.org/0009-0003-7898-7511)1 1College of Engineering, Peking University, Beijing 100871, China &[![[Uncaptioned image]](https://arxiv.org/html/2606.11277v1/x2.png)Yuanwei Bin](https://orcid.org/0000-0001-7722-7885)2,3,5 2Ningbo Institute for Digital Twin, Eastern Institute of Technology, Ningbo 315200, Zhejiang, China 3Eastern Institute for Advanced Study, Eastern Institute of Technology, Ningbo 315200, Zhejiang, China 5Shenzhen Tenfong Technology Co\., Ltd\., Shenzhen 518000, Guangdong, China ybin@eitech\.edu\.cn &[![[Uncaptioned image]](https://arxiv.org/html/2606.11277v1/x3.png)Xiang I\. A\. Yang](https://orcid.org/0000-0003-4940-5976)4 4Mechanical Engineering, The Pennsylvania State University, University Park, PA 16802, USA &[![[Uncaptioned image]](https://arxiv.org/html/2606.11277v1/x4.png)Shiyi Chen](https://orcid.org/0000-0002-2913-4497)2,3 2Ningbo Institute for Digital Twin, Eastern Institute of Technology, Ningbo 315200, Zhejiang, China 3Eastern Institute for Advanced Study, Eastern Institute of Technology, Ningbo 315200, Zhejiang, China
###### Abstract
Reliable extrapolation remains a central challenge for generative models in computational physics, because models trained over finite ranges of time, parameters, or geometries may produce physically inconsistent predictions outside the training distribution\. We introduce a least\-action\-principle\-guided diffusion, LAPG, a framework that promotes physical consistency during inference rather than relying solely on constraints imposed during training\. The method combines a conditional score\-based diffusion model with an action\-derived physical guidance score\. In the first stage, the learned score model generates an in\-distribution proposal; in the second, an action\-based variational prior refines this proposal toward the target out\-of\-distribution condition\. This formulation turns the principle of least action into a differentiable inference\-time correction mechanism and provides an alternative to pointwise residual penalties that often require empirical loss balancing\.
We evaluate LAPG on representative ordinary\- and partial\-differential\-equation systems, including free fall, conservative and dissipative spring–mass dynamics, interacting point vortices, and potential flow over parameterized airfoils\. In temporal, parameter, and geometric extrapolation tests, LAPG reduces phase drift, preserves dissipative decay, captures vortex motion, and improves the lift response of airfoil flows compared with training\-time physics\-informed baselines\.
## 1Introduction
Machine learning is increasingly becoming a computational tool for modeling, prediction, and design in the physical sciencesCarleoet al\.\([2019](https://arxiv.org/html/2606.11277#bib.bib35)\); Bruntonet al\.\([2020](https://arxiv.org/html/2606.11277#bib.bib43)\); Wanget al\.\([2023](https://arxiv.org/html/2606.11277#bib.bib36)\)\. In computational physics, machine\-learned models are often expected to serve not merely as interpolants of existing simulation data, but as efficient surrogates that can explore new parameter regimes, extend trajectories beyond observed time windows, and support design under changing physical conditions\. This expectation imposes a stringent generalization requirement: useful models must remain physically reliable outside the distributions on which they were trained\. However, such physical extrapolation remains a central difficulty for data\-driven methods, especially when the target regime involves long\-time evolution, unseen system parameters, or geometries absent from the training set\.
Among recent generative approaches, diffusion models have emerged as particularly powerful tools for learning high\-dimensional probability distributionsSohl\-Dicksteinet al\.\([2015](https://arxiv.org/html/2606.11277#bib.bib47)\); Hoet al\.\([2020](https://arxiv.org/html/2606.11277#bib.bib48)\); Song and Ermon \([2019](https://arxiv.org/html/2606.11277#bib.bib49)\); Songet al\.\([2020](https://arxiv.org/html/2606.11277#bib.bib57)\)\. By learning the score of progressively noise\-perturbed data distributions, these models define samplers that have achieved strong performance in image synthesis and are now being adapted to scientific and engineering problems\. In physical systems, diffusion models have been used to generate complex fields and trajectories, including turbulent flows, Lagrangian particle statistics, and spatiotemporal neural fieldsLiet al\.\([2024](https://arxiv.org/html/2606.11277#bib.bib52)\); Duet al\.\([2024](https://arxiv.org/html/2606.11277#bib.bib53)\); Gaoet al\.\([2024](https://arxiv.org/html/2606.11277#bib.bib42)\)\. These applications suggest that diffusion models can serve as data\-driven generators for complex physical systems when repeated high\-fidelity sampling is expensive\.
Despite these advantages, diffusion models inherit a fundamental limitation of data\-driven learning: the learned score is constrained primarily in the training distribution\. When the target condition lies outside the training distribution, the reverse\-time sampler follows a neural\-network extrapolation of the learned score rather than a physical law\. This difficulty is consistent with broader observations that neural networks can extrapolate unreliably outside the training distribution and that data\-driven neural operators may suffer large errors when deployed beyond the support of the training setXuet al\.\([2021](https://arxiv.org/html/2606.11277#bib.bib62)\); Zhuet al\.\([2023](https://arxiv.org/html/2606.11277#bib.bib63)\)\. For physical systems, such errors are especially consequential: a generated sample may remain statistically plausible while developing phase drift in long\-time trajectoriesLinotet al\.\([2023](https://arxiv.org/html/2606.11277#bib.bib64)\), incorrect amplitudes under parameter shiftsZhuet al\.\([2023](https://arxiv.org/html/2606.11277#bib.bib63)\), violation of invariants or boundary conditionsGreydanuset al\.\([2019](https://arxiv.org/html/2606.11277#bib.bib44)\); Krishnapriyanet al\.\([2021](https://arxiv.org/html/2606.11277#bib.bib65)\); Basteket al\.\([2025](https://arxiv.org/html/2606.11277#bib.bib66)\), or distorted flow patterns for unseen geometriesBhatnagaret al\.\([2019](https://arxiv.org/html/2606.11277#bib.bib68)\)\. Thus, out\-of\-distribution \(OOD\) failure in physical generation is not only a loss of predictive accuracy, but also a loss of physical consistency during inference\.
A major line of work addresses this issue by incorporating physical structure into learning\. Physics\-informed neural networks \(PINNs\) enforce governing equations by penalizing differential\-equation residuals, initial conditions, and boundary conditions during trainingRaissiet al\.\([2019](https://arxiv.org/html/2606.11277#bib.bib78)\)\. Related approaches embed physical inductive biases more directly into the model architecture, for example through Hamiltonian or Lagrangian neural networks for dynamical systemsGreydanuset al\.\([2019](https://arxiv.org/html/2606.11277#bib.bib44)\); Cranmeret al\.\([2020](https://arxiv.org/html/2606.11277#bib.bib45)\), symmetry\- or equivariance\-preserving networksSatorraset al\.\([2021](https://arxiv.org/html/2606.11277#bib.bib46)\); Ottoet al\.\([2023](https://arxiv.org/html/2606.11277#bib.bib61)\), and physics\-informed generative models that regularize diffusion training with physical residualsBasteket al\.\([2025](https://arxiv.org/html/2606.11277#bib.bib66)\)\. These methods have significantly improved data efficiency and in\-distribution physical fidelity, showing that physical knowledge can be a powerful constraint on learned models\.
Nevertheless, most existing physics\-informed strategies impose physical knowledge during model construction or training, often through soft penalty terms or architectural constraintsRaissiet al\.\([2019](https://arxiv.org/html/2606.11277#bib.bib78)\); Karniadakiset al\.\([2021](https://arxiv.org/html/2606.11277#bib.bib77)\); Wanget al\.\([2021](https://arxiv.org/html/2606.11277#bib.bib81)\); Basteket al\.\([2025](https://arxiv.org/html/2606.11277#bib.bib66)\); Caoet al\.\([2024](https://arxiv.org/html/2606.11277#bib.bib85),[2025](https://arxiv.org/html/2606.11277#bib.bib87)\)\. After training, the model parameters are fixed, and extrapolative prediction still depends on how the learned map or score behaves outside the training domain\. This motivates a complementary strategy: instead of enforcing physics only while learning the model, one may use physical principles directly during generation to guide each inference sample toward a physically consistent state\.
In this work, we propose a least\-action\-principle\-guided \(LAPG\) diffusion framework that enforces physical consistency at inference time\. The method separates generation into two stages\. First, a conditional score\-based diffusion model is used to generate a physically plausible sample under an in\-distribution condition\. Second, the sample is refined toward the desired target condition by a physical guidance score\. In this way, the learned score model provides a data\-informed proposal, while the action\-derived score supplies an inference\-time correction that is not limited to the training distribution\. The resulting sampler actively steers each generated trajectory or field toward physical consistency during generation, rather than relying solely on physical regularization imposed during training\.
Although the least\-action principle is most familiar in conservative Hamiltonian mechanics, the present method does not require the system to be conservative in this narrow sense\. LAPG only requires a scalar variational functional whose stationary points or minimizers characterize physically admissible trajectories or fields\. For dissipative dynamics, such functionals can be obtained by augmenting the conservative action with dissipation potentials, as in Rayleigh or Lagrange–d’Alembert formulationsGoldsteinet al\.\([1980](https://arxiv.org/html/2606.11277#bib.bib60)\)\. For fluid systems, action\-like minimization principles have also been developed from variational formulations of vortex dynamics and from Gauss’ principle of least constraint for incompressible flowsKhalifa and Taha \([2024](https://arxiv.org/html/2606.11277#bib.bib59)\); Tahaet al\.\([2023](https://arxiv.org/html/2606.11277#bib.bib58)\)\. These examples allow the same inference\-time guidance strategy to be applied to conservative, dissipative, and PDE\-governed systems within a unified variational framework\.
The contribution of this work is threefold\. First, we define an action\-residual score that can refine diffusion samples after the learned reverse process\. Second, we apply the idea to phase\-space trajectories and airfoil flow fields\. Third, we evaluate the method under temporal, parameter, and geometry shifts and compare it with PINN\-type baselines\.
The remainder of this paper is organized as follows\. Section[2](https://arxiv.org/html/2606.11277#S2)introduces the LAPG formulation, including score\-based diffusion and the action\-derived physical prior\. Section[3](https://arxiv.org/html/2606.11277#S3)describes the benchmark systems, diffusion model architecture, and baseline model\. Section[4](https://arxiv.org/html/2606.11277#S4)presents the extrapolation results\. Section[5](https://arxiv.org/html/2606.11277#S5)summarizes the findings and discusses limitations and future extensions\.
## 2Methodology
We consider a family of physical systems specified by a condition vector𝒄\\bm\{c\}, which may contain physical parameters, initial or boundary conditions, geometric representations, or mesh information\. For each condition, the objective is to generate a physically admissible state𝐗\{\\bf X\}\. For the dynamical systems considered below,𝐗\{\\bf X\}denotes a discretized phase\-space trajectory; for the airfoil\-flow problems, it represents a discretized flow field\. The training data are drawn from conditions𝒄∈𝒞train\\bm\{c\}\\in\\mathcal\{C\}\_\{\\rm train\}, while the target condition may lie outside this training distribution\.
We build on score\-based diffusion modelingSonget al\.\([2020](https://arxiv.org/html/2606.11277#bib.bib57)\), where a forward stochastic process gradually perturbs data𝐗0\{\\bf X\}\_\{0\}into noise over a pseudo\-time variableτ\\tau\. Given clean data𝐗0∼p0\(𝐗\|𝒄\)\{\\bf X\}\_\{0\}\\sim p\_\{0\}\(\{\\bf X\}\|\\bm\{c\}\), the forward process defines a family of perturbed conditional distributionspστ\(𝐗τ\|𝒄\)p\_\{\\sigma\_\{\\tau\}\}\(\{\\bf X\}\_\{\\tau\}\|\\bm\{c\}\)indexed by the noise levelστ≐σ\(τ\)\\sigma\_\{\\tau\}\\doteq\\sigma\(\\tau\)\. The forward process is described by the stochastic differential equation \(SDE\):
d𝐗τ=𝐟dτ\+g\(τ\)d𝐰τ,τ∈\[0,T\],d\{\\bf X\}\_\{\\tau\}=\{\\bf f\}d\\tau\+g\(\\tau\)d\{\\bf w\}\_\{\\tau\},\\qquad\\tau\\in\[0,T\],\(1\)where𝐟\{\\bf f\}is the drift coefficient,ggis the diffusion coefficient, and𝐰τ\{\\bf w\}\_\{\\tau\}is a standard Wiener process\. In this work, we use the variance\-exploding SDE \(VESDE\), for which𝐟=0\{\\bf f\}=0and
g\(τ\)=dσ2\(τ\)dτ,σ\(τ\)=σmin\(σmaxσmin\)τ/T\.g\(\\tau\)=\\sqrt\{\\frac\{d\\sigma^\{2\}\(\\tau\)\}\{d\\tau\}\},\\qquad\\sigma\(\\tau\)=\\sigma\_\{\\min\}\\left\(\\frac\{\\sigma\_\{\\max\}\}\{\\sigma\_\{\\min\}\}\\right\)^\{\\tau/T\}\.\(2\)Here,TTis the terminal diffusion time, whileσmin\\sigma\_\{\\min\}andσmax\\sigma\_\{\\max\}are the minimum and maximum noise levels used in the forward noising process\. In all benchmarks the state variables are normalized before score\-model training\. We therefore use a fixed VESDE noise range,σmin=0\.01\\sigma\_\{\\min\}=0\.01andσmax=50\.0\\sigma\_\{\\max\}=50\.0, for all systems, following the standard score\-based diffusion setupSonget al\.\([2020](https://arxiv.org/html/2606.11277#bib.bib57)\)\. These values were not tuned separately on OOD validation cases\. The choice makes the smallest perturbation much smaller than the normalized data scale, while the largest perturbation is large enough that the terminal distribution is effectively Gaussian noise\. For this VESDE, the corresponding perturbation kernel is Gaussian,
p\(𝐗τ\|𝐗0\)=𝒩\(𝐗τ;𝐗0,σ2\(τ\)𝐈\),p\(\{\\bf X\}\_\{\\tau\}\|\{\\bf X\}\_\{0\}\)=\\mathcal\{N\}\\left\(\{\\bf X\}\_\{\\tau\};\{\\bf X\}\_\{0\},\\sigma^\{2\}\(\\tau\)\{\\bf I\}\\right\),\(3\)so that a noisy sample can be written as𝐗τ=𝐗0\+σ\(τ\)𝒛\{\\bf X\}\_\{\\tau\}=\{\\bf X\}\_\{0\}\+\\sigma\(\\tau\)\\bm\{z\}, with𝒛∼𝒩\(𝟎,𝐈\)\\bm\{z\}\\sim\\mathcal\{N\}\(\{\\bf 0\},\{\\bf I\}\)\.
The reverse process is governed by the corresponding score
s\(𝐗τ,στ;𝒄\)≡∇𝐗τlogpστ\(𝐗τ\|𝒄\)\.s\(\{\\bf X\}\_\{\\tau\},\\sigma\_\{\\tau\};\\bm\{c\}\)\\equiv\\nabla\_\{\{\\bf X\}\_\{\\tau\}\}\\log p\_\{\\sigma\_\{\\tau\}\}\(\{\\bf X\}\_\{\\tau\}\|\\bm\{c\}\)\.\(4\)This score is the gradient of the log\-density of the perturbed conditional distribution\. When known, the score provides the denoising direction of the perturbed data distribution\. Since this score is not available analytically for the physical datasets considered here, we approximate it by a neural networkSθ\(𝐗τ,στ;𝒄\)S\_\{\\theta\}\(\{\\bf X\}\_\{\\tau\},\\sigma\_\{\\tau\};\\bm\{c\}\), whereθ\\thetadenotes the trainable network parameters, and train this network by denoising score matching:
ℒ\(θ\)=𝔼τ,𝐗0,𝒛\[λ\(τ\)‖Sθ\(𝐗0\+σ\(τ\)𝒛,σ\(τ\);𝒄\)\+𝒛σ\(τ\)‖22\]\.\\mathcal\{L\}\(\\theta\)=\\mathbb\{E\}\_\{\\tau,\{\\bf X\}\_\{0\},\\bm\{z\}\}\\left\[\\lambda\(\\tau\)\\left\\\|S\_\{\\theta\}\(\{\\bf X\}\_\{0\}\+\\sigma\(\\tau\)\\bm\{z\},\\sigma\(\\tau\);\\bm\{c\}\)\+\\frac\{\\bm\{z\}\}\{\\sigma\(\\tau\)\}\\right\\\|\_\{2\}^\{2\}\\right\]\.\(5\)For the VESDE, we use the standard weightingλ\(τ\)=σ2\(τ\)\\lambda\(\\tau\)=\\sigma^\{2\}\(\\tau\)\. In Eq\. \([5](https://arxiv.org/html/2606.11277#S2.E5)\),τ\\tauis sampled uniformly from\[0,T\]\[0,T\]\. Becauseσ\(τ\)\\sigma\(\\tau\)follows the exponential VE schedule in Eq\. \([2](https://arxiv.org/html/2606.11277#S2.E2)\), uniform sampling inτ\\tauis equivalent to uniform sampling inlogσ\\log\\sigmabetweenlogσmin\\log\\sigma\_\{\\min\}andlogσmax\\log\\sigma\_\{\\max\}\. This schedule is used for all benchmarks\. After training, the optimized parameters are denoted byθ∗\\theta^\{\\ast\}\.
At inference time, standard score\-based generation integrates the reverse\-time SDE from noise to dataSonget al\.\([2020](https://arxiv.org/html/2606.11277#bib.bib57)\); Anderson \([1982](https://arxiv.org/html/2606.11277#bib.bib71)\)\. In the present work, we augment this reverse process with an additional physical guidance term:
d𝐗τ=\[𝐟−g2Sθ∗\(𝐗τ,στ;𝒄′\)\]dτ\+gd𝐰¯τ−ηH\(−τ\)∇𝐗τlogps\(𝐗τ\|𝒄\)dτ\.d\{\\bf X\}\_\{\\tau\}=\[\{\\bf f\}\-g^\{2\}S\_\{\\theta^\{\\ast\}\}\(\{\\bf X\}\_\{\\tau\},\\sigma\_\{\\tau\};\\bm\{c\}^\{\\prime\}\)\]d\\tau\+g\\,d\\bar\{\\bf w\}\_\{\\tau\}\\boxed\{\-\\eta\\,H\(\-\\tau\)\\,\\nabla\_\{\{\\bf X\}\_\{\\tau\}\}\\log p\_\{s\}\(\{\\bf X\}\_\{\\tau\}\|\\bm\{c\}\)\\,d\\tau\}\.\(6\)Here,η\\etacontrols the strength of the physical guidance\. In our implementation,η\\etais not treated as an additional benchmark\-dependent tuning parameter\. After the physical prior is nondimensionalized, the productηΔτ\\eta\\Delta\\tauin the refinement stage is absorbed into the optimizer learning rate used for physical refinement\. The condition𝒄\\bm\{c\}denotes the desired target condition, which may lie outside the training distribution\. Because the learned score model is trained only on𝒞train\\mathcal\{C\}\_\{\\rm train\}, we do not require it to extrapolate directly to𝒄\\bm\{c\}\. Instead, we evaluate the learned score at the closest in\-distribution condition
𝒄′=argmin𝒄^∈𝒞traind\(𝒄,𝒄^\),\\bm\{c\}^\{\\prime\}=\\operatorname\*\{argmin\}\_\{\\hat\{\\bm\{c\}\}\\in\\mathcal\{C\}\_\{\\rm train\}\}d\(\\bm\{c\},\\hat\{\\bm\{c\}\}\),\(7\)whered\(⋅,⋅\)d\(\\cdot,\\cdot\)denotes a distance metric in the normalized condition space; in this work we use the Euclidean distance, although other problem\-specific metrics may also be used\.
The extension of the pseudo\-time variableτ\\tauto negative values is an algorithmic device\. It marks the transition from data\-guided sampling to physics\-guided refinement\. The Heaviside factorH\(−τ\)H\(\-\\tau\)implements this switch in Eq\. \([6](https://arxiv.org/html/2606.11277#S2.E6)\)\. Forτ\>0\\tau\>0, the physical guidance is inactive and the sampler follows the learned scoreSθ∗\(𝐗τ,στ;𝒄′\)S\_\{\\theta^\{\\ast\}\}\(\{\\bf X\}\_\{\\tau\},\\sigma\_\{\\tau\};\\bm\{c\}^\{\\prime\}\), producing a high\-probability proposal under the training distribution\. Forτ≤0\\tau\\leq 0, the stochastic data\-generation stage is followed by a physical refinement stage in which the action\-derived score is activated\. During this second stage, the noise term is removed and the update becomes an optimization of the generated state:
𝐗τ−Δτ=𝐗τ\+\(ηΔτ\)∇𝐗τlogps\(𝐗τ\|𝒄\),\{\\bf X\}\_\{\\tau\-\\Delta\\tau\}=\{\\bf X\}\_\{\\tau\}\+\(\\eta\\Delta\\tau\)\\nabla\_\{\{\\bf X\}\_\{\\tau\}\}\\log p\_\{s\}\(\{\\bf X\}\_\{\\tau\}\|\\bm\{c\}\),\(8\)which gives the equivalent gradient\-ascent direction onlogps\\log p\_\{s\}\. The sign difference is due to the reverse\-time convention\. In Eq\. \([6](https://arxiv.org/html/2606.11277#S2.E6)\), the sampler is integrated from largerτ\\tautoward smallerτ\\tau, so the physical term\(ηΔτ\)∇𝐗τlogps\(\\eta\\Delta\\tau\)\\nabla\_\{\{\\bf X\}\_\{\\tau\}\}\\log p\_\{s\}contributes a positive displacement along∇𝐗τlogps\\nabla\_\{\{\\bf X\}\_\{\\tau\}\}\\log p\_\{s\}\. After switching to the refinement stage, the objective is written as maximizinglogps\\log p\_\{s\}\. In the implementation, however, we do not use a single explicit gradient\-descent step\. Instead, the generated state is treated as the optimization variable and updated with a gradient\-based optimizer such as Adam or stochastic gradient descent with momentum \(SGDM\)\. The optimizer, prescribed number of refinement iterations, and learning rate are specified in the experimental settings below\. The runs use these prescribed iteration counts; during refinement, the action\-variation residual is monitored and is regarded as converged when it no longer decreases appreciably\. Figure[1](https://arxiv.org/html/2606.11277#S2.F1)illustrates this two\-stage reverse\-time process\.
![[Uncaptioned image]](https://arxiv.org/html/2606.11277v1/x5.png)
Figure 1:Illustration of the reverse\-time two\-stage diffusion\. Sampling starts from a noise prior and is guided by the learned score forτ\>0\\tau\>0to produce an in\-distribution sample\. Atτ=0\\tau=0, a physics guidance term,∇𝐗τlogps\(𝐗τ\|𝒄\)\\nabla\_\{\{\\bf X\}\_\{\\tau\}\}\\log p\_\{s\}\(\{\\bf X\}\_\{\\tau\}\|\\bm\{c\}\), is switched on and guides the dynamics forτ<0\\tau<0to refine the sample toward the target condition outside the training distribution\.
The key component of LAPG is the physical priorps\(𝐗τ\|𝒄\)p\_\{s\}\(\{\\bf X\}\_\{\\tau\}\|\\bm\{c\}\)in Eq\. \([6](https://arxiv.org/html/2606.11277#S2.E6)\)\. We construct this prior from an action\-based variational functional\. Let𝒜\(𝐗;𝒄\)\\mathcal\{A\}\(\{\\bf X\};\\bm\{c\}\)denote an action or action\-like functional associated with the physical system\. A physically admissible trajectory or field corresponds to a stationary point, or in generalized formulations a minimizer, of this scalar functional\. Thus, the variation of the action provides a global measure of physical inconsistency over the entire generated trajectory or field\.
We convert this variational statement into a scalar “unphysicality” measure,
U\(𝐗τ;𝒄\)=\(δ𝒜~\(𝐗τ;𝒄\)σ𝒜\)2,U\(\{\\bf X\}\_\{\\tau\};\\bm\{c\}\)=\\left\(\\frac\{\\widetilde\{\\delta\\mathcal\{A\}\}\(\{\\bf X\}\_\{\\tau\};\\bm\{c\}\)\}\{\\sigma\_\{\\mathcal\{A\}\}\}\\right\)^\{2\},\(9\)whereδ𝒜~\\widetilde\{\\delta\\mathcal\{A\}\}is a numerical approximation of the action variation andσ𝒜\\sigma\_\{\\mathcal\{A\}\}rendersUUdimensionless\.σ𝒜\\sigma\_\{\\mathcal\{A\}\}is not computed from the dataset and is not a tuned scale\. It is introduced only as the reference unit of the action variation so that the residual enteringUUis dimensionless\. Therefore,σ𝒜\\sigma\_\{\\mathcal\{A\}\}removes the physical units ofδ𝒜~\\widetilde\{\\delta\\mathcal\{A\}\}but does not further change its numerical value\. The physical prior is then defined as
ps\(𝐗τ\|𝒄\)∝exp\[−U\(𝐗τ;𝒄\)\]\.p\_\{s\}\(\{\\bf X\}\_\{\\tau\}\|\\bm\{c\}\)\\propto\\exp\[\-U\(\{\\bf X\}\_\{\\tau\};\\bm\{c\}\)\]\.\(10\)States with small action variation are assigned high probability, whereas states with large action variation are exponentially suppressed\. Taking the gradient of the log\-prior yields the physical score
∇𝐗τlogps\(𝐗τ\|𝒄\)=−∇𝐗τU\(𝐗τ;𝒄\)\.\\nabla\_\{\{\\bf X\}\_\{\\tau\}\}\\log p\_\{s\}\(\{\\bf X\}\_\{\\tau\}\|\\bm\{c\}\)=\-\\nabla\_\{\{\\bf X\}\_\{\\tau\}\}U\(\{\\bf X\}\_\{\\tau\};\\bm\{c\}\)\.\(11\)This score gives the update direction used to reduce the action variation of the generated sample\.
The action variation is evaluated numerically during sampling\. For trajectory problems, the generated state is the full discretized path𝐗=\{𝒙0,…,𝒙N\}\{\\bf X\}=\\\{\\bm\{x\}\_\{0\},\\ldots,\\bm\{x\}\_\{N\}\\\}, where each𝒙i\\bm\{x\}\_\{i\}contains generalized coordinates and conjugate momenta\. We introduce a finite set of virtual perturbations
𝐗\(a\)=𝐗\+ϵ𝝃\(a\),a=1,…,R,\{\\bf X\}^\{\(a\)\}=\{\\bf X\}\+\\epsilon\\bm\{\\xi\}^\{\(a\)\},\\qquad a=1,\\ldots,R,\(12\)whereϵ\\epsilonis a small scalar and𝝃\(a\)\\bm\{\\xi\}^\{\(a\)\}is an admissible perturbation direction\. The quantityδ𝒜~\\widetilde\{\\delta\\mathcal\{A\}\}used here is a multi\-directional finite\-difference stationarity residual, not the mathematical variation\. A true stationary trajectory has zero first variation in every admissible direction; in practice we probe this condition with many prescribed admissible directions and penalize the mean squared directional residual\. The perturbation of the generalized coordinates is chosen to vanish at the endpoints, consistent with the variational principle, while the perturbation of the conjugate momenta is chosen according to the degrees of freedom of each system\. For each perturbation direction, the action variation is approximated by a finite difference,
Da𝒜\(𝐗;𝒄\)=𝒜\(𝐗\+ϵ𝝃\(a\);𝒄\)−𝒜\(𝐗;𝒄\)ϵ\.D\_\{a\}\\mathcal\{A\}\(\{\\bf X\};\\bm\{c\}\)=\\frac\{\\mathcal\{A\}\(\{\\bf X\}\+\\epsilon\\bm\{\\xi\}^\{\(a\)\};\\bm\{c\}\)\-\\mathcal\{A\}\(\{\\bf X\};\\bm\{c\}\)\}\{\\epsilon\}\.\(13\)The scalar residual used in Eq\. \([9](https://arxiv.org/html/2606.11277#S2.E9)\) is the root\-mean\-square value over all probed directions,
δ𝒜~\(𝐗;𝒄\)=\[1R∑a=1R\(Da𝒜\(𝐗;𝒄\)\)2\]1/2\.\\widetilde\{\\delta\\mathcal\{A\}\}\(\{\\bf X\};\\bm\{c\}\)=\\left\[\\frac\{1\}\{R\}\\sum\_\{a=1\}^\{R\}\\left\(D\_\{a\}\\mathcal\{A\}\(\{\\bf X\};\\bm\{c\}\)\\right\)^\{2\}\\right\]^\{1/2\}\.\(14\)The finite differences in Eq\. \([14](https://arxiv.org/html/2606.11277#S2.E14)\) are used only to form the scalar multi\-directional stationarity residualδ𝒜~\\widetilde\{\\delta\\mathcal\{A\}\}and hence the scalar unphysicalityUU\. The gradient in Eq\. \([11](https://arxiv.org/html/2606.11277#S2.E11)\) is then computed by automatic differentiation with respect to the generated state𝐗τ\{\\bf X\}\_\{\\tau\}\. We use automatic differentiation because the discrete action evaluations are composed of differentiable tensor operations, so the required gradient can be obtained directly\. For the airfoil\-flow problem, the same principle is applied to the variational degree of freedom controlling the potential\-flow solution\.
In this construction, the learned score and the physical score play complementary roles\. The learned score efficiently brings samples from noise to the neighborhood of the data manifold, while the action\-derived score enforces the target physical condition during inference\. The method therefore does not require retraining the diffusion model for each extrapolative target condition; instead, the action term is evaluated during generation\.
## 3Experiments
Table 1:Benchmark systems, action functionals, training domains, and test conditions\. Conditions in𝐛𝐨𝐥𝐝¯\\underline\{\\mathbf\{bold\}\}indicate temporal, parameter, or geometric extrapolation outside the training domain\. For potential flow past airfoils, the action functional and least\-action formulation follow Ref\.Tahaet al\.\([2023](https://arxiv.org/html/2606.11277#bib.bib58)\)\. Incompressibility and boundary conditions are enforced by restricting the admissible flow field to be divergence\-free and to satisfy no\-penetration at solid surfaces\. Quantities marked by\(⋅\)∗\(\\cdot\)^\{\*\}are nondimensionalized, and\[a,b\]n\[a,b\]\_\{n\}denotesnnsamples over the interval\[a,b\]\[a,b\]\.IDSystemAction𝒜\\mathcal\{A\}Training domainCaseTest conditionQ1Free fall∫p𝑑h−\(p22m\+mgh\)dt\\displaystyle\\int p\\,dh\-\\left\(\\frac\{p^\{2\}\}\{2m\}\+mgh\\right\)dtm∗=1m^\{\*\}=1;g∗∈\[5,15\]1000g^\{\*\}\\in\[5,15\]\_\{1000\};t∗∈\[0,2\]128t^\{\*\}\\in\[0,2\]\_\{128\}C1m∗=1m^\{\*\}=1,g∗=10g^\{\*\}=10,t∗∈\[𝟎,𝟒\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,4\]\}\}C2m∗=1m^\{\*\}=1,g∗=𝟐¯g^\{\*\}=\\underline\{\\mathbf\{2\}\},t∗∈\[𝟎,𝟒\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,4\]\}\}C3m∗=1m^\{\*\}=1,g∗=𝟑𝟎¯g^\{\*\}=\\underline\{\\mathbf\{30\}\},t∗∈\[𝟎,𝟒\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,4\]\}\}Q2Undampedspring–mass∫p𝑑q−\(p22m\+kq22\)dt\\displaystyle\\int p\\,dq\-\\left\(\\frac\{p^\{2\}\}\{2m\}\+\\frac\{kq^\{2\}\}\{2\}\\right\)dtm∗=1m^\{\*\}=1;q0∗,p0∗∈\[−1,1\]20q\_\{0\}^\{\*\},p\_\{0\}^\{\*\}\\in\[\-1,1\]\_\{20\};k∗∈\[0\.5,1\.5\]20k^\{\*\}\\in\[0\.5,1\.5\]\_\{20\};t∗∈\[0,T∗\]128t^\{\*\}\\in\[0,T^\{\*\}\]\_\{128\}C1m∗=1m^\{\*\}=1,q0∗=0q\_\{0\}^\{\*\}=0,p0∗=1p\_\{0\}^\{\*\}=1,k∗=1k^\{\*\}=1,t∗∈\[𝟎,𝟐𝐓∗\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,2T^\{\*\}\]\}\}C2m∗=1m^\{\*\}=1,q0∗=0q\_\{0\}^\{\*\}=0,p0∗=1p\_\{0\}^\{\*\}=1,k∗=𝟑¯k^\{\*\}=\\underline\{\\mathbf\{3\}\},t∗∈\[𝟎,𝟐𝐓∗\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,2T^\{\*\}\]\}\}C3m∗=𝟐¯m^\{\*\}=\\underline\{\\mathbf\{2\}\},q0∗=−𝟐¯q\_\{0\}^\{\*\}=\\underline\{\\mathbf\{\-2\}\},p0∗=1p\_\{0\}^\{\*\}=1,k∗=1k^\{\*\}=1,t∗∈\[𝟎,𝟐𝐓∗\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,2T^\{\*\}\]\}\}Q3Dampedspring–mass∫p𝑑q−\(p22m\+kq22\+∫μpm𝑑q\)dt\\displaystyle\\int p\\,dq\-\\left\(\\frac\{p^\{2\}\}\{2m\}\+\\frac\{kq^\{2\}\}\{2\}\+\\int\\mu\\frac\{p\}\{m\}\\,dq\\right\)dtm∗=1m^\{\*\}=1;q0∗∈\[0\.5,2\.0\]20q\_\{0\}^\{\*\}\\in\[0\.5,2\.0\]\_\{20\};p0∗=0p\_\{0\}^\{\*\}=0;k∗∈\[0\.5,1\.5\]20k^\{\*\}\\in\[0\.5,1\.5\]\_\{20\};μ∗∈\[1\.5,3\.0\]20\\mu^\{\*\}\\in\[1\.5,3\.0\]\_\{20\};t∗∈\[0,50\]2048t^\{\*\}\\in\[0,50\]\_\{2048\}C1m∗=1\.0m^\{\*\}=1\.0,q0∗=1q\_\{0\}^\{\*\}=1,p0∗=0p\_\{0\}^\{\*\}=0,k∗=1\.0k^\{\*\}=1\.0,μ∗=6\.0¯\\mu^\{\*\}=\\underline\{\\mathbf\{6\.0\}\},t∗∈\[0,50\]t^\{\*\}\\in\[0,50\]C2m∗=0\.1¯m^\{\*\}=\\underline\{\\mathbf\{0\.1\}\},q0∗=1q\_\{0\}^\{\*\}=1,p0∗=0p\_\{0\}^\{\*\}=0,k∗=0\.1¯k^\{\*\}=\\underline\{\\mathbf\{0\.1\}\},μ∗=0\.1¯\\mu^\{\*\}=\\underline\{\\mathbf\{0\.1\}\},t∗∈\[0,50\]t^\{\*\}\\in\[0,50\]C3m∗=0\.5¯m^\{\*\}=\\underline\{\\mathbf\{0\.5\}\},q0∗=𝟏𝟎¯q\_\{0\}^\{\*\}=\\underline\{\\mathbf\{10\}\},p0∗=0p\_\{0\}^\{\*\}=0,k∗=1\.0k^\{\*\}=1\.0,μ∗=2\.0\\mu^\{\*\}=2\.0,t∗∈\[0,50\]t^\{\*\}\\in\[0,50\]Q4Pointvortices∫Γ1y1𝑑x1\+Γ2y2dx2\+∫Γ1Γ22πln\|𝒓1−𝒓2\|dt\\displaystyle\\int\\Gamma\_\{1\}y\_\{1\}\\,dx\_\{1\}\+\\Gamma\_\{2\}y\_\{2\}\\,dx\_\{2\}\+\\int\\frac\{\\Gamma\_\{1\}\\Gamma\_\{2\}\}\{2\\pi\}\\ln\|\\bm\{r\}\_\{1\}\-\\bm\{r\}\_\{2\}\|\\,dtx2,0∗∈\[0\.5,2\.0\]50x\_\{2,0\}^\{\*\}\\in\[0\.5,2\.0\]\_\{50\};Γ2∗∈\[−0\.5,2\.0\]40\\Gamma\_\{2\}^\{\*\}\\in\[\-0\.5,2\.0\]\_\{40\};t∗∈\[0,T∗\]128t^\{\*\}\\in\[0,T^\{\*\}\]\_\{128\}C1x2,0∗=1x\_\{2,0\}^\{\*\}=1,Γ2∗=1\\Gamma\_\{2\}^\{\*\}=1,t∗∈\[𝟎,𝟐𝐓∗\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,2T^\{\*\}\]\}\}C2x2,0∗=𝟒¯x\_\{2,0\}^\{\*\}=\\underline\{\\mathbf\{4\}\},Γ2∗=1\\Gamma\_\{2\}^\{\*\}=1,t∗∈\[𝟎,𝟐𝐓∗\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,2T^\{\*\}\]\}\}C3x2,0∗=1x\_\{2,0\}^\{\*\}=1,Γ2∗=𝟒¯\\Gamma\_\{2\}^\{\*\}=\\underline\{\\mathbf\{4\}\},t∗∈\[𝟎,𝟐𝐓∗\]¯t^\{\*\}\\in\\underline\{\\mathbf\{\[0,2T^\{\*\}\]\}\}Q5Airfoil12∫ρ\(∂t𝒖\+𝒖⋅∇𝒖\)2𝑑𝒙\\displaystyle\\frac\{1\}\{2\}\\int\\rho\\left\(\\partial\_\{t\}\\bm\{u\}\+\\bm\{u\}\\cdot\\nabla\\bm\{u\}\\right\)^\{2\}d\\bm\{x\}α∗∈\[−1,0\]30\\alpha^\{\\ast\}\\in\[\-1,0\]\_\{30\};β∗=0\\beta^\{\\ast\}=0;R∗∈\[1\.02,2\.02\]30R^\{\\ast\}\\in\[1\.02,2\.02\]\_\{30\};AoA∈\[0∘,10∘\]11\{\\rm AoA\}\\in\[0^\{\\circ\},10^\{\\circ\}\]\_\{11\}C1α∗=−0\.172\\alpha^\{\*\}=\-0\.172,β∗=0\.0\\beta^\{\*\}=0\.0,R∗=1\.27R^\{\*\}=1\.27,AoA=0∘\{\\rm AoA\}=0^\{\\circ\}C2α∗=−0\.172\\alpha^\{\*\}=\-0\.172,β∗=0\.0\\beta^\{\*\}=0\.0,R∗=1\.27R^\{\*\}=1\.27,AoA=𝟑𝟎∘¯\{\\rm AoA\}=\\underline\{\\mathbf\{30^\{\\circ\}\}\}C3α∗=−0\.150\\alpha^\{\*\}=\-0\.150,β∗=0\.1¯\\beta^\{\*\}=\\underline\{\\mathbf\{0\.1\}\},R∗=1\.20R^\{\*\}=1\.20,AoA=𝟑𝟎∘¯\{\\rm AoA\}=\\underline\{\\mathbf\{30^\{\\circ\}\}\}
### 3\.1Benchmark systems
We evaluate LAPG on five benchmark systems, denoted Q1–Q5, spanning conservative dynamics, dissipative dynamics, vortex dynamics, and airfoil\-flow field generation\. Although the first four systems are low\-dimensional, they are deliberately chosen as controlled probes of physical extrapolation\. Their analytical reference solutions allow unambiguous error evaluation, systematic separation of temporal and parameter extrapolation, and diagnosis of specific failure modes such as phase drift, amplitude error, incorrect dissipative decay, and violation of orbital structure\. Such canonical dynamical systems are standard test beds for structure\-preserving numerical methods and physics\-informed learning because they expose long\-time stability and physical\-consistency errors that may be obscured in larger simulationsGreydanuset al\.\([2019](https://arxiv.org/html/2606.11277#bib.bib44)\); Cranmeret al\.\([2020](https://arxiv.org/html/2606.11277#bib.bib45)\); Goldsteinet al\.\([1980](https://arxiv.org/html/2606.11277#bib.bib60)\); Haireret al\.\([2006](https://arxiv.org/html/2606.11277#bib.bib75)\)\. The fifth system, potential flow over Joukowsky airfoils, extends the evaluation to a spatially distributed field problem with geometric and condition extrapolation\.
Q1 is free fall under a constant gravitational field\. The coordinate is the vertical positionhh, the momentum isp=mh˙p=m\\dot\{h\},mmis the mass, andggis the gravitational acceleration\. This case tests whether LAPG can extrapolate both in time and in the gravitygg\.
Q2 is an undamped spring–mass oscillator\. The coordinateqqdenotes displacement,p=mq˙p=m\\dot\{q\}is the momentum,mmis the mass, andkkis the spring stiffness\. The initial displacement and momentum are denoted byq0q\_\{0\}andp0p\_\{0\}, respectively\. The characteristic period isT=2πm/kT=2\\pi\\sqrt\{m/k\}\. This conservative system tests long\-time phase accuracy and parameter extrapolation inmmandkk\.
Q3 is a damped spring–mass system\. In addition tomm,kk,q0q\_\{0\}, andp0p\_\{0\}, the system contains a linear damping coefficientμ\\mu\. This benchmark introduces dissipation and tests whether the generated trajectory preserves the correct decay behavior when the mass, stiffness, or damping coefficient lies outside the training range\.
Q4 is a two\-point\-vortex system\. The vortex positions are𝒓i=\(xi,yi\)\\bm\{r\}\_\{i\}=\(x\_\{i\},y\_\{i\}\)and the vortex circulations areΓi\\Gamma\_\{i\}, withi=1,2i=1,2\. Without loss of generality, the first vortex, with circulationΓ1\\Gamma\_\{1\}, is fixed initially at𝒓1\(0\)=\(0,0\)\\bm\{r\}\_\{1\}\(0\)=\(0,0\), while the initial position of the second vortex is parameterized byx2,0x\_\{2,0\}and its circulation byΓ2\\Gamma\_\{2\}\. This case tests extrapolation in interacting Hamiltonian dynamics, including changes in initial separation and circulation ratio\. For Q1–Q4, we represent the generated state in phase space\. Here,qqdenotes a generalized coordinate andppdenotes its conjugate momentum; the generated state is a discretized trajectory𝐗=\{𝒙i\}i=0N\{\\bf X\}=\\\{\\bm\{x\}\_\{i\}\\\}\_\{i=0\}^\{N\}, where𝒙i=\[𝒒i,𝒑i\]T\\bm\{x\}\_\{i\}=\[\\bm\{q\}\_\{i\},\\bm\{p\}\_\{i\}\]^\{T\}\. This representation is natural for action\-based guidance because the action can be written in canonical form using the phase\-space path\. It also reduces the burden of temporal extrapolation\. A diffusion model trained on fixed\-window time trajectories has no direct mechanism to change the terminal time associated with an unseen horizon, because its samples are tied to the temporal grid used during training\. In the phase\-space formulation, the generated path is instead treated as an ordered geometric path in phase space rather than as a fixed time\-indexed sequence\. For Q1–Q4, time reconstruction uses only the coordinate displacement and the corresponding coordinate velocity, not the full phase\-space velocity\.
𝒗q\(𝐱i\+1/2;𝒄\)=∂ℋ∂𝒑\(𝐱i\+1/2;𝒄\),𝐱i\+1/2=𝐱i\+𝐱i\+12\.\\bm\{v\}\_\{q\}\(\{\\bf x\}\_\{i\+1/2\};\\bm\{c\}\)=\\frac\{\\partial\\mathcal\{H\}\}\{\\partial\\bm\{p\}\}\(\{\\bf x\}\_\{i\+1/2\};\\bm\{c\}\),\\qquad\{\\bf x\}\_\{i\+1/2\}=\\frac\{\{\\bf x\}\_\{i\}\+\{\\bf x\}\_\{i\+1\}\}\{2\}\.The segment time is computed componentwise from displacement divided by velocity and then averaged,
Δti≈1dq∑j=1dqΔqi,jvq,j\(𝐱i\+1/2;𝒄\),\\Delta t\_\{i\}\\approx\\frac\{1\}\{d\_\{q\}\}\\sum\_\{j=1\}^\{d\_\{q\}\}\\frac\{\\Delta q\_\{i,j\}\}\{v\_\{q,j\}\(\{\\bf x\}\_\{i\+1/2\};\\bm\{c\}\)\},wheredqd\_\{q\}is the number of generalized\-coordinate components in𝒒\\bm\{q\}\. Extreme component\-wise values relative to the expected time step are clipped for numerical stability\. The reconstructed time ist0=0t\_\{0\}=0andtn=∑i=0n−1Δtit\_\{n\}=\\sum\_\{i=0\}^\{n\-1\}\\Delta t\_\{i\}, and the resulting trajectory is finally interpolated to a uniform time grid\.
For temporal extrapolation, the target horizon is imposed through the terminal constraint of the phase\-space path\. In implementation, this constraint is represented as a terminal hypersurface rather than as a fully specified endpoint: finite entries inqendq\_\{\\texttt\{end\}\}orpendp\_\{\\texttt\{end\}\}are fixed\. For example, one can fix a terminal coordinate such asqN=qendq\_\{N\}=q\_\{\\texttt\{end\}\}while leaving the terminal momentum unconstrained; the refinement then adjusts the full path subject to this endpoint hypersurface\.



Figure 2:Airfoil dataset and mesh\. \(a\) Representative Joukowsky airfoil geometries\. “Geom\-1” and “Geom\-2” denote the two geometries analyzed in Sec\.[4](https://arxiv.org/html/2606.11277#S4)\. \(b\) O\-grid mesh around an airfoil\. \(c\) Near\-wall mesh detail\.For Q5, we consider flow over Joukowsky airfoils\. The velocity field is denoted by𝒖\(𝒙\)\\bm\{u\}\(\\bm\{x\}\), where𝒙=\(x,y\)\\bm\{x\}=\(x,y\)is the spatial coordinate andρ\\rhois the density\. The airfoil geometry is generated by the Joukowsky transformation
z=ζ\+1ζ,z=\\zeta\+\\frac\{1\}\{\\zeta\},\(15\)where the circle radiusRRand the center offsetα\+iβ\\alpha\+i\\betacontrol the airfoil thickness and camber\. The angle of attack is denoted byAoA\{\\rm AoA\}and the chord length bycc\. The training set contains symmetric airfoils withβ∗=0\\beta^\{\\ast\}=0andAoA∈\[0∘,10∘\]\{\\rm AoA\}\\in\[0^\{\\circ\},10^\{\\circ\}\], while the OOD tests include larger angles of attack and a cambered geometry withβ∗≠0\\beta^\{\\ast\}\\neq 0\.
For Q5, reference solutions are generated with the finite\-volume CFD solver OpenCFD\-ECQiet al\.\([2021](https://arxiv.org/html/2606.11277#bib.bib73)\); Menet al\.\([2023](https://arxiv.org/html/2606.11277#bib.bib74)\)\. The freestream Mach number is fixed atM∞=0\.15M\_\{\\infty\}=0\.15, corresponding to a low\-Mach, nearly incompressible flow regime\. The computational domain is
Ω=\{\(x,y\)∈ℝ2\|x2\+y2<\(25c\)2\},\\Omega=\\\{\(x,y\)\\in\\mathbb\{R\}^\{2\}\\,\|\\,x^\{2\}\+y^\{2\}<\(25c\)^\{2\}\\\},and each computational domain is discretized by an O\-grid with resolution96×12896\\times 128, as illustrated in Fig\.[2](https://arxiv.org/html/2606.11277#S3.F2)\. The governing equations are discretized by a cell\-centered finite\-volume method \(FVM\)\. Convective fluxes are evaluated using Roe flux\-difference splitting, with third\-order upwind reconstruction of the conservative variables at cell faces\. Time advancement is performed using an implicit lower–upper symmetric Gauss–Seidel \(LU\-SGS\) scheme until a steady solution is obtained\.
All quantities marked by a superscript asterisk\(⋅\)∗\(\\cdot\)^\{\*\}are nondimensionalized by their corresponding reference scales, such asMM,LL,KK,GG,Γ\\Gamma,μ0\\mu\_\{0\}, andτ\\tau\. The reference scales are defined as follows\.MMis the reference mass,LLis the reference length or displacement scale, andτ\\tauis the reference time\. The derived scales areK=M/τ2K=M/\\tau^\{2\}for spring stiffness,G=L/τ2G=L/\\tau^\{2\}for gravitational acceleration,μ0=M/τ\\mu\_\{0\}=M/\\taufor viscous damping,ML/τML/\\taufor momentum, andΓ0=L2/τ\\Gamma\_\{0\}=L^\{2\}/\\taufor point\-vortex circulation\. For Q5, the geometric quantitiesα,β,R,x,y\\alpha,\\beta,R,x,yare nondimensionalized by the chord\-based length scaleL=cL=c, velocities by the freestream speedU∞U\_\{\\infty\}, and pressure byρU∞2\\rho U\_\{\\infty\}^\{2\}\. In the reported nondimensional datasets these reference values are set to unity unless otherwise stated\. The training domains, action functionals, and test conditions are summarized in Table[1](https://arxiv.org/html/2606.11277#S3.T1);𝐛𝐨𝐥𝐝¯\\underline\{\\mathbf\{bold\}\}text indicates temporal, parameter, or geometric extrapolation outside the training domain\.
### 3\.2Score model architecture and training
Figure 3:Conditional score\-model architecture\. The noisy state, noise\-level embedding, physical\-condition embedding, and, for Q5, mesh embedding are combined in a U\-Net backbone with residual blocks, skip connections, and attention modules\.The conditional score functionSθ\(𝐗τ,στ;𝒄\)S\_\{\\theta\}\(\{\\bf X\}\_\{\\tau\},\\sigma\_\{\\tau\};\\bm\{c\}\)is represented by a conditional U\-Net, as shown in Fig\.[3](https://arxiv.org/html/2606.11277#S3.F3)\. The network takes the noisy state𝐗τ\{\\bf X\}\_\{\\tau\}, the noise levelστ\\sigma\_\{\\tau\}, and the condition vector𝒄\\bm\{c\}as inputs, and outputs a score estimate with the same dimension as𝐗τ\{\\bf X\}\_\{\\tau\}\. For Q1–Q4, the input is a one\-dimensional discretized trajectory in phase space\. For Q5, the input is a two\-dimensional flow field on the O\-grid\.
The architecture consists of a multi\-scale encoder–decoder with skip connections\. Each resolution level contains residual blocks, and self\-attention is applied at selected resolutions to capture long\-range correlations along the trajectory or over the flow field\. The noise levelστ\\sigma\_\{\\tau\}is embedded through a positional embedding, while the physical condition vector𝒄\\bm\{c\}is processed by a multilayer perceptron\. For the airfoil problem, the mesh is additionally encoded and used as part of the conditioning information\. The resulting conditioning embeddings are injected into the residual blocks as feature\-wise biases\. This design allows a single score model to represent a family of solutions over the training condition domain\. The case\-dependent input dimensions, resolutions, conditioning variables, training parameters, SDE settings, and physical\-refinement settings are summarized in Table[2](https://arxiv.org/html/2606.11277#S3.T2)\.
Table 2:Score\-model training and LAPG inference settings\. The same conditional U\-Net design is used for all cases, with case\-dependent input size, resolution, and condition variables\.SettingQ1Q2Q3Q4Q5Data structureNumber of samples10008000800020005115Batch size6464646416Resolution128128204812896×12896\\times 128Input channels22243Model architectureResidual blocks,MM11111Attention resolution6464102464\(48,64\)\(48,64\)Channel multipliers\(1,2,2,2\)\(1,2,2,2\)\(1,2,2,2\)\(1,2,2,2\)\(1,2,2,2,2,2,2\)\(1,2,2,2,2,2,2\)\(1,2,2,2\)\(1,2,2,2\)\(1,2,2,2,2\)\(1,2,2,2,2\)Conditioning variablesggq0,p0,kq\_\{0\},p\_\{0\},kq0,k,μq\_\{0\},k,\\mux2,0,Γ2x\_\{2,0\},\\Gamma\_\{2\}α,R,AoA\\alpha,R,\{\\rm AoA\}, meshTraining processOptimizerAdamLearning rate2\.0×10−42\.0\\times 10^\{\-4\}Betas\(0\.9,0\.999\)\(0\.9,0\.999\)Eps1\.0×10−81\.0\\times 10^\{\-8\}EMA rate0\.9990\.999SDEσmin\\sigma\_\{\\min\}0\.010\.01σmax\\sigma\_\{\\max\}50\.050\.0Sampling steps10001000LAPG guidancePerturbation magnitudeϵ\\epsilon10−1210^\{\-12\}10−1210^\{\-12\}10−1210^\{\-12\}10−1210^\{\-12\}5×10−45\\times 10^\{\-4\}Perturbation functionsin\\sin–cos\\cossin\\sin–sin\\sinsin\\sin–cos\\cossin\\sin–cos\\cos𝒩\(0,1\)\\mathcal\{N\}\(0,1\)Perturbation directions126126126126204620461261261010Physical optimizerAdamAdamSGDMSGDMSGDMMax\. refinement iterations4×1044\\times 10^\{4\}2×1042\\times 10^\{4\}2\.5×1052\.5\\times 10^\{5\}1\.2×1051\.2\\times 10^\{5\}5×1035\\times 10^\{3\}Refinement learning rate4×10−14\\times 10^\{\-1\}1×10−21\\times 10^\{\-2\}2×10−22\\times 10^\{\-2\}4×10−14\\times 10^\{\-1\}4×10−54\\times 10^\{\-5\}
### 3\.3LAPG guidance perturbations
For Q1–Q4, the LAPG physical score is evaluated on the full generated phase\-space trajectory𝐗=\{𝒙i\}i=0N\{\\bf X\}=\\\{\\bm\{x\}\_\{i\}\\\}\_\{i=0\}^\{N\}, where𝒙i=\[𝒒i,𝒑i\]T\\bm\{x\}\_\{i\}=\[\\bm\{q\}\_\{i\},\\bm\{p\}\_\{i\}\]^\{T\}\. The virtual perturbation in Eq\. \([12](https://arxiv.org/html/2606.11277#S2.E12)\) is applied componentwise to the trajectory\. Following the endpoint condition of the variational principle, the coordinate perturbations are chosen as sine modes
\(ξq\(r\)\)i=sq\(r\)sin\(rπiN\),r=1,…,R,i=0,…,N,\(\\xi\_\{q\}^\{\(r\)\}\)\_\{i\}=s\_\{q\}^\{\(r\)\}\\sin\\left\(\\frac\{r\\pi i\}\{N\}\\right\),\\qquad r=1,\\ldots,R,\\quad i=0,\\ldots,N,\(16\)wheresq\(r\)=±1s\_\{q\}^\{\(r\)\}=\\pm 1is a random sign and each mode vanishes at both endpoints\. The momentum perturbations are not constrained by the endpoint condition and are selected according to the system:
\(ξp\(r\)\)i=\{sp\(r\)cos\(rπi/N\),Q1, Q3, Q4,sp\(r\)sin\(rπi/N\),Q2,r=1,…,R,\(\\xi\_\{p\}^\{\(r\)\}\)\_\{i\}=\\begin\{cases\}s\_\{p\}^\{\(r\)\}\\cos\(r\\pi i/N\),&\\text\{Q1, Q3, Q4\},\\\\ s\_\{p\}^\{\(r\)\}\\sin\(r\\pi i/N\),&\\text\{Q2\},\\end\{cases\}\\qquad r=1,\\ldots,R,\(17\)withsp\(r\)=±1s\_\{p\}^\{\(r\)\}=\\pm 1\. The number of perturbation functions per generalized\-coordinate or momentum component isR=126R=126for Q1, Q2, and Q4, andR=2046R=2046for Q3\. Thus, the notation “sin\\sin–cos\\cos” in Table[2](https://arxiv.org/html/2606.11277#S3.T2)denotes a set of sine perturbations for generalized coordinates and cosine perturbations for momenta, rather than a single perturbation function\.
For Q5, the physical refinement is applied to the circulation degree of freedom in the potential\-flow representation\. The complex potential in theζ\\zeta\-plane is written as
F\(ζ\)=Ae−iθζ\+Beiθζ\+iΓ2πlogζ,F\(\\zeta\)=Ae^\{\-i\\theta\}\\zeta\+\\frac\{Be^\{i\\theta\}\}\{\\zeta\}\+\\frac\{i\\Gamma\}\{2\\pi\}\\log\\zeta,\(18\)whereAAandBBare determined by the freestream and no\-penetration boundary conditions, andΓ\\Gammacontrols the circulation\. Hereθ\\thetadenotes the freestream angle of attack\. For a circle of radiusRRin theζ\\zeta\-plane, written in coordinates centered at the circle centerζc=α\+iβ\\zeta\_\{c\}=\\alpha\+i\\beta, the standard Joukowski potential givesA=U∞A=U\_\{\\infty\}andB=U∞R2B=U\_\{\\infty\}R^\{2\}\. We therefore perturb onlyΓ\\Gamma, usingΓ\(r\)=Γ\+ϵξΓ\(r\)\\Gamma^\{\(r\)\}=\\Gamma\+\\epsilon\\xi\_\{\\Gamma\}^\{\(r\)\}withξΓ\(r\)∼𝒩\(0,1\)\\xi\_\{\\Gamma\}^\{\(r\)\}\\sim\\mathcal\{N\}\(0,1\)andr=1,…,10r=1,\\ldots,10\. In Q5, the physical refinement is carried out on the circulation parameterΓ\\Gammain the auxiliary potential\-flow representation, not by independently perturbing every velocity and pressure value on the CFD grid\. ChangingΓ\\Gammamodifies the potential\-flow velocity and pressure field through Eq\. \([18](https://arxiv.org/html/2606.11277#S3.E18)\); the action\-like quantity is evaluated for 10 Gaussian circulation perturbations, and the mean squared finite\-difference residual provides the guidance loss\. ThusΓ\\Gammais the variational degree of freedom updated during the Q5 refinement, and the resulting circulation change alters the reconstructed airfoil flow field\. The perturbation magnitudes, perturbation functions, and number of finite\-difference directions in the LAPG refinement stage are summarized in Table[2](https://arxiv.org/html/2606.11277#S3.T2)\. After the multi\-directional action\-variation residual is evaluated, the gradient oflogps\\log p\_\{s\}is computed by automatic differentiation and used in the refinement stage\.
### 3\.4PINN baseline
Table 3:PINN architectures and loss weights\. The numbers in brackets indicate the number of neurons in each hidden layer\. N/A denotes a loss component not used for the corresponding system\.IDArchitectureInputOutputλphys\\lambda\_\{\\rm phys\}λic\\lambda\_\{\\rm ic\}λbc\\lambda\_\{\\rm bc\}λdata\\lambda\_\{\\rm data\}LRQ1\(2,20,20,20,2\)\(2,20,20,20,2\)t,gt,gh,ph,p11N/A110−310^\{\-3\}Q2\(5,32,64,64,32,2\)\(5,32,64,64,32,2\)t,q0,p0,k,mt,q\_\{0\},p\_\{0\},k,mq,pq,p11N/A110−310^\{\-3\}Q3\(5,32,64,64,32,2\)\(5,32,64,64,32,2\)t,q0,k,μ,mt,q\_\{0\},k,\\mu,mq,pq,p11N/A110−310^\{\-3\}Q4\(3,32,64,64,32,4\)\(3,32,64,64,32,4\)t,x2,0,Γ2t,x\_\{2,0\},\\Gamma\_\{2\}x1,y1,x2,y2x\_\{1\},y\_\{1\},x\_\{2\},y\_\{2\}11N/A110−310^\{\-3\}Q5\(6,128,128,128,128,128,\(6,128,128,128,128,128,128,128,128,128,3\)128,128,128,128,3\)x,y,AoA,x,y,\{\\rm AoA\},α,β,R\\alpha,\\beta,Ru,v,pu,v,p1N/A2×1032\\times 10^\{3\}2×1042\\times 10^\{4\}2×10−42\\times 10^\{\-4\}We compare LAPG with a training\-time physics\-constrained PINN baseline\. For each system, the PINN directly approximates the solution map𝒚^θ\(𝒛,𝒄\)\\hat\{\\bm\{y\}\}\_\{\\theta\}\(\\bm\{z\},\\bm\{c\}\), where𝒛\\bm\{z\}denotes the independent coordinate variables, such asttfor ODE systems and\(x,y\)\(x,y\)for the airfoil\-flow problem\. The condition vector𝒄\\bm\{c\}contains the corresponding physical parameters, initial conditions, or geometric parameters\. For Q1–Q4, the PINN is a fully connected multilayer perceptron with hyperbolic\-tangent activation\. For Q5, a deeper fully connected network with Swish activation is used to represent the velocity and pressure fields\. All derivatives required in the governing\-equation residuals are computed by automatic differentiation\.
The PINN baseline is chosen as a training\-time physics\-informed competitor\. The first four benchmarks are smooth low\-dimensional systems with known governing equations, a setting favorable to fully connected PINNs\. For Q5, the baseline is a deeper network trained with data, boundary, and physics losses, and related work has shown that neural networks and data\-assisted PINNs can accurately predict airfoil flow fields within the training parameter rangeBhatnagaret al\.\([2019](https://arxiv.org/html/2606.11277#bib.bib68)\); Harmeninget al\.\([2024](https://arxiv.org/html/2606.11277#bib.bib76)\)\. The comparison therefore targets the distinction between training\-time physical regularization and inference\-time physical guidance\.
The PINN is trained by minimizing a composite loss,
ℒPINN=λphysℒphys\+λicℒic\+λbcℒbc\+λdataℒdata,\\mathcal\{L\}\_\{\\rm PINN\}=\\lambda\_\{\\rm phys\}\\mathcal\{L\}\_\{\\rm phys\}\+\\lambda\_\{\\rm ic\}\\mathcal\{L\}\_\{\\rm ic\}\+\\lambda\_\{\\rm bc\}\\mathcal\{L\}\_\{\\rm bc\}\+\\lambda\_\{\\rm data\}\\mathcal\{L\}\_\{\\rm data\},\(19\)whereℒphys\\mathcal\{L\}\_\{\\rm phys\}penalizes the governing\-equation residual,ℒic\\mathcal\{L\}\_\{\\rm ic\}enforces initial conditions,ℒbc\\mathcal\{L\}\_\{\\rm bc\}enforces boundary conditions, andℒdata\\mathcal\{L\}\_\{\\rm data\}enforces agreement with the training data\. The PINN uses the same training data as the score model\. The architectures and loss weights are summarized in Table[3](https://arxiv.org/html/2606.11277#S3.T3)\.
## 4Results
We first evaluate LAPG on the four trajectory\-generation benchmarks Q1–Q4\. These systems test different extrapolation modes: long\-time prediction beyond the training horizon and parameter shifts outside the training range\. For Q1, the time horizon is doubled fromt∗∈\[0,2\]t^\{\\ast\}\\in\[0,2\]to\[0,4\]\[0,4\], while gravity is tested atg∗=2g^\{\\ast\}=2and3030outside the training interval\[5,15\]\[5,15\]\. For Q2, trajectories are extended from one period to two periods, with stiffness tested atk∗=3k^\{\\ast\}=3above the training interval\[0\.5,1\.5\]\[0\.5,1\.5\]and mass tested atm∗=2m^\{\\ast\}=2beyond the fixed training value\. For Q3, the damping coefficient is tested atμ∗=6\\mu^\{\\ast\}=6, twice the upper training limit, and additional cases combine out\-of\-range mass, stiffness, and damping\. For Q4, the initial vortex separation and circulation are tested atx2,0∗=4x\_\{2,0\}^\{\\ast\}=4andΓ2∗=4\\Gamma\_\{2\}^\{\\ast\}=4, both well beyond their training intervals\. All test conditions are summarized in Table[1](https://arxiv.org/html/2606.11277#S3.T1)\.
To make the role of each stage explicit, Figs\.[4](https://arxiv.org/html/2606.11277#S4.F4)and[5](https://arxiv.org/html/2606.11277#S4.F5)include the data\-driven diffusion\-only output in addition to the PINN and LAPG results\. The diffusion\-only result is the nearest\-condition score\-model proposal generated before the action\-derived refinement is activated\. It is therefore not a separately trained target\-condition solver, but a direct visualization of what the learned generator supplies before inference\-time physics guidance\.
Figure[4](https://arxiv.org/html/2606.11277#S4.F4)compares the generated trajectories with the reference solutions, the diffusion\-only sample, the training\-time physics\-constrained PINN baseline, and the LAPG result\. For the in\-distribution portions of the trajectories, shown by the white background in Fig\.[4](https://arxiv.org/html/2606.11277#S4.F4), both LAPG and PINN reproduce the reference solutions accurately\. The main differences become pronounced in the extrapolation regime, shown by the gray shaded regions\. In Q1, LAPG preserves the correct free\-fall trend when the time horizon is extended and when gravity is shifted outside the training domain\. In Q2, LAPG remains phase\-accurate over two periods and maintains the correct amplitude under extrapolated mass or spring stiffness\. By contrast, the PINN baseline develops visible phase drift and amplitude errors as the extrapolation distance increases\.
The damped spring–mass system Q3 provides a more stringent test because the solution must capture both oscillatory motion and dissipative decay\. LAPG accurately follows the decay envelope under extrapolated damping and remains stable under simultaneous shifts in mass, stiffness, and damping\. For the point\-vortex system Q4, LAPG captures the long\-time vortex motion and remains accurate when either the initial separation or the circulation ratio lies outside the training range\. In both cases, the action refinement changes the nearest\-condition diffusion sample toward the target dynamics rather than only smoothing the trajectory pointwise\.
Figure 4:Trajectory generation in temporal and parameter extrapolation\. Black: reference; green: data\-driven diffusion\-only; blue: training\-time physics\-constrained PINN; red: inference\-time guided LAPG\. Panels \(a–c\) Q1 \(free fall\); \(d–f\) Q2 \(undamped spring–mass\); \(g–i\) Q3 \(damped spring–mass\); \(j–l\) Q4 \(point\-vortex motion\), with all trajectories plotted versus timet/τt/\\tau\. Gray shading denotes extrapolation \(either beyond the training horizon or outside the training parameter range\); panels with a white\-to\-gray split indicate the end of the training time window\.We next evaluate Q5, potential flow over Joukowsky airfoils\. This problem extends the evaluation from phase\-space trajectories to spatially distributed fields\. It also imposes a stronger OOD shift: the angle of attack is increased from the training range\[0∘,10∘\]\[0^\{\\circ\},10^\{\\circ\}\]to30∘30^\{\\circ\}, and one test case moves from the symmetric training set withβ∗=0\\beta^\{\\ast\}=0to a cambered geometry withβ∗=0\.1\\beta^\{\\ast\}=0\.1\. Thus, the test probes both condition and geometry extrapolation\.
Figure[5](https://arxiv.org/html/2606.11277#S4.F5)shows the streamwise velocity fieldU/U∞U/U\_\{\\infty\}for one in\-distribution case and two OOD cases, comparing the reference solution, LAPG, diffusion\-only output, and training\-time physics\-constrained PINN\. In the in\-distribution case, LAPG and PINN recover the reference field, and the lift coefficients remain close to zero, as expected for a symmetric airfoil at zero angle of attack\. The corresponding lift coefficients for the reference, LAPG, diffusion\-only, and PINN fields areCl=\(0\.00,0\.00,−0\.02,0\.06\)C\_\{l\}=\(0\.00,0\.00,\-0\.02,0\.06\)\. For the OOD cases, LAPG continues to reproduce the dominant flow features, including the leading\-edge acceleration and the asymmetric velocity distribution associated with lift\. The diffusion\-only field is the nearest\-condition data\-driven proposal before refinement\. Since it is generated at𝒄′\\bm\{c\}^\{\\prime\}rather than directly constrained by the target condition𝒄\\bm\{c\}, it captures an in\-distribution flow pattern but does not impose the OOD angle of attack or geometry\. The PINN prediction is noticeably more diffusive and also underestimates the high\-velocity region near the leading edge\. This difference is reflected in the lift coefficient\. For the two OOD cases, the reference, LAPG, diffusion\-only, and PINN values are
Cl\\displaystyle C\_\{l\}=\(3\.20,3\.00,1\.30,0\.32\),\\displaystyle=\(20,00,30,32\),Cl\\displaystyle C\_\{l\}=\(3\.60,3\.50,1\.25,0\.74\),\\displaystyle=\(60,50,25,74\),respectively\. Thus, while the PINN field may remain smooth, it does not recover the correct aerodynamic response under large extrapolation\.
Figure 5:Potential flow past airfoils \(Q5\)\. Rows show one in\-distribution target case \(a–d\) and two OOD target cases \(e–l\)\. The diffusion\-only column \(c,g,k\) is generated at the nearest in\-distribution condition𝒄′\\bm\{c\}^\{\\prime\}before action\-guided refinement, while the other columns correspond to the target condition𝒄\\bm\{c\}\. The colormap shows the streamwise velocityU/U∞U/U\_\{\\infty\}, and the arrows indicate the freestream direction\. Panels \(a,e,i\) reference; \(b,f,j\) LAPG; \(c,g,k\) diffusion\-only; \(d,h,l\) PINN\.Figure[6](https://arxiv.org/html/2606.11277#S4.F6)summarizes the quantitative errors across all test cases\. We use the normalized root\-mean\-square error as the metric:
nRMSE=\(∑i‖𝒚^i−𝒚iref‖22∑i‖𝒚iref‖22\)1/2,\{\\rm nRMSE\}=\\left\(\\frac\{\\sum\_\{i\}\\\|\\hat\{\\bm\{y\}\}\_\{i\}\-\\bm\{y\}\_\{i\}^\{\\rm ref\}\\\|\_\{2\}^\{2\}\}\{\\sum\_\{i\}\\\|\\bm\{y\}\_\{i\}^\{\\rm ref\}\\\|\_\{2\}^\{2\}\}\\right\)^\{1/2\},\(20\)where𝒚^\\hat\{\\bm\{y\}\}is the prediction and𝒚ref\\bm\{y\}^\{\\rm ref\}is the reference solution\. For Q1–Q4, the nRMSE is computed on the generated trajectories after time reconstruction\. For Q5, the nRMSE is computed over the spatial grid of the velocity field\.
Across the trajectory benchmarks, LAPG maintains low error in both temporal and parameter extrapolation, while the PINN error increases substantially in the OOD cases\. The largest differences occur in cases where extrapolation changes the qualitative behavior of the solution, such as the oscillation period, decay rate, vortex orbit, or aerodynamic lift\. These regimes are difficult for a fixed training\-time model because the prediction is governed by extrapolation of the learned map\. LAPG, in contrast, uses the learned score only to obtain a plausible proposal and then actively enforces the target physics through the action\-derived score\.
The quantitative results support the central mechanism of LAPG: the physical guidance term reduces the action variation during inference\. Because the guidance is derived from a scalar variational functional, it acts on the full trajectory or field rather than on isolated output points\. This global correction helps reduce accumulated phase error in long\-time dynamics and improves parameter and geometry extrapolation\. The results therefore indicate that inference\-time variational guidance provides a practical route to improving the physical reliability of diffusion\-based generators outside the training domain\.
Figure 6:Quantitative error across all test cases listed in Table[1](https://arxiv.org/html/2606.11277#S3.T1)\. Bars show the normalized root\-mean\-square error \(nRMSE\) for LAPG and the PINN baseline\.
## 5Conclusion and Discussion
LAPG improves extrapolation in the five benchmark problems considered here\. The gains are clearest when the test condition changes a physical quantity that accumulates error over time or strongly affects the predicted results, such as phase, damping rate, vortex orbit, or lift\. The method refines the generated trajectory or field with an action\-residual loss after diffusion sampling, making the physical constraint active at test time instead of relying only on constraints used during training\.
Across representative ODE and PDE systems, including free fall, conservative and dissipative spring–mass dynamics, point\-vortex motion, and potential flow over airfoils, LAPG improves temporal, parameter, and geometric extrapolation\. Compared with training\-time physics\-informed baselines, the method better preserves phase accuracy, dissipative decay, vortex motion, and aerodynamic response in OOD regimes\. These results indicate that inference\-time variational guidance can improve the reliability of diffusion\-based physical generators when the learned score alone would otherwise be evaluated beyond its training support\.
Compared with existing physics\-informed methods, an advantage of the proposed formulation is that the physical constraint enters through a global scalar action functional evaluated on the full trajectory or field\. This differs from residual\-based training objectives, where equation residuals, initial conditions, boundary conditions, and data losses often require problem\-dependent weight balancing\. By constructing a single action\-based physical prior, LAPG avoids much of this multi\-term loss\-balancing burden while retaining a differentiable mechanism for enforcing physical consistency during sampling\.
The framework also has limitations\. It requires an appropriate action or action\-like variational functional for the physical system of interest, which may be difficult to identify for complex dissipative, turbulent, multiphysics, or strongly constrained systems\. The inference\-time refinement also introduces additional computational cost because the action variation and its gradient must be evaluated during sampling\. Moreover, the final result can depend on the diffusion\-generated proposal, the perturbation used to estimate the action variation, and the optimization parameters in the refinement stage\. Future work will focus on combining global action\-based guidance with complementary local constraints when the variational functional alone does not encode all relevant physical requirements\.
## References
- B\. D\. O\. Anderson \(1982\)Reverse\-time diffusion equation models\.Stochastic Processes and their Applications12\(3\),pp\. 313–326\.External Links:[Document](https://dx.doi.org/10.1016/0304-4149%2882%2990051-5)Cited by:[§2](https://arxiv.org/html/2606.11277#S2.p4.8)\.
- J\. Bastek, W\. Sun, and D\. Kochmann \(2025\)Physics\-informed diffusion models\.InInternational Conference on Learning Representations,Vol\.2025,pp\. 3360–3385\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p3.1),[§1](https://arxiv.org/html/2606.11277#S1.p4.1),[§1](https://arxiv.org/html/2606.11277#S1.p5.1)\.
- S\. Bhatnagar, Y\. Afshar, S\. Pan, K\. Duraisamy, and S\. Kaushik \(2019\)Prediction of aerodynamic flow fields using convolutional neural networks\.Computational Mechanics64\(2\),pp\. 525–545\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p3.1),[§3\.4](https://arxiv.org/html/2606.11277#S3.SS4.p2.1)\.
- S\. L\. Brunton, B\. R\. Noack, and P\. Koumoutsakos \(2020\)Machine learning for fluid mechanics\.Annu\. Rev\. Fluid\. Mech\.52\(1\),pp\. 477–508\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p1.1)\.
- W\. Cao, X\. Shan, S\. Tang, W\. Ouyang, and W\. Zhang \(2025\)Solving parametric high\-Reynolds\-number wall\-bounded turbulence around airfoils governed by Reynolds\-averaged Navier–Stokes equations using time\-stepping\-oriented neural network\.Phys\. Fluids37\(1\),pp\. 015151\.External Links:[Document](https://dx.doi.org/10.1063/5.0245918)Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p5.1)\.
- W\. Cao, J\. Song, and W\. Zhang \(2024\)Solving high\-dimensional parametric engineering problems for inviscid flow around airfoils based on physics\-informed neural networks\.J\. Comput\. Phys\.516,pp\. 113285\.External Links:[Document](https://dx.doi.org/10.1016/j.jcp.2024.113285)Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p5.1)\.
- G\. Carleo, I\. Cirac, K\. Cranmer, L\. Daudet, M\. Schuld, N\. Tishby, L\. Vogt\-Maranto, and L\. Zdeborová \(2019\)Machine learning and the physical sciences\.Reviews of Modern Physics91\(4\),pp\. 045002\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p1.1)\.
- M\. Cranmer, S\. Greydanus, S\. Hoyer, P\. Battaglia, D\. Spergel, and S\. Ho \(2020\)Lagrangian neural networks\.arXiv preprint arXiv:2003\.04630\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p4.1),[§3\.1](https://arxiv.org/html/2606.11277#S3.SS1.p1.1)\.
- P\. Du, M\. H\. Parikh, X\. Fan, X\. Liu, and J\. Wang \(2024\)Conditional neural field latent diffusion model for generating spatiotemporal turbulence\.Nat\. Commun\.15\(1\),pp\. 10416\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p2.1)\.
- H\. Gao, S\. Kaltenbach, and P\. Koumoutsakos \(2024\)Generative learning for forecasting the dynamics of high\-dimensional complex systems\.Nat\. Commun\.15\(1\),pp\. 8904\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p2.1)\.
- H\. Goldstein, C\. Poole, J\. Safko,et al\.\(1980\)Classical mechanics\.Addison\-Wesley, Reading, MA\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p7.1),[§3\.1](https://arxiv.org/html/2606.11277#S3.SS1.p1.1)\.
- S\. Greydanus, M\. Dzamba, and J\. Yosinski \(2019\)Hamiltonian neural networks\.Advances in neural information processing systems32\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p3.1),[§1](https://arxiv.org/html/2606.11277#S1.p4.1),[§3\.1](https://arxiv.org/html/2606.11277#S3.SS1.p1.1)\.
- E\. Hairer, C\. Lubich, and G\. Wanner \(2006\)Geometric numerical integration: structure\-preserving algorithms for ordinary differential equations\.2 edition,Springer Series in Computational Mathematics, Vol\.31,Springer\-Verlag,Berlin\.Cited by:[§3\.1](https://arxiv.org/html/2606.11277#S3.SS1.p1.1)\.
- J\. H\. Harmening, F\. Pioch, L\. Fuhrig, F\. Peitzmann, D\. Schramm, and O\. el Moctar \(2024\)Data\-assisted training of a physics\-informed neural network to predict the separated Reynolds\-averaged turbulent flow field around an airfoil under variable angles of attack\.Neural Computing and Applications36\(25\),pp\. 15353–15371\.Cited by:[§3\.4](https://arxiv.org/html/2606.11277#S3.SS4.p2.1)\.
- J\. Ho, A\. Jain, and P\. Abbeel \(2020\)Denoising diffusion probabilistic models\.Advances in neural information processing systems33,pp\. 6840–6851\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p2.1)\.
- G\. E\. Karniadakis, I\. G\. Kevrekidis, L\. Lu, P\. Perdikaris, S\. Wang, and L\. Yang \(2021\)Physics\-informed machine learning\.Nature Reviews Physics3,pp\. 422–440\.External Links:[Document](https://dx.doi.org/10.1038/s42254-021-00314-5)Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p5.1)\.
- N\. M\. Khalifa and H\. E\. Taha \(2024\)Vortex dynamics: a variational approach using the principle of least action\.Phys\. Rev\. Fluids9\(3\),pp\. 034701\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p7.1)\.
- A\. Krishnapriyan, A\. Gholami, S\. Zhe, R\. Kirby, and M\. W\. Mahoney \(2021\)Characterizing possible failure modes in physics\-informed neural networks\.Advances in neural information processing systems34,pp\. 26548–26560\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p3.1)\.
- T\. Li, L\. Biferale, F\. Bonaccorso, M\. A\. Scarpolini, and M\. Buzzicotti \(2024\)Synthetic lagrangian turbulence by generative diffusion models\.Nat\. Mach\. Intell\.6\(4\),pp\. 393–403\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p2.1)\.
- A\. J\. Linot, J\. W\. Burby, Q\. Tang, P\. Balaprakash, M\. D\. Graham, and R\. Maulik \(2023\)Stabilized neural ordinary differential equations for long\-time forecasting of dynamical systems\.J\. Comput\. Phys\.474,pp\. 111838\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p3.1)\.
- H\. Men, X\. Li, and H\. Liu \(2023\)Direct numerical simulations of hypersonic boundary layer transition over a hypersonic transition research vehicle model lifting body at different angles of attack\.Phys\. Fluids35\(4\)\.Cited by:[§3\.1](https://arxiv.org/html/2606.11277#S3.SS1.p8.1)\.
- S\. E\. Otto, N\. Zolman, J\. N\. Kutz, and S\. L\. Brunton \(2023\)A unified framework to enforce, discover, and promote symmetry in machine learning\.arXiv preprint arXiv:2311\.00212\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p4.1)\.
- H\. Qi, X\. Li, C\. Yu, and F\. Tong \(2021\)Direct numerical simulation of hypersonic boundary layer transition over a lifting\-body model hytrv\.Advances in Aerodynamics3\(1\),pp\. 31\.Cited by:[§3\.1](https://arxiv.org/html/2606.11277#S3.SS1.p8.1)\.
- M\. Raissi, P\. Perdikaris, and G\. E\. Karniadakis \(2019\)Physics\-informed neural networks: a deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations\.J\. Comput\. Phys\.378,pp\. 686–707\.External Links:[Document](https://dx.doi.org/10.1016/j.jcp.2018.10.045)Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p4.1),[§1](https://arxiv.org/html/2606.11277#S1.p5.1)\.
- V\. G\. Satorras, E\. Hoogeboom, and M\. Welling \(2021\)E \(n\) equivariant graph neural networks\.InInternational conference on machine learning,pp\. 9323–9332\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p4.1)\.
- J\. Sohl\-Dickstein, E\. Weiss, N\. Maheswaranathan, and S\. Ganguli \(2015\)Deep unsupervised learning using nonequilibrium thermodynamics\.InInternational conference on machine learning,pp\. 2256–2265\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p2.1)\.
- Y\. Song and S\. Ermon \(2019\)Generative modeling by estimating gradients of the data distribution\.Advances in neural information processing systems32\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p2.1)\.
- Y\. Song, J\. Sohl\-Dickstein, D\. P\. Kingma, A\. Kumar, S\. Ermon, and B\. Poole \(2020\)Score\-based generative modeling through stochastic differential equations\.arXiv preprint arXiv:2011\.13456\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p2.1),[§2](https://arxiv.org/html/2606.11277#S2.p2.14),[§2](https://arxiv.org/html/2606.11277#S2.p2.5),[§2](https://arxiv.org/html/2606.11277#S2.p4.8)\.
- H\. Taha, C\. Gonzalez, and M\. Shorbagy \(2023\)A minimization principle for incompressible fluid mechanics\.Phys\. Fluids35\(12\)\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p7.1),[Table 1](https://arxiv.org/html/2606.11277#S3.T1)\.
- H\. Wang, T\. Fu, Y\. Du, W\. Gao, K\. Huang, Z\. Liu, P\. Chandak, S\. Liu, P\. Van Katwyk, A\. Deac,et al\.\(2023\)Scientific discovery in the age of artificial intelligence\.Nature620\(7972\),pp\. 47–60\.Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p1.1)\.
- S\. Wang, Y\. Teng, and P\. Perdikaris \(2021\)Understanding and mitigating gradient flow pathologies in physics\-informed neural networks\.SIAM Journal on Scientific Computing43\(5\),pp\. A3055–A3081\.External Links:[Document](https://dx.doi.org/10.1137/20M1318043)Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p5.1)\.
- K\. Xu, M\. Zhang, J\. Li, S\. S\. Du, K\. Kawarabayashi, and S\. Jegelka \(2021\)How neural networks extrapolate: from feedforward to graph neural networks\.InInternational Conference on Learning Representations,Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p3.1)\.
- M\. Zhu, H\. Zhang, A\. Jiao, G\. E\. Karniadakis, and L\. Lu \(2023\)Reliable extrapolation of deep neural operators informed by physics or sparse observations\.Comput Methods Appl Mech Eng412,pp\. 116064\.External Links:[Document](https://dx.doi.org/10.1016/j.cma.2023.116064)Cited by:[§1](https://arxiv.org/html/2606.11277#S1.p3.1)\.Similar Articles
Lagrangian Flow Matching: A Least-Action Framework for Principled Path Design
Introduces Lagrangian flow matching, a physics-based framework that uses the least-action principle to design probability paths and velocity fields for generative modeling, generalizing existing optimal-transport and diffusion paths.
ResilPhase: Plug-and-Play Phase Mapping and Noise-Resilient Macro-Trajectory Extrapolation for Diffusion Acceleration
ResilPhase is a training-free acceleration framework for diffusion models that reformulates accelerated inference as stable macro-trajectory extrapolation in ODE space, using derivative-free barycentric Lagrange extrapolation and bounded phase mapping to achieve state-of-the-art fidelity under high acceleration ratios.
Gradient Extrapolation-Based Policy Optimization
The article introduces Gradient Extrapolation-Based Policy Optimization (GXPO), a method that approximates multi-step lookahead in RL training for LLMs using only three backward passes. It demonstrates improved reasoning performance on math benchmarks over standard GRPO while maintaining fixed active-phase costs.
Learning to Discretize: Diffusion-Based Adaptive Mesh with Spectral Guidance
This paper proposes a diffusion-based framework for learning adaptive mesh discretization conditioned on observed PDE dynamics, using spectral guidance and physics constraints to allocate resolution where needed. The method achieves competitive or superior performance across five PDE regimes.
Spectral Guidance for Flexible and Efficient Control of Diffusion Models
Introduces Spectral Guidance, a framework for controlling diffusion models by leveraging low-dimensional representations of the diffusion process, enabling flexible and stable control without task-specific retraining or backpropagation through the denoiser.