TL;DR
LLM-PDESR is a novel framework that combines the structural reasoning of Large Language Models (LLMs) with a noise-robust numerical evaluation environment to discover governing partial differential equations (PDEs) from noisy data. By replacing brittle finite-difference methods with $C^4$-continuous quintic splines and subdomain weighted residuals, it eliminates noise amplification and prevents the LLM from falling into overfitting traps. The framework significantly outperforms state-of-the-art methods on both canonical benchmarks and entirely novel, non-textbook physical systems.
What Problem Does This Paper Address?
Data-driven partial differential equation (PDE) discovery—identifying the underlying mathematical laws of a physical system from raw observations—is a cornerstone of scientific machine learning. Traditional symbolic regression (SR) methods struggle because they search through massive combinatorial spaces without domain-specific prior knowledge.
Recently, LLMs have emerged as promising tools to propose physically plausible equation structures. However, when applied to complex, time-varying PDEs, LLMs hit a major bottleneck: noise. Standard optimization frameworks rely on discrete finite difference (FD) methods and pointwise residual evaluations to calculate spatial derivatives. These operations inherently amplify high-frequency measurement noise, distorting the "fitness landscape." When an LLM receives these deceptive fitness scores, its evolutionary search gets derailed, leading it to generate bloated, mathematically spurious equations rather than true physical laws.
Methods
The LLM-PDESR framework resolves this derivative noise bottleneck by decoupling structural hypothesis generation from parameter identification through a closed-loop pipeline.
The pipeline consists of three core modules:
- LLM-Driven Hypothesis Generation: The LLM acts as a structural architect, proposing candidate equation skeletons as Python Abstract Syntax Trees (ASTs). Crucially, it only generates the symbolic form, using placeholders (e.g.,
params[0]) for numeric coefficients. - Robust Parameter Identification: To safely evaluate these candidates against noisy data, the framework uses a three-step numerical backend:
- Quintic Spline Smoothing: Reconstructs the noisy spatial field using $C^4$-continuous quintic B-splines, allowing analytical and noise-robust differentiation up to the fourth order.
- Subdomain Weighted Residuals (SWR): Instead of pointwise evaluation, the PDE residual is integrated against smooth, compactly supported test functions ($\sin^4$ windows) over localized subdomains. This integration acts as a natural low-pass filter, heavily attenuating high-frequency noise.
- BFGS Optimization: A quasi-Newton optimization algorithm minimizes the mean squared error (MSE) of these integrated residuals to find the exact physical parameters.
- Pareto-Driven Evaluation: Candidates are mapped onto a 2D objective space balancing accuracy (-MSE) and complexity (AST node count). The top three elite solutions are fed back into the LLM prompt for iterative refinement, naturally pruning unphysical equation bloat.
Datasets
The authors evaluated LLM-PDESR across three distinct regimes:
- Benchmark PDEs: A library of 23 canonical 1D PDEs spanning linear convection-diffusion, semilinear reaction-diffusion, quasilinear diffusion, viscous Burgers, and high-order nonlinear evolution equations, corrupted with up to 20% additive Gaussian noise.
- Structurally Novel Equations: Five synthetically designed physical systems featuring highly nonlinear spatial terms and unconventional interactions (e.g., Topography-Constrained Chemotaxis, Morphogenesis with Michaelis-Menten Kinetics). These were explicitly created to ensure they do not exist in standard textbooks, preventing the LLM from simply memorizing equations from its pre-training data.
- Real-World Observations: Hourly wind velocity fields from the ERA5 atmospheric reanalysis dataset, used to extract an interpretable 1D coupled atmospheric circulation surrogate (1D-CACE).
Key Insights and Ideas
- Integration beats Pointwise Collocation: Pointwise evaluations pass all data noise directly into the loss function. Moving to a localized integral form (SWR) mathematically guarantees variance reduction proportional to the data window density, smoothing out a rugged fitness landscape so continuous optimizers can converge.
- The Memorization Antidote: Evaluating LLMs solely on famous equations (like Burgers or KdV) risks measuring data contamination rather than genuine symbolic reasoning. Introducing non-polynomial rational fractions and nested derivatives forces the framework to demonstrate true algebraic invariant learning.
- Spatially Dependent Closure Terms: When projecting complex 3D real-world atmospheric data onto a 1D manifold, physical forcings are inevitably lost. The framework remarkably compensates for this by discovering spatially dependent terms (like $xv$ and $xu$) that act as mathematical closure terms, proxying unresolved macroscopic background gradients (similar to the $\beta$-plane approximation of the Coriolis force).
Key Results
Noise Robustness on Canonical Benchmarks
LLM-PDESR achieved a 100% structural success rate at 0% noise and maintained exceptionally high robustness as noise scaled up to 20%. In contrast, baseline methods like SGA-PDE, DISCOVER, and WSINDy_PDE suffered severe structural degradation under noisy conditions.
Generalization on Structurally Novel Equations
As shown in the evaluation table, baseline models universally failed to recover the structurally novel equations, often collapsing or succumbing to extreme overfitting and equation bloat. LLM-PDESR successfully extracted the exact mathematical skeletons for both the Morphogenesis and the coupled multivariate Predator-Prey dynamics.
Real-World Climate Modeling
When deployed on chaotic ERA5 climate data, LLM-PDESR distilled a physically consistent 1D-CACE skeleton. When frozen and tested out-of-distribution (OOD) across distinct geographic regions and seasons, it maintained strong predictive accuracy (e.g., rebounding to an $R^2$ of 72.54% in a hemispheric OOD setting), proving it captured invariant dynamical mechanisms rather than localized statistical artifacts.
Limitations and Future Work
Despite its success, the authors note a few key limitations:
- Extreme Numerical Stiffness: The framework currently struggles with equations that exhibit near-discontinuous shock fronts (such as the Traffic Flow bottleneck problem), where steep gradients disrupt the SWR integration step.
- Computational Overhead: Relying on iterative LLM queries within an evolutionary loop introduces significant inference latency and high GPU resource dependence compared to sparse regression.
- Dimensionality Constraints: The current numerical pipeline is optimized for 1D systems using 1D quintic B-splines. Extending this continuous formulation to 2D or 3D systems on unstructured grids introduces non-trivial topological complexities that remain an open area for future work.
Summary updated