TL;DR
This paper demonstrates that providing plain-text descriptions of physical systems—covering governing equations, boundary conditions, numerical coefficients, and qualitative physical intuition—substantially improves neural partial differential equation (PDE) surrogate models. By injecting frozen language model embeddings into the FactFormer neural operator via cross-attention, the proposed multimodal framework slashes long-term rollout errors by over 60% compared to purely data-driven baselines.
What Problem Does This Paper Address?
Traditional numerical PDE solvers are computationally expensive and struggle to generalize across different operating regimes (e.g., transitioning from laminar to turbulent flow). While machine learning surrogates like Neural Operators (such as Fourier Neural Operators or FactFormer) offer fast inference, they are almost exclusively purely data-driven: they map numerical fields to numerical fields without awareness of underlying system metadata.
In practice, a single observational snapshot rarely contains enough signal to infer boundary condition types, forcing terms, or diffusion/advection coefficients. Existing methods to inject this auxiliary metadata often rely on rigid, specialized multi-layer perceptron (MLP) encoders that lack flexibility across diverse equations and geometries. This paper investigates whether pretrained Large Language Models (LLMs) can naturally bridge this gap by encoding diverse mathematical and physical metadata described in natural language.
Methods
The authors introduce Multimodal FactFormer, which conditions a neural operator on textual system descriptions:
- Text Encoders: Text descriptions are processed using frozen pretrained language models—comparing SentenceTransformer (
all-mpnet-base-v2) and Llama 3.1 (8B). SentenceTransformer yields a pooled sentence embedding, while Llama embeddings are averaged across token positions. A lightweight MLP projection head maps these sentence embeddings to match the neural operator’s patch dimensions. - Cross-Attention Conditioning: The core surrogate backbone is FactFormer (a factorized attention operator). The framework projects input 2D scalar fields into patch embeddings via convolution. It then applies cross-attention blocks where the text embeddings act as queries ($Q$) and the spatial data embeddings act as keys ($K$) and values ($V$). The resulting multimodal embedding is de-convolved and added back as a residual connection both before and after FactFormer’s factorized attention layers.
- Prompt Hierarchy: Descriptions test four levels of information:
- Basic: Equation name and classification (e.g., "quasilinear hyperbolic PDE").
- Boundary Conditions (B): Type (Dirichlet, Neumann, Periodic) and numerical values.
- Coefficients (C): Exact parameter values (viscosity $\nu$, diffusion $\beta$, advection $\alpha$).
- Qualitative Physics (Q): Domain intuitions (e.g., "advection dominated... predicted state should develop shocks").
Datasets
The authors generated challenging 2D datasets with varied initial conditions, coefficients, and boundary conditions (unlike standard benchmarks that keep boundary conditions and coefficients fixed):
- 2D Heat Equation: Parabolic diffusion on a $64 \times 64$ grid with varying diffusion rates and Dirichlet, Neumann, or periodic boundary conditions.
- 2D Burgers' Equation: Hyperbolic conservation law with variable advection and diffusion terms.
- 2D Incompressible Navier–Stokes: Vorticity-stream formulation with varied viscosities and forcing amplitudes.
- 2D Shallow Water Equations: Taken from PDEBench (radial dam-break benchmark with Neumann boundary conditions), used primarily for transfer learning and fine-tuning.
Key Insights and Ideas
- Sentence-level models beat raw LLMs: SentenceTransformer consistently outperformed Llama 3.1 8B. Pooling across all token states in an autoregressive LLM blurs subtle numerical or parameter distinctions, whereas sentence-embedding models are explicitly trained to represent coherent sentence semantics in a structured metric space.
- Qualitative intuition acts as an effective inductive bias: Supplying subjective cues (e.g., noting that a regime will be "chaotic" or "smoother than inputs") improves accuracy alongside exact numbers. This allows models to leverage human physical heuristics without requiring hard-coded loss penalties.
- Latent space structuring: t-SNE visualizations reveal that adding textual boundary and coefficient details organizes the model’s latent space into distinct, continuous physical regimes, smoothing the operator learning landscape.
Key Results
- Next-Step Prediction: FactFormer paired with SentenceTransformer reduced relative $L^2$ error by an average of 21.4% across all datasets in standard training and 20.6% in transfer learning settings relative to the text-free baseline.
- Autoregressive Rollout (40-step extrapolation): SentenceTransformer + FactFormer reduced accumulated rollout Mean Squared Error (MSE) by 64.2% under standard training and 84.7% in transfer learning. For Burgers' equation under transfer learning, accumulated MSE dropped from $12.17 \times 10^2$ (baseline) down to $0.85 \times 10^2$.
- Data Scaling: Multimodal conditioning consistently improved sample efficiency, maintaining a performance advantage even as training dataset sizes increased from 50 to 4,000 trajectories per equation.
Limitations and Future Work
- Frozen Language Models: The LLMs were strictly frozen to minimize compute; task-specific prompt tuning or parameter-efficient fine-tuning (e.g., LoRA) was not explored.
- Rollout Instabilities in Transfer Learning: For the Shallow Water benchmark, autoregressive rollouts showed high variance and numerical instability during transfer learning due to extremely low initial training loss values.
- Architecture Scope: Experiments were exclusively built atop FactFormer; generalizing the cross-attention text block to other neural operators (such as FNO or DeepONet) remains open for validation.
Summary updated