arXiv:2610.13334cs.LGOct 2026

Manuscript Offprint

arXiv:2610.13334

PDE-PFN: Prior-Data Fitted Neural PDE Solver

Jaehyeon Park, Mingu Kang, Dongseok Lee, Woojin Cho, Kookjin Lee, Anthony Gruber, Youngjoon Hong, Noseong Park

Abstract

Motivated by the success of large language models (LLMs) with broad generalizability and robustness to noisy or unreliable pre-training data, we explore in-context prediction of PDE solution fields using approximate pre-training data. In addition, inspired by the posterior predictive mean-based inference mechanism of the in-context learning in prior-data fitted networks (PFNs), we propose PDE-PFN, a prior-data fitted neural solver that approximates the posterior predictive mean of PDE solutions via in-context learning. PDE-PFN builds on a PFN architecture with self- and cross-attention mechanisms of Transformer and is pre-trained on noisy approximate solutions generated by physics-informed neural networks, serving as diverse but not necessarily exact priors. Through experiments on a range of two-dimensional PDEs, we demonstrate that PDE-PFN achieves empirical generalization across heterogeneous equations, robustness under noisy priors, and zero-gradient-update in-context inference capability. PDE-PFN achieves competitive or improved predictive accuracy relative to the evaluated baselines while supporting flexible context and query representations.

Figure

Figure 1: The overall workflow of PDE-PFN. Our model performs in-context learning (ICL) based on given observations (i.e., context) to infer solutions. At inference, PDE-PFN conditions on observations from the target instance without separate operator-level demonstrations or target-instance gradient updates. Even when trained with an approximated PINN prior, our method can improve over noisy approximate pretraining data.

1 Introduction

Partial differential equations (PDEs) have long been at the core of scientific and engineering research, as they provide a mathematical description of the fundamental laws governing diverse natural

∗^{*}Corresponding Authors

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

and engineered systems. With recent advances in machine learning, scientific machine learning (SciML) [42, 59, 46, 23, 9] has emerged as a promising paradigm for solving PDE-related problems.

Within the trend of SciML, there are two conventional approaches: physics-informed neural network (PINN)-based models [42, 45, 62, 31, 66] and operator-based models [27, 28, 51, 14]. PINNs embed a given physical law into a model by minimizing PDE residuals during training, without requiring large labeled datasets. Neural operator-based models learn mappings between infinite-dimensional function spaces given a target operator. While they are mostly general, some operator models require a fixed grid (or a pre-specified coordinate system).

In recent years, large language models (LLMs) have revolutionized natural language processing by introducing highly flexible and scalable architectures [5, 21, 50, 11, 10]. Motivated by the success of LLMs in enabling broad task generalization, scientific foundation models (SFMs) [30, 63, 61, 68] have recently been proposed. These models are typically pre-trained on a wide range of PDEs and subsequently fine-tuned for diverse downstream tasks, extending their applicability beyond the narrow scope of conventional neural operators.

Although SFMs represent a meaningful advance by enabling generalization across different PDEs, they continue to inherit other fundamental drawbacks from their backbones. In particular, they lack robustness to noisy input and impose input rigidity, often constraining data to uniform grids or fixed spatial locations. To address these limitations, we draw inspiration from prior-fitted networks (PFNs) [33], which implicitly utilizes the posterior predictive distribution (PPD) conditioned on prior information. Building on this idea, we propose PDE-PFN, a new SciML method that adopts a PFN architecture grounded in in-context learning. PDE-PFN uses PFN-style prior fitting to learn context-conditioned predictions, with experiments evaluating within-family task and coefficient generalization, cross-PDE transfer after fine-tuning, and flexible context/query inputs. The PPM perspective characterizes the population target of the MSE objective, while robustness to imperfect priors is evaluated empirically and supported theoretically only under the stated noise assumptions.

Within-family generalization and cross-PDE transfer We first evaluated the proposed method on the convection–diffusion–reaction (CDR) equations, a standard benchmark for parameterized PDEs. Our model exhibited strong task generalizability, successfully handling diverse tasks across both parameter and spatiotemporal domains without requiring task-specific fine-tuning. In addition, the CDR-pre-trained model demonstrated cross-PDE transfer after fine-tuning on downstream datasets using a reduced training schedule. Across the evaluated settings, PDE-PFN achieved competitive or improved predictive accuracy relative to task-specific baselines and fine-tuned scientific foundation models.

Flexibility on input shape without prior physical knowledge Our method advances SciML by removing two key constraints that limit existing approaches. First, it predicts solutions directly from observed quantities, such as velocity and pressure, without requiring access to symbolic equation information at inference time. This feature is particularly important in real-world applications where the underlying equations are incomplete or entirely unknown [6, 44, 3, 36, 25]. Excluding explicit equations from the input is thus an intentional design choice that broadens applicability across diverse domains. Second, in complex systems such as semiconductor manufacturing, observational data are often collected from irregularly distributed sensors rather than uniform grids [34, 41, 6]. In such settings, the ability to handle inputs of arbitrary shape is essential. Our model accepts variable-sized sets of coordinate-value observations and allows target coordinates to be specified as queries. Together, these properties support flexible prediction from pointwise observations without requiring a fixed observation grid. A detailed comparison with existing baselines is provided in Table 7 of Appendix D.

Robustness to noisy prior data (or pre-training data) For LLMs, one of the most challenging steps is collecting prior data, which typically involves crawling and cleaning sentences from the Internet. However, this process is far from perfect due to two key issues: (i) the Internet, as a data source, is inherently unreliable; and (ii) cleaning such vast amounts of data requires significant manual effort. Consequently, LLMs are often trained on incomplete or imperfect prior data but show surprising outcomes. This realistic yet critical issue has been largely overlooked in the literature on SFMs, despite their similarities to LLMs. In this work, we investigate PFN-style pre-training on approximate PINN solutions and demonstrate strong predictive performance in the evaluated noisy-prior settings.

Zero-gradient-update in-context inference Within the CDR evaluations, a single pre-trained PDE-PFN checkpoint predicts query values from observed context without task-specific gradient updates or fine-tuning. The key property is that PDE-PFN adapts to the target PDE instance only through in-context conditioning. Compared with in-context operator-learning approaches such as ICON-LM [64], which require separate task/operator-level “demos” 1^{1} before prediction, PDE-PFN uses only available observations as the conditioning context and does not require an additional demonstration set or parameter update. This makes the inference procedure suitable for settings where irregularly sampled observations are available but retraining or collecting separate demos for each target operator is impractical.

References (58)