Manuscript Offprint
arXiv:2610.26963FoundPDE: A generative foundation model for data-driven symbolic discovery of partial differential equations
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.
Keywords: partial differential equation; symbolic equation discovery; foundation model; few-shot fine-tuning; hierarchical discovery
1 Introduction
Partial differential equations (PDEs) are central to modeling transport, diffusion, wave propagation, reaction dynamics, and many other physical processes [1]. Recovering a PDE directly from observational data is therefore a scientifically important inverse problem: beyond prediction, it provides an interpretable law that can be analyzed, validated, and transferred across related regimes.
Recent advances in scientific machine learning (SciML) have made data-driven PDE discovery increasingly feasible, but robust symbolic PDE discovery remains challenging when observations are sparse, noisy, or drawn from many possible equation families [2].
SciML integrates physical principles with machine learning to yield models that adhere closely to scientific laws. Physics-Informed Neural Networks (PINNs) [3, 4] incorporate PDE constraints directly into their training, enhancing interpretability and data efficiency. Operator learning frameworks, including Deep Operator Networks (DeepONets) [5, 6, 7] and Fourier Neural Operators (FNOs) [8], have further expanded capabilities by efficiently learning mappings between function spaces. Recent hybrid models such as Physics-Informed Neural Operators (PINOs) [9] and physics-informed DeepONets [10] combine these methods, addressing complex multi-scale phenomena and improving generalization.
Building on this broader SciML progress, foundation models have significantly advanced scientific modeling by adopting large-scale pretraining techniques from natural language processing. Models such as ICON [11] leverage in-context learning, enabling zero-shot generalization across diverse PDEs. Multimodal architectures such as PROSE [12] and PROSE-PDE [13] integrate symbolic knowledge with learned representations, effectively generalizing across multiple physics scenarios. Similarly, PDEformer [14] uses transformer-based computational graph representations to provide mesh-free, zero-shot predictions across varied PDEs, demonstrating the extensive potential of pre-trained models for scalable and versatile PDE solutions. PI-MFM [15] further enforces the governing equations during pretraining and adaptation by assembling physics-informed residual losses directly from the symbolic PDE input. These developments show that pretrained scientific models can be reused across families of PDE-related tasks, but most of this progress has focused on solution prediction or operator learning. The present paper instead targets symbolic discovery: the goal is not only to predict a future trajectory, but to recover an explicit governing equation from observed solution data.
Symbolic PDE discovery aims to recover explicit governing equations from data [16]. Sparse-regression methods such as SINDy [17] and PDE-FIND [18] select active terms from predefined candidate libraries. They are efficient and interpretable when the library contains the right terms and derivatives can be estimated accurately, but become fragile when data are low-resolution or noisy, or when the equation contains terms outside the library. UPINN [19] and D-CIPHER [20] address sparse-data and derivative-mismatch regimes, while search-based, physics-constrained, and prior-informed approaches, including Symbolic Physics Learner [21], DISCOVER [22], PhysPDE [23], ABL-PDE [24], and symmetry-informed discovery [25], enlarge or constrain the symbolic hypothesis space at the price of higher computational cost and a separate optimization for every equation instance. In general symbolic regression, differentiable genetic programming relaxes discrete expression trees so that gradient-based optimization can scale tree search to high-dimensional inputs [26]. Transformer-based symbolic models [27, 28], ODEFormer [29], amortized equation discovery [30], and methods based on large language models (LLMs), such as LLM-SR [31] and LLM-SRBench [32], instead treat equation discovery as a reusable prediction or program-generation problem, but existing approaches for PDE discovery remain limited in scope or rely on additional symbolic priors and stage-wise procedures.
Together, these limitations motivate a foundation-model approach to symbolic PDE discovery. In this paper, we use the term foundation model in a local and operational sense: a model pretrained on a broad, canonical collection of one-dimensional time-dependent PDE families and reused across downstream symbolic discovery tasks rather than optimized for one equation instance. The claim rests on three ingredients: coverage of representative PDE structures during pretraining, reuse of one pretrained model across many discovery tasks, and evidence that the learned representation supports parameter generalization and targeted downstream adaptation. Our goal is not to build a universal PDE solver or to claim exhaustive coverage of one-dimensional dynamics. Instead, FoundPDE targets symbolic discovery: it takes discretized spatio-temporal solution data as input and predicts a symbolic expression for the governing PDE. This framing separates the present work from operator-learning models that predict future solution fields; here, the output is an interpretable equation.
We propose FoundPDE, a transformer-based generative foundation model that casts PDE discovery as data-to-symbol sequence generation. The model encodes solution snapshots, optionally augmented with spatial Fourier features and first-order spatial derivative features, and autoregressively decodes a tokenized symbolic PDE representation. A post-processing step then refines the predicted floating-point coefficients without changing the PDE symbolic structure. We evaluate parameter out-of-distribution (OOD) generalization by testing whether PDE families remain recognizable on coefficient supports that are strictly disjoint from the in-domain ranges. We then study few-shot fine-tuning and develop hierarchical discovery as two preliminary routes for extending the model beyond the direct pretraining vocabulary.
Our contributions are as follows. First, we develop a foundation model for direct symbolic discovery of time-dependent one-dimensional PDEs from solution data. Second, we construct a large synthetic training corpus spanning 20 representative PDE families and study how Fourier and derivative augmentations affect type recognition rate (TRR), mean relative coefficient squared error (MRCSE), relative error, and training cost. Third, we evaluate robustness to multiplicative noise on the model input in sparse-data settings. Finally, we evaluate parameter-OOD generalization, few-shot fine-tuning, and hierarchical discovery, clarifying both the promise and the current limitations of a foundation-model view of symbolic PDE discovery.
2.1 Problem setup
We consider one-dimensional time-dependent PDEs whose solutions are observed on a spatio-temporal grid. For each instance, the available data are a trajectory
generated by an unknown governing equation. The goal is to recover the underlying symbolic PDE expression. In the experiments, the target equations can be written abstractly as
where is a symbolic operator assembled from arithmetic operations, differential terms, elementary functions, and numerical coefficients . The temporal order is part of the symbolic target: first-order families use , whereas PDEs such as the wave, Klein–Gordon, and Sine–Gordon equations use . Accordingly, the output vocabulary contains both and .
Following prior works on symbolic mathematics and equation discovery [27, 28, 12], we represent each symbolic PDE using Polish notation, i.e., a prefix traversal of the expression tree. This converts a structured symbolic object into a sequence that can be generated autoregressively.
while preserving the underlying operator hierarchy. The symbolic discovery task is formulated as conditional sequence modeling [33, 28, 29]:
where is the target token sequence. This setup fixes the central input-output object of the paper: FoundPDE maps numerical solution data to an interpretable governing equation. The model is trained to predict a tokenized representation of the complete equation, including its temporal derivative order, from the observed trajectory.
2.2 FoundPDE framework

