Kolmogorov n-widths for multitask physics-informed machine learning (PIML) methods: Towards robust metrics

Michael Penwarden, Houman Owhadi, Robert M. Kirby

TL;DR

This paper introduces Kolmogorov n-widths as a rigorous, objective metric to benchmark multitask Physics-Informed Machine Learning (PIML) models. By shifting focus from average performance on a few samples to the "worst-case" approximation error across an entire solution manifold, the authors provide a way to expose overfitting and improve model generalization through a novel tri-optimization regularization scheme.

What Problem Does This Paper Address?

Physics-Informed Machine Learning (PIML), particularly Physics-Informed Neural Networks (PINNs), has revolutionized how we solve partial differential equations (PDEs) by embedding physical laws directly into the loss function. However, as the field moves toward multitask learning—where a single model is trained to solve a whole family of PDEs (e.g., varying initial conditions or parameters)—evaluation becomes tricky.

Currently, researchers often report the mean error over a small, discretely sampled set of tasks. The authors argue this is problematic for two reasons:

  1. Selective Sampling Bias: A model might perform exceptionally well on the chosen test cases but fail on others in the same family.
  2. Lack of Lower Bounds: There is no standard way to determine the "worst-case" scenario for a model's learned basis functions, making it hard to compare different architectures like Multihead PINNs and DeepONets objectively.
PIML exists on a spectrum between pure data-driven regression and pure physics-based modeling.

Methods

The core innovation is applying the Kolmogorov n-width ($\mathcal{K}$) from approximation theory to PIML. In simple terms, it measures how well the best possible $n$-dimensional subspace (the basis functions learned by the neural network) can approximate the "most difficult" solution in a target manifold.

The authors propose two main applications:

  1. A Metric for Analysis: They use a two-step optimization. First, they train a multitask PIML model. Second, they perform a "bi-optimization" (a min-max game) to find the specific PDE solution in the manifold that the model's learned basis functions struggle with the most.
  2. A Regularizer for Training: They introduce a tri-optimization procedure (Algorithm 2). During training, the model doesn't just minimize physics residuals; it also minimizes the Kolmogorov n-width. This forces the network to learn a "richer" set of basis functions that are robust across the entire problem space, not just the training samples.

The study compares two primary multitask architectures:

  • Multihead PINNs (MH-PINNs): A shared "body" learns basis functions, while task-specific "heads" learn the coefficients.
  • Physics-Informed DeepONets (PI-DONs): An operator-learning approach where a "trunk" network learns basis functions and a "branch" network predicts coefficients based on input functions.
Comparison of MH-PINN and PI-DON architectures, highlighting how they separate basis functions ($\phi_i$) from coefficients ($c_i$).

Datasets

The authors utilized the Method of Manufactured Solutions to create synthetic but challenging multitask benchmarks:

  • 1D Poisson Equation: A family of solutions constructed from a sum of five sine functions with random coefficients.
  • 2D Nonlinear Allen-Cahn Equation: A stationary version of this classic phase-separation model, again using a manifold of sine-based solutions to test high-frequency generalization.

These datasets were specifically designed to include high-frequency components, which are notoriously difficult for standard neural networks to capture due to "spectral bias."

Key Insights and Ideas

  • The "Sampled Mean" is Deceptive: A model might show a low average error on training tasks, but its Kolmogorov n-width can be an order of magnitude higher. This indicates the model has overfit to the samples and lacks a truly generalizable basis.
  • Activation Functions Matter: The choice of activation function (e.g., tanh vs. sine) has a dramatic impact on the "worst-case" performance. While tanh is standard, sine activations generalized significantly better to high-frequency "worst-case" scenarios.
  • Regularization Improves Basis Richness: By adding the $\mathcal{K}$ term to the loss, the model is forced to utilize its neurons more effectively. Visualizations of the learned basis functions showed that regularized models produced unique, complex features, whereas unregularized models often had redundant or "dead" neurons.

Key Results

  • Exposing the Gap: For the 1D Poisson problem using tanh activations, the MH-PINN had a mean sampled error of ~0.015, but a Kolmogorov n-width of 0.301. This 20x gap highlights how much performance can degrade in non-sampled regions of the solution space.
  • Regularization Success: Adding the $\mathcal{K}$ regularizer to the MH-PINN (sine) reduced the n-width from 0.019 to 0.008, effectively halving the worst-case error.
  • Architecture Benchmarking: PI-DONs achieved incredibly low sampled errors (e.g., 0.020 for 2D Allen-Cahn) but had high n-widths (0.347). This suggests that while DeepONets are powerful operators, their learned basis functions may be more prone to overfitting than those in MH-PINNs.
Competitive optimization results showing the model (solid red) attempting to fit the "worst-case" target solution (dashed black).

Limitations and Future Work

The authors acknowledge that their current work relies on manufactured solutions where the ground truth is known analytically. For real-world engineering applications, they suggest using high-fidelity numerical methods like the Finite Element Method (FEM) to provide the reference solutions for the n-width calculation.

Future research directions include:

  • Applying these metrics to more complex, time-dependent problems like Darcy flow.
  • Investigating the effect of other PIML enhancements, such as Fourier feature embeddings or adaptive activation functions, through the lens of Kolmogorov n-widths.
  • Scaling the tri-optimization procedure to handle high-dimensional PDEs more efficiently.

Summary updated

BibTeX
@article{penwarden2024kolmogorov,
  author = {Michael Penwarden and Houman Owhadi and Robert M. Kirby},
  title = {{Kolmogorov n-widths for multitask physics-informed machine learning (PIML) methods: Towards robust metrics}},
  journal = {Neural Networks},
  year = {2024},
  doi = {10.1016/j.neunet.2024.106703},
}
Figure