LeMON: Learning to Learn Multi-Operator Networks

Jingmin Sun, Zecheng Zhang, Hayden SchaefferarXiv 2024 · DOI

Introduction

Scientific Machine Learning (SciML) has made significant strides with the development of Neural Operators, such as Fourier Neural Operators (FNO) and DeepONet. These models are designed to map initial conditions to solutions for specific Partial Differential Equations (PDEs). However, a major bottleneck remains: generalization. Most existing neural operators are "single-operator" learners, meaning a model trained on fluid dynamics cannot easily adapt to wave equations without extensive retraining.

LeMON (Learning to Learn Multi-Operator Networks) addresses this gap by introducing a meta-learning framework that enables neural operators to generalize across diverse physical systems. By "learning to learn" from a wide variety of PDE families, the framework allows models to solve entirely new physics problems with minimal data.

The LeMON Framework

The core of the LeMON approach is the application of Model-Agnostic Meta-Learning (MAML) to neural operator architectures. Instead of training a model to solve a single PDE, LeMON trains the model to find a "meta-initialization"—a set of weights that are highly sensitive to task variations. This allows the model to adapt to a new, unseen PDE in just a few gradient steps, referred to as the "inner loop."

The LeMON meta-learning framework, showing the inner loop for task-specific adaptation and the outer loop for meta-parameter updates.

As shown in the framework diagram, the process involves sampling an operator (a task), using a support set for inner-loop learning to generate task-specific parameters, and then evaluating on a query set to update the global meta-parameters. This architecture-agnostic wrapper can be applied to existing models like DeepONet, FNO, or Transformer-based operators.

Symbolic-Aware Adaptation (LeMONS)

To further enhance adaptation, the authors introduced LeMONS (Symbolic-Aware LeMON). This version incorporates a Symbolic Operator Encoding module that processes the mathematical expression of the PDE (e.g., $u_t + u u_x = \nu u_{xx}$) into a tree-structured embedding.

Comparison of architectural variants: (a) standard fusion of data and symbol encoders, and (b) the LeMONS approach where the symbol encoder predicts a task-specific inner loop learning rate.

Unlike standard fine-tuning, which uses a fixed learning rate, LeMONS uses the symbolic embedding to predict a task-specific learnable learning rate for the inner loop. This allows the model to dynamically adjust how aggressively it updates its weights based on the specific physics of the problem at hand. As illustrated in the architectural comparison, while the data encoder and decoder are updated in both loops, the symbolic encoder remains frozen during the inner loop, focusing its influence on the learning rate modulation.

Experimental Results

The framework was evaluated using a massive collection of 19 PDE families, including classic equations (Advection, Diffusion, Wave), complex systems (KdV, Cahn-Hilliard), and various conservation laws.

Key Findings:

  • Few-Shot Generalization: On the Sine-Gordon equation, LeMONS achieved a 2.75% relative error with only 100 data samples. In comparison, training from scratch on the same data resulted in a 25.2% error.
  • Diversity Over Volume: Training on a wide variety of physics (e.g., 18 different families) proved more effective for generalization than training on a larger volume of data from a single, structurally similar family. Diversity forces the model to learn shared physical features.
  • Stabilizing Operators: Fourier Neural Operators (FNO), which often struggle to adapt to new tasks, saw a significant stability boost. On the Klein-Gordon equation, LeMONS reduced FNO's error from 48.5% to 3.9%.

Limitations and Future Outlook

While powerful, the meta-learning approach comes with a higher computational cost; LeMON training took approximately 6 hours compared to 1 hour for standard pre-training. Additionally, LeMONS currently requires the symbolic form of the PDE to be known during adaptation.

Future research aims to integrate symbolic discovery, allowing models to potentially uncover the symbolic form of an operator from data while simultaneously learning to solve it. This would move SciML closer to a true "foundation model" for the physical sciences, capable of handling black-box scenarios where the underlying equations are unknown.

Summary updated

BibTeX
@misc{sun2024lemon,
  author = {Jingmin Sun and Zecheng Zhang and Hayden Schaeffer},
  title = {{LeMON: Learning to Learn Multi-Operator Networks}},
  year = {2024},
  eprint = {2408.16168},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.16168},
}
Figure