Figure 1: FoundPDE performs end-to-end symbolic PDE discovery from discretized solution data. Stage A constructs the symbolic training corpus and tokenizes each governing equation. Stage B solves the sampled equations under randomized initial conditions to produce spatio-temporal observations. Stage C optionally augments each trajectory with first-order spatial-derivative and Fourier channels. Stage D encodes these observations and autoregressively decodes a symbolic PDE in Polish notation. Stage E returns the predicted expression. The optional BFGS branch updates only its floating-point coefficients, whereas hierarchical discovery reuses the pretrained model to recover selected composite operators sequentially.
FoundPDE uses a transformer-based data-to-symbol architecture (Fig. 1) to amortize symbolic discovery across a pretrained corpus of PDE families [33, 12, 29]. The encoder maps raw or augmented solution trajectories into latent representations, and the decoder autoregressively generates the symbolic PDE sequence. In the main experiments, we compare four input configurations: the raw solution field, the solution field with Fourier features, the solution field with a first-order spatial derivative channel, and the combination of Fourier and spatial-derivative channels. Full architecture and training settings are reported in Appendix B.
Data embedding and encoder. The raw and augmented input channels are first projected into a latent representation before being processed by the transformer encoder. Positional information is added so that the model can distinguish spatial and temporal locations in the observed trajectory. Self-attention allows the encoder to aggregate spatial and temporal dependencies across the full solution field, giving the decoder a global representation of the candidate dynamics rather than a pointwise derivative estimate alone [33].
Symbolic decoder. The decoder autoregressively generates a symbolic PDE in Polish notation. The output vocabulary contains arithmetic operators, differential operators, state-dependent functions, and numerical-constant tokens. Floating-point coefficients are represented by a tokenized numeric scheme, while the operator tokens determine the symbolic structure. Decoding proceeds until an end-of-sequence token is produced.
Normalization. We apply reversible instance normalization (RevIN) [34] to stabilize training across PDE families with different solution scales. This normalization is useful because the corpus contains equations with distinct physical units, coefficient ranges, and trajectory amplitudes.
2.3 Feature augmentation
The raw solution field alone may not expose all structures needed for symbolic recovery, especially when different PDEs generate similar trajectories over a finite observation window. We therefore study two augmentation channels: Fourier features, which summarize global spatial-frequency content, and first-order spatial derivative features, which expose local variation in the solution field.
Global Fourier feature augmentation. For each solution trajectory, we compute the discrete Fourier transform along the spatial dimension. The real and imaginary parts of the transformed signal are concatenated with the original solution channel. These features are intended to help the encoder distinguish dynamics with characteristic oscillatory or dispersive behavior, such as wave-like or higher-order spatial operators.
Local spatial derivative augmentation. For derivative augmentation, we compute the first-order spatial derivative using finite differences along the spatial axis. This channel is concatenated with the original solution field. The augmentation does not provide or directly; it supplies only local first-order spatial variation. This design gives the model additional differential information while preserving the task of inferring the governing symbolic structure.
Feature concatenation. Depending on the experimental variant, the encoder input is one of four channel configurations: (1) the bare solution field u, (2) u with Fourier features, (3) u with , or (4) u with both and Fourier features. We evaluate these variants separately to determine whether global frequency information and local spatial-gradient information contribute differently to type recognition, coefficient estimation, and trajectory fidelity.
2.4 PDE coefficient refinement
The transformer predicts both symbolic structure and approximate numerical coefficients. Because coefficient tokens are discretized and generated autoregressively, their raw values can be inaccurate even when the operator structure is correct. We therefore apply BFGS [35] as a post-processing step that refines only the floating-point coefficients while keeping the predicted symbolic structure fixed.
Given a predicted structure and initial coefficient vector , we solve
Here is the number of residual-evaluation points and collects the supported spatial derivatives. The temporal derivative order follows the decoded symbolic target, and and the required components of are estimated from the observed trajectory. This refinement is numerical calibration, not a second symbolic search stage. It can improve numerical coefficients and relative reconstruction, but it cannot add missing terms or remove spurious terms. Additional implementation details are given in Appendix D.
2.5 Evaluation metrics
We evaluate each prediction using three complementary metrics: type recognition rate (TRR), mean relative coefficient squared error (MRCSE), and relative error. These metrics are reported separately because a prediction may recover the correct PDE family but assign inaccurate coefficients, or recover an incorrect symbolic type that still produces a similar solution over a finite time window.
Type recognition rate. Let denote the PDE type of the ground-truth expression for sample , and let denote the type assigned to the parsed prediction. A prediction is counted as type-correct when
The type recognition rate is
Type recognition is therefore a structural metric: it measures whether the predicted expression belongs to the correct canonical PDE family, not whether every displayed coefficient is numerically accurate.
Mean relative coefficient squared error. MRCSE is computed only on type-matched predictions for which the relevant coefficients can be extracted. Let be the ground-truth packed coefficient vector for sample , i.e., the physical parameters of its PDE family (e.g., the wave speed rather than its displayed square ), and let be the corresponding predicted coefficient vector. For the evaluable type-matched set , we report
where each error is normalized by the ground-truth coefficient itself. As a numerical safeguard, a ground-truth coefficient with contributes zero error when its prediction is also below ; otherwise, the sample is treated as non-evaluable and excluded from . This metric is not computed for predictions with unmatched symbolic type or unsupported coefficient extraction. Unless stated otherwise, denotes the coefficients used for reconstruction after coefficient refinement. Experiments that evaluate the raw decoder output before BFGS identify that setting explicitly. Because can differ across models and evaluation conditions, MRCSE comparisons are accompanied by their evaluable sample counts.
Relative error. To measure trajectory-level fidelity, we solve or reconstruct the PDE implied by the predicted expression and compare the resulting trajectory with the ground-truth trajectory . For the reconstructable set , we report
This metric evaluates agreement in solution space over the observed time window. In the corruption experiment, the prediction is generated from the corrupted augmented input, but the decoded PDE is reconstructed from the corresponding clean initial condition and compared with the noise-free trajectory. Relative therefore measures recovery of the underlying clean dynamics rather than agreement with the injected perturbation. It is complementary to TRR: low relative error does not by itself imply correct symbolic discovery.
Uncertainty intervals. Multiple trajectories can share the same completed symbolic equation because each coefficient setting is solved under several initial conditions. We therefore treat the coefficient-instantiated equation, rather than an individual trajectory, as the independent resampling unit. For the clean in-domain and noise experiments, we apply a percentile cluster bootstrap with 10,000 replicates to 256 coefficient settings, each represented by 20 initial conditions. For strict parameter OOD, we resample 640 coefficient settings, each represented by eight initial conditions. Missing decoder outputs are counted as failures in TRR; relative error and MRCSE retain the evaluable supports defined above. The resulting 95% intervals quantify variation across the finite test equations for a fixed pretrained checkpoint. They do not measure variation across training seeds or checkpoint selection.
2.6 Few-shot fine-tuning
Few-shot fine-tuning is used to test whether the pretrained decoder can be adapted to new PDE families that were not present as complete symbolic forms during pretraining. The current manuscript evaluates four held-out composite targets:
Each target combines transport, nonlinear flux, and diffusion terms that appear individually in the pretraining corpus, but not as the full composite symbolic form.
For the few-shot adaptation protocol, all four target-family runs start from the same separately trained FoundPDE checkpoint, obtained after 100 epochs of pretraining on 512,000 solution-expression samples from the original PDE corpus. This transfer checkpoint shares the training corpus and schedule of the principal model used for the preceding experiments but takes only the solution field as input, without Fourier or derivative augmentation. We define fine-tuning epoch 0 as the model state immediately after loading this transfer checkpoint and before any target-family optimizer update. A separate copy of that state is then fine-tuned on each target family and evaluated on held-out examples from that family. Advection–Burgers uses 1000 target-family training samples, while each of the other three families uses 500 training samples. Evaluations contain 100 expected test samples per family, and outputs that cannot be parsed are counted as incorrect. For the advection–Burgers run only, we also measure retention on the 20 original pretraining families after fine-tuning. Retention is reported as the unweighted macro-average of the 20 family-level TRRs, using each family’s fixed expected sample count and treating missing or unparsable outputs as incorrect. This retention test is important because a successful adaptation method should improve new-family recovery without erasing the pretrained discovery capability. The composite-family equation forms, coefficient ranges, initial-condition generator, source-checkpoint identity, and complete comparison protocol are documented in Appendix E.
As context, we compare against one model trained from scratch jointly on the same four composite PDE families. This run uses 25 coefficient settings and 20 initial conditions per family for training, and 5 coefficient settings and 20 initial conditions per family for testing. For advection-cubic-Burgers, advection-sine, and Burgers-cubic-Burgers, the single-family fine-tuning files are exact family-wise subsets of this mixed scratch dataset. Both protocols use 10 optimizer updates per epoch, but they differ in batch composition and training objective: fine-tuning adapts one checkpoint to one family at a time, whereas scratch training learns all four families jointly. The comparison therefore tests whether the reported adaptation protocol reaches useful recovery over a shorter training horizon; it is not an initialization-only ablation with otherwise identical optimization conditions.
2.7 Unseen PDE prediction with hierarchical discovery
A general and robust foundation model for PDE discovery requires a large corpus of diverse training data. Building such a corpus is computationally expensive because every coefficient setting and initial condition requires a new numerical simulation or experimental observation. Moreover, combining differential terms, nonlinearities, derivative orders, and coefficients can produce millions of candidate PDE types, making exhaustive data generation and pretraining impractical. Consequently, even a broad FoundPDE corpus can cover only a small subset of the possible symbolic structures, and direct decoding may fail when a test equation contains a combination of terms that was not included during training.
The compositional structure of PDEs nevertheless offers an opportunity to use the pretrained foundation model more fully. An out-of-distribution PDE may be new as a complete symbolic expression while still being assembled from operators that FoundPDE learned individually. We therefore propose the hierarchical discovery algorithm to extend a pretrained FoundPDE model to a new class of unseen PDE types: additive two-operator equations whose constituent operators are individually represented in pretraining and whose dynamics admit a dominant–subordinate separation. The algorithm identifies the dominant familiar operator, removes its estimated contribution from the observed evolution, applies FoundPDE again to the residual dynamics to recover the subordinate operator, and finally combines and jointly calibrates the two recovered terms.
To illustrate the idea, we consider a model pretrained on the individual PDE forms and , but not on their composite . The design uses the model's tendency to identify the dynamically dominant component in the first pass. To explain the method, we consider one observed trajectory and index only its time steps by . After FoundPDE recovers , a neural operator is trained and predicts the dynamics update under , while a numerical solve of the recovered dominant equation computes under alone. Their difference isolates the incremental contribution of ; adding this difference to the current residual state produces the next residual state . FoundPDE is then applied to the resulting residual trajectory to recover the subordinate operator, after which the two operators are combined and their coefficients are jointly refined with BFGS. The complete sequence is formalized in Algorithm 1, while Fig. 2 provides a schematic overview.
Algorithm 1 Hierarchical discovery for sequential operator recovery. Assume one solution dataset from the composite equation .
1: Train a neural operator on to model the next-timestep evolution of .
2: Apply FoundPDE to and infer the dominant operator .
3: Initialize the residual trajectory with .
4: for do
5: Compute the full-dynamics update .
6: Advance the dominant equation from by one step to obtain .
7: Set .
8: end for
9: Store .
10: Apply FoundPDE to and infer the subordinate operator .
11: Combine the recovered operators as .
12: Jointly refine all coefficients in the combined expression with BFGS.
1 Discover dominant operator

