betaFeedback

WorksComputer Science

Characterizing and Mitigating Distributional Bias in Physics-Informed Generative Models

Abstract

Physics-informed generative models augment a data-fitting objective with residual penalties that encourage physical constraints to hold in generated samples. However, improving constraint satisfaction need not improve fidelity to the data distribution. We study this conflict in residual-regularized diffusion models and identify two possible consequences. First, the same prediction error can incur different residual costs near different feasible states, preferring states with lower residual sensitivity (avoidance). Second, this preference can extend to feasible states outside the data support, where the residual also vanishes (leakage). Motivated by this analysis, we propose a data-anchored penalty that weights prediction errors by the residual Jacobian at the clean training sample and normalizes the resulting magnitude. This removes the incentive to relocate to less sensitive states without changing the model architecture or sampling procedure. Experiments on a controlled synthetic system, three PDE systems, and molecular transition-state generation with flow matching demonstrate the benefits of anchoring. Code is available at https://github.com/TanjaBien/anchored_diffusion.

Introduction

Diffusion and flow matching models learn vector fields that guide the transformation of samples from a simple reference distribution into samples resembling the training data. They are increasingly applied in scientific machine learning ([4, 37, 3, 39, 8]), where generated samples are often expected to satisfy known physical constraints. These may be expressed through governing partial differential equations (PDEs), as in physical field generation, or through force-based conditions, as in molecular transition-state generation. Learning from physically valid examples, however, does not guarantee that generated samples satisfy these constraints.

To encourage constraint satisfaction, physics-informed generative models add a physical residual penalty to the training loss ([3, 1]). A residual measures how much a prediction violates a constraint and vanishes when the constraint is satisfied. The additional loss is intended to improve physical accuracy while retaining the distribution learned from data. However, a lower expected residual does not imply a better approximation of that distribution ([1, 6]).

In this work, we examine how this conflict arises from the residual loss favoring some feasible states over others. The residual is evaluated at the diffusion model’s prediction, and its sensitivity to prediction errors can vary across states. An error of the same magnitude and direction can therefore incur a large residual near one feasible state and a small residual near another, while the standard squared prediction error remains unchanged. Moving a prediction toward a less sensitive state can then reduce the combined loss even when it increases the distance to the clean training target. We call this preference avoidance. Furthermore, physical constraints specify which states are admissible, but not which occur in the data or how frequently they occur. The residual can therefore vanish at states outside the data support, allowing the preference for less sensitive states to extend to states absent from the data support. We call this possibility leakage.

We formalize these mechanisms by comparing predictions under the same perturbations applied to different feasible states. This gives an exact condition under which the reduction in residual loss compensates for the additional denoising error. For small perturbations, the comparison is governed by the residual Jacobian, which describes how the residual changes as the predicted state changes. The analysis applies to differentiable residual maps and does not require a PDE.

These observations motivate a data-anchored residual loss. Instead of evaluating the residual at the prediction, we use the Jacobian of the residual at the clean training sample to weight the prediction error. The Jacobian remains fixed as the prediction changes, removing the incentive to move toward a state with a less sensitive Jacobian. We normalize this weighting to limit the influence of large Jacobian magnitudes. The resulting objective requires no change to the model architecture or sampling procedure. We characterize its optima for individual training samples and after averaging over the set of possible clean targets given a noisy input. Finally, we evaluate residual accuracy and fidelity to the data on a controlled synthetic system and the Burgers, Darcy, and advection equations, as well as molecular transition-state generation with flow matching.

Background and Setup

Partial differential equations

Let u(ξ,τ)u(\xi,\tau) be a field defined at spatial position ξ∈Ω⊂Rp\xi\in\Omega\subset\mathbb{R}^{p} and physical time τ∈[0,T]\tau\in[0,T]. Its governing PDE, with differential operator F\mathcal{F}, is

F[u](ξ,τ)=0,ξ∈Ω,τ∈[0,T].(1)\mathcal{F}[u](\xi,\tau)=0,\qquad\xi\in\Omega,\quad\tau\in[0,T]. \tag*{(1)}

The PDE generally admits a family of solutions, with initial and boundary conditions selecting a particular field. On a fixed grid, this field is represented by x∈Rdx \in\mathbb{R}^{d}. Each sample contains the complete discretized space–time trajectory u(ξ,τ)u(\xi,\tau), and dd is the total number of field values on this grid. The residual operator R:Rd→RmR:\mathbb{R}^{d}\to\mathbb{R}^{m} measures violations of the discretized PDE, with mm residual equations Xu et al. (2018). A discrete field satisfies the PDE when R(x)=0R(x)=0.

Physics-constrained diffusion models

Diffusion models learn to reverse a fixed corruption process [36] (Ho et al. 2020). Given a clean sample x0x_0, the forward process produces

xt=αˉtx0+1−αˉt ϵ,ϵ∼N(0,I),αˉt=∏s=1t(1−βs).x_t=\sqrt{\bar{\alpha}_t}x_0+\sqrt{1-\bar{\alpha}_t}\,\epsilon,\qquad\epsilon\sim\mathcal{N}(0,I),\qquad\bar{\alpha}_t=\prod_{s=1}^{t}(1-\beta_s).

The variance schedule {βs}\{\beta_s\} is chosen so that the terminal xtx_t is approximately standard Gaussian. A network learns to recover the clean sample from xtx_t.

Physics-constrained training [3, 31] adds the squared residual of the clean-sample prediction x^0:=x^0(xt,t)\hat{x}_0:=\hat{x}_0(x_t,t) to the denoising loss:

L=Et,x0,xt[λt∥x0−x^0∥2+ct∥R(x^0)∥2],(2)\mathcal{L}=\mathbb{E}_{t,x_0,x_t}\left[\lambda_t\lVert x_0-\hat{x}_0\rVert^2+c_t\lVert R(\hat{x}_0)\rVert^2\right], \tag*{(2)}
withct:=c ωt,ηt:=ctλt.\text{with}\quad c_t:=c\,\omega_t,\qquad\eta_t:=\frac{c_t}{\lambda_t}.

Here λt>0\lambda_t>0 weights denoising and ct≥0c_t\geq0 weights the residual, written as a constant scale c≥0c\geq0 times the fixed time-dependent schedule ωt\omega_t of Bastek et al. [3]. At fixed tt, only their ratio ηt\eta_t matters and we write it as η\eta below. We use the clean sample x0x_0 parameterization Karras et al., [21].

Setup

We assume that the data samples satisfy the governing PDE, so R(x0)=0R(x_0)=0 almost surely for x0∼pdatax_0\sim p_{\mathrm{data}}. Here pdatap_{\mathrm{data}} denotes the distribution the model is meant to learn. It is fixed by the application rather than by the equation, so it typically covers a restricted part of the solution set. We distinguish the support of the data distribution M\mathcal{M} from the zero set of the residual Z\mathcal{Z}:

M:=supp⁡(pdata),Z:={x∈Rd:R(x)=0}.\mathcal{M}:=\operatorname{supp}(p_{\mathrm{data}}),\qquad\mathcal{Z}:=\{x\in\mathbb{R}^{d}:R(x)=0\}.

We assume that RR is continuous, which gives M⊆Z\mathcal{M}\subseteq\mathcal{Z}. When the inclusion is strict, Z∖M\mathcal{Z}\setminus\mathcal{M} contains fields that satisfy the PDE but do not occur in the data distribution. While the governing PDE permits a broad family of solutions, the data of interest are collected under a restricted range of initial conditions, boundary conditions, and physical parameters, so that M⊊Z\mathcal{M}\subsetneq\mathcal{Z} is the realistic setting.

Analysis of the residual loss

The residual vanishes at every feasible solution. However, the same prediction error can produce a large residual near one solution and a small residual near another. The differences matter when denoising is imperfect, as the combined objective may favor predictions near a solution that is less sensitive to errors, even if that solution is farther from the training target. We first derive the condition for this preference, then explain its relation to the residual Jacobian and the data distribution.

Comparing predictions around two solutions

Fix a clean training sample x0∈Mx_0\in\mathcal{M} and a noise level tt. Dividing the objective in Eq. (2) by λt\lambda_t, the loss of a prediction x^0\hat{x}_0 becomes

ℓ(x^0)=∥x^0−x0∥2+η∥R(x^0)∥2.(3)\ell(\hat{x}_0) = \lVert\hat{x}_0 - x_0 \rVert^2 + \eta\lVert R(\hat{x}_0) \rVert^2. \tag*{(3)}

Here η=ct/λt\eta= c_t/\lambda_t, with λt>0\lambda_t > 0. To isolate the role of the residual term, we compare two predictions that are centered at different feasible solutions but perturbed in the same way. Let y∈Zy \in\mathcal{Z} be a second solution, so that R(y)=R(x0)=0R(y) = R(x_0) = 0. Let δ\delta be a random perturbation with E[δ]=0\mathbb{E}[\delta] = 0 and E∥δ∥2<∞\mathbb{E}\lVert\delta\rVert^2 < \infty. We keep its distribution fixed and compare the predictions y+δy + \delta and x0+δx_0 + \delta, which differ only in their centers. We assume that both expected squared residuals are finite. For a given δ\delta, the prediction around yy attains the lower loss if and only if

∥y+δ−x0∥2+η∥R(y+δ)∥2<∥x0+δ−x0∥2+η∥R(x0+δ)∥2(4)\lVert y + \delta- x_0 \rVert^2 + \eta\lVert R(y + \delta) \rVert^2 < \lVert x_0 + \delta- x_0 \rVert^2 + \eta\lVert R(x_0 + \delta) \rVert^2 \tag*{(4)}

We now compare the expected losses, requiring Eδ[ℓ(y+δ)]<Eδ[ℓ(x0+δ)]\mathbb{E}_{\delta}[\ell(y+\delta)] < \mathbb{E}_{\delta}[\ell(x_0+\delta)]. Using E[δ]=0\mathbb{E}[\delta] = 0, this is equivalent to

ηEδ[∥R(x0+δ)∥2−∥R(y+δ)∥2]>∥y−x0∥2.(5)\eta\mathbb{E}_{\delta}\left[\lVert R(x_0+\delta)\rVert^2-\lVert R(y+\delta)\rVert^2\right] > \lVert y-x_0\rVert^2. \tag*{(5)}

Thus, predictions centered at yy have lower expected loss precisely when the weighted reduction in expected squared residual exceeds the additional denoising cost ∥y−x0∥2\lVert y-x_0\rVert^2. Figure 1 illustrates the comparison between denoising and residual losses. Appendix B provides a detailed derivation.

Figure 1. Illustration of avoidance. The training solution x0x_0 and an alternative solution yy both satisfy R=0R = 0, but the same zero-mean perturbation δ\delta produces a smaller expected residual penalty near the less sensitive solution yy. Shifting predictions from x0+δx_0 + \delta to y+δy + \delta therefore reduces the residual penalty while adding an expected denoising cost of ∥y−x0∥2\lVert y - x_0 \rVert^2. The combined objective prefers this shift when the weighted residual reduction exceeds the added denoising cost. If the favored solution lies outside the data support, this preference results in leakage.

Why the residual cost depends on the solution

To understand why the expected residual loss can differ between the two solutions, consider a small perturbation around a feasible solution. Assume that RR is twice continuously differentiable near x0x_0 and yy. Since R(y)=0R(y) = 0, Taylor expansion gives

R(y+δ)=JR(y)δ+O(∥δ∥2).R(y+\delta)=J_R(y)\delta+O(\lVert\delta\rVert^2).

Each entry of the residual Jacobian JR(y)J_R(y) measures how one residual component changes when one component of the field is varied, so JR(y)δJ_R(y)\delta is the first-order response of the residual to the perturbation δ\delta. The Jacobian can differ between solutions, so the same perturbation can produce different residual responses around x0x_0 and yy.

To control the approximation after averaging, consider δ=ϵz\delta=\epsilon z, where zz is bounded, and ϵ\epsilon is small. Under the smoothness assumption above, replacing the residual by its linear approximation changes its expected squared norm by O(ϵ3)O(\epsilon^3). Applying this approximation to both solutions gives the approximate comparison

ηEδ[∥JR(x0)δ∥2−∥JR(y)δ∥2]>∥y−x0∥2.\eta\mathbb{E}_{\delta}\left[\lVert J_R(x_0)\delta\rVert^2-\lVert J_R(y)\delta\rVert^2\right]>\lVert y-x_0\rVert^2.

The difference in expected residual loss between the two centers depends on how strongly their Jacobians respond to the same perturbations. A smaller average response at yy reduces the expected residual penalty. The approximate comparison predicts a lower combined loss only when this reduction, weighted by η\eta, exceeds the displacement cost ∥y−x0∥2\lVert y-x_0\rVert^2. We call this preference for less sensitive solutions avoidance.

Feasibility does not imply data support

The comparison in Sec. 3.1 requires only that the competing solution is feasible, R(y)=0R(y)=0, not that it is supported by the data. Every element of Z\mathcal{Z} meets this requirement, so the competing solution can also lie in Z∖M\mathcal{Z}\setminus\mathcal{M}. We refer to the possibility that the combined objective favors such a solution as leakage.

The next section addresses avoidance and leakage by fixing the residual Jacobian at the clean training sample, so that moving the prediction cannot change the Jacobian used to penalize its error.

Data-anchored residual loss

The preceding analysis shows that evaluating the residual at the prediction alone can favor different solutions with lower residual sensitivity, including solutions outside the data support. The penalty can therefore decrease as the prediction moves away from its clean training target. To remove this incentive, we penalize the prediction error using the residual Jacobian evaluated at the clean sample x0x_0.

Since R(x0)=0R(x_0)=0, the first-order Taylor approximation of the residual at a prediction x^0\hat{x}_0 is

R(x^0)≈JR(x0)(x^0−x0).R(\hat{x}_0) \approx J_R(x_0)(\hat{x}_0-x_0).

We use the squared norm of this approximation as the data-anchored residual loss:

∥JR(x0)(x^0−x0)∥2.(6)\left\|J_R(x_0)(\hat{x}_0-x_0)\right\|^2. \tag*{(6)}

For a given training sample, the Jacobian remains fixed as the prediction changes. The prediction therefore cannot obtain a smaller penalty simply by moving toward a solution with a less sensitive Jacobian.

Normalization. The magnitude of the residual Jacobian can vary across training samples. This can make the anchored penalty much larger for some samples than others, even when their prediction errors have the same size. To control this scale, we divide by the squared Frobenius norm of the Jacobian and write the full training objective as:

Lanch=Et,x0,xt[λt∥δ∥2+ct∥JR(x0)δ∥2∥JR(x0)∥F2+γ],δ=x^0−x0,ct=cλt,γ>0.(7)\mathcal{L}_{\mathrm{anch}} = \mathbb{E}_{t,x_0,x_t}\left[\lambda_t\|\delta\|^2+c_t\frac{\left\|J_R(x_0)\delta\right\|^2}{\left\|J_R(x_0)\right\|_F^2+\gamma}\right], \qquad \delta=\hat{x}_0-x_0,\qquad c_t=c\lambda_t,\qquad\gamma>0. \tag*{(7)}

The constant γ\gamma prevents division by zero when the Jacobian vanishes. We use the denoising weight as the schedule of the residual term, ct=cλtc_t=c\lambda_t, so the ratio ηt=ct/λt=c\eta_t=c_t/\lambda_t=c is the same at every noise level.

This normalization gives a direct bound:

0≤∥JR(x0)δ∥2∥JR(x0)∥F2+γ≤∥δ∥2.0\leq\frac{\left\|J_R(x_0)\delta\right\|^2}{\left\|J_R(x_0)\right\|_F^2+\gamma}\leq\|\delta\|^2.

