arXiv:2608.25189cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25189

What Should a Large Language Model See? Physical Invariants as a Data Representation for PDE Discovery

Fan Yang, Matt Thomson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Understanding how molecular interactions govern macroscopic behaviour is a central challenge in molecular sciences. However, conventional theory building cannot keep pace with the vast datasets modern experimentation routinely produces. Large language models offer a promising route to automating theory construction, but a spatiotemporal field cannot be directly placed in a prompt. Existing models generally learn about the data only through a score measuring how well each proposal fits it. Here we introduce data interpretation, a stage that measures the field into the quantities a theorist would consult and supplies them to the model as a direct input. On a benchmark of simulated fields, interpretation nearly triples the accuracy of recovered equations relative to showing the raw data, at negligible computational cost and without any training. By allowing a language model to read field data as a theorist does, data interpretation offers a practical route to automated field theory construction that can coevolve with experimentation.

1 Introduction

Today, deriving a theoretical model for a complex chemical system typically requires months to years of specialized expertise, while experimentalists can routinely generate thousands of distinct systems by varying and recombining molecular components. This gap arises from the bottleneck of human bandwidth. Conventional modeling approaches fall into two categories: bottom-up methods that coarse-grain microscopic interactions through kinetic theory into continuum field equations, and top-down methods that enumerate all symmetry-permitted terms without reference to molecular details. Both approaches are slow, expertise-dependent, and unable to match the volume and complexity of data that modern experimentation now routinely produces. AI, with its capacity for pattern recognition, feature extraction, and learning complex mappings across scientific domains, offers a compelling path toward automating this theory-building process — at the scale and speed that molecular sciences now critically demand.

In this paper, we focus on automating the top-down approach: recovering partial differential equation (PDE)-based field theories from data. This is an important task in scientific machine learning, and the dominant formulation has been sparse regression. SINDy [1] and PDE-FIND [2] assemble a library of candidate terms into a design matrix, apply numerical regression to find the best-fit candidates, and use a sparsity penalty to limit the length of PDEs. However, this approach is limited by the library of derivative candidates, as the PDE terms must lie within the library written down in advance.

Symbolic regression removes the library constraint at the cost of a combinatorial search. Recent progress shows that pretrained large language models (LLMs), equipped with strong scientific reasoning capabilities, have great potential as the proposal mechanism for symbolic regression.

*fy2@caltech.edu

Preprint.

FunSearch [3] established the scheme of an LLM proposing candidates, a numerical evaluator scoring them, and an evolutionary algorithm driving iterative refinement. LLM-SR [4] applied this LLM-guided evolutionary approach to scientific equation discovery. Since then, many methods have been proposed to refine either the search or the feedback signal: in addition to evolving the equations, LASR [5] also evolves a library of hypotheses that can guide the equation discovery; DrSR [6] adds a data analysis LLM to learn data insights, and reflective feedback to store reusable strategies; IGSR [7] expands the evaluation metrics by scoring per-term influence inside a tree search; LLM-ACES [8] incorporated active data acquisition to better evaluate and evolve candidate hypotheses; MARICL [9] applies agents to read high-error examples from a base model and propose improvements. These methods share a core architecture, shown in black in Fig. 1. A pre-trained LLM proposes an equation, a numerical evaluator evaluates it, and the resulting score returns to the LLM to generate new candidates in a loop. Within this architecture, the LLM proposes the symbolic equation structures, while numerical regression fits only the coefficients of the proposed PDE structure. Such a division of labor eliminates the need for a predefined library for PDE term candidates. Effort in the field has mainly concentrated on the evaluator and the search, through improved differentiation schemes, residual formulations, credit assignment, and exploration strategies.

We focus on a distinct aspect that has received less attention: how the data is represented to the LLM. We are motivated by how human theorists build theories from field data — by identifying salient structures in the data. For example, an experienced theorist knows that a shock wave indicates a strong convection effect, and that a Turing pattern signals a diffusion-reaction system. Neither inference requires numerical values of the field, only an interpretation of its pattern. We therefore propose supplying such an interpretation stage to the model as an input in its own right, rather than solely relying on the evaluator.

Figure

Figure 1: Architecture of symbolic regression to discover PDE-based field theory from data. Established methods pair an LLM with an evaluator: the LLM proposes a candidate equation, and the evaluator fits its coefficients and returns a score. Because the field data typically cannot be placed in a prompt, that score is what informs the LLM about the data. We contribute two interpretation stages, shown in green. Data interpretation measures the observed field into physical quantities a theorist would compute. In our ongoing work, we apply residual interpretation to analyze what a proposal failed to explain. No training is required in this pipeline.

We introduce a stage called data interpretation, whose output is supplied directly to the LLM, as shown in green in Fig. 1. Feeding the raw field data to the LLM is prohibitively expensive, so most existing research uses it only within the evaluator. Data interpretation instead lets the LLM read the data as a theorist does. A set of measurements is computed and supplied as evidence, chosen to be the quantities a theorist would consult when encountering an unfamiliar field. These diagnostics are cheap and compact: they take a small fraction of the time for a single model call, and occupy fewer tokens than the raw data they replace. They are also interpretable, so what the LLM was told can be audited by both human and AI. The present work implements a deliberately small set of diagnostics, which are sufficient to test the efficacy of the proposal rather than to exhaust it. In our future work, we will extend the interpretation module with more comprehensive diagnostics.