2 Compute hierarchical residual
3 Discover residual operator
4 Refine coefficients
Figure 2: The hierarchical discovery algorithm sequentially recovers a composite PDE from familiar operators. The first FoundPDE pass identifies the dominant operator from a trajectory of the composite equation . The residual-computation panel depicts one update at time step : the neural operator supplies , the dominant-equation solve supplies , and their difference updates . Repeating this calculation over all time steps constructs the residual dataset , as formalized in Algorithm 1. A second FoundPDE pass identifies , after which the two operators are combined and calibrated with BFGS.
The residual construction in Algorithm 1 follows an operator-splitting interpretation. At time step , the neural-operator prediction approximates the combined evolution under , whereas is obtained by advancing the recovered dominant equation and therefore represents the evolution under alone. The update removes the dominant one-step contribution and accumulates the remaining increment. Iterating over produces the residual dataset , which is supplied to the second FoundPDE pass to recover .
The surrogate N is essential because it provides the full-dynamics reference against which the dominant contribution is subtracted. We instantiate it as a per-target Fourier Neural Operator (FNO) [8]. Errors in propagate directly into the residual sequence, so the accuracy of the second-stage discovery depends on both the quality of the recovered dominant operator and the one-step surrogate. If the single observed trajectory contains many time steps, it provides many consecutive input–output pairs and helps train the neural operator. In practice, however, one trajectory may not provide enough diversity for an accurate surrogate. Additional trajectories generated or observed under the same governing equation, for example from different initial conditions, can therefore be included when training N. The FNO training data and discretization, together with the procedure for aggregating and resolving ambiguous first-stage predictions, are detailed in Appendix F.
We test the hierarchical discovery algorithm using a separate model pretrained only on advection, inviscid Burgers, inviscid cubic Burgers, and diffusion, and evaluate three unseen two-term composites: advection–diffusion, viscous Burgers, and viscous cubic Burgers. Although the method above is presented with one trajectory for clarity, each experiment uses M = 20 trajectories with independently sampled initial conditions to provide sufficient data for neural-operator training and to evaluate dominant-operator recovery, diffusion-residual recovery, and BFGS coefficient calibration. Results are reported in Sec. 3.7, and the concrete trajectory count and full experimental protocol are provided in Appendix F.
3 Results
This section evaluates FoundPDE in a sequence of symbolic-discovery settings. We first consider in-domain symbolic recovery and feature augmentation, followed by per-family behavior and representative qualitative examples. We then test robustness to corruption of the augmented model input and compare with SINDy and DISCOVER under sparse-data protocols. Finally, we evaluate parameter-OOD generalization within known symbolic families and study extension beyond the pretraining vocabulary through few-shot fine-tuning and hierarchical discovery.
3.1 Dataset and experimental setup
In our experiments, we construct a dataset of symbolic PDE expressions following the same formulation as in the PROSE-PDE work [13]. Specifically, we first generate 25.6K symbolic forms representing 20 distinct PDE types. For each generated PDE, we solve the equation using numerical solvers under 20 different initial conditions, resulting in a total of 512K solution samples. Detailed descriptions of the PDE generation process, initial condition design, and numerical solution methods are provided in Appendix A and Appendix G. The FoundPDE model is trained on this dataset using a transformer-based sequence-to-sequence architecture. Architecture, optimizer, decoding, feature-augmentation, and hardware details are reported in Appendix B.
The symbolic forms used for training and in-domain testing are produced by the same three-stage generator: each PDE type defines a skeleton, coefficients are sampled to instantiate a complete symbolic equation, and an initial condition is sampled before numerical solution. Training and test examples are sampled independently. They therefore share the same generative distribution but, because both coefficients and initial conditions are randomized, do not intentionally reuse trajectories or completed symbolic instances. For the in-domain corpus, positive-valued coefficients are sampled within the relative support [0.1, 1.9] around their family-specific reference values, while the signed advection coefficient is sampled over . Appendix Table 5 summarizes the family-specific reference values and in-domain supports.
We train FoundPDE in four modes described in Sec. 2.2: barebone, Fourier-augmented, spatial-derivative-augmented, and Fourier-and-derivative-augmented. We evaluate the model under the following conditions:
-
In-domain testing (Sec. 3.2): Evaluating PDEs with parameter values within the training range.
-
Robustness testing (Sec. 3.3): Evaluating whether symbolic recovery remains meaningful under Gaussian corruption of the augmented model input.
-
Baseline comparison (Sec. 3.4): Comparing FoundPDE with existing symbolic PDE discovery methods under sparse-grid protocols.
-
Parameter-OOD generalization (Sec. 3.5): Testing known symbolic PDE families with coefficient ranges outside the nominal in-domain support.
-
Few-shot fine-tuning (Sec. 3.6) and hierarchical discovery (Sec. 3.7): Evaluating targeted adaptation and selected compositional recovery for PDE structures outside the direct pretraining support.
3.2 In-domain performance
We first evaluate whether FoundPDE can recover the symbolic structure and coefficients of PDEs whose types and parameter ranges are represented in the training distribution. Fig. 3 summarizes the four feature variants on clean in-domain data. All four variants are trained on the same 512,000 samples with the same optimization schedule. Figs. 3A–D show that the augmented inputs improve symbolic recovery under the in-domain setting, although the gains are small at this training budget. Missing decoder outputs are counted as failures for every feature variant. The Fourier-and-derivative model reaches the highest TRR, 97.50%, compared with 97.29% for the derivative model, 96.86% for the Fourier model, and 96.27% for the barebone model. Its clustered 95% bootstrap interval is [96.54%, 98.30%]. Because all variants are evaluated on the same test samples, we also bootstrap the paired TRR differences with the same coefficient-setting clusters. The Fourier-and-derivative model exceeds the barebone model by 1.23 percentage points (95% interval [0.64, 1.88]) and the Fourier model by 0.64 points ([0.25, 1.05]), whereas its 0.21-point margin over the derivative model is within test-set variation ([-0.27, 0.70]). The first-order spatial derivative therefore accounts for most of the structural gain. The augmented inputs add little training cost at this scale: the projected training time increases from 11.50 hours for the barebone model to 12.67 hours for the Fourier-and-derivative model. The numerical metrics follow a different ordering: the derivative-augmented model gives the lowest MRCSE, 0.133, while the barebone model gives the lowest mean relative error, 0.0273. For the selected model, the mean relative error is 0.0308, with a 95% interval of [0.0241, 0.0384]. These results indicate that symbolic structure recovery, MRCSE, and relative error measure distinct aspects of discovery quality. Appendix
Table 10 reports the complete uncertainty analysis. Fig. 3E provides the corresponding optimization curves. The derivative-augmented model reaches the lowest final training text loss, whereas the Fourier-and-derivative model gives the highest TRR. Thus, in this setting, the training objective is correlated with but not identical to the final symbolic-discovery metric.
After comparing feature variants, we examine the final selected model by PDE family. Fig. 4 reports per-family TRR and relative error, together with the global distributions of relative error and MRCSE. Fig. 4A shows that nine families, including heat, advection, wave, Sine–Gordon, porous medium, KdV, and Fokker–Planck, are recognized for every test sample. Diffusion-reaction equations have the lowest structural recovery rates, with the logistic reaction family the most difficult case at 79.0%; every other family exceeds 93%. Comparing Figs. 4A and B shows that structural and trajectory metrics do not induce the same family ordering. Klein–Gordon reaches 99.5% TRR but has mean relative error 0.304, whereas the logistic and bistable diffusion-reaction families have lower TRR, 79.0% and 94.3%, but mean relative errors below 0.012. Figs. 4C and D further show that the global numerical-error distributions are right-skewed. We therefore report symbolic, coefficient, and trajectory metrics separately rather than treating any one metric as a proxy for the others.
To complement the aggregate metrics, we then provide an example-by-example visual comparison in Figs. 5–7. Each triptych contains: (i) the ground-truth and predicted symbolic PDEs with their numerical coefficients, (ii) the ground-truth and predicted solution fields over the domain, and (iii) the absolute error map. These examples show representative recoveries as well as cases where symbolic and relative metrics differ. All 15 displayed predictions have the correct symbolic type, and correct symbolic predictions generally lead to close agreement between predicted and ground-truth fields. In Examples E2, E3, E11, and E14, the absolute error remains small over most of the space-time domain. The examples also show that coefficient errors and relative errors need not agree. In E4, the decoded fourth-order Cahn–Hilliard coefficient is instead of , yet the relative error is only 0.05%. In E13, the Klein–Gordon reaction coefficient is instead of , with a relative error of 2.02%. Conversely, in E6 the transport and diffusion coefficients of the linear-flux conservation law are 1.20 and 0.00306 instead of 1.14 and 0.00281, and these small errors accumulate into a phase shift with relative error 24.7%. These cases suggest that errors in weak higher-order or reaction terms can leave the solution nearly unchanged over the observation window, whereas small errors in transport coefficients can dominate the reconstructed solution.
3.3 Robustness to data noise
We next evaluate robustness to Gaussian corruption of the augmented model input. Each input contains the solution field, first-order spatial-derivative, Fourier-real, and Fourier-imaginary channels. Corruption is applied after these channels have been constructed rather than by adding noise to a raw solution field and recomputing the derived features. Here, is the relative noise level: each entry of the input is replaced by with an independent , so the noise standard deviation equals of that entry's magnitude. We evaluate the Fourier-and-derivative model directly on these corrupted inputs.
Figs. 8A, B, and D report the aggregate effect of augmented-input corruption. The clean control has TRR 97.50%, with a coefficient-setting-level 95% bootstrap interval of [96.54%, 98.30%]. TRR decreases to 94.43% [92.64%, 96.02%] at , 81.39% [78.44%, 84.10%] at , and 52.09% [48.20%, 56.00%] at . When decoded equations are reconstructed against the noise-free reference, the corresponding mean relative errors are 0.0308, 0.0358, 0.0805, and 0.211, respectively. Their 95% bootstrap intervals are [0.0241, 0.0384], [0.0293, 0.0435], [0.0700, 0.0924],
A Training time (h)

B TRR (%)

C Packed Coeff. RE
D Relative Error

E Training curves across feature variants

Figure 3: Effects of feature augmentation across symbolic and numerical metrics. All four variants are trained on the same 512,000 samples for 100 epochs. (A) Projected training time for the four model variants, from the measured time per optimization step (Appendix B). (B) The augmented models improve type recognition rate (TRR) relative to the barebone baseline. The Fourier-and-derivative model gives the highest structural accuracy. (C) The derivative model gives the lowest mean relative coefficient squared error (MRCSE). The evaluable MRCSE counts are 4,929, 4,959, 4,980, and 4,992 for the barebone, Fourier, derivative, and Fourier-and-derivative models, respectively. (D) The barebone model gives the lowest mean relative error; the evaluable count is 5,115 for every variant. (E) The training text-loss curves indicate that the final training loss is not by itself a reliable proxy for downstream symbolic recovery.
A Per-type TRR

B Per-type Relative Error
C Distribution of Relative Error

D Distribution of Packed Coeff. RE

Figure 4: In-domain recovery varies across PDE families and evaluation criteria. (A) Per-type TRR. Nine families, including heat, advection, porous medium, KdV, wave, Sine–Gordon, and Fokker–Planck, are recognized for every test sample, whereas the diffusion-reaction families have the lowest TRR. (B) Mean relative error by family. The family ordering differs from that in panel A, showing that structural recognition and relative error need not rank PDE families identically. (C) Global relative error distribution over 5,115 reconstructable predictions. (D) Global MRCSE distribution over 4,992 type-matched predictions with extractable coefficients; its long tail shows that a subset of evaluable predictions remains difficult to calibrate.
E1
Burgers
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE: [5.36%, 34.80%]
Relative Error: 8.78%

E2
Heat
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE: [0.28%]
Relative Error: 0.046%
E3
Advection
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE: [0.00%]
Relative Error: 0.21%
E4
Cahn-Hilliard
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE: [280.06%]
Relative Error: 0.050%
E5
Conservation (cubic flux)
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE: [2.03%, 46.47%]
Relative Error: 1.25%
Figure 5: Representative in-domain examples E1–E5 show accurate symbolic recovery on transport, diffusion, and higher-order families. This group covers Burgers, heat, advection, Cahn–Hilliard, and conservation with cubic flux. All five predictions have the correct symbolic type, and the reconstructed fields closely match the ground truth. E4 recovers the Cahn–Hilliard structure with a visibly different fourth-order coefficient while retaining a small relative error.
E6
Conservation (linear flux)
Data PDE:
Predicted PDE:
Type Match? Match
Coefficient RE: [5.26%, 8.90%]
Relative Error: 24.66%

E7
Conservation (sine flux)
Data PDE:
Predicted PDE:
Type Match? Match
Coefficient RE: [1.37%, 16.83%]
Relative Error: 4.80%
E8
Diffusion-reaction (logistic)
Data PDE:
Predicted PDE:
Type Match? Match
Coefficient RE: [7.56%, 3.99%]
Relative Error: 0.45%
E9
Diffusion-reaction (square logistic)
Data PDE:
Predicted PDE:
Type Match? Match
Coefficient RE: [3.86%, 12.76%]
Relative Error: 0.99%
E10
KdV
Data PDE:
Predicted PDE:
Type Match? Match
Coefficient RE: [0.31%]
Relative Error: 0.63%
Figure 6: Representative in-domain examples E6–E10 separate structural recovery from numerical calibration. This set includes linear-flux conservation, sine-flux conservation, logistic reaction-diffusion, square-logistic reaction-diffusion, and KdV. All five predictions have the correct symbolic type. E7–E10 agree well with the ground truth in field space, whereas small errors in the transport and diffusion coefficients of E6 produce a visible phase shift.
E11
Porous Medium
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE:
[0.00%]
Relative Error: 2.40e-06%

E12
Wave
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE:
[0.42%]
Relative Error: 0.32%
Reconstruction
E13
Klein-Gordon
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE:
[0.91%, 56.71%]
Relative Error: 2.02%
Reconstruction
E14
Sine-Gordon
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE:
[0.00%]
Relative Error: 0.00e+00%
Reconstruction
E15
Fokker-Planck
Data PDE:
Predicted PDE:
Type Match? ✓ Match
Coefficient RE:
[4.11%]
Relative Error: 1.02%
Reconstruction
Figure 7: Representative in-domain examples E11–E15 show that FoundPDE handles porous-medium, hyperbolic, and driven-diffusion equations well. This group contains porous medium, wave, Klein–Gordon, Sine–Gordon, and Fokker–Planck examples. The porous-medium, wave, Sine–Gordon, and Fokker–Planck cases show close visual agreement between predicted and ground-truth fields, while Klein–Gordon illustrates a regime where the symbolic type is correct but coefficient sensitivity is still visible.
and [0.191, 0.233]. At , the TRR interval already lies below the clean-control interval, whereas the relative intervals still overlap; both separate clearly from onward. At , the prediction distribution also contains a substantially larger fraction of incorrect-type and no-matched-PDE outcomes. Fig. 8C provides a complementary view of the same experiment. Mean MRCSE grows faster than median MRCSE as increases, indicating a heavy-tailed distribution. This distinction also appears in the bootstrap analysis: the median MRCSE interval at is [0.0130, 0.0302], whereas the mean MRCSE interval is [293, ]. Thus, when the symbolic type is still recovered, many predictions retain moderate MRCSE, but a small number of corrupted inputs dominate the mean. This again motivates reporting both robust and mean summaries rather than interpreting MRCSE through a single point estimate.
A