Thus the normalized residual term cannot exceed the squared prediction error before the loss weights are applied.

Effect on avoidance

We now repeat the comparison of § 3.1 for the anchored loss in Equation (7) and show that a prediction centered away from x0x_0 can no longer attain a lower expected loss. As before, we compare the predictions y+δy+\delta and x0+δx_0+\delta, which share the same perturbation δ\delta with E[δ]=0\mathbb{E}[\delta]=0. The prediction around yy therefore attains the lower expected loss if and only if

−η∥JR(x0)(y−x0)∥2∥JR(x0)∥F2+γ>∥y−x0∥2,(8)-\eta\frac{\left\|J_R(x_0)(y-x_0)\right\|^2}{\left\|J_R(x_0)\right\|_F^2+\gamma}>\|y-x_0\|^2, \tag*{(8)}

which is the anchored counterpart of Equation (5). The left-hand side is never positive, since it is the negative of a squared norm divided by a positive constant, while the right-hand side is strictly positive for y≠x0y\ne x_0. The condition therefore never holds, and x0x_0 is the unique minimizer of the expected anchored loss over all centers. Appendix § 11 provides a detailed derivation.

Intuitively, the standard loss measures the sensitivity of the residual at the prediction, whereas the anchored loss always measures it at the clean training sample. For a prediction around yy, the standard penalty is therefore governed by JR(y)J_R(y), so a less sensitive solution can reduce it enough to outweigh the added denoising cost (§ 3.2). The anchored penalty uses JR(x0)J_R(x_0) for both predictions, so the shared perturbation incurs the same expected cost around either center, and moving the center can only add to the penalty. Figure 2 illustrates this behavior and compares the anchored loss with the standard loss.

Figure 2. Comparison of the standard and data-anchored objectives for the displacement illustrated in Figure 1. Curves show the change in expected loss relative to the predictions at x0x_0, with the perturbation distribution held fixed. The dashed curve shows the added denoising cost. (a) The standard residual penalty can decrease enough to outweigh this cost, favoring predictions centered at yy. (b) Anchoring the residual Jacobian at x0x_0 removes this saving, so displacement can only increase the expected combined loss, whose minimum remains at x0x_0.

Alignment with the denoising gradient

Reducing the PDE residual does not necessarily bring a prediction closer to its clean target. Anchoring prevents this conflict at the level of prediction-space gradients. For a fixed feasible target x0x_0, the gradients of the standard and normalized anchored physics penalties with respect to x^0\hat{x}_0 are

gstd=2JR(x^0)TR(x^0),g_{\mathrm{std}}=2J_R(\hat{x}_0)^\mathsf{T}R(\hat{x}_0),
ganch=2JR(x0)TJR(x0)(x^0−x0)∥JR(x0)∥F2+γ.(9)g_{\mathrm{anch}}= \frac{2J_R(x_0)^\mathsf{T}J_R(x_0)(\hat{x}_0-x_0)} {\left\|J_R(x_0)\right\|_F^2+\gamma}. \tag*{(9)}

The standard gradient depends on the residual geometry at the prediction. The anchored gradient instead weights the prediction error using the fixed local sensitivity at the clean target.

Taking its inner product with the denoising gradient gden=2(x^0−x0)g_{\mathrm{den}}=2(\hat{x}_0-x_0) gives

⟨gden,ganch⟩=4∥JR(x0)(x^0−x0)∥2∥JR(x0)∥F2+γ≥0.(10)\left\langle g_{\mathrm{den}},g_{\mathrm{anch}}\right\rangle = \frac{4\left\|J_R(x_0)(\hat{x}_0-x_0)\right\|^2} {\left\|J_R(x_0)\right\|_F^2+\gamma}\geq0. \tag*{(10)}

Thus an infinitesimal descent step on the anchored penalty cannot increase the squared prediction error. The standard residual gradient has no such guarantee.

Anchoring also preserves the leading local residual gradient. Since R(x0)=0R(x_0)=0, Taylor expansion of RR and its Jacobian around x0x_0 gives

gstd=(∥JR(x0)∥F2+γ)ganch+O(∥x^0−x0∥2).(11)g_{\mathrm{std}}=\left(\lVert J_R(x_0)\rVert_F^2+\gamma\right)g_{\mathrm{anch}}+O\left(\lVert\hat{x}_0-x_0\rVert^2\right). \tag*{(11)}

The anchored gradient, therefore, agrees with the standard residual gradient to first order, up to normalization, while remaining aligned with denoising even away from the target.

Experiments

Datasets. We use one synthetic dataset, three PDE systems, and one molecular dataset.

The shocked circle is a synthetic dataset whose samples are uniformly distributed around a unit circle. We embed this circle in RD\mathbb{R}^D by placing it in the first two coordinates and setting all remaining coordinates to zero (App. F.1.1). We define the residual as R(x)=(∥x∥2−1)g(x)R(x)=(\lVert x\rVert^2-1)g(x), where gg is positive. The residual therefore vanishes at every point on the unit sphere SD−1\mathbb{S}^{D-1}. The factor gg controls how sensitive the residual is to prediction errors without changing this feasible set. Along the data circle, the sensitivity is σ=2g/D\sigma=2g/\sqrt{D}. We use a graded profile, which makes sensitivity vary by a factor of 10110^1 around the circle, and a flat control with g≡1g\equiv1 and constant sensitivity. Comparing these profiles isolates the effect of varying residual sensitivity. We use D=10D=10 to examine the role of feasible states outside the data support. The data lie on the unit circle in the plane of the first two coordinates, while the residual vanishes on the whole hypersphere. This allows us to study leakage toward feasible states absent from the data.

Advection is the linear 1D advection equation ∂tu+β∂ξu=0\partial_t u+\beta\partial_\xi u=0 with β=1\beta=1 on a 256×256256\times256 space–time grid. Its residual is linear in uu, so the residual Jacobian is the same for every sample.

Burgers is the nonlinear 1D viscous Burgers equation ∂tu+u ∂ξu−ν∂ξξu=0\partial_tu+u\,\partial_\xi u-\nu\partial_{\xi\xi}u=0 with ν=10−3\nu=10^{-3} on a 256×512256\times512 space–time grid. Its trajectories develop steep fronts (shocks), and its residual Jacobian depends on the state through the nonlinear term u ∂ξuu\,\partial_\xi u. The two time-dependent PDE datasets, advection and Burgers, are generated with Liu et al. [27] on the periodic domain ξ∈[0,1)\xi\in[0,1) from random multi-mode initial conditions. Each contains 10 000 trajectories, split 90/10 into training and held-out data, with each sample representing a full space–time trajectory (App. F.1).

Darcy describes steady flow through a porous medium, −∇⋅(K∇p)=f-\nabla\cdot(K\nabla p)=f on the unit square, with permeability KK, pressure pp, zero-flux boundaries, and a source and a sink in two opposite corners. The log-permeability is a Gaussian random field with length scale 0.1, and pp is the solution for that KK. The model generates KK and pp jointly on a 64×6464\times64 grid.

For the molecular task, we evaluate the generation of transition states (TSs) of chemical reactions on Transition1x-2x3px4p (Darouich et al. [9]). The dataset contains about 14 000 gas-phase reactions of small organic molecules with up to 7 heavy atoms and up to 23 atoms, including elements up to the fourth period. All structures are computed at the semi-empirical GFN2-xTB level of theory (Bannwarth et al. [2]).

Metrics. On the shocked circle, we report the median distance to the feasible sphere, ∣∥x∥−1∣\lvert\lVert x\rVert-1\rvert, and to the data plane, ∥x3:D∥\lVert x_{3:D}\rVert. The latter measures departures from the plane containing the data and serves as a diagnostic for leakage.

On the PDE datasets, physical accuracy is measured by the mean absolute residual ∣R∣|R|, averaged over residual entries and generated samples. Maximum mean discrepancy (MMD) assesses distributional fidelity by comparing the joint distributions of field features, including amplitude and maximum gradient, between generated and held-out samples. The σ\sigma ratio compares their median residual sensitivities, with values below one indicating less sensitive generated states. The field standard-deviation ratio compares their mean within-field standard deviations, using uu for Burgers and advection and pp for Darcy. Both ratios ideally equal one.

For molecular TSs, we compare each generated structure with the reference TS of the same reaction. RMSD and DMAE measure structural errors. Physical validity is assessed by the energy difference ΔE\Delta E, the maximum atomic force Fmax⁡F_{\max}, the Hessian MAE, and the valid TS rate, defined as the percentage of generated structures whose Hessian has exactly one negative eigenvalue. Appendix F.2 gives the full definitions.

Weights. The numerical penalty weights are not directly comparable between PIDM and the anchored objective. PIDM penalizes the residual in its original scale, whereas the anchored objective divides its linearized residual penalty by the squared Frobenius norm of the residual Jacobian. A larger anchored coefficient can compensate for this normalization rather than impose a stronger constraint. To compare the methods, we approximately match their local penalty scales near the training data, accounting for both Jacobian normalization and different weighting schedules across noise levels. This gives the pairings cA≈kcPc_A \approx kc_P, with conversion factors of 2×1062 \times10^{6} for advection, approximately 10810^{8} for Burgers, and approximately 101010^{10} for Darcy. We evaluate a range of weights to examine the resulting trade-offs between physical accuracy and data fidelity.

Results

Shocked circle. Figure 3 shows PIDM on the graded circle at D=10D = 10. Darker shading indicates higher residual sensitivity. Errors of the same size incur larger residuals. As cc increases, the residual decreases, but samples increasingly avoid sensitive regions. The model thus favors states where the same error is penalized less, as predicted by Eq. (5). This effect is absent in the flat control, where sensitivity is constant and the angular density remains uniform even at c=1c = 1. Meanwhile, the distance to the data plane increases despite the lower residual. Since all data lie in this plane, this distance measures departure from the data manifold. PIDM therefore lowers the residual both by avoiding sensitive regions and by moving along Z∖M\mathcal{Z} \setminus\mathcal{M}, where the residual vanishes and cannot distinguish data-supported states from other feasible states. The anchored objective retains coverage of the entire circle (App. § 15.§ 1).

Figure 3. PIDM on the shocked circle at D=10D = 10. Top, generated samples projected onto the data plane, with shading indicating residual sensitivity. Bottom, their angular density compared with the data distribution (dashed) and the residual sensitivity σ(θ)\sigma(\theta) (grey). The first column uses the flat residual as a control. Right, median radial residual ∣∥x∥−1∣|\lVert x\rVert- 1| and distance to the data plane ∥x3:D∥\lVert x_{3:D}\rVert as functions of the penalty weight.

Burgers’ equation. Only the anchored objective dominates DM. At c=10−2c = 10^{-2} it lowers the residual from 0.250.25 to 0.230.23 and the MMD from 0.120.12 to 0.0370.037, and its σ\sigma and std⁡(u)\operatorname{std}(u) ratios rise from 0.820.82 and 0.810.81 to 0.910.91 and 0.900.90. It thus counteracts the tendency of DM toward smooth fields. No weight of PIDM reaches the MMD of DM. At its smallest weights PIDM lowers the residual to 0.110.11 at an MMD of 0.570.57, and larger weights shrink the fields until the std⁡(u)\operatorname{std}(u) ratio falls below 0.10.1. Its very low residuals at c≥10−1c \ge10^{-1} therefore come from weak, smooth fields with an MMD of 1.21.2. The anchored objective reaches the same residual of 0.110.11 at an MMD of $0.44 and keeps an std⁡(u)\operatorname{std}(u) ratio of at least 0.630.63 up to c=104c = 10^{4}. Wherever both methods reach the same residual, the anchored samples are closer to the data. Detailed results can be found in Appendix § 15.§ 2.

Darcy’s equation. Both objectives match the MMD of DM and lower its residual from 6.0 to 0.28 for PIDM and 0.35 for the anchored objective. The anchored objective reaches the lowest MMD of all runs (0.028 against 0.046 for PIDM and 0.054 for DM), with σ\sigma and std(pp) ratios closer to one. At larger weights PIDM flattens the pressure, which makes errors in KK cheaper, and its MMD rises to 0.20 at c=10−4c = 10^{-4} (Table 8). At the comparable weight c=106c = 10^{6} the anchored objective still keeps the pressure, with a std(pp) ratio of 0.92, and reaches a residual of 0.24 at an MMD of 0.079. At the largest weights both objectives flatten the pressure (App. § 15.§ 3).

Table 8: Darcy. Rows of PIDM and the anchored objective with comparable weights are aligned. The anchored objective reaches a lower residual at comparable MMD.

cc∣R‾∣\lvert\overline{R}\rvert ↓\downarrowforward error ↓\downarrowMMD ↓\downarrowσ\sigma ratio →1\to1std(pp) ratio →1\to1std(KK) ratio →1\to1
DM6.03.4e-25.4e-20.841.10.75
PIDM
10−710^{-7}1.24.3e-27.3e-20.801.20.72
10−610^{-6}0.965.5e-24.7e-20.851.10.74
10−510^{-5}0.280.194.6e-20.830.980.73
10−410^{-4}0.330.390.200.910.640.75
10−310^{-3}0.140.870.660.790.140.66
Anchored
10310^{3}2.05.9e-25.3e-20.841.10.75
10410^{4}0.563.6e-25.8e-20.831.10.74
10510^{5}0.354.7e-22.8e-20.900.990.80
10610^{6}0.240.227.9e-20.820.920.71
10710^{7}0.361.00.900.790.310.79

Table 8.

Advection equation. For the linear advection equation the residual Jacobian is the same for every field, so the anchored residual equals the standard one up to a constant, and neither avoidance nor a shifted target can occur (App. § 12). The two objectives then differ only in their weighting over noise levels. As expected, they behave alike (Figure 4). Both lower the residual at the cost of amplitude, and at the largest weights they coincide (Table 9). The smaller loss of amplitude of the anchored objective at low weights comes from PIDM’s ratio ηt\eta_t growing at high noise, where the zero field is an exact solution.

Figure 4. Trade-offs between distributional fidelity and physical accuracy on Burgers (left), Darcy (middle), and advection (right). Each point shows the MMD and mean absolute residual ∣R∣|R| for one reported setting. Both axes are logarithmic, and lower left is better. Stars denote DM, orange squares PIDM, and blue circles the anchored objective. Dashed lines connect nondominated settings within each regularized method. A setting is nondominated if no other tested weight of the same method reduces one metric without increasing the other. The line segments serve as visual guides. Rings and labels mark the lowest-MMD setting for each regularized method, breaking MMD ties by lower residual. The labeled cc values are the coefficients used in each method’s objective.

Table 9: Advection. PIDM (left) and the anchored objective (right) with comparable weights in the same row. DM reaches ∣R∣=1.6\lvert R\rvert= 1.6e-2, an MMD of 0.28 and a std(uu) ratio of 0.51.

PIDMAnchored
cc∣R‾∣\lvert\overline{R}\rvert ↓\downarrowMMD ↓\downarrowstd(uu) ratio →1\to1cc∣R‾∣\lvert\overline{R}\rvert ↓\downarrowMMD ↓\downarrowstd(uu) ratio →1\to1
10−310^{-3}4.6e-30.450.372⋅1032 \cdot10^{3}5.3e-30.290.50
10−210^{-2}2.2e-30.590.242⋅1042 \cdot10^{4}4.2e-30.370.41
10−110^{-1}1.3e-30.845.6e-22⋅1052 \cdot10^{5}1.6e-30.610.17
19.2e-40.877.2e-32⋅1062 \cdot10^{6}9.1e-40.874.1e-3

