Abstract
Traditional operator learning methods often require retraining for each new physical system. This paper introduces ICON-LM, a multi-modal framework that treats operator learning as an in-context task for Large Language Models (LLMs). By integrating textual descriptions, LaTeX equations, and numerical sensor data, ICON-LM achieves superior performance in solving differential equations, enabling zero-shot scientific discovery and efficient few-shot learning.
Introduction
In scientific machine learning, operator learning aims to map input functions to output functions, such as initial conditions to the solution of a partial differential equation (PDE). Conventional approaches like DeepONets or Fourier Neural Operators (FNOs) are typically "operator approximators," specialized for a single equation and requiring extensive retraining for new systems.
A more flexible paradigm, In-Context Operator Learning (ICON), views the model as an "operator learner" that infers physics from a few examples during inference. However, previous ICON models were restricted to numerical data. This work introduces ICON-LM, which bridges this gap by incorporating natural language and mathematical equations, allowing models to leverage human knowledge alongside raw data.
Methodology
ICON-LM adapts the architecture and training objectives of Large Language Models to continuous mathematics. The framework utilizes a multi-modal input structure consisting of textual and data prompts.
Multi-Modal Architecture
The model processes two primary input types:
- Textual Prompts (Captions): These include natural language descriptions or LaTeX equations that define the physical system (e.g., specific PDEs and boundary conditions).
- Data Prompts: These consist of key-value pairs representing discrete samples of function inputs and outputs.
Training and Inference
Instead of an encoder-decoder architecture, ICON-LM employs a single transformer trained with a "next-function prediction" objective. The model predicts the solution for a new query based on preceding examples and the provided caption. A specialized attention mask ensures permutation invariance within data points while maintaining the autoregressive structure across examples.
Experimental Setup
The model was evaluated on a benchmark of 19 operator learning problems, covering forward and inverse ODEs, PDEs (e.g., Poisson, reaction-diffusion), and mean-field control. The dataset comprised 1,000 operators per problem type. Captions were generated using GPT-4, ranging from "vague" (general system type) to "precise" (exact parameter values).
Results and Discussion
ICON-LM demonstrates significant improvements in both accuracy and data efficiency compared to existing methods.
Key Findings
- Zero-Shot Capabilities: With precise captions, ICON-LM achieves a relative testing error of 2.44% across all problems without any numerical examples, effectively performing zero-shot learning.
- Few-Shot Efficiency: The model consistently outperforms the baseline ICON across all problem types, maintaining low error rates even with as few as five examples.
- Architectural Efficiency: Despite having half the parameters (15.8M vs 31.6M) of the original ICON, ICON-LM achieves superior results, highlighting the efficiency of the autoregressive transformer for mathematical tasks.
- Impact of Pretraining: Fine-tuning a pretrained GPT-2 model yielded better results than training from scratch, suggesting that structural patterns learned from natural language facilitate scientific reasoning.
Conclusion
ICON-LM represents a step toward "Foundation Models for Science" by unifying natural language and numerical simulation. While the model currently relies on point-based function representations and high-quality captions, its ability to generalize across diverse physical systems makes it a powerful tool for practical engineering. Future work will explore more complex function representations and reducing the computational cost of training.
Summary updated