B
C
D
Figure 8: Corruption of the augmented input affects TRR, MRCSE, and relative error at different rates. The augmented tensor contains solution, first-order spatial-derivative, Fourier-real, and Fourier-imaginary channels, and is the relative standard deviation of the multiplicative Gaussian noise applied to each entry. (A) TRR as increases from clean input to 0.1. (B) Relative error after reconstructing each decoded PDE from the clean initial condition and comparing it with the noise-free trajectory. (C) Mean and median MRCSE on a logarithmic scale; their growing separation indicates an increasingly heavy-tailed distribution. (D) Prediction categories over the fixed 5,120-example denominator, showing that wrong-PDE-type and no-matched-PDE outcomes become more frequent as corruption increases.
The per-type accuracy in Fig. 9A shows that the aggregate trend is not representative of every PDE family. Sine–Gordon and Fokker–Planck maintain high TRR across the tested corruption levels, and inviscid Burgers changes little. In contrast, heat drops from complete recognition on clean input to 31.9% at , wave to 15.2%, advection to 19.0%, and Cahn–Hilliard to 26.1%, and several diffusion-reaction families also show large decreases. Fig. 9B shows that the most common transitions occur among related reaction-diffusion families and from heat and wave toward reaction or nonlinear-source families. These differences show that sensitivity to augmented-input corruption is strongly family dependent.
A
Per-type recognition accuracy

B
Top wrong PDE type predictions

Figure 9: Sensitivity to augmented-input corruption depends on the PDE family. (A) Per-type TRR as increases. Fokker–Planck, Sine–Gordon, inviscid Burgers, and KdV retain high TRR at , whereas heat, wave, advection, Cahn–Hilliard, and several diffusion-reaction families show larger decreases. (B) Most frequent incorrect type transitions at . The x-axis reports , where is the number of samples whose true PDE type y is predicted as , and is the total number of samples with true type y. The dominant transitions occur among related reaction-diffusion families and from heat and wave toward reaction or nonlinear-source families.
The heat-equation case study in Fig. 10 shows how corruption changes the decoded equation. The ground-truth clean PDE is , and the model predicts a close heat equation on the clean input and at , with relative errors of 0.001 and 0.002. At and , the prediction adds a logistic reaction term with coefficients 0.305 and 1.64, and reconstruction from the clean initial condition gives relative errors of 0.146 and 0.661 against the noise-free trajectory. In this example, the spurious reaction term changes both the symbolic family and the reconstructed dynamics, so TRR and relative error degrade together. The example is the lowest-index heat sample that is recognized correctly on clean input, misrecognized at , and decoded to a parseable PDE at every corruption level.
3.4 Comparison with baselines
We next compare FoundPDE with representative symbolic discovery baselines, including SINDy [17] and its weak form [36], PROSE-PDE [13], and DISCOVER [22]. These experiments are diagnos-
A

B

C

D

space
space
space
space
space
Figure 10: A corrupted heat example shows a spurious reaction term changing both the symbolic type and the reconstructed trajectory. The top row visualizes the solution channel presented to the model at each corruption level. The bottom row reconstructs every decoded PDE from the same clean initial condition, and relative is computed against the noise-free trajectory. (A) The clean input is recovered as a heat equation with relative . (B) At , the prediction remains a heat equation and gives relative . (C) At , the prediction adds a logistic reaction term, and the reconstruction has relative . (D) At , the logistic term grows and the relative error reaches 0.661.
tic comparisons under the sparse-observation protocols used in this paper, not exhaustive benchmarks over all possible libraries, hyperparameters, resolutions, or per-equation tuning budgets. Sparse-regression and symbolic-search methods can be highly effective when the candidate library, derivative estimates, and optimization settings are well matched to the target equation. Our goal here is to evaluate how these baselines behave in the same low-resolution discovery setting where FoundPDE uses one pretrained model across many PDE families.
PROSE-PDE. We evaluate the pretrained PROSE-PDE model [13] on the same in-domain evaluation set, using only the solution data and removing the text input so that the comparison reflects data-only PDE identification. PROSE-PDE is a strong pretrained baseline: its mean relative error is 0.0345 over 5,117 reconstructable predictions, close to the 0.0308 of FoundPDE over 5,115, showing that its predicted equations often reproduce the observed solutions well. However, the central objective of this paper is symbolic PDE recovery rather than solution fitting alone. Under that criterion, FoundPDE gives higher TRR, 97.50% compared with 89.80% for PROSE-PDE, and lower MRCSE, 0.185 over 4,992 evaluable predictions compared with 0.905 over 4,598. The advantage is especially visible in families where the symbolic form is easy to confuse despite similar solution behavior: FoundPDE improves over PROSE-PDE on Klein–Gordon (99.5% versus 63.5%), wave (100% versus 85.0%), square-logistic reaction-diffusion (93.7% versus 67.7%), and logistic reaction-diffusion (79.0% versus 57.7%). These results suggest that FoundPDE's training objective and output representation provide a stronger prior for symbolic family recognition and numerical calibration, while PROSE-PDE remains close in relative error.
SINDy. We also compare against SINDy [17, 18] and its weak form [36] on four diffusion-reaction equations with increasingly nonlinear reaction terms. This benchmark is narrower than the DISCOVER comparison. Every method receives the same trajectories: the first initial condition of each equation, which is also the instance used for DISCOVER, and, for FoundPDE and both SINDy variants, the 19 remaining initial conditions of the same equation. Both SINDy variants use the candidate library , which contains every true term, so the comparison isolates term selection and coefficient estimation from library design. Sparsity is selected by the Akaike information criterion on held-out time steps [37] for SINDy and by the weak-SINDy model-selection loss [36] for weak SINDy; Appendix J gives the full protocol.
Table 1 reports the recovered equations for the first initial condition together with the number of correctly identified initial conditions. On clean data, both SINDy variants are competitive: with the true terms available, they recover three of the four displayed instances, and their coefficients are closer to the ground truth than those of FoundPDE whenever the structure is correct. Over all 80 trajectories, FoundPDE identifies 68 correctly, compared with 50 for SINDy and 53 for weak SINDy. The methods fail on different equations: both SINDy variants most often miss the logistic reaction, either adding higher-order terms or omitting the small diffusion term, whereas the errors of FoundPDE concentrate on the bistable and square-logistic reactions, which it most often predicts as linear reaction. The difference becomes large under noise (Appendix Table 12). When multiplicative Gaussian noise of relative level is added to the observed solution and the FoundPDE input features are recomputed from the noisy field, FoundPDE identifies 54 of the 80 trajectories at and 45 at , whereas SINDy recovers at most 9 and weak SINDy at most 17 across the derivative and test-function settings we tested. On this grid, derivative estimates from noisy data are dominated by noise, and SINDy typically drops the diffusion term in favor of spurious polynomial terms. This comparison covers four equations and is not an exhaustive benchmark of sparse regression; it indicates that the pretrained data-to-symbol prior is most useful when derivatives cannot be estimated reliably.
Table 1: Sparse regression is competitive on clean diffusion-reaction data when its library contains the true terms. All test PDEs have the form and are observed on the grid. Each entry is the equation recovered from the first initial condition, the instance also used for DISCOVER; parentheses give the number of the 20 initial conditions of the same equation for which the recovered terms match the ground truth. FoundPDE entries are raw decoded equations before BFGS refinement. SINDy and weak SINDy use the library , and their polynomial reaction terms are shown in expanded form. Green entries match the ground-truth structure, while red entries indicate a structural mismatch. DISCOVER was run on the first initial condition only. Appendix Table 12 reports the same comparison under noise.
| Ground truth | FoundPDE | SINDy | Weak SINDy | DISCOVER |
|---|---|---|---|---|
| Correct over 80 trajectories | 68 | 50 | 53 | - |
DISCOVER. Like SINDy, DISCOVER [22] is a per-instance method, but it performs symbolic search guided by reinforcement learning rather than sparse regression: for each target trajectory, the recovery program is run independently rather than reusing a single model across PDE families. For the sparse-resolution evaluation, trajectories are taken from the existing FoundPDE evaluation corpus, which stores 20 initial-condition realizations for each completed PDE. We select the first trajectory from each reported PDE block and run DISCOVER separately on that instance. Each run is trained for 100 epochs with 50000 samples, batch size 500, and . The candidate vocabulary is configured for each target equation to include the symbolic primitives appearing in its analytical form; sin and cos are added for equations with trigonometric terms. This target-informed construction isolates expression search from operator-vocabulary selection. Because DISCOVER can return expressions whose displayed forms differ despite algebraic equivalence, we manually verify the displayed predictions after simplification before assigning their structural categories. Table 2 reports these DISCOVER results together with dense-resolution DISCOVER runs and representative FoundPDE predictions from the corresponding PDE families. Because the dense-resolution and FoundPDE entries use separately selected coefficient instances, the comparison is made at the family level rather than as a sample-matched coefficient benchmark.
Table 2 highlights three practical differences between per-instance symbolic search and amortized data-to-symbol prediction. First, DISCOVER performs inference one instance at a time: every entry requires a separate optimization run, whereas FoundPDE applies one pretrained model across the listed families. Second, the family-level results indicate that increased resolution alone does not produce uniformly reliable DISCOVER recovery. Several dense-resolution representatives are close to the intended family, especially for linear and logistic diffusion–reaction equations and porous-medium diffusion, while Cahn–Hilliard, Fokker–Planck, and sine-flux conservation remain non-canonical or structurally incorrect. Third, DISCOVER can produce complicated expressions whose simplified form contains a useful operator. For example, exposes Burgers-type nonlinear transport, reduces to an advection term, and the porous-medium expression normalizes through . These orange entries are therefore not complete failures, but they require algebraic simplification and can still omit terms needed for the target family. The representative FoundPDE entries recover the corresponding symbolic family in every displayed row.
3.5 Parameter-OOD generalization
In-domain evaluation measures generalization across independently sampled coefficients and initial conditions within the support used during pretraining. It does not establish whether the model can extrapolate beyond that coefficient support. We therefore construct a strict parameter-OOD benchmark in which the symbolic PDE families remain unchanged, while at least one physical coefficient lies outside the complete in-domain range. This setting isolates coefficient extrapolation from structural generalization: the model has encountered each operator family during pretraining, but not the tested parameter values.
The OOD dataset contains 5,120 trajectories from 19 PDE families, comprising 640 coefficient-instantiated equations with eight independently sampled initial conditions per equation. The initial conditions are drawn from the same family-specific distributions used for pretraining so that the distribution shift lies in the PDE coefficients. For equations with multiple coefficients, one coefficient is moved outside the in-domain support while the remaining coefficients are held at their reference values. The exceptions are Burgers and the viscous cubic-flux conservation law, in which the viscosity is increased with the flux coefficient to keep for numerical stability. The pretrained Fourier-and-derivative model is evaluated without fine-tuning on temporal–spatial grids, using the family-specific domains and final times of the in-domain corpus. No additional evaluation-time noise is injected. Sixty-two samples produce empty decoder outputs and 30 produce expressions that cannot be assigned a PDE type; all are conservatively counted as type-recognition.
Table 2: A family-level representative comparison shows more consistent symbolic-family recovery by FoundPDE than by per-instance DISCOVER. The ground-truth column gives the target of the sparse DISCOVER run. The DISCOVER entry is a separately instantiated representative of the same PDE family, and the FoundPDE entry is selected from the no-noise evaluation set using the same family and the nearest available coefficient setting. The columns therefore compare recovery behavior across shared PDE families, not predictions on identical coefficients and initial conditions, and coefficient values should not be compared directly across columns. DISCOVER is optimized independently for every displayed instance, whereas all FoundPDE entries are produced by the same pretrained model without per-instance optimization. Green indicates recovery of the target symbolic family for the corresponding instance, orange indicates an algebraically related or simplifiable expression with a non-canonical or incomplete form, and red indicates a structural mismatch.
| Ground truth | DISCOVER | DISCOVER | FoundPDE |
|---|---|---|---|
| Burgers | |||
| Heat | |||
| Advection | |||
| Cahn-Hilliard | |||
| Conservation (cubic flux) | |||
| Conservation (linear flux) | |||
| Conservation (sine flux) | |||
| Diffusion reaction (bistable) | |||
| Diffusion reaction (linear) | |||
| Diffusion reaction (logistic) | |||
| Diffusion reaction (square logistic) | |||
| Fokker-Planck | |||
| Inviscid Burgers | |||
| Inviscid conservation (cubic flux) | |||
| Inviscid conservation (sine flux) | |||
| KdV | |||
| Porous medium | |||
failures. Porous-medium equations are excluded because changing the discrete exponent m alters the symbolic structure of rather than only a continuous parameter. Appendix Table 11 reports the strictly disjoint coefficient supports and their stability restrictions.
FoundPDE correctly identifies 4,635 of the 5,120 equations, giving a strict parameter-OOD TRR of 90.53% (Fig. 11A), with a coefficient-setting-level 95% bootstrap interval of [89.22%, 91.80%]. The comparable 19-family in-domain TRR is 97.34%, so moving every evaluated coefficient vector outside the in-domain support reduces TRR by 6.81 percentage points. Among the 5,011 reconstructable predictions, the raw decoded equations give a mean relative error of 0.156, with a 95% interval of [0.139, 0.174], a median of 0.0347, and a 95th percentile of 0.777. MRCSE is evaluable for 4,630 type-matched predictions. Its mean is 0.228, with a 95% interval of [0.140, 0.331], whereas its median and 95th percentile are 0.00458 and 0.275, respectively; the median MRCSE interval is [0.00395, 0.00544]. The largest single error comes from a heat-equation prediction whose decoded diffusion coefficient is 0.063 instead of 0.00708, producing an MRCSE of 62.4. We report the mean together with robust distributional statistics rather than using the mean alone to characterize numerical calibration.
A Parameter-OOD Benchmark Summary
TRR
type recognition
90.5%
Mean relative
reconstruction error
0.156
Samples
parameter-OOD examples
5120
B
Top PDE Type Predictions