Table 9.

Methodcc∣Rˉ∣|\bar{R}| ↓\downarrowMMD ↓\downarrowσ\sigma ratio →1\to1Field std. ratio →1\to1
Burgers
DM–0.250.120.820.81
PIDMNone––––
Anchored (ours)10−210^{-2}0.230.0370.910.90
Darcy
DM–6.00.0540.841.1
PIDM10−510^{-5}0.280.0460.830.98
Anchored (ours)10510^{5}0.350.0280.900.99

Table 1. Results at the weight cc that minimizes the residual subject to MMD being no higher than the DM baseline. “–” indicates that no tested weight can match the MMD of the DM baseline. Bold marks the best-displayed value within each PDE, with ratios compared by their distance from it. The field standard-deviation ratio uses uu for Burgers and pp for Darcy.

Transition1x-2p3p4p. To test the anchored loss beyond PDEs, we generate TSs of chemical reactions. A TS is a first-order saddle point of the PES, at which all forces vanish, so a natural residual is the force R(x^0)=F(x^0)=−∇E(x^0)R(\hat{x}_0)=F(\hat{x}_0)=-\nabla E(\hat{x}_0). Since evaluating GFN2-xTB during training is too expensive, we use the machine-learned interatomic potential HIP [5] as a surrogate, which provides energies, forces, and Hessians at a fraction of the cost.

We train React-OT [11] with the plain flow matching loss (FM), with the standard residual Table 2: TS generation on Transition1x-2p3p4p. All metrics except the valid TS rate are medians over the generated structures. The Hessian MAE is computed against the GFN2-xTB reference Hessians, and the valid TS rate is the percentage of generated structures whose Hessian has exactly one negative eigenvalue.

RMSD (A˚\mathring{\mathrm{A}})↓\downarrowD-MAE (A˚\mathring{\mathrm{A}})↓\downarrowΔE\Delta E (kcal/mol)↓\downarrowFmax⁡F_{\max} (kcal/mol/A˚\mathring{\mathrm{A}})↓\downarrowHessian MAE (kcal/mol/A˚2\mathring{\mathrm{A}}^{2})↓\downarrowValid TS (%)↑\uparrow
FM0.1340.0602.5333.508.4057.0
FM + residual0.1400.0668.1167.8012.5636.0
FM + anchored (ours)0.1350.0592.3631.228.0960.0

Table 2. TS generation on Transition1x-2p3p4p. All metrics except the valid TS rate are medians over the generated structures. The Hessian MAE is computed against the GFN2-xTB reference Hessians, and the valid TS rate is the percentage of generated structures whose Hessian has exactly one negative eigenvalue.

loss added to it (FM + residual), and with the anchored residual loss added to it (FM + anchored), as detailed in Appendix F.3. All three models reach similar structural accuracy (Table 2). RMSD and DMAE weigh all geometric errors equally, but the energy is far more sensitive to some displacements, such as bond stretches, than to others, such as torsions. As with shocked and smooth PDE solutions, errors of the same size can therefore have very different physical costs, and the energetic metrics separate the models clearly. Although FM + residual penalizes the force directly, it roughly triples the energy error of FM, doubles its maximum force, and increases its Hessian error, while FM + anchored improves all three. The valid TS rate drops from 57% for FM to 36% for FM + residual and rises to 60% for FM + anchored. This is consistent with leakage, since the standard residual cannot distinguish a TS from a minimum, whereas the anchored loss evaluates the Jacobian at the reference TS, whose Hessian carries the single direction of negative curvature.

Related work

Physics at inference. One line of work integrates physics during inference and steers the samples of a trained model with the gradients of the PDE residual ([35, 18, 20, 13]), by projections onto the constraint set ([7, 40] (Xu et al. 2026)), or by running the diffusion in a transformed space in which the map back to the data space carries the constraint ([25, 12]). For diffusion guidance in general, Geyfman et al. [14] show that common approximations can bias sampling away from the intended Bayesian posterior. We instead study residual penalties during training, with sampling left unchanged.

Physics during training. Bastek et al. [3] introduce the penalty we study, adding the residual loss to the denoising loss. Later work varies how the residual enters. Zeng et al. [46] propose a different weighting of the residual across noise levels, Sawhney et al. [32] pass the residual field to spectral attention instead of the loss, and Yeom-Song et al. [44] add the constraint gradient to the predicted clean sample inside the forward pass. Another group penalizes the residual on a sampled output rather than on the posterior mean, by distilling the trained model into a few-step generator or fine-tuning it on multi-step trajectories ([47, 22, 6]), or by treating the residual as a reward and fine-tuning a pretrained model against it ([45, 38]), at the cost of a second training stage. These corrections reduce the prediction error but leave the residual evaluated at the model’s own output, so the preference derived (§ 3.1) persists whenever the prediction is not exact. An extended overview over related work can be found in App. § 13.

Discussion

Limitations. The anchored objective requires a residual Jacobian–vector product and estimates the normalizer at every training step, potentially increasing the computational cost relative to PIDM (Table 5). Its benefit depends on the residual structure. For linear PDEs such as advection, the anchored and standard penalties coincide up to a constant, leaving only their weighting across noise levels to distinguish the objectives. The gains are clearest when the residual depends nonlinearly on the state. Anchoring also guarantees neither exact constraint satisfaction nor preservation of the data distribution. It mitigates avoidance, but sample-dependent Jacobian weighting can still shift the conditional denoising optimum (App. § 12). Empirically, generated samples retain residuals above those of the data, and large penalty weights still smooth Burgers shocks and flatten Darcy pressure fields, although anchoring reduces these distortions over much of the tested range of weights. The penalty weight, therefore, remains an important choice in balancing physical accuracy and distributional fidelity.

DMPIDMAnchored
Advection526531 (+1.0%)539 (+2.5%)
Burgers10671071 (+0.4%)1082 (+1.5%)
Darcy4157 (+38%)92 (+123%)

Table 5. Wall-clock time in seconds per 1000 training iterations on one A40 GPU at batch size 8, for the training step alone. In parentheses the increase over DM.

Future work. Since the anchored objective keeps the samples close to the data distribution, it is a good starting point for a correction after sampling, such as a final projection, which could provide the guarantees that training alone cannot. A time weighting chosen for the physics term, rather than inherited from the data term, is also likely to improve the method. Further directions are efficient approximations of the Jacobian and applying the physics term only at the noise levels where it helps most.

AI use statement

In this work, we used generative AI tools to aid and polish writing, to draft sections of the paper, and to support research execution through code generation for analysis and evaluation scripts, generation of datasets and creation of figure. We have not used generative AI tools for design methodology and experiments, develop theoretical models or conceptual frameworks and assist with translation, clean and reformat dataset are not applicable to this work, summarize and analyze existing literature, format references. Additionally, we used generative AI tools for creating and editing figures and draft part of the research paper, search for additional relevant literature. We have reviewed all AI-assisted work. All code and text has been manually reviewed by the authors. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.

See the AISTATS 2027 AI Policy for Authors for more details. This statement should not be more than 1 page.

Acknowledgements

This work was supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy – EXC 2120/1 – 390831618. The authors thank the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for supporting Tanja Bien, Samir Darouich, Lluís Pastor-Pérez, and Vinh Tong. We also acknowledge support from the Ministry of Science, Research and the Arts Baden-Württemberg through the Artificial Intelligence Software Academy (AISA), as well as from the Stuttgart Center for Simulation Science (SimTech). L. Mualem was supported by a postdoctoral scholarship from the Planning and Budgeting Committee (PBC) of the Council for Higher Education in Israel. The authors gratefully acknowledge the computing time provided on the high-performance computer HoreKa by the National High-Performance Computing Center at KIT (NHR@KIT). This center is jointly supported by the Federal Ministry of Education and Research and the Ministry of Science, Research and the Arts of Baden-Württemberg, as part of the National High-Performance Computing (NHR) joint funding program (https://www.nhr-verein.de/en/our-partners). HoreKa is partly funded by the German Research Foundation (DFG).

CHECKLIST

  1. For all models and algorithms presented, check if you include:

    (a) A clear description of the mathematical setting, assumptions, algorithm, and/or model. Yes, all assumptions and definitions are stated in Section 3 and 4 and Appendix A, B, C include the detailed step-by-step derivations and more details.

    (b) An analysis of the properties and complexity (time, space, sample size) of any algorithm. Yes, Appendix F.4 analysis the training cost of the different methods.

    (c) (Optional) Anonymized source code, with specification of all dependencies, including external libraries. Yes.

  1. For any theoretical claim, check if you include:

    (a) Statements of the full set of assumptions of all theoretical results. Yes

    (b) Complete proofs of all theoretical results. Yes

    (c) Clear explanations of any assumptions. Yes

  1. For all figures and tables that present empirical results, check if you include:

    (a) The code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL). Yes, code and data are added as supplemental material.

    (b) All the training details (e.g., data splits, hyperparameters, how they were chosen). Yes, in Appendix F.3 Implementation details.

    (c) A clear definition of the specific measure or statistics and error bars (e.g., with respect to the random seed after running experiments multiple times). Yes, in Appendix F.2 Metrics

    (d) A description of the computing infrastructure used. (e.g., type of GPUs, internal cluster, or cloud provider). Yes, we name the type of GPU used for the respective experiments in the training and sampling settings table.

  1. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets, check if you include:

(a) Citations of the creator If your work uses existing assets. Yes, we cite all datasets and software we use.

(b) The license information of the assets, if applicable. Yes

(c) New assets either in the supplemental material or as a URL, if applicable. Not Applicable.

(d) Information about consent from data providers/curators. Not Applicable.

(e) Discussion of sensible content if applicable, e.g., personally identifiable information or offensive content. Not applicable

  1. If you used crowdsourcing or conducted research with human subjects, check if you include:

(a) The full text of instructions given to participants and screenshots. Not Applicable

(b) Descriptions of potential participant risks, with links to Institutional Review Board (IRB) approvals if applicable. Not Applicable

(c) The estimated hourly wage paid to participants and the total amount spent on participant compensation. Not Applicable

Conditional target of the combined loss

In physics-constrained training, the governing equation satisfied by the data is known, and its residual is added to steer predictions toward physically plausible samples Bastek et al. [3]. Consider the idealized case in which the diffusion model already reproduces pdatap_{\mathrm{data}}. Its generated samples then satisfy the PDE, so the residual has no distributional defect to correct. We ask whether adding the residual loss nevertheless changes the optimal denoiser’s predictions.

To answer this, we compare the minimizer of the denoising loss with the minimizer of the combined loss. At a fixed noisy input xtx_t, the first is the conditional mean x0⋆(xt)=E[x0∣xt]x_0^\star(x_t)=\mathbb{E}[x_0\mid x_t], and the second, is

xη⋆(xt)∈arg min⁡y∈Rd{12∥y−x0⋆∥2⏟denoising loss+η2∥R(y)∥2⏟residual loss}.(12)x_\eta^\star(x_t)\in\underset{y\in\mathbb{R}^d}{\operatorname{arg\,min}}\left\{\underbrace{\frac{1}{2}\lVert y-x_0^\star\rVert^2}_{\text{denoising loss}}+\underbrace{\frac{\eta}{2}\lVert R(y)\rVert^2}_{\text{residual loss}}\right\}. \tag*{(12)}

The displacement from the denoising optimum to the combined optimum is sη(xt):=xη⋆(xt)−x0⋆s_\eta(x_t):=x_\eta^\star(x_t)-x_0^\star, with s0(xt)=0s_0(x_t)=0 when only the denoising objective is used.

To find the minimizer of Eq. (12) we ask how far a prediction must shift from x0⋆x_0^\star to reach it, so we write every candidate as y=x0⋆+sy=x_0^\star+s and search for the displacement ss at which the gradient of the combined objective vanishes. Setting the gradient of Eq. (12) to zero gives a condition for sηs_\eta, and its Taylor expansion around x0⋆x_0^\star to leading order in η\eta is (App. A.2, App. A.3)

sη=−ηJR(x0⋆)TR(x0⋆)+O(η2)=−η2∇∥R∥2∣x0⋆+O(η2).(13)s_\eta=-\eta J_R(x_0^\star)^\mathsf{T}R(x_0^\star)+O(\eta^2)=-\frac{\eta}{2}\nabla\lVert R\rVert^2\big|_{x_0^\star}+O(\eta^2). \tag*{(13)}

If the product of the Jacobian of the residual and the residual is nonzero JR(x0⋆)TR(x0⋆)≠0J_R(x_0^\star)^\mathsf{T}R(x_0^\star)\ne0, the denoising optimum cannot minimize the combined objective for any η>0\eta>0. Thus sη≠0s_\eta\ne0, even though x0⋆x_0^\star is already the optimal denoising prediction. This can occur when every clean sample satisfies the PDE, because their conditional mean need not satisfy a nonlinear equation.

The remainder of this section derives these statements. App. § 9.§ 1 reduces the conditional denoising objective to Eq. (12), App. § 9.§ 2 and App. § 9.§ 3 give the stationarity condition and its expansion for small weight, App. § 9.§ 4 bounds the magnitude of sηs_\eta, and App. § 9.§ 5 examines when the conditional mean of feasible samples fails to satisfy the equation. App. § 9.§ 6 gives an example in which every increase of the weight lowers the residual and moves the target farther from the data. App. § 9.§ 7 relates the infeasibility of the conditional mean to the Jensen gap.

The conditional denoising objective

Fix xtx_t and write x0⋆=x0⋆(xt)x_0^\star=x_0^\star(x_t) and Σpost(xt)=Cov⁡[x0∣xt]\Sigma_{\mathrm{post}}(x_t)=\operatorname{Cov}[x_0\mid x_t]. With finite conditional second moments, expand x0−y=(x0−x0⋆)+(x0⋆−y)x_0-y=(x_0-x_0^\star)+(x_0^\star-y). Since E[x0−x0⋆∣xt]=0\mathbb{E}[x_0-x_0^\star\mid x_t]=0, the cross term has zero expectation and

E[∥x0−y∥2∣xt]=∥y−x0⋆∥2+tr⁡Σpost(xt).(14)\mathbb{E}[\lVert x_0-y\rVert^2\mid x_t]=\lVert y-x_0^\star\rVert^2+\operatorname{tr}\Sigma_{\mathrm{post}}(x_t). \tag*{(14)}

The covariance term is independent of yy, giving the objective in Eq. (12).

The displacement condition

Let R=(R1,…,Rm)R=(R_1,\ldots,R_m) be differentiable. Its Jacobian JR(y)∈Rm×dJ_R(y)\in\mathbb{R}^{m\times d} has entries [JR(y)]ki=∂Rk(y)/∂yi[J_R(y)]_{ki}=\partial R_k(y)/\partial y_i. Write a candidate prediction as y=x0⋆+sy=x_0^\star+s. After this substitution, the function minimized inside the braces in Eq. (12) becomes

fη(s)=12∥s∥2+η2∥R(x0⋆+s)∥2.(15)f_\eta(s)=\frac{1}{2}\lVert s\rVert^2+\frac{\eta}{2}\lVert R(x_0^\star+s)\rVert^2. \tag*{(15)}

The derivative of the denoising term is

∇s12∥s∥2=s.(16)\nabla_s\frac{1}{2}\lVert s\rVert^2=s. \tag*{(16)}

For the residual term, write its squared norm componentwise as

12∥R(x0⋆+s)∥2=12∑k=1mRk(x0⋆+s)2.(17)\frac{1}{2}\lVert R(x_0^\star+s)\rVert^2=\frac{1}{2}\sum_{k=1}^{m}R_k(x_0^\star+s)^2. \tag*{(17)}

