NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

Sifan Wang, Zehao Dou, Tong-Rui Liu, Lu LuarXiv 2025 · DOI

Abstract

Generative models have seen remarkable success in discrete domains like images and text, but many scientific applications require modeling continuous physical fields. We present FunDiff, a novel framework that extends diffusion models to infinite-dimensional function spaces. By decoupling the generative process from the physical representation through a physics-informed function autoencoder (FAE) and a latent diffusion module, FunDiff generates high-fidelity samples that satisfy fundamental physical laws. Our approach is resolution-independent and demonstrates minimax-optimal convergence rates, making it a robust tool for tasks like super-resolution, data purification, and flow reconstruction in complex physical systems.

Introduction

Standard generative models, such as those used in DALL-E or Stable Diffusion, are typically "grid-bound," operating on discrete pixels or voxels. However, the natural world is fundamentally continuous. In engineering and physics, we deal with functions—velocity fields, temperature gradients, or stress distributions—that exist independently of any specific discretization.

Adapting diffusion models to these scientific domains poses three significant challenges: discretization sensitivity, the mathematical complexity of infinite-dimensional spaces, and the requirement for physical consistency. A generated fluid flow is only useful if it obeys conservation laws. FunDiff addresses these by learning a distribution over function spaces rather than discrete grids.

Methodology: The FunDiff Framework

FunDiff employs a two-stage approach to bridge the gap between discrete observations and continuous generative modeling.

1. Function Autoencoder (FAE)

The FAE serves as the interface between discrete data and continuous space.

  • Encoder: A Perceiver module and Vision Transformer (ViT) map discretized observations of any resolution into a fixed-dimensional latent vector.
  • Decoder: A coordinate-based neural representation that takes the latent vector and a query coordinate $(x, y)$ to output the function value at that point.
  • Physics Integration: Physical priors (e.g., PDE residuals, symmetries, or divergence-free constraints) are baked into the FAE. This ensures that the latent space only represents physically plausible states.

2. Latent Diffusion

Instead of diffusing the high-dimensional function directly, FunDiff trains a Diffusion Transformer (DiT) on the compact latent codes produced by the FAE. This makes the generative process efficient and stable.

The FunDiff pipeline: (Step 1) Training the Function Autoencoder with physical priors, (Step 2) Training the Latent Diffusion Model on latent codes, and (Step 3) Inference for various applications.

3. Theoretical Foundation

FunDiff is grounded in the theory of diffusion-based estimators in function spaces (specifically RKHS and Barron spaces). The authors provide rigorous proof that these models achieve minimax-optimal convergence rates, ensuring mathematical efficiency in learning complex distributions.

Experimental Evaluation

The framework was tested on several physical benchmarks, including 1D damped sinusoidal signals, 2D Kolmogorov flow (turbulence), Burgers’ equation (shocks), and linear elasticity in composite materials.

Key Results

  • Physical Fidelity: In Burgers’ equation tests, incorporating PDE residual losses during FAE training reduced the residual norm of generated samples by orders of magnitude compared to unconstrained models.
  • Resolution Independence: FunDiff enables "zero-shot" super-resolution, allowing models trained on low-resolution data to generate high-fidelity fields at arbitrary query points during inference.
  • Robustness: The model acts as a "data purifier," successfully reconstructing sharp physical fields from data with 20% Gaussian noise and 5x downsampling, where standard neural operators often fail.
Validation on 1D damped sinusoidal signals. Top: Generated vs. reconstructed signals across different sample sizes (n). Bottom: Distribution of estimated parameters and MSE scaling with training samples, confirming theoretical convergence rates.

Discussion and Future Work

FunDiff demonstrates that decoupling physics from the diffusion process allows the model to focus on learning the distribution of valid physical states rather than re-learning the laws of physics from scratch. While highly effective, the model currently relies on pre-existing datasets. Future research aims to develop "physics-informed diffusion solvers" that can solve PDEs directly by incorporating residuals into the diffusion score function, and extending the framework to non-Euclidean geometries like complex turbine blades or automotive parts.

Summary updated

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