D
Recognition vs. Reconstruction
C
Per-Family Parameter-OOD Summary
Figure 11: Strict parameter-OOD evaluation reveals a moderate aggregate decrease and concentrated family-level failures. (A) Aggregate TRR and mean relative error over 5,120 samples whose coefficient supports are disjoint from the in-domain ranges. (B) The ten most frequent incorrect type transitions. (C) Per-family TRR and normalized relative score, computed as 100 clip(1 - Rel /0.60, 0, 1) for visualization. (D) Per-family TRR versus mean relative error. Advection and viscous linear conservation illustrate that high structural recognition does not necessarily imply low relative error.
The family-level values in Table 3 show that the aggregate decrease is concentrated rather than uniform. Burgers and inviscid Burgers reach 100% TRR, while advection, logistic diffusion–reaction, viscous linear conservation, Cahn–Hilliard, Fokker–Planck, viscous and inviscid cubic conservation, KdV, and Sine–Gordon all exceed 96%. The cubic-flux results are particularly useful because they test nonlinear conservation operators under strict coefficient shifts: the viscous and inviscid variants reach 99.26% and 99.24% TRR, respectively.
Table 3: Strict parameter-OOD performance is strong for most pretrained operator families but degrades for sine-flux conservation and for large coefficient shifts in heat, Klein–Gordon, and wave. TRR includes empty decoder outputs as failures. Mean relative error is computed on 5,011 reconstructable predictions. Median MRCSE is computed on 4,630 type-matched predictions with extractable packed coefficients. Both numerical metrics use the raw decoded equations before BFGS refinement. The final column reports the most frequent parsed incorrect type; “none observed” indicates that the only failures, if any, are empty decoder outputs.
| 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 |
| Fokker-Planck | 272 | 99.26 | 0.006 | 0.001 | None observed |
| Viscous conservation, cubic flux | 272 | 99.26 | 0.044 | 0.002 | Burgers |
| Inviscid conservation, cubic flux | 264 | 99.24 | 0.055 | 0.002 | Inviscid Burgers |
| KdV | 272 | 98.16 | 0.038 | 0.008 | Heat |
| Sine-Gordon | 264 | 96.97 | 0.011 | 0.001 | None observed |
| Diffusion-reaction, bistable | 272 | 89.34 | 0.022 | 0.004 | Logistic reaction |
| Diffusion-reaction, square-logistic | 272 | 88.97 | 0.013 | 0.004 | Logistic reaction |
| Diffusion-reaction, linear | 272 | 86.03 | 0.022 | 0.005 | Logistic reaction |
| Inviscid conservation, sine flux | 264 | 83.33 | 0.483 | 0.040 | Inviscid Burgers |
| Wave | 264 | 76.14 | 0.059 | 0.001 | Klein-Gordon |
| Klein-Gordon | 264 | 71.97 | 0.653 | 0.008 | Sine-Gordon |
| Heat | 272 | 67.28 | 0.041 | 0.013 | Cubic-flux conservation |
| Viscous conservation, sine flux | 272 | 65.07 | 0.270 | 0.015 | Linear conservation |
The principal structural errors occur among closely related operator families and for families whose coefficients are moved far beyond the training range (Fig. 11B). Viscous sine-flux conservation reaches TRR, with 75 predictions mapped to linear-flux conservation. Heat reaches . Every heat test equation has a diffusion coefficient above the in-domain support: at least seven of the eight initial conditions are recognized for every equation with a diffusion coefficient below 0.0065, but recognition falls to as few as two of eight between 0.0068 and 0.0075, and 40 predictions are mapped to cubic-flux conservation. Klein-Gordon and wave degrade in the same way at their largest coefficient shifts, with 69 Klein-Gordon samples predicted as Sine-Gordon and 40 wave samples predicted as Klein-Gordon. Appendix C shows that the same model trained with a smaller budget extrapolates more reliably for these three families but less reliably for the reaction families, so the extrapolation profile depends on the training budget. The diffusion-reaction families reach (bistable), (square-logistic), and (linear), with logistic reaction the most frequent incorrect type in each case. The sensitivity also depends on which coefficient is shifted. Bistable recognition is for the reaction-coefficient tail and for the diffusion-coefficient tail. Square-logistic shows a similar contrast of and , whereas logistic reaction remains above for both shifts.
These reaction-family errors often retain small relative errors. The family means are 0.022, 0.022, and 0.013 for bistable, linear, and square-logistic reaction, respectively, despite their lower
TRR. For the 24 bistable samples predicted as logistic reaction, the median relative error is 0.033 over the observed time window. This observation does not establish mathematical indistinguishability between the operators. It shows that low relative error over a finite observation window is insufficient evidence of correct symbolic recovery for related reaction terms.
Advection provides the clearest separation between structural and numerical generalization (Figs. 11C and D). Its TRR is 99.63%, but every parsed prediction from the negative-velocity tail has the wrong coefficient sign before refinement. All positive-tail predictions have the correct sign, with a median MRCSE of 0.0136, whereas the negative-tail median is 3.115. Consequently, advection has a mean relative error of 0.676 despite nearly perfect type recognition. For , an error in produces a spatial phase displacement that accumulates with time, while a sign error reverses the propagation direction. The result therefore identifies a directional coefficient-extrapolation failure that TRR alone cannot reveal.
Viscous linear conservation exhibits a related separation. Its TRR is 99.63%, but its mean relative error is 0.326, increasing to approximately 0.52 when the transport coefficient is shifted. Conversely, some strict TRR failures are numerically minor. One wave prediction adds a Klein–Gordon reaction term with coefficient 0.0031 and obtains a relative error of 0.0028. Together, these cases show why TRR, MRCSE, and relative error must be interpreted separately. The strict benchmark supports coefficient extrapolation across most pretrained PDE families, while identifying signed transport, sine-flux conservation, and large coefficient shifts in heat, Klein–Gordon, and wave as the principal limitations under the tested ranges.
3.6 Few-shot fine-tuning
We also evaluate whether FoundPDE pretraining can support adaptation to new PDE families using limited additional data. All four fine-tuning trajectories begin from the separately pretrained 100-epoch, 512,000-sample checkpoint defined in Sec. 2.6. Fine-tuning epoch 0 is the state before any target-family update. This study considers the four held-out composite families defined in Sec. 2.6 (advection–Burgers, advection–cubic-Burgers, advection–sine, and Burgers–cubic-Burgers) and compares pretrained adaptation with training from scratch. For the advection–Burgers fine-tuning run, we additionally measure retention on the original pretraining families.
Fig. 12A reports the adaptation trajectories for the four composite targets. At epoch 5, none of the fine-tuned models achieves exact structural recovery, but several already recover a substantial fraction of the target operator support. By epoch 15, exact recovery reaches 88.0% for advection–Burgers, 89.0% for advection–cubic-Burgers, 88.0% for advection–sine, and 96.0% for Burgers–cubic-Burgers. By epoch 20, all four targets are above 90%. This behavior suggests that the pretrained model supplies operator-level representations that can be rapidly recombined through limited target-family fine-tuning.
The from-scratch curves in Fig. 12A provide a different comparison point. They show that the composite targets are learnable without pretraining, but not on the same early-epoch schedule. At 20 epochs, scratch training is still near zero exact recovery across the four composites. By 100 epochs, it reaches 0% on advection–Burgers, 73% on advection–cubic-Burgers, 51% on advection–sine, and 100% on Burgers–cubic-Burgers. The comparison measures adaptation efficiency through the required training horizon rather than hardware-dependent wall-clock time: 20 fine-tuning epochs contain 200 optimizer updates, whereas 100 scratch epochs contain 1000 updates. These values come from single training trajectories evaluated at fixed horizons, so they establish the observed optimization behavior but do not quantify variation across random initializations. Moreover, this is not an initialization-only ablation. Each fine-tuned model is adapted to one family using batches of 100, while the scratch model is trained jointly on four families using batches of
A Fine-Tuning vs. Training from Scratch

B Fine-Tuning for Models