Because y=x0⋆+sy = x_0^\star+ s, differentiation with respect to sis_i gives

∂∂si12∥R(x0⋆+s)∥2=∑k=1mRk(x0⋆+s)∂Rk∂yi(x0⋆+s).(18)\frac{\partial}{\partial s_i}\frac{1}{2}\lVert R(x_0^\star+ s)\rVert^2 = \sum_{k=1}^{m} R_k(x_0^\star+ s)\frac{\partial R_k}{\partial y_i}(x_0^\star+ s). \tag*{(18)}

Collecting these components yields

∇s12∥R(x0⋆+s)∥2=JR(x0⋆+s)⊤R(x0⋆+s).(19)\nabla_s \frac{1}{2}\lVert R(x_0^\star+ s)\rVert^2 = J_R(x_0^\star+ s)^\top R(x_0^\star+ s). \tag*{(19)}

The gradient of the full objective is therefore

∇sfη(s)=s+ηJR(x0⋆+s)⊤R(x0⋆+s).(20)\nabla_s f_\eta(s) = s + \eta J_R(x_0^\star+ s)^\top R(x_0^\star+ s). \tag*{(20)}

At the minimizing displacement s=sηs = s_\eta, the first-order condition is

0=sη+ηJR(x0⋆+sη)⊤R(x0⋆+sη).(21)0 = s_\eta+ \eta J_R(x_0^\star+ s_\eta)^\top R(x_0^\star+ s_\eta). \tag*{(21)}

Rearranging gives the implicit stationarity condition

sη=−ηJR(x0⋆+sη)⊤R(x0⋆+sη).(22)s_\eta= -\eta J_R(x_0^\star+ s_\eta)^\top R(x_0^\star+ s_\eta). \tag*{(22)}

The small-weight displacement

Define F(s,η)=s+ηJR(x0⋆+s)⊤R(x0⋆+s)F(s,\eta) = s + \eta J_R(x_0^\star+ s)^\top R(x_0^\star+ s). Then F(0,0)=0F(0,0) = 0 and DsF(0,0)=ID_sF(0,0) = I. If RR is sufficiently smooth, the implicit function theorem gives a local solution sηs_\eta near η=0\eta= 0. Differentiating F(sη,η)=0F(s_\eta,\eta) = 0 at η=0\eta= 0 yields

dsηdη∣η=0=−JR(x0⋆)⊤R(x0⋆).(23)\left.\frac{d s_\eta}{d\eta}\right|_{\eta=0} = -J_R(x_0^\star)^\top R(x_0^\star). \tag*{(23)}

which gives Eq. (13). For continuous RR, global minimizers exist by coercivity and approach x0⋆x_0^\star as η↓0\eta\downarrow0. With local smoothness, they lie on this branch for small enough weight.

The displacement bound

Since xη⋆x_\eta^\star minimizes the objective in Eq. (12), its value cannot exceed the value at y=x0⋆y = x_0^\star. Substituting sη=xη⋆−x0⋆s_\eta= x_\eta^\star- x_0^\star gives directly

∥sη∥2≤η[∥R(x0⋆)∥2−∥R(xη⋆)∥2],∥sη∥≤η∥R(x0⋆)∥.(24)\lVert s_\eta\rVert^2 \le\eta\left[\lVert R(x_0^\star)\rVert^2 - \lVert R(x_\eta^\star)\rVert^2\right], \qquad\lVert s_\eta\rVert\le\sqrt{\eta}\lVert R(x_0^\star)\rVert. \tag*{(24)}

The second inequality uses ∥R(xη⋆)∥2≥0\lVert R(x_\eta^\star)\rVert^2 \ge0. In particular, R(x0⋆)=0R(x_0^\star) = 0 implies sη=0s_\eta= 0 for every η≥0\eta\ge0.

The conditional residual gap

A nonzero residual at x0⋆x_0^\star is necessary for the combined objective to displace the optimal denoising prediction, as shown by Eq. (24). This may seem unlikely when every clean sample satisfies the PDE. The optimal denoiser predicts x0⋆=E[x0∣xt]x_0^\star= \mathbb{E}[x_0 \mid x_t], rather than one of the feasible clean samples. It averages the clean samples compatible with noisy input xtx_t. Although each of these samples satisfies the PDE, their average need not do so. This can happen when the PDE solution set is not convex, since an average of solutions may lie outside it. If RR is affine, conditional expectation preserves feasibility,

R(x0⋆)=E[R(x0)∣xt]=0.R(x_0^\star) = \mathbb{E}[R(x_0) \mid x_t] = 0.

For a nonlinear residual, feasibility of the conditional mean need not follow. Let ζ=x0−x0⋆\zeta= x_0 - x_0^\star. Taylor expansion of each residual component around x0⋆x_0^\star gives

Rk(x0)=Rk(x0⋆)+JRk(x0⋆)ζ+12ζ⊤∇2Rk(x0⋆)ζ+rk(ζ),(25)R_k(x_0) = R_k(x_0^\star) + J_{R_k}(x_0^\star)\zeta+ \frac{1}{2}\zeta^\top\nabla^2 R_k(x_0^\star)\zeta+ r_k(\zeta), \tag*{(25)}

where rk(ζ)=o(∥ζ∥2)r_k(\zeta) = o(\lVert\zeta\rVert^2) as ζ→0\zeta\to0. Provided the conditional expectation of the remainder exists, Rk(x0)=0R_k(x_0) = 0 almost surely and E[ζ∣xt]=0\mathbb{E}[\zeta\mid x_t] = 0 give

Rk(x0⋆)=−12tr⁡(∇2Rk(x0⋆)Σpost(xt))−E[rk(ζ)∣xt].(26)R_k(x_0^\star) = -\frac{1}{2}\operatorname{tr}\left(\nabla^2 R_k(x_0^\star)\Sigma_{\mathrm{post}}(x_t)\right) - \mathbb{E}[r_k(\zeta) \mid x_t]. \tag*{(26)}

The remainder vanishes for quadratic RR, making the identity exact. Nonlinearity and posterior spread can therefore produce a nonzero residual at the optimal denoising prediction, although neither guarantees it.

Neither ingredient is sufficient. Let R(x)=x3−x12+x22R(x)=x_3-x_1^2+x_2^2 with a symmetric conditional law on (a,a,0)(a,a,0) and (−a,−a,0)(-a,-a,0), a≠0a\ne0. The mean is feasible and both Hessian and covariance are nonzero, but their contraction vanishes, so the displacement is zero at every weight despite a full-row-rank Jacobian at the mean. The affine case is a sufficient exact control, not the only zero-displacement case.

The circle identity and the origin. For feasible circle data and R0=∥x∥2−1R_0=\lVert x\rVert^2-1, R0(x⋆)=−tr⁡ΣpostR_0(x^\star)=-\operatorname{tr}\Sigma_{\mathrm{post}} exactly, and sη=2ηtr⁡Σpostx0⋆+O(η2)s_\eta=2\eta\operatorname{tr}\Sigma_{\mathrm{post}}x_0^\star+O(\eta^2), radially outward, partly reversing the contraction caused by averaging distinct circle points, and vanishing with the spread. At x0⋆=0x_0^\star=0, however, JR0(0)=0J_{R_0}(0)=0 and the objective 12∥y∥2+η2(∥y∥2−1)2\frac{1}{2}\lVert y\rVert^2+\frac{\eta}{2}(\lVert y\rVert^2-1)^2 has minimizer y=0y=0 for η≤1/2\eta\le1/2, so nonzero residual must not be identified with nonzero first-order displacement.

An exact example of the trade-off

Let M={(acos⁡θ,asin⁡θ,h)}\mathcal{M}=\{(a\cos\theta,a\sin\theta,h)\} with a=ρ2−h2a=\sqrt{\rho^2-h^2}, 0<h<ρ0<h<\rho, on the sphere of radius ρ\rho, with a rotationally symmetric conditional law, so x0⋆=(0,0,h)x_0^\star=(0,0,h). The residual depends only on ∥y∥\lVert y\rVert while ∥y−x0⋆∥2\lVert y-x_0^\star\rVert^2 is minimized on the positive axis, so global minimization reduces to min⁡z≥012(z−h)2+η2(z2−ρ2)2\min_{z\ge0}\frac{1}{2}(z-h)^2+\frac{\eta}{2}(z^2-\rho^2)^2, with derivative (z−h)+2ηz(z2−ρ2)(z-h)+2\eta z(z^2-\rho^2), negative on [0,h][0,h] and positive on [ρ,∞)[\rho,\infty). All minimizers lie in (h,ρ)(h,\rho), where stationarity is

η(z)=z−h2z(ρ2−z2),η′(z)=h(ρ2−h2)+(z−h)2(2z+h)2z2(ρ2−z2)2>0,(27)\eta(z)=\frac{z-h}{2z(\rho^2-z^2)},\qquad \eta'(z)=\frac{h(\rho^2-h^2)+(z-h)^2(2z+h)}{2z^2(\rho^2-z^2)^2}>0, \tag*{(27)}

increasing continuously from zero to infinity, so every positive weight has exactly one stationary point in the interval, it is the global minimizer, and zηz_\eta increases from hh toward ρ\rho. Every data point is equidistant from an axis point, so

∣R(yη)∣=ρ2−zη2↓,dist⁡(yη,M)2=dist⁡(x0⋆,M)2+∥sη∥2↑,(28)\lvert R(y_\eta)\rvert=\rho^2-z_\eta^2\downarrow,\qquad \operatorname{dist}(y_\eta,\mathcal{M})^2=\operatorname{dist}(x_0^\star,\mathcal{M})^2+\lVert s_\eta\rVert^2\uparrow, \tag*{(28)}

the added squared distance tending to (ρ−h)2(\rho-h)^2 as the residual tends to zero, so every increment of weight improves the physics and takes the target farther from every data state.

The influence of the Jensen gap

For a nonlinear function the value at an average is not the average of the values, and the difference is the Jensen gap. The gap has already been held responsible for the trade-off between physical and distributional accuracy, since the residual is imposed on the posterior mean rather than on a clean sample, and both Zhang et al. [47] and Baldan et al. [1] seek to reduce it by evaluating the residual closer to a clean sample. A denoiser makes such an average unavoidable, since it sees only xtx_t and must answer with one prediction for every clean state compatible with it. Both terms in the objective Eq. (2) then carry a gap. The denoising term carries the spread of the clean samples compatible with xtx_t, the part tr⁡Σpost\operatorname{tr}\Sigma_{\mathrm{post}} of the expected denoising loss that no prediction removes (App. § 9.§ 1). The residual term can carry a nonzero residual at their average x0⋆=E[x0∣xt]x_0^\star=\mathbb{E}[x_0\mid x_t] (Eq. (26)), since each sample is feasible but their average need not be. The two gaps differ in origin but not in effect. Each one implies a nonzero prediction error δ=x^0−x0\delta=\hat{x}_0-x_0, and the comparison in § 3.1 depends on the model only through the distribution of δ\delta, and once the residual cost is linearized and the error has no preferred direction, only through E∥δ∥2\mathbb{E}\lVert\delta\rVert^2.

That is the whole role of the gap. At a feasible clean sample a prediction with zero error already minimizes both loss terms, so a nonzero error is needed before they can favor different predictions. The gap is one source of such error, so reducing it reduces both biases. Finite capacity, finite data and finite training are others, and they persist when the averaging is removed. A perfect one-step generator would carry no error and therefore no bias, while a real one is imperfect for those reasons, which is all the comparison requires. The gap also supplies no direction and the discussed biases are based on properties of the residual.

Derivation of the loss comparison

We derive Equation (5) from the per-sample loss of Equation (3). Fix a clean training sample x0x_0 and a noise level tt, and write the loss of a prediction x^0\hat{x}_0 as

ℓ(x^0)=∥x^0−x0∥2+η∥R(x^0)∥2,η=ctλt.\ell(\hat{x}_0)=\lVert\hat{x}_0-x_0\rVert^2+\eta\lVert R(\hat{x}_0)\rVert^2,\qquad\eta=\frac{c_t}{\lambda_t}.

As in § 3.1, let δ\delta be a random perturbation with E[δ]=0\mathbb{E}[\delta]=0 and E∥δ∥2<∞\mathbb{E}\lVert\delta\rVert^2<\infty, and let y∈Rdy\in\mathbb{R}^d be a second center. We assume that E∥R(y+δ)∥2\mathbb{E}\lVert R(y+\delta)\rVert^2 and E∥R(x0+δ)∥2\mathbb{E}\lVert R(x_0+\delta)\rVert^2 are finite.

Step 1: Losses of the two predictions. Substituting x^0=y+δ\hat{x}_0 = y + \delta and x^0=x0+δ\hat{x}_0 = x_0 + \delta gives

ℓ(y+δ)=∥y−x0+δ∥2+η∥R(y+δ)∥2,\ell(y+\delta)=\lVert y-x_0+\delta\rVert^2+\eta\lVert R(y+\delta)\rVert^2,
ℓ(x0+δ)=∥δ∥2+η∥R(x0+δ)∥2.\ell(x_0+\delta)=\lVert\delta\rVert^2+\eta\lVert R(x_0+\delta)\rVert^2.

Step 2: Expanding the denoising square. Only the denoising term can be expanded, since RR is a general nonlinear map evaluated at the prediction,

∥y−x0+δ∥2=∥y−x0∥2+2⟨y−x0,δ⟩+∥δ∥2.\lVert y-x_0+\delta\rVert^2=\lVert y-x_0\rVert^2+2\langle y-x_0,\delta\rangle+\lVert\delta\rVert^2.

The residual term is kept as it stands and is treated in § 3.2 by linearization.

Step 3: Taking expectations. The vector y−x0y-x_0 is deterministic and E[δ]=0\mathbb{E}[\delta]=0, so the cross term vanishes,

E[⟨y−x0,δ⟩]=⟨y−x0,E[δ]⟩=0.\mathbb{E}\left[\langle y-x_0,\delta\rangle\right]=\langle y-x_0,\mathbb{E}[\delta]\rangle=0.

The expected losses are therefore

Eδ[ℓ(y+δ)]=∥y−x0∥2+E∥δ∥2+ηE∥R(y+δ)∥2,\mathbb{E}_{\delta}\left[\ell(y+\delta)\right]=\lVert y-x_0\rVert^2+\mathbb{E}\lVert\delta\rVert^2+\eta\mathbb{E}\lVert R(y+\delta)\rVert^2,
Eδ[ℓ(x0+δ)]=E∥δ∥2+ηE∥R(x0+δ)∥2.\mathbb{E}_{\delta}\left[\ell(x_0+\delta)\right]=\mathbb{E}\lVert\delta\rVert^2+\eta\mathbb{E}\lVert R(x_0+\delta)\rVert^2.

Step 4: Difference of the expected losses. The term E∥δ∥2\mathbb{E}\lVert\delta\rVert^2 appears in both expressions and is finite, so it cancels,

Δ(y)=Eδ[ℓ(y+δ)]−Eδ[ℓ(x0+δ)]=∥y−x0∥2+ηEδ[∥R(y+δ)∥2−∥R(x0+δ)∥2].(29)\Delta(y)=\mathbb{E}_{\delta}\left[\ell(y+\delta)\right]-\mathbb{E}_{\delta}\left[\ell(x_0+\delta)\right]=\lVert y-x_0\rVert^2+\eta\mathbb{E}_{\delta}\left[\lVert R(y+\delta)\rVert^2-\lVert R(x_0+\delta)\rVert^2\right]. \tag*{(29)}

