Physics-informed diffusion models in spectral space
Abstract
We propose a methodology that combines generative latent diffusion models with physics-informed machine learning to generate solutions of parametric partial differential equations (PDEs) conditioned on partial observations, which includes, in particular, forward and inverse PDE problems. We learn the joint distribution of PDE parameters and solutions via a diffusion process in a latent space of scaled spectral representations, where Gaussian noise corresponds to functions with controlled regularity. This spectral formulation enables significant dimensionality reduction compared to grid-based diffusion models and ensures that the induced process in function space remains within a class of functions for which the PDE operators are well defined. Building on diffusion posterior sampling, we enforce physics-informed constraints and measurement conditions during inference, applying Adam-based updates at each diffusion step. We evaluate the proposed approach on Poisson, Helmholtz, and incompressible Navier–Stokes equations, demonstrating improved accuracy and computational efficiency compared with existing diffusion-based PDE solvers, which are state of the art for sparse observations. Code is available at https://github.com/deeplearningmethods/PISD.
Contents
1 Introduction
Deep learning approaches for PDEs have progressed toward increasingly general representations of solution spaces: from physics-informed neural networks (PINNs) [29, 33], which approximate individual PDE instances via residual-based objectives, to neural operators [1, 16, 22, 18, 19], which learn solution maps for families of parametric PDEs, and more recently to generative models that learn distributions over PDE parameters and solutions [10, 4]. Through conditional sampling, the generative perspective naturally supports forward and inverse problems as well as reconstruction from sparse or noisy measurements, which are settings that are often ill-posed for classical solvers.
In this work, we develop such a generative framework, which we term physics-informed spectral diffusion (PISD). Our approach represents functions via scaled spectral coefficients and trains a diffusion model [8, 34, 12] in the resulting finite-dimensional latent space [30, 35]. The scaling is obtained from the data distribution and ensures that the diffusion process induced in function space remains within a class of functions for which the underlying PDE operators are well defined. In particular, we show that if the data distribution satisfies a Sobolev regularity condition, then the induced diffusion process in function space preserves this regularity. At inference time, we enforce physics-informed constraints and measurement conditions using a variant of diffusion posterior sampling (DPS) [3] with Adam-based updates [14]. We present a schematic of the PISD method in Figure˜1 and describe it in detail in Section˜3.
Contributions.
-
1.
We introduce PISD, a generative framework that learns joint distributions of PDE parameters and solutions using diffusion models in a scaled spectral latent space with physics-informed guidance at inference.
-
2.
We establish that appropriate scaling of spectral coefficients induces a diffusion process in function space with controlled Sobolev regularity, ensuring that PDE operators are well defined throughout the generative process.
-
3.
We demonstrate that the spectral formulation enables substantial dimensionality reduction compared to grid-based diffusion models, leading to significant computational speedups.
-
4.
We extend DPS with Adam-based inference-time updates and show improvements over standard gradient-based guidance.
We test our method on Poisson, Helmholtz, and incompressible Navier–Stokes equations. In our experiments, the PISD method reduces inference time by a factor of 3 to 15 relative to state-of-the-art baselines, while matching or improving accuracy by up to a factor of 10.
2 Related Work
Physics-informed diffusion models.
Several recent works combine diffusion models with physics-informed constraints. DiffusionPDE [10] and CoCoGen [11] enforce PDE constraints via residual gradients during sampling, but operate on grid-based discretizations with finite differences. In the infinite-resolution limit, the PDE residual becomes ill-defined since the Gaussian noise considered in the diffusion process converges to spatial white noise. Consequently, these methods apply PDE guidance only near the end of the reverse process when the function is already somewhat regular. We compare against DiffusionPDE in Section˜4 and show that PISD achieves significantly lower PDE residuals. Physics-informed diffusion models in [2] similarly use grid-based finite differences but enforce PDE constraints during training rather than inference. Physics-informed diffusion models in [31] address flow field reconstruction with a method closely related to DiffusionPDE. Pi-Fusion [28] also uses a physics-informed guidance term during inference, but only considers forward problems. FunDiff [36] operates in a learned latent space with a continuous vision transformer (CViT) decoder that can be differentiated at arbitrary locations. However, PDE constraints are enforced only during encoder training, not at inference.
Diffusion models for PDEs.
Other approaches use diffusion models to generate PDE solutions without physics-informed losses. FunDPS [38, 23] extends DPS to function-space-valued diffusion processes, providing a rigorous theoretical foundation for the solution of inverse problems with diffusion models in function spaces. Several methods incorporate neural operators into the denoiser architecture [25, 9, 37]. The wavelet diffusion neural operator of Hu et al. [9] considers diffusions in the space of wavelet coefficients and is thus related to our spectral approach but targets functions with abrupt changes rather than ensuring smoothness. Additional diffusion-based PDE methods that do not employ physics-informed losses or function-space formulations include [17, 32].
Diffusion models in infinite-dimensional function spaces.
A growing body of work extends diffusion models to infinite-dimensional function spaces. Spectral diffusion processes [26] formulate diffusions in the space of spectral coefficients, similar to our approach, however without the data-dependent scaling that ensures regularity throughout the diffusion process. [13] generalizes discrete-time diffusion models [8] to infinite-dimensional function spaces, explicitly considering diffusion processes over functions with prescribed Sobolev regularity. [27, 7, 21, 6, 20] develop continuous-time diffusion models in infinite-dimensional function spaces, with particular attention to consistency across discretization levels. [24] generalizes the probability-flow ODE to infinite-dimensional function spaces.
3 Method
3.1 Problem setting
We consider an abstract PDE problem given by a PDE residual functional defined on a Hilbert space . Our goal is to generate samples satisfying , typically conditioned on additional constraints such as boundary conditions or sparse measurements. To this end, we assume a prior distribution supported on PDE solutions, meaning that
| (1) |
In addition, we denote by a random variable which is distributed according to .
Example 3.1 (Poisson equation).
To fix ideas, we briefly specify the problem setting in the case of a 2-dimensional Poisson equation. For this, let , , let be the solution operator which assigns to all the solution of the Poisson equation
| (2) |
with zero boundary conditions, and let be a random variable. We then choose , and define for all that
| (3) |
3.2 Diffusion model in spectral space
To approximately generate function samples from , we suggest to use a diffusion model over a finite-dimensional spectral encoding of functions in . In all our experiments, the function will correspond to a suitably truncated and normalized Fourier transform (cf. Section˜3.4 below). We denote by the inverse transform of for which we have for all that
| (4) |
Following [12], we train a denoiser with trainable parameters to approximate for all noise levels that
| (5) |
where is the spectral encoding of the data and is a Gaussian random variable independent of . For a suitable noise schedule , we then expect reverse-time solutions of the ODE
| (6) |
for with to gradually remove noise so that the initial value is approximately distributed like the spectral encoding of the data . With ˜4 it thus follows that is approximately distributed according to .
3.3 Physics-informed and measurement guidance
In the next step, we add two guidance terms to the ODE in ˜6 to, first, help the model enforce the PDE conditions, and, second, generate samples conditioned on partial measurements. More specifically, for a measurement operator and a given measurement , we want to ensure that
| (7) |
For this we use the DPS technique developed in [3, 10] which enables weak enforcement of guidance conditions in diffusion models by adding forcing terms to the backward diffusion process in the direction of the gradient of the target quantities. Applying this to the reverse-time ODE in ˜6 with the conditions in ˜7, and introducing guidance weights , we obtain the guided reverse-time ODE:
| (8) |
for with . To obtain a concrete algorithm from ˜8, it remains to discretize the ODE in reverse time. We observe that, under a reverse-time Euler discretization of the ODE in ˜8, the contributions of the guidance terms correspond to gradient descent steps. Motivated by this, we suggest to replace these gradient descent updates by a more advanced gradient-based optimizer such as Adam [14]. We show empirically that this leads to significantly better results than standard gradient descent (see Appendix˜C). We present the resulting PISD method in Algorithm˜1.
3.4 Spectral encoding
In this section we specify the encoding introduced in Section˜3.2. Our approach is based on truncated spectral representations of functions in , combined with a frequency-wise normalization determined from the data distribution. Spectral representations are natural in the PDE context, as they allow for explicit evaluation of differential operators.
The normalization plays a central role in our method and is therefore treated as part of the encoding rather than as a standard preprocessing step. Unlike conventional data normalization, our scaling is applied in latent space rather than in physical space, is performed independently for each spectral coefficient, and, because the latent variables correspond to Fourier modes, induces a form of regularization in function space. As we show below, this scaling ensures that Gaussian noise in the latent space corresponds to functions with controlled regularity, which is essential to ensure that PDE operators are well defined throughout the diffusion process.
For concreteness, we present an encoding for the case , where denotes the torus. When consists of tuples of functions, as in Example˜3.1, we apply our encoding approach component-wise and concatenate the results. We consider complex-valued functions and Fourier series here for ease of presentation; in our experiments we sometimes also work with real-valued functions using sine or cosine series.
Let be the Fourier basis on , given for all by
| (9) |
and for all , let denote the -th Fourier coefficient of . To normalize the spectral representation, we define for each the standard deviation
| (10) |
Given a truncation set with , we define the encoding and its inverse for all , , by
| (11) |
The following lemma shows that this scaling ensures that Gaussian noise in the latent space corresponds to a suitably regular function in , provided the data exhibits the same regularity.
Lemma 3.2.
Let , assume , let be i.i.d. random variables, and let be the random function given by
| (12) |
Then .
Lemma˜3.2 is proven in Appendix˜A. Lemma˜3.2 implies that if the data distribution has finite second moments in the Sobolev space , then Gaussian noise in the latent space induces a random function with the same Sobolev regularity. Consequently, the forward process in PISD, obtained by gradually adding Gaussian noise in latent space, remains within . This ensures that the PDE operators used in the PISD guidance are well defined throughout the generative process.
In contrast, the forward process of grid-based diffusion models in physical space converges, in the limit of infinite resolution, to spatial white noise, which is not differentiable. As a result, the methods proposed in [10, 31] apply PDE guidance only after or during the final of the reverse process, whereas PISD enforces PDE constraints throughout. Figure˜2 illustrates this difference, and our numerical results show that enforcing PDE constraints throughout enables PISD to achieve much lower PDE residuals than DiffusionPDE (cf. Section˜4.2).
Remark 3.3 (Choice of truncation set).
4 Numerical results
In this section we showcase the performance of PISD on the Poisson, Helmholtz, and Navier–Stokes equations and compare it to the state-of-the-art methods DiffusionPDE [10] and FunDPS [38].
4.1 Implementation details
Dataset and training.
Adam guidance.
During inference, we enforce PDE and observation constraints using DPS [3], replacing the standard gradient descent updates with Adam [14] (cf. Section˜3.3). We find that maintaining optimizer state across diffusion steps is critical for stable and accurate PDE-constrained generation; a comparison with standard DPS in Appendix˜C shows that Adam-based guidance yields significantly better results, particularly for inverse problems.
Comparison with other methods.
We compare PISD to the state-of-the-art diffusion-based methods DiffusionPDE [10] and FunDPS [38]. Neural-operator-based methods (e.g., PINO, FNO, DeepONet) are not included in the quantitative comparisons, as prior studies, cf. [10, 38], have shown that they perform poorly in sparse observation regimes and are not designed to handle the settings considered here.
4.2 Poisson and Helmholtz equations
Following [10, 38], we first consider partial differential equations posed on a bounded domain with homogeneous Dirichlet boundary conditions. Let and denote by its boundary. We consider the Poisson equation
| (13) |
and the Helmholtz equation
| (14) |
As in Example˜3.1, we want to generate functions from the space . As PDE residual for the Poisson equation we consider for all that
| (15) |
and for the Helmholtz equation we consider for all that
| (16) |
To automatically enforce the Dirichlet boundary conditions, we base our encodings of for the PISD method on the sine transform given for all , by
| (17) |
with the corresponding inverse transform based on the sine series given for all by
| (18) |
The encoding for is also based on a sine transform. Since does not satisfy zero boundary conditions, we first extend it smoothly to a larger domain on which the extended function vanishes at the boundary, then apply the sine transform. The inverse transform is obtained by evaluating the sine series and restricting to . To compute the PDE residual at inference time, we use the formula
| (19) |
which can be conveniently computed in terms of the latent coefficients corresponding to .
| PDE | Obs. | PISD (ours) | DiffusionPDE | FunDPS | |||
|---|---|---|---|---|---|---|---|
| Rel. err | PDE res. | Rel. err | PDE res. | Rel. err | PDE res. | ||
| Poisson | 500 | 3.08 1.71 % | 0.87 | 4.06 1.51 % | 237.49 | 2.23 1.50 % | 4619.34 |
| 1000 | 1.47 0.90 % | 2.31 | 3.35 0.99 % | 207.28 | 1.54 1.05 % | 3807.58 | |
| Full | 0.05 0.03 % | 3.78 | 4.04 1.50 % | 190.70 | 0.87 0.44 % | 3338.32 | |
| Helmholtz | 500 | 3.47 1.70 % | 0.37 | 9.55 4.16 % | 4852.36 | 2.08 0.98 % | 3316.68 |
| 1000 | 1.59 0.77 % | 0.52 | 7.46 2.76 % | 4690.36 | 1.53 0.88 % | 3307.42 | |
| Full | 0.04 0.01 % | 3.97 | 8.25 3.65 % | 5600.25 | 1.14 0.81 % | 2714.46 | |
| PDE | Obs. | PISD (ours) | DiffusionPDE | FunDPS | |||
|---|---|---|---|---|---|---|---|
| Rel. err | PDE res. | Rel. err | PDE res. | Rel. err | PDE res. | ||
| Poisson | 500 | 13.81 3.11 % | 0.45 | 22.17 6.61 % | 178.46 | 21.09 7.10 % | 587.99 |
| 1000 | 12.09 2.68 % | 0.44 | 18.14 6.04 % | 203.62 | 20.47 6.79 % | 460.62 | |
| Full | 7.95 1.71 % | 1.33 | 14.03 4.31 % | 190.10 | 19.84 0.65 % | 429.90 | |
| Helmholtz | 500 | 12.76 2.42 % | 0.21 | 19.33 5.82 % | 8916.58 | 16.26 4.46 % | 1933.61 |
| 1000 | 11.19 1.97 % | 0.20 | 17.03 5.08 % | 13303.46 | 14.93 3.90 % | 2036.62 | |
| Full | 9.03 2.11 % | 0.84 | 15.23 4.73 % | 19010.48 | 13.97 3.60 % | 664.21 | |
| PDE | Obs. | PISD (ours) | DiffusionPDE | FunDPS | ||||
|---|---|---|---|---|---|---|---|---|
| Rel. err | PDE res. | Rel. err | PDE res. | Rel. err | PDE res. | |||
| Poisson | 100 | 18.10 4.57 % | 1.87 | 18.27 5.25 % | 227.30 | 23.04 8.64 % | 4684.91 | |
| 1.19 0.58 % | 1.28 0.62 % | 2.36 1.35 % | ||||||
| 200 | 13.35 3.61 % | 2.03 | 13.96 4.27 % | 249.15 | 16.00 5.41 % | 4085.06 | ||
| 0.46 0.22 % | 0.62 0.28 % | 1.23 0.63 % | ||||||
| Helmholtz | 100 | 20.07 4.33 % | 0.55 | 18.30 5.65 % | 12570.00 | 22.69 7.62 % | 4850.78 | |
| 1.18 0.47 % | 1.48 0.61 % | 2.33 0.94 % | ||||||
| 200 | 16.05 3.27 % | 0.56 | 14.20 4.08 % | 11470.51 | 16.37 4.64 % | 4596.16 | ||
| 0.50 0.20 % | 1.07 0.30 % | 1.50 0.56 % | ||||||
Results.
The trained models are applied to three problem classes. Table˜1 reports results for forward problems, where the solution is inferred from sparse or full observations of the coefficient . Table˜2 reports results for inverse problems, where the coefficient is inferred from sparse or full observations of the solution . Table˜3 addresses joint reconstruction, where both the coefficient and solution are recovered from sparse observations on both the solution and the coefficient. The results for the forward and inverse problem are averaged over 100 independent runs and the results for the joint reconstruction problem are averaged over 50 independent runs. In the forward problem, PISD achieves performance comparable to DiffusionPDE and FunDPS across all observation levels, and becomes more accurate as the number of observations increases. In the inverse problem and joint reconstruction problem, PISD consistently outperforms DiffusionPDE and FunDPS across all observation regimes.
Beyond matching or improving accuracy, PISD has a significantly faster inference time compared to DiffusionPDE and FunDPS due to the reduced dimensionality of the spectral latent space. From a spatial resolution of , we retain only modes, reducing inference time on a GeForce RTX 2080 Ti from 802 seconds (DiffusionPDE) and 152 seconds (FunDPS) to approximately 52 seconds (Table˜7).
Across all tasks, PISD yields significantly lower PDE residuals than the baselines (cf. Figure˜5 for an illustration of the PDE residuals). This suggests that the remaining error in PISD is dominated by the inherent uncertainty of the ill-posed problem under sparse observations, rather than by its inability to satisfy the PDE. This interpretation is supported by the observation that PISD’s accuracy advantage over the baselines is most pronounced when more observations are available and the problem becomes less ill-posed.
4.3 Navier–Stokes equations (Unbounded Domain)
We consider the incompressible Navier–Stokes equations in vorticity form on with periodic boundary conditions:
| (20) |
Here denotes the velocity field, the vorticity, the kinematic viscosity, and , , is a fixed source term.
We discretize the time domain into steps and aim to generate the vorticity field on those time steps. As generation space for the PISD method we choose , representing the vorticity at each time step. The encoding and its inverse are based on the complex Fourier transform applied to each time step separately as described in Section˜3.4 (see in particular ˜9, 10 and 11).
The Biot–Savart law relates the velocity and vorticity fields via their Fourier coefficients: for all , we have that
| (21) |
We denote by the corresponding operator mapping vorticity to velocity.
The PDE residual is formulated using finite differences in time. For all we define that
| (22) |
During inference, we evaluate the PDE residual using the latter equation which is again conveniently expressed in terms of the latent coefficients, except for the nonlinear advection terms which are computed via a pseudo-spectral method: the spatial derivative of is computed in explicitly in Fourier space and the Fourier coefficients of are computed using the Biot–Savart law in ˜21, both and are transformed to physical space for pointwise multiplication, and the result is then transformed back to Fourier space.
Results.
We apply the trained model to generate the full spatio-temporal evolution of the vorticity field at time steps , conditioned on sparse observations at various times. Results are reported in Table˜4 and averaged over 50 independent runs. Unlike DiffusionPDE and FunDPS, which generate only initial or terminal states, our formulation naturally supports interpolation and conditioning on initial, final, or intermediate observations within a single unified framework. PISD is particularly well suited for such temporal conditioning due to its fast inference: from a spatial resolution of , we retain only modes per time step.
| Obs. | Time | Data | PISD (ours) | DiffusionPDE | FunDPS | |
|---|---|---|---|---|---|---|
| Rel. err | PDE res. | Rel. err | Rel. err | |||
| 500 | 4.76 0.65 % | – | 5.31 0.61 % | 5.88 1.09 % | ||
| – | 3.78 0.53 % | 0.21 | – | – | ||
| – | 3.29 0.37 % | 0.11 | – | – | ||
| – | 3.21 0.40 % | 0.08 | – | – | ||
| – | 3.20 0.47 % | 0.06 | – | – | ||
| – | 3.11 0.52 % | 0.07 | – | – | ||
| – | 2.59 0.44 % | 0.09 | – | – | ||
| – | 2.09 0.31 % | 0.12 | – | – | ||
| – | 1.53 0.30 % | 0.26 | – | – | ||
| 0.24 0.07 % | – | 0.51 0.05 % | 0.30 0.07 % | |||
| 500 | – | 4.03 0.39 % | – | – | – | |
| – | 2.46 0.31 % | 0.13 | – | – | ||
| – | 1.99 0.26 % | 0.10 | – | – | ||
| 0.84 0.24 % | 0.09 | – | – | |||
| – | 1.22 0.25 % | 0.09 | – | – | ||
| – | 1.07 0.20 % | 0.09 | – | – | ||
| 0.38 0.12 % | 0.11 | – | – | |||
| – | 1.64 0.33 % | 0.10 | – | – | ||
| – | 1.55 0.31 % | 0.13 | – | – | ||
| – | 2.39 0.62 % | – | – | – | ||
| 200 | 8.82 1.36 % | – | 10.09 1.57 % | 10.83 1.83 % | ||
| – | 7.13 1.07 % | 0.12 | – | – | ||
| – | 6.06 0.89 % | 0.20 | – | – | ||
| – | 5.24 0.80 % | 0.14 | – | – | ||
| – | 4.57 0.69 % | 0.10 | – | – | ||
| – | 4.02 0.66 % | 0.11 | – | – | ||
| – | 3.38 0.58 % | 0.15 | – | – | ||
| – | 2.70 0.52 % | 0.18 | – | – | ||
| – | 2.16 0.45 % | 0.10 | – | – | ||
| 1.63 0.45 % | – | 1.77 0.45 % | 2.51 0.57 % | |||
5 Conclusion
We introduced physics-informed spectral diffusion (PISD), a generative framework for parametric PDEs that operates in a latent space of scaled spectral coefficients and enforces physics-informed constraints during inference using Adam-based updates. By normalizing spectral coefficients according to the data distribution, PISD ensures that the diffusion process remains within a class of functions with controlled Sobolev regularity, allowing PDE guidance throughout the sampling process and yielding significantly lower PDE residuals than existing methods.
Across forward and inverse problems for Poisson, Helmholtz, and Navier–Stokes equations, PISD matches or outperforms existing diffusion-based PDE solvers in reconstruction accuracy while significantly reducing inference time, achieving roughly a 3× speedup compared to FunDPS and a 15× speedup compared to DiffusionPDE.
Overall, PISD provides a physically grounded and computationally efficient approach for generative PDE modeling.
6 Limitations and future work
PISD relies on a spectral representation that must be specified for each PDE, and is naturally suited to regular domains with periodic, homogeneous Dirichlet, or Neumann boundary conditions. Extending the approach to irregular geometries or more general boundary conditions would require techniques such as domain decomposition or alternative function bases. A promising direction for future work is to replace hand-crafted spectral encodings with learned encoder-decoder pairs, for instance using neural operators as in FunDiff [36], which could enable automatic adaptation to diverse problem settings. Additionally, the current framework requires a dataset of solution fields for training. Extending to low-data regimes is an important direction for future work.
Acknowledgments
This work has been partially funded by the National Science Foundation of China (NSFC) under grant number W2531010. Calculations (or parts of them) for this publication were performed on the HPC cluster PALMA II of the University of Münster, subsidised by the DFG (INST 211/667-1). Financial support from Swiss National Science Foundation Grant 10003723 is gratefully acknowledged. Moreover, we gratefully acknowledge the Cluster of Excellence EXC 2044-390685587, Mathematics Münster: Dynamics-Geometry-Structure funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation).
References
- [1] Anandkumar, A., Azizzadenesheli, K., Bhattacharya, K., Kovachki, N., Li, Z., Liu, B., and Stuart, A. Neural operator: Graph kernel network for partial differential equations. In ICLR 2020 Workshop on Integration of Deep Neural Models and Differential Equations (2019).
- [2] Bastek, J.-H., Sun, W., and Kochmann, D. M. Physics-informed diffusion models. arXiv:2403.14404 (2024).
- [3] Chung, H., Kim, J., Mccann, M. T., Klasky, M. L., and Ye, J. C. Diffusion posterior sampling for general noisy inverse problems. In International Conference on Learning Representations (2023).
- [4] Ciftci, K., and Hackl, K. A physics-informed gan framework based on model-free data-driven computational mechanics. Computer Methods in Applied Mechanics and Engineering 424 (2024), 116907.
- [5] Einsiedler, M., and Ward, T. Functional Analysis, Spectral Theory, and Applications. Springer International Publishing, 2017.
- [6] Franzese, G., Corallo, G., Rossi, S., Heinonen, M., Filippone, M., and Michiardi, P. Continuous-time functional diffusion processes. In Thirty-seventh Conference on Neural Information Processing Systems (2023).
- [7] Hagemann, P., Mildenberger, S., Ruthotto, L., Steidl, G., and Yang, N. T. Multilevel diffusion: Infinite dimensional score-based diffusion models for image generation. arXiv:2303.04772 (Mar. 2023).
- [8] Ho, J., Jain, A., and Abbeel, P. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems (2020), H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, and H. Lin, Eds., vol. 33, Curran Associates, Inc., pp. 6840–6851.
- [9] Hu, P., Wang, R., Zheng, X., Zhang, T., Feng, H., Feng, R., Wei, L., Wang, Y., Ma, Z.-M., and Wu, T. Wavelet diffusion neural operator. arXiv:2412.04833 (Dec. 2024).
- [10] Huang, J., Yang, G., Wang, Z., and Park, J. J. Diffusionpde: Generative pde-solving under partial observation. Advances in Neural Information Processing Systems 37 (2024), 130291–130323.
- [11] Jacobsen, C., Zhuang, Y., and Duraisamy, K. Cocogen: Physically consistent and conditioned score-based generative models for forward and inverse problems. SIAM Journal on Scientific Computing 47, 2 (2025), C399–C425.
- [12] Karras, T., Aittala, M., Aila, T., and Laine, S. Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems (2022), S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, Eds., vol. 35, Curran Associates, Inc., pp. 26565–26577.
- [13] Kerrigan, G., Ley, J., and Smyth, P. Diffusion generative models in infinite dimensions. In Proceedings of The 26th International Conference on Artificial Intelligence and Statistics (25–27 Apr 2023), F. Ruiz, J. Dy, and J.-W. van de Meent, Eds., vol. 206 of Proceedings of Machine Learning Research, PMLR, pp. 9538–9563.
- [14] Kingma, D. P., and Ba, J. Adam: A method for stochastic optimization. arXiv:1412.6980 (Dec. 2014).
- [15] Kolesnikov, A., Dosovitskiy, A., Weissenborn, D., Heigold, G., Uszkoreit, J., Beyer, L., Minderer, M., Dehghani, M., Houlsby, N., Gelly, S., Unterthiner, T., and Zhai, X. An image is worth 16x16 words: Transformers for image recognition at scale.
- [16] Kovachki, N., Li, Z., Liu, B., Azizzadenesheli, K., Bhattacharya, K., Stuart, A., and Anandkumar, A. Neural operator: Learning maps between function spaces with applications to pdes. Journal of Machine Learning Research 24, 89 (2023), 1–97.
- [17] Li, Z., Han, W., Zhang, Y., Fu, Q., Li, J., Qin, L., Dong, R., Sun, H., Deng, Y., and Yang, L. Learning spatiotemporal dynamics with a pretrained generative model. Nature Machine Intelligence 6, 12 (Dec. 2024), 1566–1579.
- [18] Li, Z., Kovachki, N. B., Azizzadenesheli, K., liu, B., Bhattacharya, K., Stuart, A., and Anandkumar, A. Fourier neural operator for parametric partial differential equations. In International Conference on Learning Representations (2021).
- [19] Li, Z., Zheng, H., Kovachki, N., Jin, D., Chen, H., Liu, B., Azizzadenesheli, K., and Anandkumar, A. Physics-informed neural operator for learning partial differential equations. ACM / IMS J. Data Sci. 1, 3 (May 2024).
- [20] Lim, J. H., Kovachki, N. B., Baptista, R., Beckham, C., Azizzadenesheli, K., Kossaifi, J., Voleti, V., Song, J., Kreis, K., Kautz, J., Pal, C., Vahdat, A., and Anandkumar, A. Score-based diffusion models in function space. Journal of Machine Learning Research 26, 158 (2025), 1–62.
- [21] Lim, S., YOON, E. B., Byun, T., Kang, T., Kim, S., Lee, K., and Choi, S. Score-based generative modeling through stochastic evolution equations in hilbert spaces. In Advances in Neural Information Processing Systems (2023), A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, Eds., vol. 36, Curran Associates, Inc., pp. 37799–37812.
- [22] Lu, L., Jin, P., Pang, G., Zhang, Z., and Karniadakis, G. E. Learning nonlinear operators via deeponet based on the universal approximation theorem of operators. Nature Machine Intelligence 3, 3 (Mar. 2021), 218–229.
- [23] Mammadov, A., Berner, J., Azizzadenesheli, K., Ye, J. C., and Anandkumar, A. Diffusion-based inverse solver on function spaces with applications to pdes. Machine Learning and the Physical Sciences Workshop at NeurIPS (2024).
- [24] Na, K., Lee, J., Yun, S.-Y., and Lim, S. Probability-flow ode in infinite-dimensional function spaces. arXiv:2503.10219 (Mar. 2025).
- [25] Oommen, V., Bora, A., Zhang, Z., and Karniadakis, G. E. Integrating neural operators with diffusion models improves spectral representation in turbulence modeling. arXiv:2409.08477 (Sept. 2024).
- [26] Phillips, A., Seror, T., Hutchinson, M. J., Bortoli, V. D., Doucet, A., and Mathieu, E. Spectral diffusion processes. In NeurIPS 2022 Workshop on Score-Based Methods (2022).
- [27] Pidstrigach, J., Marzouk, Y., Reich, S., and Wang, S. Infinite-dimensional diffusion models. Journal of Machine Learning Research 25, 414 (2024), 1–52.
- [28] Qiu, J., Huang, J., Zhang, X., Lin, Z., Pan, M., Liu, Z., and Miao, F. Pi-fusion: Physics-informed diffusion model for learning fluid dynamics. arXiv:2406.03711 (June 2024).
- [29] Raissi, M., Perdikaris, P., and Karniadakis, G. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics 378 (2019), 686–707.
- [30] Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B. High-resolution image synthesis with latent diffusion models. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) (2022), pp. 10674–10685.
- [31] Shu, D., Li, Z., and Farimani, A. B. A physics-informed diffusion model for high-fidelity flow field reconstruction. Journal of Computational Physics 478 (2023), 111972.
- [32] Shysheya, A., Diaconu, C., Bergamin, F., Perdikaris, P., Hernández-Lobato, J. M., Turner, R. E., and Mathieu, E. On conditional diffusion models for pde simulations. In Advances in Neural Information Processing Systems (2024), A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang, Eds., vol. 37, Curran Associates, Inc., pp. 23246–23300.
- [33] Sirignano, J., and Spiliopoulos, K. Dgm: A deep learning algorithm for solving partial differential equations. Journal of Computational Physics 375 (2018), 1339–1364.
- [34] Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S., and Poole, B. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations (2021).
- [35] Vahdat, A., Kreis, K., and Kautz, J. Score-based generative modeling in latent space. In Advances in Neural Information Processing Systems (2021), M. Ranzato, A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan, Eds., vol. 34, Curran Associates, Inc., pp. 11287–11302.
- [36] Wang, S., Dou, Z., Liu, T.-R., and Lu, L. Fundiff: Diffusion models over function spaces for physics-informed generative modeling. arXiv:2506.07902 (2025).
- [37] Yang, G., and Sommer, S. A denoising diffusion model for fluid field prediction. arXiv:2301.11661 (Jan. 2023).
- [38] Yao, J., Mammadov, A., Berner, J., Kerrigan, G., Ye, J. C., Azizzadenesheli, K., and Anandkumar, A. Guided diffusion sampling on function spaces with applications to PDEs. In The Thirty-ninth Annual Conference on Neural Information Processing Systems (2025).
Appendix A Proof of Lemma˜3.2
Proof.
The proof of Lemma˜3.2 relies on the following elementary connection between Sobolev spaces and Fourier coefficients (cf., e.g., Lemma 5.4 in [5]). We have that
| (23) |
and for all the Sobolev norm is equivalent to
| (24) |
Note that (12) and the fact that is an orthonormal basis of implies that for all we have that
| (25) |
The assumption that , ˜10, and ˜24 therefore imply that
| (26) |
∎
Appendix B Experiment description.
Dataset and spectral transform preprocessing.
All experiments are conducted using the same datasets introduced in the DiffusionPDE work [10]. The datasets consist of pairs of PDE coefficients and corresponding solutions generated numerically for the target equations at a spatial resolution of . For the Navier–Stokes equations, we consider trajectories consisting of 10 consecutive time steps, which correspond to one second of physical time in the underlying simulation. Each training sample therefore contains the full spatio-temporal evolution of the vorticity field over this interval. We use the original training and test splits provided in that work to ensure a fair and direct comparison with existing diffusion-based PDE solvers. Prior to training, all fields are transformed into the spectral domain. For the Poisson and Helmholtz equations, we employ a discrete sine transform, while for the Navier–Stokes equations we use a standard Fourier transform appropriate for the periodic boundary condition.
To reduce the effective dimensionality and focus learning on the dominant modes, we truncate the spectral coefficients. For Poisson and Helmholtz, we retain modes using a hyperbolic truncation strategy (see Figure˜3), which prioritizes low-frequency modes while gradually reducing high-frequency components.
For Navier–Stokes, we retain the inner square of Fourier modes, after applying fftshift, which, after inverting the shift, results in Figure˜4.
All subsequent training and inference operations are performed in this truncated spectral space. The training objective is a standard denoising diffusion loss applied to the truncated coefficients, ensuring that the model captures the dominant physical structures while remaining computationally efficient.
The truncation of spectral coefficients is motivated by two considerations. First, retaining only the dominant modes results in negligible reconstruction error: even when reducing the full resolution to a coefficient grid for Poisson and Helmholtz, or for Navier–Stokes, the reconstructed fields closely match the original solutions. This ensures that the diffusion model can learn and generate high-fidelity solutions while operating in a lower-dimensional space.
Note that for the Poisson and Helmholtz equations, the sine transform requires that the input satisfies homogeneous Dirichlet boundary conditions. When transforming the coefficients, we no longer satisfy this constraint. To address this, we pad the coefficients by adding four external layers which gradually decreased boundary to , enforcing consistency with the sine transform. This step allows the truncated coefficient grid to encode the essential information of the solution while remaining compatible with the sine transform, ensuring accurate training and inference.
Training details.
All trainings were performed on 4 NVIDIA GeForce RTX 2080 GPUs. Training time for the Poisson and Helmholtz datasets was approximately 3 hours, while training for the Navier–Stokes dataset required about 10 hours as we consider solutions during all the time steps, even though the truncated spectral representation is larger.
The network architecture is based on a Vision Transformer (ViT), with adaptations for Navier–Stokes to handle the larger input size. We also experimented with a U-Net architecture, which provided comparable results in terms of accuracy. In all cases, our model has 2M parameters compared to the 54M in the DiffusionPDE and FunDPS’s networks.
Inference details.
For the Poisson and Helmholtz equations, we perform 100 independent simulations in each experimental setting to estimate variability, while for Navier–Stokes we use 50 simulations. The principal metric we report is the relative error, while we also evaluate the PDE residual to quantify how well the generated solutions satisfy the underlying differential equations.
Our method consistently produces lower PDE residuals compared to baseline approaches, thanks to the accurate computation of derivatives in Fourier space. For example, in Figure˜5 we compare the Laplacian of the solution computed with our Fourier-based derivatives versus finite-difference approximations obtained in other methods. The figure illustrates that our approach captures the differential structure more accurately, which directly contributes to improved PDE consistency.
The guidance coefficients used during inference vary slightly depending on the task and number of observations. We report the values for the Poisson and Helmholtz equations in Table˜5 and for the Navier–Stokes equations in Table˜6, providing a complete reference for reproducibility. Additionally, Table˜7 reports the time required to generate a single solution on a GeForce RTX 2080 Ti for Poisson and Helmholtz problems. A direct comparison of generation time for Navier–Stokes is not possible, as our method generates the full temporal trajectory rather than only the initial and final states, as done by the other approaches; generating one full solution trajectory requires approximately 7 minutes.
| Case | Obs. | |||
|---|---|---|---|---|
| Forward | 500 | 0 | 0.05 | 0.0005 |
| 1000 | 0 | 0.05 | 0.0005 | |
| Full | 0 | 0.05 | 0.0001 | |
| Inverse | 500 | 20 | 0 | 0.00005 |
| 1000 | 20 | 0 | 0.00005 | |
| Full | 40 | 0 | 0.000005 | |
| Double | 100 | 40 | 0.05 | 0.0002 |
| 200 | 40 | 0.05 | 0.0002 |
| Obs. | ||
|---|---|---|
| 200 | 0.0001 | 0.5 |
| 500 | 0.0001 | 0.5 |
| PDE | PISD (ours) | DiffusionPDE | FunDPS |
|---|---|---|---|
| Poisson | 52 | 802 | 153 |
| Helmholtz | 52 | 802 | 171 |
Frequency-aware Adam guidance.
During inference, PDE and observation constraints are enforced via gradient-based guidance. Unlike standard diffusion guidance, which typically uses plain gradient descent, we employ a frequency-aware variant of the Adam optimizer. The first- and second-moment estimates are maintained across diffusion steps, and updates are modulated by frequency-dependent weights to prioritize physically meaningful low-frequency modes.
Specifically, let denote the Fourier coefficient at mode , the gradient, and the frequency weight. The update at step is computed as:
| (27) | ||||
| (28) | ||||
| (29) |
where the effective learning rate depends on the frequency mode:
| (30) |
The parameters used in our experiments are:
-
•
and for all sparse or partial observation cases
-
•
and for fully observed scenarios
-
•
, .
This formulation allows the low-frequency modes to be updated aggressively, capturing the main structure of the solution, while high-frequency modes are updated conservatively to reduce noise amplification. This design is important for stabilizing PDE-constrained diffusion and achieving low PDE residuals in all tested scenarios.
Appendix C Additional results.
Comparison between gradient descent and Adam guidance.
We compare standard gradient descent guidance with Adam-based guidance for the Poisson equation under forward and inverse problem settings, using different numbers of observations. The results are summarized in Table 8. Across all configurations, Adam consistently achieves lower relative error and reduced PDE residuals compared to gradient descent. In addition, Adam exhibits substantially lower variance indicating improved stability during inference.
The advantages of Adam guidance are particularly pronounced in the inverse problem, where gradient descent guidance often fails to converge to meaningful solutions, leading to large reconstruction errors and high variability. In contrast, Adam effectively balances the competing guidance terms and seems to act as a regularizer. These results support the use of adaptive optimization methods for diffusion guidance, rather than standard gradient descent, especially when enforcing PDE constraints.
| Case | Obs. | Adam | SGD | ||||
|---|---|---|---|---|---|---|---|
| Rel. err. | PDE res. | Obs. rel. err. | Rel. err. | PDE res. | Obs. rel. err. | ||
| Forward | 500 | 3.08 1.71 % | 0.87 | 0.11 % | 3.60 3.04 % | 12.35 | 10.99 % |
| 1000 | 1.47 0.90 % | 2.31 | 0.10 % | 2.12 1.34 % | 12.66 | 12.30 % | |
| Full | 0.05 0.03 % | 3.78 | 2.38 % | 0.90 0.43 % | 13.26 | 13.55 % | |
| Inverse | 500 | 13.81 3.11 % | 0.45 | 0.12 % | 49.25 15.42 % | 7.73 | 5.85 % |
| 1000 | 12.09 2.68 % | 0.44 | 0.12 % | 50.52 15.56 % | 19.65 | 6.28 % | |
| Full | 7.95 1.71 % | 1.33 | 0.10 % | 50.41 15.59 % | 22.23 | 6.02 % | |
Inference process figures.
Here we provide a comparison in the inference process between our method and the DiffusionPDE paper.


Qualitative results.
We present qualitative examples of solutions generated by PISD, DiffusionPDE, and FunDPS under sparse observation regimes. Figures˜7 and 8 illustrate forward and inverse problems for Poisson and Helmholtz equations with observations, showing reconstructions of both the solution and the coefficient , together with the corresponding pointwise error maps.
Figure˜9 shows a Navier–Stokes example conditioned only on sparse observations at the first and last time steps. The model successfully reconstructs the full spatio-temporal evolution of the flow, producing coherent intermediate dynamics that satisfy the governing equations. These qualitative results complement the quantitative comparisons and highlight the ability of PISD to enforce PDE constraints while maintaining global consistency under sparse supervision.