Introduction
Discovering the governing partial differential equations (PDEs) of physical systems is a fundamental challenge in science and engineering. While traditional methods like sparse regression and Physics-Informed Neural Networks (PINNs) have shown success, they often require dense, high-quality datasets. In real-world scenarios, data is frequently sparse and noisy, leading to failure in traditional discovery methods. This paper explores the potential of Large Language Models (LLMs) to perform PDE discovery by leveraging their reasoning and few-shot learning capabilities.
The LLM4PD Framework
The authors introduce LLM4PD, a framework designed to identify PDEs from minimal and noisy observation data using a "coarse-to-fine" strategy. This approach decomposes the discovery process into two distinct stages: term selection and coefficient optimization.
Coarse Phase: Term Selection
In the coarse phase, the LLM identifies the relevant terms for the PDE (e.g., advection, diffusion, or reaction terms). This is achieved through Hierarchical Prompting, which provides the model with three levels of context:
- Knowledge level: Physical interpretations of mathematical terms, such as associating first spatial derivatives with advection.
- Data level: A subset of actual observations to ground the model's reasoning.
- Reasoning level: Explicit guidance on identifying trends, matching patterns, and checking for nonlinearity.
A critical component of this phase is the Review Agent, which evaluates the LLM's proposed terms for physical consistency and simplicity. By acting as a "sanity check," it prevents the inclusion of unnecessarily complex or "hallucinated" terms that do not match the observed data's underlying dynamics.
Fine Phase: Coefficient Optimization
Once the structure of the equation is determined, the LLM transitions to the fine phase, acting as a heuristic optimizer. It operates in a loop with a numerical PDE solver: the LLM proposes coefficients, the solver simulates the system, and the resulting error is used to refine the next proposal. The LLM maintains a "memory bank" of past attempts, allowing it to reason about the optimization trajectory—much like a human scientist would—to determine the direction and magnitude of coefficient adjustments.
To maintain stability and avoid local minima, an Adaptive Hybrid Optimization strategy is employed. This strategy alternates between "large-step exploration" to search the parameter space and "small-step fine-tuning" to achieve high precision once a promising region is identified.
Experimental Evaluation
LLM4PD was evaluated on three benchmark physical systems: Burgers’ Equation, the Advection Equation, and the Diffusion-Reaction Equation. Tests were conducted under extreme conditions, including datasets with as few as 20 observation points and noise levels up to 10%.
Results and Discussion
The results demonstrate that LLM4PD significantly outperforms state-of-the-art methods like PDE-LEARN in data-scarce regimes. Key findings include:
- Data Scarcity: With only 20 points, LLM4PD achieved near-perfect recovery, whereas traditional methods failed to converge.
- Noise Robustness: The framework maintained stable performance even at 10% noise, a level that typically causes regression-based methods to produce physically nonsensical results.
- Model Performance: GPT-o1-mini emerged as the most effective base model, likely due to its superior reasoning capabilities in handling the optimization trajectory.
The success of LLM4PD suggests that LLMs can effectively replace gradient-based optimization in low-data scenarios by applying high-level reasoning to the system's global behavior rather than relying on local numerical gradients.
Conclusion
LLM4PD represents a novel paradigm for PDE discovery, demonstrating that LLMs can bridge the gap in data-starved scientific discovery. While currently limited to linear combinations of basis terms, future work may extend this approach to more complex, coupled systems and explore the benefits of physics-specific fine-tuning.
Summary updated