FoundPDE: A generative foundation model for data-driven symbolic discovery of partial differential equations
Organizations: Department of Statistics and Data Science, Yale University, New Haven, CT 06511, USA · Department of Mechanical Engineering, Stanford University, Stanford, CA 94305, USA · Department of Chemical and Environmental Engineering, Yale University, New Haven, CT 06511, USA
Abstract
Discovering governing partial differential equations (PDEs) from observed data is a central inverse problem in computational science and engineering: the goal is not only to predict trajectories, but to identify interpretable symbolic laws that can be analyzed and reused. Existing PDE discovery methods often depend on hand-designed libraries, accurate numerical derivatives, or per-equation symbolic search, making them fragile under sparse observations, noisy data, broad equation families, and unseen symbolic compositions. Here, we introduce FoundPDE, a pretrained data-to-symbol foundation model for PDE discovery. FoundPDE maps discretized spatio-temporal trajectories to symbolic equations with a transformer, uses Fourier and first-order spatial-derivative augmentation to expose complementary trajectory information, refines numerical coefficients, and supports downstream extension with improved generalization through few-shot fine-tuning and hierarchical discovery. On a clean in-domain benchmark spanning 20 PDE families, our model reaches 97.50% type recognition. Under coefficient shifts beyond the training support, type recognition remains 90.53%; under multiplicative Gaussian noise on the model input, it is 94.43% at a 2% noise level but falls to 52.09% at 10%. For unseen composite equations, few-shot fine-tuning reaches over 90% exact recovery on four held-out families, and we further develop a hierarchical discovery algorithm that recovers two-term composites without fine-tuning FoundPDE. By amortizing symbolic discovery across equation families, FoundPDE shifts PDE discovery from per-dataset search toward a reusable pretrained model that extends to new physics with limited additional data, a step toward foundation models that uncover interpretable governing laws directly from scientific data.
Figures & tables
| Ground truth | FoundPDE | SINDy | Weak SINDy | DISCOVER |
| u_{t}=0.000722u_{xx}+{\color[rgb]{0,0.55,0}0.0492u} (19/20) | u_{t}=0.000799u_{xx}+{\color[rgb]{0,0.55,0}0.0470u} (16/20) | u_{t}=0.000792u_{xx}+{\color[rgb]{0,0.55,0}0.0472u} (20/20) | u_{t}=0.0008u_{xx}+{\color[rgb]{0,0.55,0}0.0486u} | |
| u_{t}=0.00231u_{xx}+{\color[rgb]{0,0.55,0}0.813u(1-u)} (20/20) | u_{t}=0.00228u_{xx}+{\color[rgb]{1,0,0}0.778u-0.729u^{2}} \quad{\color[rgb]{1,0,0}{}-0.084u^{3}+0.034u^{4}} (6/20) | u_{t}={\color[rgb]{1,0,0}0.962u-1.024u^{2}} (3/20) | u_{t}=0.0034u_{xx}+{\color[rgb]{0,0.55,0}0.0309u(1-u)} | |
| u_{t}=0.00447u_{xx}+{\color[rgb]{1,0,0}0.529u^{2}(1-u)^{2}} (13/20) | u_{t}=0.00492u_{xx}+{\color[rgb]{0,0.55,0}0.248u^{2}-0.253u^{3}} (16/20) | u_{t}=0.00489u_{xx}+{\color[rgb]{0,0.55,0}0.241u^{2}-0.242u^{3}} (20/20) | u_{t}=0.001u_{xx}+{\color[rgb]{1,0,0}0.0428u+0.005} | |
| u_{t}=0.00325u_{xx}+{\color[rgb]{0,0.55,0}0.171u^{2}(1-u)^{2}} (16/20) | u_{t}=0.00345u_{xx}+{\color[rgb]{0,0.55,0}0.125u^{2}} \quad{\color[rgb]{0,0.55,0}{}-0.249u^{3}+0.125u^{4}} (12/20) | u_{t}=0.00343u_{xx}+{\color[rgb]{0,0.55,0}0.126u^{2}} \quad{\color[rgb]{0,0.55,0}{}-0.252u^{3}+0.126u^{4}} (10/20) | u_{t}=0.0034u_{xx}+{\color[rgb]{1,0,0}0.0333u(1-u)} | |
| Correct over 80 trajectories | 68 | 50 | 53 | – |
| Ground truth | DISCOVER | DISCOVER | FoundPDE |
| Burgers | |||
| Heat | |||
| Advection | |||
| Cahn–Hilliard | |||
| Conservation (cubic flux) | |||
| Conservation (linear flux) |
| Family | Samples | TRR (%) | Mean Rel. | Median MRCSE | Most frequent incorrect type |
|---|---|---|---|---|---|
| Burgers | 272 | 100.00 | 0.088 | 0.008 | None observed |
| Inviscid Burgers | 272 | 100.00 | 0.122 | 0.005 | None observed |
| Advection | 272 | 99.63 | 0.676 | 2.568 | None observed |
| Diffusion–reaction, logistic | 272 | 99.63 | 0.021 | 0.007 | None observed |
| Viscous conservation, linear flux | 272 | 99.63 | 0.326 | 0.011 | Sine-flux conservation |
| Cahn–Hilliard | 264 | 99.62 | 0.000 | 0.003 | None observed |
| Ground truth | Decomposition results | |
|---|---|---|
| Step 1 (Dominant): | ||
| Step 2 (Subordinate): | ||
| Combined: | ||
| After BFGS: | ||
| Step 1 (Dominant): | ||
| Step 2 (Subordinate): | ||
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Family | Canonical form | Reference setting | In-domain support |
|---|---|---|---|
| Heat / Diffusion | , | ||
| Porous medium | |||
| Klein–Gordon | , , | ||
| Sine–Gordon | , | ||
| Cahn–Hilliard | , | ||
| KdV | , |
| Setting | 128K samples, 50 epochs | 512K samples, 100 epochs |
|---|---|---|
| Clean in-domain | 93.40 | 97.50 |
| Corruption, | 89.86 | 94.43 |
| Corruption, | 49.26 | 52.09 |
| Strict parameter OOD | 89.36 | 90.53 |
| Heat | 98.53 | 67.28 |
| Klein–Gordon | 85.23 | 71.97 |
| Composite family | Symbolic form |
|---|---|
| Advection–Burgers | |
| Advection–cubic Burgers | |
| Advection–sine | |
| Burgers–cubic Burgers |
| Equation type | Training initial condition | In-domain test initial condition |
|---|---|---|
| Heat, Diffusion–reaction, Klein–Gordon, Sine–Gordon, Cahn–Hilliard, Viscous conservation, Inviscid conservation, KdV | Sinusoidal superposition with | Independent draw from the same generator |
| Advection, wave | Gaussian distribution with | Independent draw from the same generator |
| Fokker–Planck | Gaussian distribution with | Independent draw from the same generator |
| Porous medium | Quadratic function | Independent draw from the same generator |
| Equation type | Solver |
|---|---|
| Heat, Klein–Gordon, Sine–Gordon, Porous medium, Cahn–Hilliard | Method of lines |
| Diffusion–reaction, Viscous conservation, Inviscid conservation | PDEBench solver pipeline |
| Advection, Wave | Analytical solution |
| KdV | Fourier spectral method |
| Fokker–Planck | Matrix numerical method |
| Setting | Eq. settings ICs | TRR (%) | Mean relative | Mean MRCSE | Median MRCSE | |
|---|---|---|---|---|---|---|
| Clean in-domain and corruption control, | ||||||
| Corruption, | ||||||
| Corruption, | ||||||
| Corruption, | ||||||
| Strict parameter OOD |
| Family | Reference coefficient(s) | Strict OOD support |
|---|---|---|
| Heat | ||
| Advection | ||
| KdV | ||
| Fokker–Planck | ||
| Diffusion–reaction, logistic / linear | , | Either or |
| Diffusion–reaction, bistable / square-logistic | , | Either or |
| FoundPDE (recomputed) | FoundPDE (Sec. 3.3 ) | SINDy | SINDy SG 11 | SINDy SG 5 | Weak SINDy | Weak SINDy | |
| 0 | 68 | 68 | 50 | 9 | 27 | 53 | 50 |
| 0.01 | 54 | 62 | 0 | 9 | 4 | 17 | 6 |
| 0.02 | 45 | 47 | 0 | 2 | 1 | 6 | 5 |
| 0.05 | 24 | 29 | 0 | 0 | 0 | 5 | 0 |
| 0.1 | 5 | 23 | 0 | 0 | 0 | 1 | 2 |
PDE Discovery
Partial differential equation discovery infers governing equations from observed fields to reveal mechanisms and build predictive physical models.
See all 35 papers