The magnitude of the perturbation therefore does not enter the comparison, only the difference in expected residual between the two centers.

Step 5: The condition for a lower loss around yy. The prediction around yy attains the lower expected loss if and only if Δ(y)<0\Delta(y)<0. Moving the residual term to the other side gives

ηEδ[∥R(x0+δ)∥2−∥R(y+δ)∥2]>∥y−x0∥2,\eta\mathbb{E}_{\delta}\left[\lVert R(x_0+\delta)\rVert^2-\lVert R(y+\delta)\rVert^2\right]>\lVert y-x_0\rVert^2,

which is (5).

Step 6: Why the condition can hold. In contrast to the anchored case of App. § 11, the left-hand side is not sign-constrained. The residual is evaluated at the prediction, so the two centers are scored by the residual geometry at two different places, and the expected residual cost around yy can be smaller than the one around x0x_0. The derivation uses neither R(y)=0R(y)=0 nor R(x0)=0R(x_0)=0 and holds for every y∈Zy\in\mathcal{Z}. Feasibility of the two centers enters only in § 3.2, where it removes the zeroth-order term from the expansion of the residual.

The centered-error assumption

The assumption E[δ]=0\mathbb{E}[\delta]=0 enters at Step 3 alone. We repeat that step for a general perturbation with mean δˉ=E[δ]\bar{\delta}=\mathbb{E}[\delta]. The cross term is now E[⟨y−x0,δ⟩]=⟨y−x0,δˉ⟩\mathbb{E}[\langle y-x_0,\delta\rangle]=\langle y-x_0,\bar{\delta}\rangle, so (29) becomes

Δ(y)=∥y−x0∥2+2⟨y−x0,δˉ⟩+ηEδ[∥R(y+δ)∥2−∥R(x0+δ)∥2].(30)\Delta(y)=\lVert y-x_0\rVert^2+2\langle y-x_0,\bar{\delta}\rangle+\eta\mathbb{E}_{\delta}\left[\lVert R(y+\delta)\rVert^2-\lVert R(x_0+\delta)\rVert^2\right]. \tag*{(30)}

and the condition for a lower loss around yy reads

ηEδ[∥R(x0+δ)∥2−∥R(y+δ)∥2]>∥y−x0∥2+2⟨y−x0,δˉ⟩.\eta\mathbb{E}_{\delta}\left[\lVert R(x_0+\delta)\rVert^2-\lVert R(y+\delta)\rVert^2\right]>\lVert y-x_0\rVert^2+2\langle y-x_0,\bar{\delta}\rangle.

The right-hand side is no longer positive for every y≠x0y\ne x_0. Completing the square gives ∥y−x0∥2+2⟨y−x0,δˉ⟩=∥y−(x0−δˉ)∥2−∥δˉ∥2\lVert y-x_0\rVert^2+2\langle y-x_0,\bar{\delta}\rangle=\lVert y-(x_0-\bar{\delta})\rVert^2-\lVert\bar{\delta}\rVert^2, so the condition is equivalent to

ηEδ[∥R(x0+δ)∥2−∥R(y+δ)∥2]>∥y−(x0−δˉ)∥2−∥δˉ∥2.(31)\eta\mathbb{E}_{\delta}\left[\lVert R(x_0+\delta)\rVert^2-\lVert R(y+\delta)\rVert^2\right]>\lVert y-(x_0-\bar{\delta})\rVert^2-\lVert\bar{\delta}\rVert^2. \tag*{(31)}

Two consequences follow. First, with δˉ≠0\bar{\delta} \ne0 the center is no longer the mean of the prediction, since y+δy+\delta has mean y+δˉy+\bar{\delta}. The comparison then ranks predictions whose means are y+δˉy+\bar{\delta} and x0+δˉx_0+\bar{\delta}, and the denoising term alone is minimized by the center that places the mean prediction on the target, y=x0−δˉy=x_0-\bar{\delta}, with value −∥δˉ∥2-\lVert\bar{\delta}\rVert^2. This is a matter of bookkeeping rather than a bias, because once the error carries a mean the decomposition of a prediction into a center and an error is no longer unique. Second, the displacement cost in Equation (31) is then measured from x0−δˉx_0-\bar{\delta} and is negative throughout the open ball of radius ∥δˉ∥\lVert\bar{\delta}\rVert around that point, so a center other than x0x_0 can appear preferable without the residual term contributing anything. Centering removes the ambiguity by making the center equal to the mean prediction, so that a preference for a center other than x0x_0 can come only from the residual term.

The same substitution applies to the anchored comparison. Repeating Step 3 of App. C with E[δ]=δˉ\mathbb{E}[\delta]=\bar{\delta} leaves

Δanch(y)=f(y−x0+δˉ)−f(δˉ),f(u)=∥u∥2+ηN∥Ju∥2\Delta_{\mathrm{anch}}(y)=f(y-x_0+\bar{\delta})-f(\bar{\delta}), \qquad f(u)=\lVert u\rVert^2+\frac{\eta}{N}\lVert Ju\rVert^2

since both cross terms carry the factor δˉ\bar{\delta}. The function ff is a strictly convex quadratic with f(u)≥∥u∥2f(u)\ge\lVert u\rVert^2, vanishing only at u=0u=0, so Δanch\Delta_{\mathrm{anch}} is minimized uniquely at y=x0−δˉy=x_0-\bar{\delta}, the same center as for the denoising term alone. The mean error therefore shifts the reference center of both comparisons by the same amount and does not favor one objective over the other. Centering fixes that reference at x0x_0, which is why it is assumed in § 3.1 rather than carried through every expression.

Derivation of the anchored comparison

We derive Equation (8) from the anchored per-sample loss. Fix a clean training sample x0x_0 and write J=JR(x0)J=J_R(x_0) and N=∥J∥F2+γN=\lVert J\rVert_F^2+\gamma with γ>0\gamma>0, so that N>0N>0. The anchored loss of a prediction x^0\hat{x}_0 is

ℓanch(x^0)=∥x^0−x0∥2+ηN∥J(x^0−x0)∥2\ell_{\mathrm{anch}}(\hat{x}_0)=\lVert\hat{x}_0-x_0\rVert^2+\frac{\eta}{N}\lVert J(\hat{x}_0-x_0)\rVert^2

Both JJ and NN depend only on x0x_0, so they are the same for every prediction and do not depend on δ\delta. As in § 3.1, let δ\delta be a random perturbation with E[δ]=0\mathbb{E}[\delta]=0 and E∥δ∥2<∞\mathbb{E}\lVert\delta\rVert^2<\infty, let y∈Rdy\in\mathbb{R}^d be an arbitrary center, and write the displacement of the center as s=y−x0s=y-x_0.

Step 1: Losses of the two predictions. Substituting x^0=y+δ\hat{x}_0=y+\delta and x^0=x0+δ\hat{x}_0=x_0+\delta gives

ℓanch(y+δ)=∥s+δ∥2+ηN∥J(s+δ)∥2,\ell_{\mathrm{anch}}(y+\delta)=\lVert s+\delta\rVert^2+\frac{\eta}{N}\lVert J(s+\delta)\rVert^2,
ℓanch(x0+δ)=∥δ∥2+ηN∥Jδ∥2\ell_{\mathrm{anch}}(x_0+\delta)=\lVert\delta\rVert^2+\frac{\eta}{N}\lVert J\delta\rVert^2

Step 2: Expanding the squares. Expanding both squared norms in the first loss gives

∥s+δ∥2=∥s∥2+2⟨s,δ⟩+∥δ∥2,\lVert s+\delta\rVert^2=\lVert s\rVert^2+2\langle s,\delta\rangle+\lVert\delta\rVert^2,
∥J(s+δ)∥2=∥Js∥2+2⟨Js,Jδ⟩+∥Jδ∥2\lVert J(s+\delta)\rVert^2=\lVert Js\rVert^2+2\langle Js,J\delta\rangle+\lVert J\delta\rVert^2

Step 3: Taking expectations. All expectations are finite, since E∥Jδ∥2≤∥J∥F2E∥δ∥2<∞\mathbb{E}\lVert J\delta\rVert^2\le\lVert J\rVert_F^2\mathbb{E}\lVert\delta\rVert^2<\infty by the Cauchy–Schwarz inequality. Because ss and JJ are deterministic and E[δ]=0\mathbb{E}[\delta]=0, both cross terms vanish:

E[⟨s,δ⟩]=⟨s,E[δ]⟩=0,\mathbb{E}[\langle s,\delta\rangle]=\langle s,\mathbb{E}[\delta]\rangle=0,
E[⟨Js,Jδ⟩]=⟨JTJs,E[δ]⟩=0.\mathbb{E}[\langle Js,J\delta\rangle]=\langle J^{\mathsf{T}}Js,\mathbb{E}[\delta]\rangle=0.

The expected losses are therefore

Eδ[ℓanch(y+δ)]=∥s∥2+E∥δ∥2+ηN(∥Js∥2+E∥Jδ∥2),\mathbb{E}_{\delta}\left[\ell_{\mathrm{anch}}(y+\delta)\right]=\lVert s\rVert^2+\mathbb{E}\lVert\delta\rVert^2+\frac{\eta}{N}\left(\lVert Js\rVert^2+\mathbb{E}\lVert J\delta\rVert^2\right),
Eδ[ℓanch(x0+δ)]=E∥δ∥2+ηNE∥Jδ∥2\mathbb{E}_{\delta}\left[\ell_{\mathrm{anch}}(x_0+\delta)\right]=\mathbb{E}\lVert\delta\rVert^2+\frac{\eta}{N}\mathbb{E}\lVert J\delta\rVert^2

Step 4: Difference of the expected losses. The terms E∥δ∥2\mathbb{E}\lVert\delta\rVert^2 and ηNE∥Jδ∥2\frac{\eta}{N}\mathbb{E}\lVert J\delta\rVert^2 appear in both expressions and are finite, so they cancel in the difference:

Δ(y)=Eδ[ℓanch(y+δ)]−Eδ[ℓanch(x0+δ)]=∥y−x0∥2+ηN∥J(y−x0)∥2.\Delta(y)=\mathbb{E}_{\delta}\left[\ell_{\mathrm{anch}}(y+\delta)\right]-\mathbb{E}_{\delta}\left[\ell_{\mathrm{anch}}(x_0+\delta)\right]=\lVert y-x_0\rVert^2+\frac{\eta}{N}\lVert J(y-x_0)\rVert^2.

Step 5: The condition for a lower loss around yy. The prediction around yy attains the lower expected loss if and only if Δ(y)<0\Delta(y)<0. Moving the anchored term to the other side gives

−η∥JR(x0)(y−x0)∥2∥JR(x0)∥F2+γ>∥y−x0∥2,-\eta\frac{\lVert J_R(x_0)(y-x_0)\rVert^2}{\lVert J_R(x_0)\rVert_F^2+\gamma}>\lVert y-x_0\rVert^2,

which is Equation (8).

Step 6: The condition never holds. For η≥0\eta\ge0, the left-hand side is at most zero, because it is the negative of a squared norm divided by N>0N>0. For y≠x0y\ne x_0, the right-hand side is strictly positive. The condition therefore fails for every y≠x0y\ne x_0, and equivalently Δ(y)>0\Delta(y)>0 for all y≠x0y\ne x_0. Hence x0x_0 is the unique minimizer of y↦Eδ[ℓanch(y+δ)]y\mapsto\mathbb{E}_{\delta}[\ell_{\mathrm{anch}}(y+\delta)]. The derivation uses neither R(y)=0R(y)=0 nor any linearization of RR, so the result holds for every y∈Rdy\in\mathbb{R}^d and is exact.

The conditional target of the anchored loss

Write

B(x0):=JR(x0)⊤JR(x0)∥JR(x0)∥F2+γ,B(x_0):=\frac{J_R(x_0)^\top J_R(x_0)}{\lVert J_R(x_0)\rVert_F^2+\gamma},

so that the residual term of Eq. (7) is ηδ⊤B(x0)δ\eta\delta^\top B(x_0)\delta with δ=x^0−x0\delta=\hat{x}_0-x_0. For a fixed clean target the combined loss is minimized uniquely at x^0=x0\hat{x}_0=x_0, since its gradient is 2λt[I+ηB(x0)](x^0−x0)2\lambda_t[I+\eta B(x_0)](\hat{x}_0-x_0) and the matrix is positive definite.

The comparison in § 4.1 fixes a clean target x0x_0. The network, however, receives only the noisy input xtx_t and the noise level tt. Several clean samples may be compatible with that input, so the best prediction minimizes the loss averaged over their conditional distribution. For ordinary squared-error denoising this prediction is the conditional mean x0∗=E[x0∣xt,t]x_0^*=\mathbb{E}[x_0\mid x_t,t]. Anchoring can change this optimum because different clean samples may have different weighting matrices B(x0)B(x_0).

To see this, fix (xt,t)(x_t,t) and let y∈Rdy\in\mathbb{R}^d denote the network prediction. Assuming finite conditional second moments, its expected anchored loss is

E[(y−x0)⊤[I+ηB(x0)](y−x0)∣xt,t].(32)\mathbb{E}\left[(y-x_0)^\top[I+\eta B(x_0)](y-x_0)\mid x_t,t\right]. \tag*{(32)}

At the optimum the average weighted prediction error must be zero. Differentiating with respect to yy and rearranging gives

[I+ηE[B(x0)∣xt,t]](yanch∗−x0∗)=ηE[B(x0)(x0−x0∗)∣xt,t].(33)[I+\eta\mathbb{E}[B(x_0)\mid x_t,t]](y_{\mathrm{anch}}^*-x_0^*)=\eta\mathbb{E}[B(x_0)(x_0-x_0^*)\mid x_t,t]. \tag*{(33)}

The matrix on the left is positive definite, so this equation uniquely determines the shift from the ordinary denoising target.

For η>0\eta>0 the optimum remains x0∗x_0^* exactly when

E[B(x0)(x0−x0∗)∣xt,t]=0.\mathbb{E}[B(x_0)(x_0-x_0^*)\mid x_t,t]=0.

The deviations x0−x0∗x_0-x_0^* average to zero by definition. The condition requires that they still average to zero after each is weighted by its sample’s matrix B(x0)B(x_0). A sufficient condition is that B(x0)B(x_0) is the same for all clean samples in the conditional support. It can then be taken outside the expectation, leaving E[x0−x0∗∣xt,t]=0\mathbb{E}[x_0-x_0^*\mid x_t,t]=0. This is what happens for a fixed affine residual R(x)=Ax−bR(x)=Ax-b, where JR≡AJ_R\equiv A and, at a feasible x0x_0, the anchored residual equals the original one, JR(x0)(x^0−x0)=R(x^0)J_R(x_0)(\hat{x}_0-x_0)=R(\hat{x}_0), so BB does not depend on the sample. If the weighting varies across samples, the cancellation may fail and the optimal prediction can move away from x0∗x_0^*.

For the latitude example of App. § 9.§ 6 with γ=0\gamma=0, B=x0x0⊤/ρ2B=x_0x_0^\top/\rho^2 and rotational symmetry give (yanch∗)3=h(1+η)/(1+ηh2/ρ2)>h(y_{\mathrm{anch}}^*)_3=h(1+\eta)/(1+\eta h^2/\rho^2)>h, so even the normalized anchored loss can increase the distance to the data in this conditional example.

Anchoring therefore removes the preference for moving toward another solution in the centered, fixed-perturbation comparison. It does not generally preserve the ordinary denoising optimum after averaging over possible clean targets.

Additional related work