Figure 12: Single-family checkpoint adaptation reaches high composite recovery within 20 epochs, while joint four-family scratch training requires a longer horizon. (A) Separate pretrained fine-tuning runs (solid curves) versus one jointly trained scratch model (dashed curves). Both protocols use 10 optimizer updates per epoch, but their batch composition differs. By epoch 20, fine-tuning reaches 91.0% exact recovery on advection–Burgers, 94.0% on advection–cubic-Burgers, 95.0% on advection–sine, and 97.0% on Burgers–cubic-Burgers. At epoch 100, scratch training remains below these values on three families but reaches 100% on Burgers–cubic-Burgers. The curves are single-run trajectories, and epochs 20 and 100 are fixed comparison horizons rather than test-selected checkpoints. (B) Retention along the advection–Burgers fine-tuning run: target-family TRR increases rapidly, while the fixed-denominator macro-average TRR across the 20 original families decreases from 96.52% to 88.50%. Missing outputs are counted as failures.
- Under these reported protocols, pretrained checkpoint adaptation reaches high target-family recovery over a shorter optimization horizon. The result does not establish how much of the gap is attributable solely to initialization rather than to the difference between single-family and joint training.
The advection–Burgers fine-tuning run also provides the retention diagnostic in Fig. 12B. At each checkpoint, we compute TRR separately for each of the 20 original PDE families using fixed expected denominators, count missing outputs as failures, and report the unweighted macro-average. The corrected statistic decreases from 96.52% before fine-tuning to 96.22% at epoch 5, 93.41% at epoch 10, 90.43% at epoch 15, and 88.50% at epoch 20. It is not a pooled accuracy over all original-family samples, and it is not averaged across the other three fine-tuning experiments. The decrease is smaller than the gain on advection–Burgers, but it is monotone over this fine-tuning window. This result motivates future adaptation methods that improve new-family recovery while preserving original-family performance.
3.7 Hierarchical discovery
We evaluate the hierarchical discovery algorithm using a separate model pretrained only on advection, inviscid Burgers, inviscid cubic Burgers, and diffusion. Without updating its weights, the model is tested on trajectories from each of three unseen two-term composites: viscous Burgers, viscous cubic Burgers, and advection–diffusion. For each target equation, the symbolic form and coefficients are fixed, while the trajectories are generated from independently sampled initial conditions. We assess whether the first stage recovers the dominant operator, the residual stage identifies the subordinate term, and BFGS jointly calibrates their coefficients. The full protocol and sample-level outcomes are provided in Appendix F.
Table 4 summarizes the recovered equations. For the two Burgers cases, the first stage identifies the appropriate nonlinear-flux operator and the residual stage recovers diffusion. The advection–diffusion case produces competing first-stage predictions, but coefficient consistency selects advection before the diffusion residual is recovered. Overall, the hierarchical discovery algorithm predicts the correct composite PDE skeleton in all three cases and yields only small coefficient errors on average after BFGS refinement.
Table 4: The hierarchical discovery algorithm recovers the tested unseen two-term composites through sequential operator identification and BFGS calibration.
| Ground truth | Decomposition results |
|---|---|
| Step 1 (Dominant): | |
| Step 2 (Subordinate): | |
| Combined: | |
| After BFGS: | |
| Step 1 (Dominant): | |
| Step 2 (Subordinate): | |
| Combined: | |
| After BFGS: | |
| Step 1 (Dominant): | |
| Step 2 (Subordinate): | |
| Combined: | |
| After BFGS: |
In real applications, the operators may have similar magnitudes or be strongly coupled, making the dominant component difficult to identify. An incorrect first-stage operator or an inaccurate neural surrogate contaminates the residual passed to the second stage, while measurement noise and discretization error can obscure weak terms. The present study is limited to clean synthetic trajectories, additive two-term PDEs, and a restricted operator vocabulary, so performance on multi-term, nonadditive, noisy, or experimental systems remains to be established.
4 Conclusions
We presented FoundPDE as a scoped foundation model for symbolic PDE discovery: a reusable pretrained data-to-symbol model for one-dimensional time-dependent PDEs, rather than a universal PDE solver or unrestricted open-form symbolic regression engine. The in-domain experiments show that a single transformer trained on canonical PDE families can recover symbolic structure with high accuracy. The Fourier-and-derivative model reaches 97.50% type recognition, with a coefficient-setting-level 95% bootstrap interval of [96.54%, 98.30%], indicating that trajectory-to-equation prediction can be amortized across a broad family set. Under multiplicative corruption of the model input, recognition decreases gradually, to 94.43% at , and in a focused diffusion-reaction comparison FoundPDE retains most of its accuracy at noise levels at which SINDy and weak SINDy fail.
The parameter-generalization experiment is restricted to coefficient shifts within known symbolic families. On 5,120 samples drawn from coefficient supports that are strictly disjoint from the in-domain ranges, FoundPDE reaches 90.53% TRR, compared with 97.34% on the corresponding 19-family in-domain subset. The 6.81-percentage-point decrease is concentrated in sine-flux conservation and in heat, Klein–Gordon, and wave equations whose coefficients lie far beyond the training range. Advection further shows that high TRR can coexist with large relative error when an extrapolated transport coefficient has the wrong sign. These results support parameter extrapolation within much of the learned symbolic vocabulary.
The few-shot fine-tuning and hierarchical discovery experiments provide evidence for extending the pretrained representation beyond its original symbolic vocabulary. Under the reported single-family adaptation protocol, a separately pretrained FoundPDE checkpoint reaches 91.0%–97.0% exact recovery across four held-out composite families after 20 epochs, while joint four-family scratch training requires a longer optimization horizon to approach comparable behavior. Because the protocols differ in family composition and batch size, this result supports the transfer capacity of the broader FoundPDE pretraining framework over the tested training horizon rather than an initialization-only efficiency claim for the principal checkpoint. Hierarchical discovery recovers selected two-term composite examples by identifying dominant and subordinate operators separately, followed by BFGS coefficient refinement. These results indicate that the pretrained representation can support downstream extension, while systematic transfer to new symbolic compositions remains open.
Overall, FoundPDE provides evidence for pretrained symbolic PDE discovery within a canonical-family setting. Future work should extend this setting through broader transfer experiments, adaptation methods that reduce forgetting, stronger decomposition methods than the current residual pass, and extensions beyond one-dimensional synthetic PDE families toward higher-dimensional, noisier, and experimentally observed systems.
Acknowledgments
This work was supported by the U.S. Department of Energy Office of Advanced Scientific Computing Research under Grants No. DE-SC0025593 and No. DE-SC0025592, and the U.S. National Science Foundation under Grants No. DMS-2347833 and No. DMS-2527294. This research used resources of the National Energy Research Scientific Computing Center (NERSC), a Department of Energy User Facility (project m4946).
Code availability
The FoundPDE code will be available at https://github.com/lu-group/foundpde.
A Dataset specification
The main corpus follows the PDE families, initial-condition generators, and numerical solvers of PROSE-PDE [13], with modified coefficient supports. Unless otherwise specified, each positive continuous parameter has reference value and is sampled as . Signed and discrete parameter supports are stated explicitly in Table 5, which summarizes the reference values and in-domain supports for all families. We generate 25.6K symbolic PDE instances spanning 20 PDE types. Each generated PDE is solved under 20 initial conditions, giving solution samples. Unless otherwise specified, the spatial domain length is ; the Fokker–Planck equation follows the PROSE-PDE physical scaling with . The final time depends on the PDE family and is also reported in Table 5.
Table 5: The synthetic corpus contains 20 PDE types constructed from the one-dimensional benchmark families of PROSE-PDE [13]. The table reports each family's canonical form, reference setting, and in-domain parameter support. Diffusion–reaction and conservation-law families each contain multiple symbolic types, yielding 20 PDE types in total.
| Family | Canonical form | Reference setting | In-domain support |
|---|---|---|---|
| Heat / Diffusion | |||
| Porous medium | |||
| Klein–Gordon | |||
| Sine–Gordon | |||
| Cahn–Hilliard | |||
| KdV | |||
| Advection | |||
| Wave | |||
| Diffusion–reaction | $\nu_0=3\times 10^{-3},\,\rho_0\in\{1,0.1\},\,t_f=3$ | ||
| Viscous conservation | |||
| Inviscid conservation | |||
| Fokker–Planck |
For the diffusion–reaction family, is one of with , or . For the viscous conservation laws, is one of , or . For the inviscid conservation laws, is one of , or . These grouped choices account for the 20 PDE types used in the main corpus.
B Model, training, and augmentation details
The model used in the main experiments is a transformer sequence-to-sequence network [33]. The encoder uses a 512-dimensional embedding, 8 attention heads, and 4 transformer layers. The symbolic decoder uses 8 attention heads and 8 transformer layers. Input channels are first projected into the latent space by a feed-forward embedder with GELU activation, and reversible instance normalization [34] is applied to reduce scale variation across PDE families.
The model is trained with cross-entropy loss on the target token sequence. Unless otherwise specified, we use Adam [38] with learning rate , an inverse-square-root schedule with 8,000 warm-up steps, weight decay , batch size 512, gradient clipping at 1.0, 100 epochs, and 1,000 iterations per epoch, so that each of the 512,000 training samples is processed about 100 times. Decoding is greedy in the current experiments. All four feature variants in Fig. 3 use this schedule. Their training times are projected from the measured time per optimization step: each variant was trained for 600 steps on a workstation with an NVIDIA GeForce RTX 3090 GPU and an AMD Ryzen Threadripper PRO 5955WX CPU with no other jobs running, and the mean time per step over steps 100–600 was multiplied by the 100,000 steps of a full run. Appendix C examines convergence and the effect of the training budget.
For Fourier augmentation, we compute the discrete Fourier transform along the spatial dimension and concatenate the real and imaginary parts with the original solution channel. For derivative augmentation, we compute only the first-order spatial derivative using finite differences along the spatial axis. The derivative augmentation does not include or . The four main model variants are therefore: raw , with Fourier channels, with , and with both and Fourier real/imaginary channels.
For the robustness-to-noise benchmark, Gaussian corruption is pre-injected after construction of the augmented input tensor. The stored corrupted tensor therefore contains perturbed solution, first-order spatial-derivative, Fourier-real, and Fourier-imaginary channels; the derived channels are not recomputed from one corrupted raw solution field. Evaluator-side noise is set to zero during inference, so identifies only the stored corruption: each entry of the augmented tensor is replaced by with an independent . The noise is therefore multiplicative, and entries that are exactly zero remain unchanged. For relative evaluation, every decoded equation is subsequently solved from the corresponding clean initial condition and compared with the noise-free trajectory; the corrupted tensor is used only as the model input.
C Training budget and convergence
The principal model is trained for 100 epochs of 1,000 optimization steps on all 512,000 training samples. Fig. 13A shows that its training loss is still decreasing slowly at the end of training. To check whether further training would change the reported results, we evaluated the checkpoints saved every 25 epochs on the 5,120 test samples. The teacher-forced loss on equation-structure tokens (operators, variables, and derivative terms) stays between 0.005 and 0.010 at every checkpoint, with test structure-token accuracy of 99.9% (Fig. 13B), and the test TRR changes by at most 0.21 percentage points after epoch 50 (Fig. 13D). The continued decrease in training loss comes from coefficient tokens: training-sample accuracy on coefficient tokens rises from 92.7% at epoch 25 to 98.2% at epoch 100, whereas test accuracy remains near 83% and the test cross-entropy increases (Fig. 13C). The 512,000 samples contain 25,600 distinct equations, each solved from 20 initial conditions, so later epochs mainly fit the coefficient values of the training equations. We therefore regard the principal model as converged with respect to symbolic discovery. The epoch-100 checkpoint was fixed before the intermediate checkpoints were evaluated.
Table 6 compares the principal model with the same architecture and input features trained on 128,000 samples for 50 epochs with batch size 256, which processes 6.4 million samples instead of 51.2 million. The larger budget improves in-domain, corruption, and strict parameter-OOD recognition, but the gain is not uniform across strict parameter-OOD families: the reaction families improve substantially, whereas heat, Klein–Gordon, and wave are recognized less reliably when their coefficients lie far beyond the training range. In this setting, the additional training sharpens recognition within the training support at some cost to extrapolation in coefficient magnitude for these families.
A Training loss

