FunDiff: Diffusion Models over Function Spaces for Physics-Informed Generative Modeling

Sifan Wang, Zehao Dou, Siming Shan, Tong-Rui Liu, Lu Lu
6/9/2025
cs.LGphysics.comp-phstat.ML

Official code: sifanexisted/fundiff (99 stars, MIT, last commit 2026-04-30).

Abstract

Recent advances in generative modeling -- particularly diffusion models and flow matching -- have achieved remarkable success in synthesizing discrete data such as images and videos. However, adapting these models to physical applications remains challenging, as the quantities of interest are continuous functions governed by complex physical laws. Here, we introduce $\textbf{FunDiff}$, a novel framework for generative modeling in function spaces. FunDiff combines a latent diffusion process with a function autoencoder architecture to handle input functions with varying discretizations, generate continuous functions evaluable at arbitrary locations, and seamlessly incorporate physical priors. These priors are enforced through architectural constraints or physics-informed loss functions, ensuring that generated samples satisfy fundamental physical laws. We theoretically establish minimax optimality guarantees for density estimation in function spaces, showing that diffusion-based estimators achieve optimal convergence rates under suitable regularity conditions. We demonstrate the practical effectiveness of FunDiff across diverse applications in fluid dynamics and solid mechanics. Empirical results show that our method generates physically consistent samples with high fidelity to the target distribution and exhibits robustness to noisy and low-resolution data. Code and datasets are publicly available at https://github.com/sifanexisted/fundiff.

View on arXivView PDF

Code Implementations(1)

MIT
9916Python, Jupyter NotebookMar 10, 20255 months agoMIT

Similar Papers

Cite this paper

@article{wang2025fundiff,
  title  = {FunDiff: Diffusion Models over Function Spaces for Physics-Informed Generative Modeling},
  author = {Sifan Wang and Zehao Dou and Siming Shan and Tong-Rui Liu and Lu Lu},
  year   = {2025},
  eprint = {2506.07902},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.07902v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.07902.svg)](https://codeofpaper.com/paper/2506.07902)

Discussion