Text-Trained LLMs Can Zero-Shot Extrapolate PDE Dynamics, Revealing a Three-Stage In-Context Learning Mechanism
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have demonstrated emergent in-context learning (ICL) capabilities across a range of tasks, including zero-shot time-series forecasting. We show that text-trained foundation models can accurately extrapolate spatiotemporal dynamics from discretized partial differential equation (PDE) solutions without fine-tuning or natural language prompting. Predictive accuracy improves with longer temporal contexts but degrades at finer spatial discretizations. In multi-step rollouts, where the model recursively predicts future spatial states over multiple time steps, errors grow algebraically with the time horizon, reminiscent of global error accumulation in classical finite-difference solvers. We interpret these trends as in-context neural scaling laws, where prediction quality varies predictably with both context length and output length. To better understand how LLMs are able to internally process PDE solutions so as to accurately roll them out, we analyze token-level output distributions and uncover a consistent three-stage ICL progression: beginning with syntactic pattern imitation, transitioning through an exploratory high-entropy phase, and culminating in confident, numerically grounded predictions.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 28 of its 54 references that are in the map. First posted on arXiv 8 Sep 2025.
Builds on
28 of 54 references.
References · 28
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2023A Survey of Large Language Modelscited by 2,576
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2025Gemma 3 Technical Reportcited by 1,824
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
- 2024Phi-4 Technical Reportcited by 711
- 2023Time-LLM: Time Series Forecasting by Reprogramming Large Language Modelscited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
16 more
- 2023Large Language Models Are Zero-Shot Time Series Forecasterscited by 500
- 2023Language Models Represent Space and Timecited by 316
- 2022PromptCast: A New Prompt-based Learning Paradigm for Time Series Forecastingcited by 172
- 2024LLM Processes: Numerical Predictive Distributions Conditioned on Natural Languagecited by 55
- 2025CodePDE: An Inference Framework for LLM-driven PDE Solver Generationcited by 39
- 2024Unisolver: PDE-Conditional Transformers Towards Universal Neural PDE Solverscited by 35
- 2024Large Language Models as Markov Chainscited by 35
- 2024LLMs learn governing principles of dynamical systems, revealing an in-context neural scaling lawcited by 32
- 2024UPS: Efficiently Building Foundation Models for PDE Solving via Cross-Modal Adaptationcited by 27
- 2024Text2PDE: Latent Diffusion Models for Accessible Physics Simulationcited by 25
- 2025PDE-Controller: LLMs for Autoformalization and Reasoning of PDEscited by 23
- 2025DeepSeek vs. ChatGPT vs. Claude: A Comparative Study for Scientific Computing and Scientific Machine Learning Taskscited by 12
- 2024Explain Like I'm Five: Using LLMs to Improve PDE Surrogate Models with Textcited by 7
- 2024Density estimation with LLMs: a geometric investigation of in-context learning trajectoriescited by 6
- 2023Fine-Tune Language Models as Multi-Modal Differential Equation Solverscited by 4
- 2025Pre-trained Large Language Models Learn Hidden Markov Models In-contextcited by 4
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2026The Shape of Beliefs: Geometry, Dynamics, and Interventions along Representation Manifolds of Language Models' Posteriorscited by 15
- 2026PDEAgent-Bench: A Multi-Metric, Multi-Library Benchmark for PDE Solver Generationcited by 8
- 2026OpInf-LLM: Parametric PDE Solving with LLMs via Operator Inferencecited by 5
- 2025PiERN: Token-Level Routing for Integrating High-Precision Computation and Reasoningcited by 0
- 2025Decoding Partial Differential Equations: Cross-Modal Adaptation of Decoder-only Models to PDEscited by 0
- 2026A Graph Signal Processing Perspective on Numerical Sequence Representations in LLM In-Context Learningcited by 0
- 2026Large language models for partial differential equation workflowscited by 0
- 2026Large language models for partial differential equation workflows4 Aug 2026
- 2026A Graph Signal Processing Perspective on Numerical Sequence Representations in LLM In-Context Learning4 Aug 2026
- 2026PDEAgent-Bench: A Multi-Metric, Multi-Library Benchmark for PDE Solver Generation10 May 2026
- 2026The Shape of Beliefs: Geometry, Dynamics, and Interventions along Representation Manifolds of Language Models' Posteriors2 Feb 2026
- 2026OpInf-LLM: Parametric PDE Solving with LLMs via Operator Inference2 Feb 2026
- 2025Decoding Partial Differential Equations: Cross-Modal Adaptation of Decoder-only Models to PDEs6 Oct 2025
- 2025PiERN: Token-Level Routing for Integrating High-Precision Computation and Reasoning17 Sep 2025