Compositional Meta-Learning for Mitigating Task Heterogeneity in Physics-Informed Neural Networks

Beomchul Park, Minsu Koh, Heejo Kong, Seong-Whan LeearXiv 2026 · DOI

TL;DR

The authors introduce LAM-PINN, a compositional meta-learning framework designed to tackle task heterogeneity in Physics-Informed Neural Networks (PINNs). By probing tasks with brief transfer sessions to measure "learning affinity," LAM-PINN clusters similar partial differential equation (PDE) configurations and routes them through specialized modular subnetworks, reducing error on unseen tasks by nearly 20-fold while using a fraction of the training time.

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs) have revolutionized how we approximate solutions to partial differential equations (PDEs) by embedding physical laws directly into the neural network's loss function. However, real-world engineering workflows rarely demand a solution to just one PDE; instead, engineers explore families of parameterized PDEs where coefficients, initial conditions, or boundary conditions vary across different "tasks."

Training a separate PINN from scratch for every single configuration is computationally brutal. While standard meta-learning methods attempt to alleviate this by finding a single global initialization (like MAML) for rapid adaptation, they suffer from negative transfer when tasks are highly heterogeneous—meaning a single initialization cannot accommodate vastly different physical behaviors. To make matters worse, PINNs typically take only coordinate inputs $(x, y, t)$, which lack rich features to help the network differentiate between tasks.

Figure 1: Transfer performance differences of pre-trained models on distinct unseen tasks high-

Methods

The authors propose LAM-PINN (Learning-Affinity Adaptive Modular Physics-Informed Neural Network), a framework that breaks down the problem into four main phases:

  1. Task Generation via DoE: They use a 3-factor, 3-level full-factorial Design of Experiments (DoE) to systematically generate a diverse and representative set of 27 training tasks.
  2. Learning-Affinity Probing: To overcome feature-scarce coordinate inputs, they run a very brief transfer session (<5% of full convergence) using a pre-trained reference network on each task. They collect early-stage loss dynamics (initial, final, and average loss) and combine them with PDE parameters to create a robust task embedding, which is then grouped using $k$-means clustering.
  3. Modular Architecture: Instead of a single global network, LAM-PINN splits the architecture. Early, input-adjacent layers are parallelized into multiple cluster-specific Input Networks (INs), while deeper layers are shared as a global Meta Network (MN).
  4. Two-Phase Meta-Training & Adaptive Routing: They first train the INs individually on their respective task clusters to capture specialized features. Then, they freeze the INs and train the MN to generalize across all tasks. During transfer to an unseen task, learnable routing weights ($\lambda$) dynamically adjust to blend the contributions of the specialized subnetworks.
Figure 2: Conceptual diagram of the proposed method in parameter space. Boxes represent the

Datasets

The framework was evaluated on three distinct PDE benchmarks generated via the DoE protocol:

  • 2D Helmholtz Equation: A classic wave equation benchmark.
  • 1D Burgers' Equation: A fundamental PDE modeling fluid dynamics and shock waves.
  • Linear Elasticity Equation: Evaluated on both a standard quarter-symmetric plate and a more complex, geometrically irregular plate featuring a central circular hole to test stress concentration.

Key Insights and Ideas

  • Early Layers Drive Transfer: By tracking layer-wise weight magnitudes and performing layer-freezing experiments, the authors discovered that the early, input-adjacent layers in coordinate-based neural fields stabilize rapidly and capture coarse spatial structures. Deeper layers are responsible for fine-tuning details. This justifies modularizing only the early layers.
  • Loss Dynamics as a Proxy for Task Identity: Since coordinate inputs provide no task-discriminative information, parameter-only descriptors fail. Probing the network with short training runs exploits the "spectral bias" of neural networks (learning low frequencies first), revealing structural similarities between tasks before full training.
  • Selective Reuse over Global Initialization: Moving away from a single "one-size-fits-all" initialization prevents negative transfer by allowing the network to dynamically shift its starting point in parameter space toward the target task cluster.

Key Results

  • Massive Error Reduction: LAM-PINN achieved an average 19.7-fold reduction in mean squared error (MSE) on unseen tasks compared to conventional PINN baselines.
  • High Efficiency: It achieved these results using only 10% of the training iterations typically required by standard PINNs.
  • Outperforming Baselines: It consistently beat state-of-the-art meta-learning and auxiliary-network baselines (like MAML, ConML, MAD, and Hyper-LR-PINN) across all benchmarks.
  • Simpler and Leaner: Compared to hypernetwork-based approaches, LAM-PINN uses a 50-fold smaller computational budget and up to 76% fewer parameters than competing parameter-encoder methods ($P^2$INN), while delivering a 73.3% lower MSE on linear elasticity tasks.

Limitations and Future Work

  • Out-of-Distribution (OOD) Degradation: While LAM-PINN excels at interpolation within the bounded design space, its performance degrades noticeably during strong extrapolation (e.g., extending parameters to 130% of the DoE boundary). This happens because it relies on a finite set of cluster-specialized modules that cannot represent entirely new physical regimes.
  • Manual Cluster Selection: The number of clusters ($K$) must still be chosen manually by balancing cluster separation and stability. The authors suggest that future work could integrate probabilistic formulations (like Bayesian mixture models) to automate cluster selection.
  • Complex Geometries: Scaling to highly intricate industrial shapes remains a challenge, which might require combining LAM-PINN with coordinate transformations or localized feature encodings.

Summary updated

BibTeX
@misc{park2026compositional,
  author = {Beomchul Park and Minsu Koh and Heejo Kong and Seong-Whan Lee},
  title = {{Compositional Meta-Learning for Mitigating Task Heterogeneity in Physics-Informed Neural Networks}},
  year = {2026},
  eprint = {2604.26999},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.26999},
}

Loading related content...

Figure