Generative models for physical systems. Diffusion and flow matching models are increasingly used to learn distributions over physical states, with applications ranging from turbulent and aerodynamic flows [28] (Li et al. 2024) and inverse PDE problems [17] to particle physics [29] and the generation of molecules and proteins [33, 4, 10]. Unlike deterministic surrogates, they represent the full distribution of solutions, which makes them suited to uncertainty quantification and ensemble generation. The idea of enforcing physics through the training objective comes from physics-informed neural networks [30], which add the PDE residual to the loss of a deterministic model, and whose optimization is known to suffer from conflicts between the loss terms [23, 26].

The trade-off between physics and distribution. Baldan et al. [1] state that trade-off explicitly and report it as a Pareto front. They attribute part of it to the Jensen gap, which they narrow by unrolling several steps before the residual is evaluated, and they resolve the remaining disagreement between the two objectives at the level of the gradients, with a conflict-free update [26]. We locate that conflict and the resulting displacement in the residual term itself and change the loss, anchoring the residual at the clean training sample, which removes part of the conflict instead of balancing it. Also Yeom-Song et al. [44] argue that a residual regulariser breaks the distributional guarantees of the model and move the constraint into the forward pass instead. Chang et al. [6] also observe that the residual term can lead to a collapse onto smooth samples that are less sensitive under the residual, and they respond with a training scheme rather than with a different penalty, learning the distribution first and fine-tuning it under the residual afterwards, with the decoder that produces the coefficient field frozen so that the residual cannot change it. Yuan et al. [45] call the trade-off reward hacking and report a fine-tuned model that reaches the lowest residual and the most distorted field, which they contain by updating only part of the network and penalizing the drift of the weights away from the pretrained ones. Tauberschmidt et al. [38] steer a pretrained model toward the residual-tilted distribution and anchor it to the pretrained one, and report the same trade-off along that anchor, although their base model is trained on low-fidelity data, so for them the departure is intended. Xu et al. (2026) also relate the distortion to the sensitivity of the constraint, but for inference methods that enforce a hard constraint post hoc on a fixed pretrained model by projection or guidance and thereby omit a co-area factor [det⁡JJT]−1/2[\det JJ^{\mathsf{T}}]^{-1/2}. The works above and ours instead place the residual in the training objective. Prior work establishes that physical residual objectives can distort a learned distribution and motivates methods that restrict or balance their influence. Our contribution is to characterize sensitivity-dependent relocation through a controlled, fixed-perturbation comparison, distinguish feasibility from membership in the data support, and construct a target-anchored quadratic penalty that removes the relocation preference in this comparison. We also characterize the conditional-target shift that can remain after anchoring.

Experimental setup

Datasets

The shocked circle

What the dataset is for. We identify two conditions for the described distributional biases, (1) a residual cost that varies along the data and (2) a solution set larger than the data support. Both are properties of the pair (R,pdata)(R,p_{\mathrm{data}}). On a PDE they are hard to read off and cannot be varied one at a time. This dataset makes both explicit. The data are a circle, and the residual is satisfied on the whole sphere that contains this circle. A positive factor gg multiplying the residual changes the penalty an error incurs without changing a single feasible state, as visualized in Figure 5.

Data support and zero set of the residual

Figure 5. Data support and zero set of the residual, drawn in three dimensions for visualization. The residual is satisfied on the whole sphere, and the data are only the circle where the sphere meets the data plane. The experiments use D=10D = 10.

Figure 6 summarizes the three cases. A prediction that belongs at a state where the residual is stiff can do three things. It can predict the sample as accurately as it is able and incur the penalty its error attracts there, which is the intended behaviour. It can move to a state at which the same error is penalized less, which is avoidance, and that state may lie on the data circle or off it. Or it can leave the data plane along the sphere, which reaches zero residual at a state the data never produce, and that is leakage. A penalty built from R(x^0)R(\hat{x}_0) alone cannot distinguish either from success, because both land on Z\mathcal{Z}.

The three things a penalized prediction can do

Figure 6. The three things a penalized prediction can do, drawn in three dimensions. In black, where the sample should be, at a state where the residual is sensitive. (A) Correct prediction. (B) Leakage, which leaves the data plane and therefore the data support along the zero set, where ∣R∣=0\lvert R\rvert= 0. (C) Avoidance, where the prediction moves to a region of lower stiffness, which may or may not lie on the data support.

Data and residual. The data manifold is the unit circle in the first two coordinates of RD\mathbb{R}^{D},

M={x∈RD:x12+x22=1, x3=⋯=xD=0},D=10.(34)\mathcal{M} = \left\{x \in\mathbb{R}^{D} : x_1^2 + x_2^2 = 1,\ x_3 = \cdots= x_D = 0\right\}, \qquad D = 10. \tag*{(34)}

Samples are x=(cos⁡θ,sin⁡θ,0,…,0)x = (\cos\theta,\sin\theta,0,\ldots,0) with θ∼U[0,2π)\theta\sim\mathcal{U}[0,2\pi). The training set contains 20 000 such points. The residual is

R(x)=(∥x∥2−1)g(x),(35)R(x) = \left(\lVert x\rVert^2 - 1\right)g(x), \tag*{(35)}

a scalar, so m=1m = 1. Since g≥1>0g \ge1 > 0, the zero set is Z=SD−1\mathcal{Z} = \mathbb{S}^{D-1}. Hence M=Z∩{x3=⋯=xD=0}\mathcal{M} = \mathcal{Z} \cap\{x_3 = \cdots= x_D = 0\} and dim⁡Z−dim⁡M=D−2=8\dim\mathcal{Z} - \dim\mathcal{M} = D - 2 = 8. Eight directions lead from the data along the zero set, and the residual cannot see a sample drifting along any of them.

Why the stiffness is the residual cost. RR vanishes on all of Z\mathcal{Z}, which contains M\mathcal{M}, so the derivative of RR along the data vanishes and ∇R\nabla R is purely radial. At a data point the factor ∥x∥2−1\lVert x\rVert^2-1 eliminates the ∇g\nabla g term. This leaves ∇R(x0)=2g(x0)x0\nabla R(x_0)=2g(x_0)x_0 and hence σ(θ)=2g(θ)/D\sigma(\theta)=2g(\theta)/\sqrt{D} exactly, which we verify numerically to 3×10−53\times10^{-5}. An error of size ε\varepsilon made at angle θ\theta therefore produces a residual ∣R∣≈2g(θ)ε\lvert R\rvert\approx2g(\theta)\varepsilon. The stiffness profile is not a proxy for the cost. It is the cost itself, and it can be read directly from Figure 7.

Figure 7. One data circle, two residuals. Top, the residual in the data plane, where the zero set is the same circle for both. Bottom, the residual cost 2g2g along the data, which spans a factor of 101 for graded and is constant for flat.

The stiffness. In Eq. (36), gg is a sum of four von Mises–Fisher bumps on the direction x^=x/∥x∥\hat{x}=x/\lVert x\rVert,

g(x)=1+m(∥x∥)∑k=14hkexp⁡(−2(1−x^⋅ck)wk2),(ck)=(+e1,+e2,−e1,−e2),(36)g(x)=1+m(\lVert x\rVert)\sum_{k=1}^{4}h_k\exp\left(-\frac{2(1-\hat{x}\cdot c_k)}{w_k^2}\right),\qquad(c_k)=(+e_1,+e_2,-e_1,-e_2), \tag*{(36)}

so the kk-th center meets the data circle at θk=(k−1)π/2\theta_k=(k-1)\pi/2. Since 2(1−cos⁡γ)=γ2+O(γ4)2(1-\cos\gamma)=\gamma^2+O(\gamma^4) for the geodesic angle γ\gamma, each bump is a Gaussian of angular width wkw_k to leading order. Writing it in the dot product rather than in arccos⁡\arccos keeps ∇R\nabla R finite at x^=±ck\hat{x}=\pm c_k. The radial mask m(r)=(1+a2)r2/(r2+a2)m(r)=(1+a^2)r^2/(r^2+a^2) with a=0.8a=0.8 satisfies m(1)=1m(1)=1 and m(0)=0m(0)=0. It removes a tangential singularity that ∇R\nabla R would otherwise carry at the origin. Without it we measure ∥∇R∥≈1.3×105\lVert\nabla R\rVert\approx1.3\times10^5 at ∥x∥=2×10−3\lVert x\rVert=2\times10^{-3}. This matters because the x0x_0-prediction lies near the origin at high noise. Since m(1)=1m(1)=1, the stiffness on M\mathcal{M} is unchanged. Each bump is a localized spherical cap rather than a wedge constant along x3,…,xDx_3,\ldots,x_D.

The two residuals. Both share the data and differ only in gg, so both have the same feasible set (Figure 7). graded places four sensitive regions of increasing strength on the circle. flat sets g≡1g\equiv1 and is the plain hypersphere residual R(x)=∥x∥2−1R(x)=\lVert x\rVert^2-1. Table 3 lists the parameters.

gradedflat (control)
heights hkh_k4, 12, 35, 100—
widths wkw_k0.10—
2g2g along M\mathcal{M}2→\to202 (101×\times)2 (1×\times)
bump HWHM4.8°—

Table 3. The two residual profiles of the shocked circle.

PDE datasets

Both datasets are generated with torchfsm [27] on ξ∈[0,1)\xi\in[0,1) with periodic boundary conditions and generator seed 42. Each contains 10 000 trajectories, split 90/10 into training and held-out data with a fixed seed.

Advection. β=1\beta= 1, Nξ=256N_{\xi} = 256, Δτ=1/256\Delta\tau= 1/256 and 255 steps, so each sample is a 256×256256 \times256 field spanning τ∈[0,255/256]\tau\in[0,255/256]. The initial conditions are u0=∑i=12Aisin⁡(2πℓiξ/L+φi)u_0 = \sum_{i=1}^{2} A_i \sin(2\pi\ell_i \xi/L + \varphi_i) with ℓi∼U{1,…,5}\ell_i \sim\mathcal{U}\{1,\ldots,5\}, Ai∼U[0,1)A_i \sim\mathcal{U}[0,1) and φi∼U[0,2π)\varphi_i \sim\mathcal{U}[0,2\pi). With probability 0.1 the initial condition is replaced by ±∣u0∣\pm|u_0| with a random sign, and with probability 0.1 it is multiplied by sin⁡2(πξ/L)\sin^2(\pi\xi/L).

Burgers. ν=10−3\nu= 10^{-3}, Nξ=512N_{\xi} = 512, Δτ=5×10−4\Delta\tau= 5 \times10^{-4} and 255 steps, so each sample is a 256×512256 \times512 field spanning τ∈[0,0.1275]\tau\in[0,0.1275]. The initial conditions are u~0=∑i=14aimax⁡(1,fi)sin⁡(2πfiξ/L+φi)\tilde{u}_0 = \sum_{i=1}^{4} \frac{a_i}{\max(1,f_i)} \sin(2\pi f_i \xi/L + \varphi_i) with fi∼U{1,…,4}f_i \sim\mathcal{U}\{1,\ldots,4\} and ai∼N(0,1)a_i \sim\mathcal{N}(0,1). They are made mean-free and rescaled to u0=α(u~0−u~‾0)/∥u~0−u~‾0∥∞u_0 = \alpha(\tilde{u}_0 - \overline{\tilde{u}}_0)/\|\tilde{u}_0 - \overline{\tilde{u}}_0\|_{\infty} with α∼U[0.8,1.2]\alpha\sim\mathcal{U}[0.8,1.2]. Every trajectory thus starts with comparable energy and zero mean, and the periodic dynamics conserve the mean.

Darcy. The domain is the unit square with N=64N = 64 grid points per axis, including the boundary, so h=1/63h = 1/63 and each sample is a pair of 64×6464 \times64 fields (p,K)(p,K). The log-permeability is a Gaussian random field with covariance exp⁡(−∥x−x′∥/ℓ)\exp(-\|x-x'\|/\ell), ℓ=0.1\ell= 0.1, represented by its first 64 Karhunen–Loève modes with standard normal coefficients, and K=exp⁡(log⁡K)K = \exp(\log K). The source is f=10f = 10 on [0,0.125]2[0,0.125]^2 and f=−10f = -10 on [0.875,1]2[0.875,1]^2, and zero elsewhere. For each KK, the pressure solves −∇⋅(K∇p)=f-\nabla\cdot(K\nabla p) = f with zero-flux boundaries and zero mean, discretized with second-order finite differences and solved in the least-squares sense. We use the dataset of Bastek et al. [3], which contains 10 000 training and 1 000 held-out samples.

Residuals. The residuals are evaluated on the generated field u(ξ,τ)u(\xi,\tau). Time derivatives use second-order finite-difference stencils along the non-periodic time axis. For advection, R=∂τu+β∂ξuR = \partial_{\tau}u + \beta\partial_{\xi}u with a second-order periodic spatial stencil. For Burgers, the spatial operators are spectral, consistent with the generating solver,

R=∂τu+D[u] ∂ξD[u]−ν∂ξξu,R = \partial_{\tau}u + \mathcal{D}[u]\,\partial_{\xi}\mathcal{D}[u] - \nu\partial_{\xi\xi}u,

where D\mathcal{D} is the 2/3 dealiasing filter. It is applied to the quadratic term only, so that aliasing errors do not appear as spurious residual. One-sided stencils near the boundary are excluded from the residual. For Burgers these are the first and last five time rows. For advection, the first and last five rows in time and in space are excluded. For Darcy, the residual is the strong form

R=−KΔp−∇K⋅∇p−fR = -K\Delta p - \nabla K \cdot\nabla p - f

with second-order finite-difference stencils.

Metrics

Let {x^(i)}i=1N\{\hat{x}^{(i)}\}_{i=1}^{N} be the generated samples and {x(j)}j=1Nref\{x^{(j)}\}_{j=1}^{N_{\mathrm{ref}}} the reference data samples.

Mean residual. With I⊆{1,…,m}\mathcal{I} \subseteq\{1,\ldots,m\} the residual entries not excluded at the boundary (App. § 14.1.2),

∣R∣‾=1N∑i=1N1∣I∣∑k∈I∣Rk(x^(i))∣.(37)\overline{|R|} = \frac{1}{N}\sum_{i=1}^{N}\frac{1}{|\mathcal{I}|}\sum_{k\in\mathcal{I}} |R_k(\hat{x}^{(i)})|. \tag*{(37)}

Maximum mean discrepancy. Each field xx is mapped to a vector of qq per-sample features ϕ(x)∈Rq\phi(x) \in\mathbb{R}^{q}, standardized with the mean μ\mu and standard deviation ss of the features of the reference data, z=(ϕ(x)−μ)/sz = (\phi(x)-\mu)/s. With the Gaussian kernel k(z,z′)=exp⁡(−∥z−z′∥2/(2h2))k(z,z') = \exp(-\|z-z'\|^2/(2h^2)), where hh is the median distance between all pairs of the pooled generated and reference features, we report the unbiased estimate [15]

MMD⁡2=1N(N−1)∑i≠i′k(z^i,z^i′)+1Nref(Nref−1)∑j≠j′k(zj,zj′)−2NNref∑i,jk(z^i,zj).(38)\begin{aligned} \operatorname{MMD}^{2} ={}& \frac{1}{N(N-1)}\sum_{i\ne i'} k(\hat{z}_i,\hat{z}_{i'}) + \frac{1}{N_{\mathrm{ref}}(N_{\mathrm{ref}}-1)}\sum_{j\ne j'} k(z_j,z_{j'}) \\ &- \frac{2}{NN_{\mathrm{ref}}}\sum_{i,j} k(\hat{z}_i,z_j). \tag*{(38)} \end{aligned}