B Structure tokens
C Coefficient tokens
D Type recognition
Figure 13: The principal model converges with respect to symbolic recovery before its training loss stops decreasing. (A) Per-epoch mean training loss of the principal model (512,000 samples, 100 epochs) and of the same model trained on 128,000 samples for 50 epochs. (B, C) Teacher-forced cross-entropy of the principal model at each saved checkpoint on 5,120 training samples and on the 5,120 test samples, for equation-structure tokens and for coefficient tokens (sign, mantissa, and exponent). (D) Test TRR of each checkpoint.
D BFGS implementation
BFGS [35] is applied only after the symbolic expression has been decoded. The optimizer receives the predicted expression skeleton and initial decoded coefficient values, then optimizes the floating-
Table 6: A larger training budget improves recognition overall but changes the parameter-OOD failure profile. Both models use the Fourier-and-derivative input and the same architecture. Values are TRR (%) with the complete 5,120-sample denominators; the per-family rows are strict parameter-OOD results.
| 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 |
| Wave | 83.71 | 76.14 |
| Diffusion-reaction, bistable | 65.81 | 89.34 |
| Diffusion-reaction, square-logistic | 60.66 | 88.97 |
point coefficients against a residual loss computed from the observed trajectory and estimated derivatives. The temporal derivative follows the decoded target: the evaluator uses for first-order families and for wave, Klein–Gordon, and Sine–Gordon. If the decoded expression cannot be parsed, if the required derivative quantities are unsupported by the evaluator, or if reconstruction fails numerically, the sample is excluded from MRCSE or relative aggregation as appropriate. This is why MRCSE and relative error may have different evaluable sample counts from TRR.
E Custom composite-family setup
The few-shot fine-tuning and from-scratch experiments use custom composite equations built on top of the PROSE-PDE data-generation infrastructure. Standard fine-tuning and from-scratch runs sample around , , and with relative range parameter . Thus,
so up to rounding. The standard composite runs do not use additional coefficient clipping beyond the legacy CFL stepping, diffusion CFL control, and a final sample-norm filter 10<\|u\|<2000. The broader clipped ranges used in the parameter-OOD setting are separate from the standard few-shot and from-scratch experiments.
Table 7: Custom composite PDE families used for few-shot fine-tuning. These equations combine transport, nonlinear flux, and diffusion terms that are individually familiar from pretraining but not present as full composite symbolic forms. The initial conditions for these composite datasets use a sinusoidal superposition generator rather than the Gaussian-distribution or Gaussian-process initial conditions used by some PROSE-PDE families.
| Composite family | Symbolic form |
|---|---|
| Advection-Burgers | |
| Advection-cubic Burgers | |
| Advection-sine | |
| Burgers-cubic Burgers |
The few-shot fine-tuning experiments evaluate the four composite targets in Table 7. We use a FoundPDE model pretrained for 100 epochs on 512,000 samples from the original PDE corpus. It shares the training corpus and schedule of the principal Fourier-and-derivative model used for the in-domain, corruption, and parameter-OOD results but takes only the solution field as input. Fine-tuning epoch 0 denotes this loaded source state before any target-family update, and a separate copy is adapted to each target family. Advection–Burgers uses 1000 training samples, corresponding to 50 coefficient settings with 20 initial conditions per setting. Each of the other three fine-tuning runs uses 500 training samples, corresponding to 25 coefficient settings with 20 initial conditions per setting. The evaluation contains 100 expected test samples for each family, corresponding to 5 coefficient settings with 20 initial conditions per setting. The from-scratch experiment trains one model jointly on all four families using 2000 training and 400 test samples, or 500 training and 100 test samples per family. For advection–cubic-Burgers, advection–sine, and Burgers–cubic-Burgers, the fine-tuning files are exact family-wise subsets of the mixed dataset used by the scratch run. The earlier advection–Burgers result uses a separately generated dataset and therefore does not provide this exact sample-level match.
Both regimes use the same optimizer family and learning rate: Adam with inverse-square-root scheduling, initial learning rate , and 10 optimizer updates per epoch. Fine-tuning uses batches of 100 examples from one target family and runs for 20 epochs, whereas scratch training uses batches of 200 examples drawn from the mixed four-family dataset and is evaluated over a longer horizon. Thus, 20 fine-tuning epochs correspond to 200 optimizer updates and 100 scratch epochs correspond to 1000 updates. The reported trajectories are single runs rather than averages over repeated random seeds. Epochs 20 and 100 are fixed comparison horizons from these trajectories, not checkpoints selected retrospectively for their best test performance. Because family composition and batch size differ, this experiment compares the reported adaptation and scratch protocols rather than isolating initialization under otherwise identical optimization conditions.
Original-family retention is evaluated only for the advection–Burgers fine-tuning trajectory. The evaluation set contains 5,120 expected samples distributed across the 20 pretraining families. At each reported checkpoint, TRR is computed separately using each family’s fixed expected count; missing or unparsable outputs are assigned zero credit. The 20 family-level TRRs are then averaged with equal family weights. The reported retention statistic is therefore a fixed-denominator macro-average across PDE families, not a pooled accuracy over all samples. The number of missing outputs increases from 2 before fine-tuning to 81 at epoch 20, and these failures are included in the corrected values.
For these composite datasets, both train and test samples use the same initial-condition family: a sinusoidal superposition generator with random modes, flips/windows, detrending, and normalization. Train and test sets differ by sampled examples and coefficient settings, not by switching to a Gaussian-process or Gaussian-distribution initial-condition family.
Hierarchical discovery data. The hierarchical discovery examples use 20 solution datasets from a fixed symbolic equation and fixed coefficients while varying initial conditions. The verified Burgers, cubic Burgers, and advection–diffusion examples use sinusoidal initial conditions and the numerical solvers.
F Details of the hierarchical discovery experiments
Restricted pretraining scope and unseen targets. To isolate the sequential-recovery mechanism, this experiment uses a separate FoundPDE model pretrained only on advection, inviscid
Burgers, inviscid cubic Burgers, and diffusion. We then evaluate three additive two-operator equations whose individual operators occur in this restricted corpus but whose complete symbolic forms are absent from pretraining:
These equations correspond to advection–diffusion, viscous Burgers, and viscous cubic Burgers, respectively. The restricted setting is designed to identify one familiar operator at a time; it is not a comprehensive compositional OOD benchmark.
Trajectory data and residual surrogate. For each composite equation, we use solution datasets with a fixed symbolic equation and fixed coefficients while varying the initial condition. The datasets use the sinusoidal initial-condition generator and the numerical solvers. Each trajectory contains snapshots on a spatial grid of . The per-target surrogate is a Fourier Neural Operator [8] trained for next-timestep prediction on the same 20 trajectories supplied to FoundPDE. Thus, each target provides input–output pairs for surrogate training. The trained surrogate supplies the full-dynamics update used in the residual construction of Algorithm 1.
First-stage aggregation and ambiguity handling. FoundPDE is applied separately to all 20 trajectories, producing a candidate operator type and coefficient for each trajectory. When one type clearly dominates the predictions, that type is retained and its predicted coefficients are averaged. When the votes are split, we compare the coefficient consistency of the competing candidates using the coefficient of variation, , computed from the predicted coefficients assigned to each candidate. The candidate with the lower CV is selected because its coefficient estimates are more stable across initial conditions. Across the selected examples, a CV near 0.2 separates the retained assignment from the competing assignment, but this value is empirical and is not treated as a universal threshold.
Second-stage recovery and calibration. After the dominant operator is selected, its numerical evolution is removed from the surrogate full-dynamics update at every time step to construct the residual trajectories. The fixed FoundPDE model is then applied to these residual trajectories, and the second-stage predictions are aggregated to recover the subordinate diffusion operator. Finally, the two recovered operators are combined and all coefficients are jointly refined with BFGS against the original solution data.
Per-equation recovery outcomes. Viscous Burgers. For , 15 of the 20 first-stage predictions identify inviscid Burgers. Averaging their coefficients gives . In the residual stage, 13 of 20 predictions identify diffusion and give . The combined equation is , and BFGS refines it to .
Viscous cubic Burgers. For , 19 of the 20 first-stage predictions identify inviscid cubic Burgers, giving the averaged estimate . In the residual stage, 18 of 20 predictions identify diffusion and give . BFGS refines the combined equation to .
Advection-diffusion. For , the first-stage vote is ambiguous: 12 trajectories are classified as Burgers and 8 as advection. Their coefficient variations are 0.359 and
0.037, respectively, so the consistency criterion selects advection and gives the averaged estimate . The residual stage identifies diffusion with ; BFGS then refines the combined equation to .
These stage-wise results are summarized in Table 4.
G Initial conditions and solvers
The initial-condition families are adapted from PROSE-PDE [13]. The default initial condition is a superposition of sinusoidal waves,
Here is sampled from . The amplitude and phase satisfy
Gaussian-distribution and quadratic initial conditions are retained for the equation classes listed in Table 8. Within each family, training and in-domain testing use independent random draws from the same initial-condition generator; the split does not switch to a different initial-condition family. Table 9 lists the numerical solver used for each equation type.
Table 8: FoundPDE uses family-specific initial-condition generators adapted from the PROSE-PDE benchmark design [13]. Most equation families use sinusoidal superpositions, advection, wave, and Fokker–Planck use Gaussian-distribution initial conditions, and porous-medium equations use quadratic initial conditions. Training and in-domain testing draw independently from the same generator within each family.
| 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 | ||
H Coefficient-setting-level uncertainty intervals
Table 10 reports 95% percentile cluster-bootstrap intervals for the principal fixed-checkpoint evaluations. The resampling unit is a completed coefficient-instantiated equation, so all trajectories generated from its initial conditions remain together in each bootstrap replicate. The clean in-domain and corruption evaluations contain 256 equation settings with 20 initial conditions per
Table 9: Numerical solvers used in our dataset follow PROSE-PDE [13]. Diffusion–reaction and conservation-law systems use the PDEBench pipeline [39]. KdV uses a Fourier spectral solver. Fokker–Planck uses a matrix numerical method. Advection and wave equations use exact solutions defined by the initial condition. The remaining families use a method-of-lines solver.
| 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; the strict parameter-OOD evaluation contains 640 settings with eight initial conditions per setting. We use 10,000 bootstrap replicates. Missing decoder outputs count as TRR failures, while relative error and MRCSE are computed only on their respective evaluable prediction sets. Corruption-level relative uses the clean-reference reconstruction protocol described above. The clean in-domain evaluation and the corruption control use the same inputs and are reported as a single row. Relative error excludes four predictions whose numerical solution does not terminate: the same sample at and , and two strict parameter-OOD samples; their TRR and MRCSE contributions are unaffected. These intervals measure finite-test-set variation across sampled equations conditional on one pretrained checkpoint. They do not include training-seed, checkpoint-selection, or fine-tuning variability.
Table 10: Clustered uncertainty intervals separate robust aggregate trends from heavy-tailed coefficient errors. Values in brackets are coefficient-setting-level 95% bootstrap intervals. TRR uses the complete 5,120-example denominator; mean relative error uses reconstructable predictions; and MRCSE uses type-matched predictions with extractable packed coefficients. The column reports these two evaluable counts. The widening mean-MRCSE intervals under stronger corruption and strict parameter OOD reflect a small number of extreme coefficient errors, whereas median MRCSE remains substantially more stable.
| Setting | Eq. settings ICs | TRR (%) | Mean relative | Mean MRCSE | Median MRCSE | |
|---|---|---|---|---|---|---|
| Clean in-domain and corruption control, | ||||||
| Corruption, | ||||||
| Corruption, | ||||||
| Corruption, | ||||||
| Strict parameter OOD |
I Parameter-OOD data
The strict parameter-OOD benchmark preserves the symbolic families used during pretraining while sampling coefficients outside their complete in-domain supports. For a coefficient with reference value , a range ratio means . The lower OOD boundary is set to 1.91, rather than the nominal in-domain endpoint 1.9, so that decimal serialization cannot round a generated coefficient back onto the in-domain boundary. For multi-parameter families, one coefficient is moved outside its in-domain support while the remaining coefficients are held at their reference values, except for the coupled stability restrictions listed in Table 11. The upper limits were fixed from numerical-stability considerations and keep the generated solutions within the intended family regime. Porous-medium and structural mixed-type equations are excluded.
Table 11: Strictly disjoint coefficient supports define the parameter-OOD benchmark. Each listed interval lies outside the corresponding in-domain support in Table 5. Multi-parameter equations shift one coefficient at a time unless a coupled restriction is stated. Family-specific upper limits and coupling constraints preserve numerical stability without changing the symbolic PDE family.
| 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 | |
| Burgers | Either , with , or | |
| Viscous conservation, linear / sine flux | Either or | |
| Viscous conservation, cubic flux | , and | |
| Inviscid Burgers | ||
| Inviscid conservation, sine / cubic flux | ||
| Cahn-Hilliard | ||
| Wave | ||
| Klein-Gordon | , with | |
| Sine-Gordon |
J SINDy and weak-SINDy protocol
The diffusion-reaction comparison in Table 1 uses one equation from each of the four reaction families. Each equation is solved from 20 initial conditions on the grid used throughout the paper, with and periodic . The first initial condition is the instance used for DISCOVER. A recovered equation counts as correct when its set of active terms equals the set of monomials of the true equation.
SINDy uses the candidate library . Temporal and spatial derivatives are computed with second-order finite differences, periodic in space, and the library columns are normalized. Sparse regression uses sequentially thresholded least squares with ridge parameter over 42 thresholds (zero and 41 values logarithmically spaced between and 10). Each model is fit on the first 25 of the 32 snapshots, and the threshold is selected by the Akaike information criterion [37] computed on the remaining seven snapshots. Weak SINDy uses the same library in weak form [36] with 400 rectangular test-function subdomains of half-width 0.25 in and (8 spatial and 4 temporal grid points), polynomial test functions of degree 4, and subdomain centers drawn with a fixed random seed so that every trajectory uses the same subdomains. Its threshold is selected among 50 values logarithmically spaced between and 1 by the loss of [36], which balances the relative residual against the fraction of active terms.
For the noisy comparison, each observed solution value is replaced by with an independent . The SINDy variants receive the noisy solution. FoundPDE recomputes its derivative and Fourier channels from the same noisy solution; for reference, Table 12 also reports FoundPDE under the protocol of Sec. 3.3, in which noise is injected into each channel of the clean augmented input, SINDy with Savitzky–Golay smoothing before differentiation, and weak SINDy with half-width 0.375. With the threshold heuristic of the PySINDy PDE-FIND example and a library that also contains products of with its derivatives, SINDy recovers 17 of the 80 clean trajectories and selects the empty model for the linear reaction; we therefore report the AIC-based selection.
Table 12: FoundPDE retains structural recovery at noise levels at which sparse-regression baselines fail. Number of the 80 diffusion-reaction trajectories (four equations with 20 initial conditions each) whose recovered terms match the ground truth. FoundPDE (recomputed) derives its derivative and Fourier channels from the noisy solution; FoundPDE (Sec. 3.3) uses noise injected into each channel of the clean augmented input. SG denotes Savitzky–Golay smoothing with the given window length, and is the weak-form test-function half-width.
| 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 |
References
[1] George Em Karniadakis, Ioannis G Kevrekidis, Lu Lu, Paris Perdikaris, Sifan Wang, and Liu Yang. Physics-informed machine learning. Nature Reviews Physics, 3(6):422–440, 2021.
[2] Nathan Baker, Frank Alexander, Timo Bremer, Aric Hagberg, Yannis Kevrekidis, Habib Najm, Manish Parashar, Abani Patra, James Sethian, Stefan Wild, et al. Workshop report on basic research needs for scientific machine learning: Core technologies for artificial intelligence. Technical report, USDOE Office of Science (SC), Washington, D.C. (United States), 2019.
[3] Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. 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, 2019.
[4] Lu Lu, Xuhui Meng, Zhiping Mao, and George Em Karniadakis. DeepXDE: A deep learning library for solving differential equations. SIAM Review, 63(1):208–228, 2021.
[5] Lu Lu, Pengzhan Jin, Guofei Pang, Zhongqiang Zhang, and George Em Karniadakis. Learning nonlinear operators via DeepONet based on the universal approximation theorem of operators. Nature Machine Intelligence, 3(3):218–229, 2021.
[6] Beichuan Deng, Yeonjong Shin, Lu Lu, Zhongqiang Zhang, and George Em Karniadakis. Approximation rates of DeepONets for learning operators arising from advection–diffusion equations. Neural Networks, 153:411–426, 2022.
[7] Chensen Lin, Zhen Li, Lu Lu, Shengze Cai, Martin Maxey, and George Em Karniadakis. Operator learning for predicting multiscale bubble growth dynamics. The Journal of Chemical Physics, 154(10), 2021.
[8] Zongyi Li, Nikola Kovachki, Kamyar Azizzadenesheli, Burigede Liu, Kaushik Bhattacharya, Andrew Stuart, and Anima Anandkumar. Fourier neural operator for parametric partial differential equations. In International Conference on Learning Representations, 2021.
[9] Zongyi Li, Hongkai Zheng, Nikola Kovachki, David Jin, Haoxuan Chen, Burigede Liu, Kamyar Azizzadenesheli, and Anima Anandkumar. Physics-informed neural operator for learning partial differential equations. ACM/IMS Journal of Data Science, 1(3):1–27, 2024.
[10] Sifan Wang, Hanwen Wang, and Paris Perdikaris. Learning the solution operator of parametric partial differential equations with physics-informed DeepONets. Science Advances, 7(40):eabi8605, 2021.
[11] Liu Yang, Siting Liu, Tingwei Meng, and Stanley J. Osher. In-context operator learning with data prompts for differential equation problems. Proceedings of the National Academy of Sciences, 120(39), 2023.
[12] Yuxuan Liu, Zecheng Zhang, and Hayden Schaeffer. PROSE: Predicting multiple operators and symbolic expressions using multimodal transformers. Neural Networks, 180:106707, 2024.
[13] Jingmin Sun, Yuxuan Liu, Zecheng Zhang, and Hayden Schaeffer. Towards a foundation model for partial differential equations: Multioperator learning and extrapolation. Physical Review E, 111(3):035304, 2025.
[14] Zhanhong Ye, Xiang Huang, Leheng Chen, Hongsheng Liu, Zidong Wang, and Bin Dong. PDEformer: Towards a foundation model for one-dimensional partial differential equations. arXiv preprint arXiv:2402.12652, 2025.
[15] Min Zhu, Jingmin Sun, Zecheng Zhang, Hayden Schaeffer, and Lu Lu. PI-MFM: Physics-informed multimodal foundation model for solving partial differential equations. arXiv preprint arXiv:2512.23056, 2025.
[16] Siyu Lou, Hao Xu, Wenguan Wang, Lu Lu, Hao Sun, Yang Liu, Linfeng Zhang, Dongxiao Zhang, and Yuntian Chen. Data-driven discovery of governing differential equations across physical systems. arXiv preprint arXiv:2606.09638, 2026.
[17] Steven L. Brunton, Joshua L. Proctor, and J. Nathan Kutz. Discovering governing equations from data by sparse identification of nonlinear dynamical systems. Proceedings of the National Academy of Sciences, 113(15):3932–3937, 2016.
[18] Samuel H. Rudy, Steven L. Brunton, Joshua L. Proctor, and J. Nathan Kutz. Data-driven discovery of partial differential equations. Science Advances, 3(4):e1602614, 2017.
[19] Lena Podina, Brydon Eastman, and Mohammad Kohandel. Universal physics-informed neural networks: Symbolic differential operator discovery with sparse data. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 27948–27956. PMLR, 2023.
[20] Krzysztof Kacprzyk, Zhaozhi Qian, and Mihaela van der Schaar. D-CIPHER: Discovery of closed-form partial differential equations. In Advances in Neural Information Processing Systems, volume 36, pages 27609–27644. Curran Associates, Inc., 2023.
[21] Fangzheng Sun, Yang Liu, Jian-Xun Wang, and Hao Sun. Symbolic physics learner: Discovering governing equations via Monte Carlo tree search. In The Eleventh International Conference on Learning Representations, 2023.
[22] Mengge Du, Yuntian Chen, and Dongxiao Zhang. DISCOVER: Deep identification of symbolically concise open-form partial differential equations via enhanced reinforcement learning. Physical Review Research, 6:013182, 2024.
[23] Mingquan Feng, Yixin Huang, Yizhou Liu, Bofang Jiang, and Junchi Yan. PhysPDE: Re-thinking PDE discovery and a physical HYpothesis selection benchmark. In The Thirteenth International Conference on Learning Representations, 2025.
[24] En-Hao Gao, Cunjing Ge, Yuan Jiang, and Zhi-Hua Zhou. Discovering symbolic partial differential equation by abductive learning. In Advances in Neural Information Processing Systems, volume 38, pages 57359–57385. Curran Associates, Inc., 2025.
[25] Jianke Yang, Wang Rao, Nima Dehmamy, Robin Walters, and Rose Yu. Symmetry-informed governing equation discovery. In Advances in Neural Information Processing Systems, volume 37, pages 65297–65327. Curran Associates, Inc., 2024.
[26] Xiaotian Song, Peng Zeng, Andrew Lensen, Hengzhe Zhang, Yuwei Ou, Yanan Sun, Mengjie Zhang, and Jiancheng Lv. Differentiable genetic programming for high-dimensional symbolic regression. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2026. Early access.
[27] Guillaume Lample and François Charton. Deep learning for symbolic mathematics. In International Conference on Learning Representations, 2020.
[28] Pierre-Alexandre Kamienny, Stéphane d'Ascoli, Guillaume Lample, and François Charton. End-to-end symbolic regression with transformers. In Advances in Neural Information Processing Systems, volume 35, 2022.
[29] Stéphane d'Ascoli, Sören Becker, Alexander Mathis, Philippe Schwaller, and Niki Kilbertus. ODEFormer: Symbolic regression of dynamical systems with transformers. In International Conference on Learning Representations, 2024.
[30] Yongtuo Liu, Sara Magliacane, Miltiadis Kofinas, and Stratis Gavves. Amortized equation discovery in hybrid dynamical systems. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 31645–31668. PMLR, 2024.
[31] Parshin Shojaee, Kazem Meidani, Shashank Gupta, Amir Barati Farimani, and Chandan Reddy. LLM-SR: Scientific equation discovery via programming with large language models. In The Thirteenth International Conference on Learning Representations, 2025.
[32] Parshin Shojaee, Ngoc-Hieu Nguyen, Kazem Meidani, Amir Barati Farimani, Khoa D Doan, and Chandan K. Reddy. LLM-SRBench: A new benchmark for scientific equation discovery with large language models. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 55325–55359. PMLR, 2025.
[33] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
[34] Taesung Kim, Jinhee Kim, Yunwon Tae, Cheonbok Park, Jang-Ho Choi, and Jaegul Choo. Reversible instance normalization for accurate time-series forecasting against distribution shift. In The Tenth International Conference on Learning Representations, 2022.
[35] Jorge Nocedal and Stephen J. Wright. Numerical Optimization. Springer, 2 edition, 2006.
[36] Daniel A. Messenger and David M. Bortz. Weak SINDy for partial differential equations. Journal of Computational Physics, 443:110525, 2021.
[37] Niall M. Mangan, J. Nathan Kutz, Steven L. Brunton, and Joshua L. Proctor. Model selection for dynamical systems via sparse regression and information criteria. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 473:20170009, 2017.
[38] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
[39] Makoto Takamoto, Timothy Praditia, Raphael Leiteritz, Dan MacKinlay, Francesco Alesiani, Dirk Pfluger, and Mathias Niepert. PDEBench: An extensive benchmark for scientific machine learning. In Advances in Neural Information Processing Systems (Datasets and Benchmarks Track), 2022.