set to zero if negative, with N=Nref=1000N = N_{\mathrm{ref}} = 1000. On Advection and Burgers the features are max⁡∣∂ξu∣\max|\partial_{\xi}u|, the total variation ∑∣uk+1−uk∣\sum|u_{k+1} - u_k| along ξ\xi summed over τ\tau, std⁡(u)\operatorname{std}(u) and max⁡∣u∣\max|u|. On Darcy they are std⁡(p)\operatorname{std}(p), max⁡∣∇p∣\max|\nabla p|, and the mean, standard deviation and correlation at a lag of 0.1 of log⁡K\log K.

Wasserstein distance. For two distributions PP and QQ on R\mathbb{R} with cumulative distribution functions FPF_P and FQF_Q ([41, 34]),

W1(P,Q)=∫R∣FP(s)−FQ(s)∣ ds.(39)W_1(P,Q) = \int_{\mathbb{R}} |F_P(s) - F_Q(s)|\,\mathrm{d}s. \tag*{(39)}

Forward error. For darcy dataset, for a generated pair (p,K)(p,K) we solve −∇⋅(K∇p∗)=f-\nabla\cdot(K\nabla p^*) = f with zero-flux boundaries, using the finite-difference system of the data generator, and report the median over samples of ∥p−pˉ−p∗(K)∥2/∥p∗(K)∥2\|p - \bar{p} - p^*(K)\|_2/\|p^*(K)\|_2, where pˉ\bar{p} is the mean of pp. The pressure is defined only up to a constant under these boundary conditions, so the mean is removed. On the held-out data the forward error is 3.4⋅10−53.4 \cdot10^{-5}, the precision of the stored fields.

Sensitivity ratio. The residual sensitivity of a state xx is the state-dependent part of the residual Jacobian,

σ(x)=∥JR(x)−JR(0)∥Fm,(40)\sigma(x) = \frac{\|J_R(x) - J_R(0)\|_F}{\sqrt{m}}, \tag*{(40)}

where ∥A∥F2=Ev∥Av∥2\|A\|_F^2 = \mathbb{E}_v\|Av\|^2, v∼N(0,I)v \sim\mathcal{N}(0,I), is estimated with two Jacobian–vector products ([19]). and the sensitivity ratio is

median⁡iσ(x^(i))median⁡jσ(x(j)).(41)\frac{\operatorname{median}_i \sigma(\hat{x}^{(i)})}{\operatorname{median}_j \sigma(x^{(j)})}. \tag*{(41)}

Amplitude ratio. With std⁡(x)=(1d∑k=1d(xk−xˉ)2)1/2\operatorname{std}(x) = \left(\frac{1}{d}\sum_{k=1}^{d}(x_k - \bar{x})^2\right)^{1/2} and xˉ=1d∑kxk\bar{x} = \frac{1}{d}\sum_k x_k,

std⁡(u)genstd⁡(u)data=1N∑istd⁡(x^(i))1Nref∑jstd⁡(x(j)).(42)\frac{\operatorname{std}(u)_{\mathrm{gen}}}{\operatorname{std}(u)_{\mathrm{data}}} = \frac{\frac{1}{N}\sum_i \operatorname{std}(\hat{x}^{(i)})}{\frac{1}{N_{\mathrm{ref}}}\sum_j \operatorname{std}(x^{(j)})}. \tag*{(42)}

Distance to the data plane. For x∈RDx \in\mathbb{R}^{D},

∥x3:D∥=(∑k=3Dxk2)1/2,(43)\|x_{3:D}\| = \left(\sum_{k=3}^{D} x_k^2\right)^{1/2}, \tag*{(43)}

reported as the median over the generated samples.

Transition-state metrics. Each generated structure xx with atomic positions r1,…,rNr_1,\ldots,r_N is compared with the reference TS xrefx^{\mathrm{ref}} of the same reaction. The root mean square deviation measures differences in atomic positions,

RMSD=(1N∑i=1N∥ri−riref∥2)1/2,\mathrm{RMSD} = \left(\frac{1}{N}\sum_{i=1}^{N}\|r_i - r_i^{\mathrm{ref}}\|^2\right)^{1/2},

computed after optimal rigid alignment of the two structures. The distance matrix absolute error measures the mean absolute difference in interatomic distances dij=∥ri−rj∥d_{ij} = \|r_i-r_j\|,

DMAE=2N(N−1)∑i<j∣dij−dijref∣,\mathrm{DMAE} = \frac{2}{N(N-1)}\sum_{i<j}|d_{ij} - d_{ij}^{\mathrm{ref}}|,

and is invariant to rotations and translations. The energy difference ΔE=∣E(x)−E(xref)∣\Delta E = |E(x) - E(x^{\mathrm{ref}})|, evaluated at the GFN2-xTB level, measures energetic agreement. The maximum force Fmax⁡=max⁡i∥Fi(x)∥F_{\max} = \max_i \|F_i(x)\|, with F=−∇EF = -\nabla E, measures the departure from stationarity on the potential energy surface (PES). The Hessian MAE, the mean absolute difference between the entries of the generated and reference Hessians, measures agreement in the local curvature of the PES. The valid TS rate is the percentage of generated structures whose Hessian has exactly one negative eigenvalue, as required for a first-order saddle point.

Implementation details

For each system, DM, PIDM and the anchored objective share the same denoiser, optimizer, noise schedule and training budget, and differ only in the physics term. The unpenalized baseline, denoted DM, sets c=0c=0 in Eq. (2). All models use the clean-sample parameterization, so x^0\hat{x}_0 is the network output. The noise level tt is drawn uniformly, and the cosine variance schedule is used for {βt}\{\beta_t\}. The penalty is applied to every sample at every training step, without thresholding or gating. Table 4 lists the settings.

Shocked circleAdvection and BurgersDarcy
DenoiserMLPU-NetU-Net
Architecture5×5125 \times512, SiLUchannels 32, 64, 128, 256; 2 ResNet blocks per level, linear attention per level, attention in the bottleneckas Burgers
Input channels–1 (uu)2 (pp, KK)
Time inputt/Tt/T, repeated to 64 dimssinusoidal, then MLP (128)sinusoidal, then MLP (128)
Trainable parameters1.09M8.9M8.9M
Diffusion steps TT1000100100
Variance schedulecosinecosinecosine
Denoising weight λt\lambda_tSNR⁡(t)\operatorname{SNR}(t)min⁡(SNR⁡(t),5)\min(\operatorname{SNR}(t),5)min⁡(SNR⁡(t),5)\min(\operatorname{SNR}(t),5)
OptimizerAdamAdamAdam
Learning rate10−310^{-3}10−410^{-4}10−410^{-4}
Batch size51288
Iterations100 000100 000100 000
Gradient clipping1.01.01.0
EMA decay0.9990.999 (Advection), none (Burgers)none
Training samples20 000874410 000
SamplerDDPM, 1000 stepsDDPM, 100 stepsDDPM, 100 steps
Generated samples40 00010001000
Seed00
GPURTX 4090A40A40

Table 4. Training and sampling settings. The same settings are used for DM, PIDM and the anchored objective.

Weights of the two loss terms. The denoising weight is λt=SNR⁡(t)=αˉt1−αˉt\lambda_t=\operatorname{SNR}(t)=\frac{\bar{\alpha}_t}{1-\bar{\alpha}_t}, which makes the denoising term equal to the standard noise-prediction loss. On Advection and Burgers it is clipped, λt=min⁡(SNR⁡(t),5)\lambda_t=\min(\operatorname{SNR}(t),5). For PIDM, the residual weight is the schedule of Bastek et al. [3], ωt=12β~t\omega_t=\frac{1}{2\tilde{\beta}_t}, where β~t\tilde{\beta}_t is the posterior variance of the forward process and its value at t=0t=0 is replaced by that at t=1t=1. The anchored objective uses the denoising weight for both terms (Eq. (7)), so the ratio of the two terms is η=c\eta=c at every noise level.

Residual terms. On Advection and Burgers, both residual terms are averaged over the mm residual entries. PIDM uses 1m∥R(x^0)∥2\frac{1}{m}\lVert R(\hat{x}_0)\rVert^2. The anchored term JR(x0)δJ_R(x_0)\delta is computed with one forward-mode Jacobian–vector product, with x0x_0 detached. The normalization ∥JR(x0)∥F2\lVert J_R(x_0)\rVert_F^2 is estimated with Hutchinson’s estimator using one Gaussian probe per sample and step, and it is excluded from the gradient. The constant in the denominator is γ=10−12\gamma=10^{-12}. On the shocked circle the residual is scalar, so JR(x0)=∇R(x0)TJ_R(x_0)=\nabla R(x_0)^\mathsf{T} and its norm are computed exactly.

Training. We train with Adam, without weight decay or learning-rate schedule, and clip the gradient norm at 1. Every model is trained for 100 000 iterations and evaluated at its last checkpoint, without early stopping. On Advection, Darcy and Burgers, 256 of the 9000 training fields are held out as a stopping set and not used for training, so each model sees 8744 fields.

Sampling. Samples are generated with ancestral DDPM sampling over the full schedule, without noise in the last step.

Transition state generation. We follow the procedure of Darouich et al. [8]. As the surrogate potential, we use the EquiformerV2 HIP checkpoint (Burger et al., [5]) fine-tuned on GFN2-xTB Hessians of Transition1x-2p3p4p, which reaches a Hessian MAE of 3.51 kcal/mol/Å2^2 on this dataset. For TS generation, we start from the adapted OA-ReactDiff checkpoint of Darouich et al. [9], which covers elements beyond H, C, N, and O, and fine-tune it for 200 epochs with the React-OT flow matching loss at a learning rate of 2.5×10−42.5 \times10^{-4}. From this shared starting point, FM, FM + residual, and FM + anchored are each trained for a further 200 epochs at the same learning rate, with a batch size of 16 on a single A100 GPU. Following Darouich et al. [8], both residual variants minimize

L(θ)=LFM+ηtpR(x^1,x1),x^1=xt+(1−t)uθ(xt,t),\mathcal{L}(\theta) = \mathcal{L}_{\mathrm{FM}} + \eta t^p \mathcal{R}(\hat{x}_1, x_1), \qquad\hat{x}_1 = x_t + (1-t)u_\theta(x_t,t),

where x1x_1 is the reference TS, x^1\hat{x}_1 the single-step estimate of the clean endpoint, and the weight tpt^p downweights the imprecise estimates obtained at high noise. Note that flow matching places the clean sample at t=1t=1, so x1x_1 here corresponds to x0x_0 in the main text. FM + residual uses the force predicted by HIP, R=∥Fϕ(x^1)∥2\mathcal{R} = \lVert F_\phi(\hat{x}_1)\rVert^2, and FM + anchored uses the anchored penalty with the HIP Hessian at the reference TS, R=∥Hϕ(x1)(x^1−x1)∥2/(∥Hϕ(x1)∥F2+γ)\mathcal{R} = \lVert H_\phi(x_1)(\hat{x}_1-x_1)\rVert^2/(\lVert H_\phi(x_1)\rVert_F^2+\gamma), which is precomputed once per training structure. For both variants, the weight η\eta and the exponent pp are optimized on the validation set using Bayesian optimization.

Training cost

Table 5 compares the training time of the three objectives. PIDM evaluates the residual at the prediction and differentiates through it. The anchored objective additionally needs one Jacobian–vector product at x0x_0 for JR(x0)δJ_R(x_0)\delta and one for the estimate of ∥JR(x0)∥F2\lVert J_R(x_0)\rVert_F^2.

On Advection and Burgers the anchored objective takes 2.5% and 1.5% more time per iteration than DM, and PIDM takes 1.0% and 0.4% more. There the step is dominated by the forward and backward pass of the U-Net, so the two additional Jacobian–vector products add little. Darcy has the smallest fields and the cheapest step, so the residual is a large share of it. There PIDM takes 38% more time than DM and the anchored objective 123% more, which is still less than a tenth of a Burgers step in absolute terms.

Additional results

Shocked circle

Figure 8 and Table 6 show the anchored objective on the graded circle at D=10D=10. Unlike PIDM, the anchored samples cover the circle uniformly at every weight, and their distance to the data plane stays at the level of DM, three to nine times smaller than that of PIDM. The anchored objective therefore does not lower the residual through avoidance or leakage, yet its residual is still below that of DM at every weight.

Figure 8. Anchored on the shocked circle at D=10D = 10. Top, samples in the data plane with the residual sensitivity as shading. Bottom, angular density of the samples against the data (dashed) and σ(θ)\sigma(\theta) (grey). The first column uses flat. Right, residual vs. distance to the data plane which measures leakage.

cc∣R∣‾\overline{|R|} ↓WD ↓σ\sigma ratio →1\to1∥x3:D∥\lVert x_{3:D}\rVert ↓
DM–9.12e−39.12\mathrm{e}{-3}8.66e−38.66\mathrm{e}{-3}0.9783.23e−43.23\mathrm{e}{-4}
PIDM10−310^{-3}2.53e−32.53\mathrm{e}{-3}2.38e−22.38\mathrm{e}{-2}0.5821.38e−31.38\mathrm{e}{-3}
PIDM10−210^{-2}1.90e−31.90\mathrm{e}{-3}2.91e−22.91\mathrm{e}{-2}0.3568.60e−48.60\mathrm{e}{-4}
PIDM10−110^{-1}1.04e−31.04\mathrm{e}{-3}4.15e−24.15\mathrm{e}{-2}0.2311.36e−31.36\mathrm{e}{-3}
PIDM15.15e−45.15\mathrm{e}{-4}7.80e−27.80\mathrm{e}{-2}0.2013.30e−33.30\mathrm{e}{-3}
Anchored10−310^{-3}7.67e−37.67\mathrm{e}{-3}1.17e−21.17\mathrm{e}{-2}0.9731.49e−41.49\mathrm{e}{-4}
Anchored10−210^{-2}5.70e−35.70\mathrm{e}{-3}9.93e−39.93\mathrm{e}{-3}0.9802.60e−42.60\mathrm{e}{-4}
Anchored10−110^{-1}4.19e−34.19\mathrm{e}{-3}7.79e−37.79\mathrm{e}{-3}0.9802.68e−42.68\mathrm{e}{-4}
Anchored13.52e−33.52\mathrm{e}{-3}9.29e−39.29\mathrm{e}{-3}0.9904.03e−44.03\mathrm{e}{-4}

Table 6. Shocked circle, graded, D=10D = 10. ∣R∣‾\overline{|R|} measures physical accuracy, WD (circular, on the angle) distributional accuracy, the σ\sigma ratio avoidance and the distance to the data plane leakage.

Burgers

The PIDM results fall into three regimes (Table 7). At c=10−7c = 10^{-7} and 10−610^{-6} the physics term works as intended. The residual halves from 0.25 for DM to 0.11, at the price of smoother fields, with a std⁡(σ)\operatorname{std}(\sigma) ratio of 0.65 against 0.82 and an MMD of 0.57 against 0.12. From c=10−5c = 10^{-5} to 10−210^{-2} the fields keep getting smoother and their amplitude shrinks, to a std⁡(u)\operatorname{std}(u) ratio of 0.075, but the residual no longer falls and varies between 0.15 and 0.41. The samples are then neither close to the data nor solutions of the PDE. A likely explanation is that during training the model only sees noisy versions of real fields, and on these inputs its residual does fall monotonically. During sampling, however, the model predicts an almost constant field from pure noise already in the first step for c≥10−4c \ge10^{-4}, so all later steps receive inputs it never saw in training (Figure 10). From c=10−1c = 10^{-1} on the residual drops below 0.04, but the MMD stays at 1.2. The model is collapsed and generates weak, smooth fields, which leave a small residual but no longer resemble the data. A low residual of PIDM is therefore no sign of better physics here. The σ\sigma ratio falls with the amplitude, from 0.65 to below 0.1, which is the avoidance predicted in § 3.

cc∣R∣\lvert R\rvert ↓\downarrowMMD ↓\downarrowσ\sigma ratio →1\to1std(uu) ratio →1\to1
DM0.250.120.820.81
PIDM
10−710^{-7}0.110.570.650.64
10−610^{-6}0.130.560.620.62
10−510^{-5}0.250.950.460.45
10−410^{-4}0.221.20.130.16
10−310^{-3}0.151.30.139.1e-2
10−210^{-2}0.411.47.5e-27.5e-2
10−110^{-1}3.1e-21.20.310.33
19.6e-31.29.5e-28.4e-2
Anchored
10−310^{-3}0.230.370.710.70
10−210^{-2}0.233.7e-20.910.90
10−110^{-1}0.235.2e-20.890.88
10.170.200.790.77
10110^{1}0.120.420.730.72
10210^{2}0.110.440.720.71
10310^{3}0.110.660.640.63
10410^{4}0.110.670.650.64

Table 7. Burgers.

Figure 10. Sampling trajectories on Burgers. Each row is one model and each column one step tt of the sampler, from pure noise (t=99t = 99) to the final sample (t=0t = 0). Every panel shows the model’s prediction x^0\hat{x}_0 at that step, and the number below it is the mean residual ∣R∣|R| of that prediction. All rows start from the same noise and receive the same noise in every step, so the last column equals the corresponding fields in Figure 9.

Figure 9. Burgers fields generated a standard diffusion model vs. PIDM and anchored with increasing penalty weights using the same seed.

The anchored objective shows none of these regimes. At small weights it even counteracts the tendency of DM toward smooth, insensitive fields, visible in its σ\sigma ratio of 0.82. At c=10−2c = 10^{-2} and 10−110^{-1} the σ\sigma ratio rises to 0.91 and 0.89, the std⁡(u)\operatorname{std}(u) ratio to 0.90 and 0.88, and the MMD falls to 0.037 and 0.052, while the residual still drops below that of DM (0.23 against 0.25). The anchored samples are thus more sensitive than those of DM and still more accurate. Figure 11 shows why. For DM the median residual grows with σ\sigma from 0.20 to 0.28, since the same error yields a larger residual at a more sensitive state. For the anchored objective it stays between 0.19 and 0.21 in every sensitivity range, below that of DM. Larger weights lower the residual to 0.11, the value PIDM reaches at its smallest weight. Beyond c=10c = 10 the residual of the anchored objective no longer improves, and its samples become smoother, as the shocks are where the residual is largest. This smoothing is weaker than that of PIDM, and the fields do not collapse. Up to c=104c = 10^{4} the std⁡(u)\operatorname{std}(u) ratio stays between 0.63 and 0.72, while PIDM drops to 0.16 at c=10−4c = 10^{-4} and below 0.1 at larger weights. On Burgers anchoring thus avoids the shortcut, and only at large weights does it trade some sharpness for no further gain in residual.

Figure 11. Burgers samples by sensitivity σ\sigma. Top, per-sample residual of DM, the anchored objective (c=10−2c = 10^{-2}) and PIDM (c=10−1c = 10^{-1}, left). Bottom, density of σ\sigma for the data and each model. PIDM generates only samples far less sensitive than the data, while the anchored samples are closer to the data than those of DM and have a lower residual in every sensitivity range.

Darcy

All detailed results are listed in Table 8. Up to c=10−5c = 10^{-5} PIDM lowers the residual from 6.0 for DM to 0.28, with an MMD at the level of DM (0.046 against 0.054, Table 8). At c=10−4c = 10^{-4} the pressure flattens, with a std⁡(p)\operatorname{std}(p) ratio of 0.64, the MMD rises to 0.20 and the residual stops falling (0.33). This is the failure predicted in § 3. At the comparable weight 10610^{6} the anchored objective keeps the pressure, with a std⁡(p)\operatorname{std}(p) ratio of 0.92 and an MMD of 0.079, and reaches a lower residual of 0.24. Its run at c=105c = 10^{5} has the lowest MMD of all runs (0.028) and a std⁡(p)\operatorname{std}(p) ratio of 0.99. At the largest weights both objectives flatten the pressure (std⁡(p)\operatorname{std}(p) ratio 0.14 and 0.31).

Figure 12 shows generated pressure fields from the same starting noise. With increasing weight the PIDM pressure flattens, while the anchored samples keep the variation of the data at every weight.

Figure 12. Darcy pressure fields generated from the same starting noise by DM, PIDM and the anchored objective at two weights each.

Advection

We pair a PIDM weight cc with the anchored weight 2⋅106c2 \cdot10^{6}c. On Advection the residual is linear, so the anchored term equals the PIDM term divided by the constant ∥JR∥F2/m=6.05⋅104\lVert J_R\rVert_F^2/m = 6.05 \cdot10^{4}, and the remaining factor equalizes the average of the two noise-level weightings (App. § 14.§ 3).

References

  1. [1]Baldan, G., Liu, Q., Guardone, A., and Thuerey, N. (2026). Physics vs distributions: Pareto optimal flow matching with physics constraints. In International Conference on Learning Representations, volume 2026, pages 101215–101243.arxiv.org/abs/2506.08604
  2. [2]Bannwarth, C., Ehlert, S., and Grimme, S. (2019). Gfn2-xtb—an accurate and broadly parametrized self-consistent tight-binding quantum chemical method with multipole electrostatics and density-dependent dispersion contributions. Journal of chemical theory and computation, 15(3):1652–1671.DOI
  3. [3]Bastek, J.-H., Sun, W., and Kochmann, D. (2025). Physics-informed diffusion models. In International Conference on Learning Representations, volume 2025, pages 3360–3385.arxiv.org/abs/2403.14404
  4. [4]Bose, J., Akhound-Sadegh, T., Huguet, G., Fatras, K., Rector-Brooks, J., Liu, C., Nica, A., Korablyov, M., Bronstein, M., and Tong, A. (2024). Se (3)-stochastic flow matching for protein backbone generation. In International Conference on Learning Representations, volume 2024, pages 22590–22621.arxiv.org/abs/2310.02391
  5. [5]Burger, A., Thiede, L., Rønne, N., Bernales, V., Vijaykumar, N., Vegge, T., Bhowmik, A., and Aspuru-Guzik, A. (2025). Shoot from the hip: Hessian interatomic potentials without derivatives. arXiv preprint arXiv:2509.21624.arxiv.org/abs/2509.21624
  6. [6]Chang, C.-C., Dai, C.-Y., Lin, T.-S., Lai, M.-C., and Lai, C.-H. (2026). Stabilizing physics-informed consistency models via structure-preserving training. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2, pages 10555–10566.DOI
  7. [7]Cheng, C., Han, B., Maddix, D., Ansari, A. F., Stuart, A., Mahoney, M. W., and Wang, B. (2025). Gradient-free generation for hard-constrained systems. In International Conference on Learning Representations, volume 2025, pages 100510–100539.arxiv.org/abs/2412.01786
  8. [8]Darouich, S., Geisler, J., Toney, J. W., Bien, T., Kästner, J., Kulik, H. J., and Niepert, M. (2026a). Curvature-aware flow matching for molecular structure generation. arXiv preprint arXiv:2609.34592.arxiv.org/abs/2609.34592
  9. [9]Darouich, S., Toney, J. W., Luo, W., Kästner, J., Niepert, M., and Kulik, H. J. (2026b). Robust generative transition-state models for unseen chemistry. Nature Computational Science, pages 1–11.DOI
  10. [10]Darouich, S., Tong, V., Bien, T., Kästner, J., and Niepert, M. (2026c). Adaptive transition-state refinement with learned equilibrium flows. Journal of Chemical Information and Modeling, 66(4):2154–2165.
  11. [11]Duan, C., Liu, G.-H., Du, Y., Chen, T., Zhao, Q., Jia, H., Gomes, C. P., Theodorou, E. A., and Kulik, H. J. (2025). Optimal transport for generating transition states in chemical reactions. Nature Machine Intelligence, 7(4):615–626.DOI
  12. [12]Feng, B., Baptista, R., and Bouman, K. (2025). Neural approximate mirror maps for constrained diffusion models. In International Conference on Learning Representations, volume 2025, pages 55155–55178.arxiv.org/abs/2406.12816
  13. [13]Gallon, D., von Wurstenberger, P., Cheridito, P., and Jentzen, A. (2026). Physics-informed diffusion models in spectral space. In Forty-third International Conference on Machine Learning.arxiv.org/abs/2602.09708
  14. [14]Geyfman, D., Draxler, F., Groeneveld, J. N., Lee, H., Karaletsos, T., and Mandt, S. (2026). Calibrated test-time guidance for Bayesian inference. In Proceedings of the 43rd International Conference on Machine Learning, volume 306, pages 34639–34666.arxiv.org/abs/2602.22428
  15. [15]Gretton, A., Borgwardt, K. M., Rasch, M. J., Schölkopf, B., and Smola, A. (2012). A kernel two-sample test. The journal of machine learning research, 13:723–773.DOI
  16. [17]Holzschuh, B., Vegetti, S., and Thuerey, N. (2023). Solving inverse physics problems with score matching. Advances in Neural Information Processing Systems, 36:61888–61922.arxiv.org/abs/2301.10250
  17. [18]Huang, J., Yang, G., Wang, Z., and Park, J. J. (2024). Diffusionpde: Generative pde-solving under partial observation. Advances in Neural Information Processing Systems, 37:130291–130323.arxiv.org/abs/2406.17763
  18. [19]Hutchinson, M. F. (1989). A stochastic estimator of the trace of the influence matrix for laplacian smoothing splines. Communications in Statistics-Simulation and Computation, 18(3):1059–1076.
  19. [20]Jacobsen, C., Zhuang, Y., and Duraisamy, K. (2025). Cocogen: Physically consistent and conditioned score-based generative models for forward and inverse problems. SIAM Journal on Scientific Computing, 47(2):C399–C425.arxiv.org/abs/2312.10527
  20. [21]Karras, T., Aittala, M., Aila, T., and Laine, S. (2022). Elucidating the design space of diffusion-based generative models. Advances in neural information processing systems, 35:26565–26577.arxiv.org/abs/2206.00364
  21. [22]Kong, C. X., Wang, Y., Zheng, H., Luo, W., and Lin, G. (2026). Ultra fast pde solving via physics guided few-step diffusion. arXiv preprint arXiv:2602.03627.arxiv.org/abs/2602.03627
  22. [23]Krishnapriyan, A., Gholami, A., Zhe, S., Kirby, R., and Mahoney, M. (2021). Characterizing possible failure modes in physics-informed neural networks. Advances in neural information processing systems, 34:26548–26560.arxiv.org/abs/2109.01050
  23. [25]Liu, G.-H., Chen, T., Theodorou, E., and Tao, M. (2023). Mirror diffusion models for constrained and watermarked generation. Advances in Neural Information Processing Systems, 36:42898–42917.arxiv.org/abs/2310.01236
  24. [26]Liu, Q., Chu, M., and Thuerey, N. (2025a). Config: Towards conflict-free training of physics informed neural networks. In International Conference on Learning Representations, volume 2025, pages 59531–59566.arxiv.org/abs/2408.11104
  25. [27]Liu, Q., Koehler, F., and Thuerey, N. (2025b). Torchsmi: Fourier spectral method with pytorch.
  26. [28]Liu, Q. and Thuerey, N. (2024). Uncertainty-aware surrogate models for airfoil flow simulations with denoising diffusion probabilistic models. AIAA Journal, 62(8):2912–2933.DOI
  27. [29]Mikuni, V., Nachman, B., and Pettee, M. (2023). Fast point cloud generation with diffusion models in high energy physics. Physical Review D, 108(3):036025.DOI
  28. [30]Raissi, M., Perdikaris, P., and Karniadakis, G. E. (2019). Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational physics, 378:686–707.DOI
  29. [31]Rixner, M. and Koutsourelakis, P.-S. (2021). A probabilistic generative model for semi-supervised training of coarse-grained surrogates and enforcing physical constraints through virtual observables. Journal of Computational Physics, 434:110218.DOI
  30. [32]Sawhney, M., Neog, A., Khurana, M., and Karpatne, A. (2025). Beyond loss guidance: Using pde residuals as spectral attention in diffusion neural operators. arXiv preprint arXiv:2512.01370.
  31. [33]Schneuing, A., Harris, C., Du, Y., Didi, K., Jamash, A., Igashov, I., Du, W., Gomes, C., Blundell, T. L., Lio, P., Welling, M., Bronstein, M., and Correia, B. (2024). Structure-based drug design with equivariant diffusion models. Nature Computational Science, 4(12):899–909.DOI
  32. [34]SciPy (2025). Wasserstein distance. https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wasserstein_distance.html#wasserstein-distance1.
  33. [35]Shu, D., Li, Z., and Farimani, A. B. (2023). A physics-informed diffusion model for high-fidelity flow field reconstruction. Journal of Computational Physics, 478:111972.DOI
  34. [36]Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S., and Poole, B. (2021). Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations.
  35. [37]Srivastava, P., Yang, R., Kerrigan, G., Dresner, G., McGibbon, J., Bretherton, C., and Mandt, S. (2024). Precipitation downscaling with spatiotemporal video diffusion. In Advances in Neural Information Processing Systems, volume 37, pages 56374–56400.arxiv.org/abs/2312.06071
  36. [38]Tauberschmidt, J., Fellenz, S., Vollmer, S., and Duncan, A. (2026). Physics-constrained fine-tuning of flow-matching models for generation and inverse problems. In International Conference on Learning Representations, volume 2026, pages 143992–144037.arxiv.org/abs/2508.09156
  37. [39]Tong, V., Hoang, T.-D., Liu, A., Van den Broeck, G., and Niepert, M. (2025). Rao-Blackwell gradient estimators for equivariant denoising diffusion. In Advances in Neural Information Processing Systems, volume 38.
  38. [40]Utkarsh, U., Cai, P., Edelman, A., Gomez-Bombarelli, R., and Rackauckas, C. (2025). Physics-constrained flow matching: Sampling generative models with hard constraints. Advances in Neural Information Processing Systems, pages 160217–160252.arxiv.org/abs/2506.04171
  39. [41]Villani, C. (2009). Optimal transport: old and new. Springer.
  40. [44]Yeom-Song, V. M., Rissanen, S., Solin, A., Kaski, S., and Sun, M. (2025). Softly constrained denoisers for diffusion models. In NeurIPS 2025 AI for Science Workshop.
  41. [45]Yuan, M., Jin, P., Li, N., and Li, Q. (2025). PIRF: Physics-informed reward fine-tuning for diffusion models. In NeurIPS 2025 AI for Science Workshop.arxiv.org/abs/2509.20570
  42. [46]Zeng, T., Wang, T., Zhang, J., Zou, Y., Wang, Y., Jiao, J., Claudel, C., and Chenxinbo (2025). Physics-informed learning via diffusion framework for system state estimation. In UrbanAI: Harnessing Artificial Intelligence for Smart Cities.
  43. [47]Zhang, Y., Wang, P., and Zou, D. (2026). Physics-informed distillation of diffusion models for PDE-constrained generation. In Forty-third International Conference on Machine Learning.arxiv.org/abs/2505.22391

Paper details

vlnc:W_rjvb5set
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

generative AI tools

View statement
Looking for related papers…
Contents