Kolmogorov n-Widths for Multitask Physics-Informed Machine Learning (PIML) Methods: Towards Robust Metrics

Michael Penwarden, Houman Owhadi, Robert M. Kirby · OpenReview

Abstract

Physics-informed machine learning (PIML) as a means of solving partial differential equations (PDE) has garnered much attention in the Computational Science and Engineering (CS&E) world. This topic encompasses a broad array of methods and models aimed at solving a single or a collection of PDE problems, called multitask learning. PIML is characterized by the incorporation of physical laws into the training process of machine learning models in lieu of large data when solving PDE problems. Despite the overall success of this collection of methods, it remains incredibly difficult to analyze, benchmark, and generally compare one approach to another. Using Kolmogorov n-widths as a measure of effectiveness of approximating functions, we judiciously apply this metric in the comparison of various multitask PIML architectures. We compute lower accuracy bounds and analyze the model's learned basis functions on various PDE problems. This is the first objective metric for comparing multitask PIML architectures and helps remove uncertainty in model validation from selective sampling and overfitting. We also identify avenues of improvement for model architectures, such as the choice of activation function, which can drastically affect model generalization to "worst-case" scenarios, which is not observed when reporting task-specific errors. We also incorporate this metric into the optimization process through regularization, which improves the models' generalizability over the multitask PDE problem.

Introduction: The Validation Crisis in PIML

Physics-Informed Machine Learning (PIML), particularly Physics-Informed Neural Networks (PINNs), has emerged as a powerful paradigm for solving partial differential equations (PDEs) by embedding physical constraints directly into the loss function. However, as the field moves toward multitask learning—where models like DeepONets are trained to solve entire families of PDEs—a "validation crisis" has emerged. Standard evaluation practices typically report average errors across a small set of discretely sampled tasks. This approach can be deceptive; a model may perform exceptionally well on specific training samples while failing catastrophically on "worst-case" scenarios within the same problem manifold. There is a critical need for objective, robust metrics that quantify a model's fundamental capacity to represent the entire solution space.

Methodology: Kolmogorov n-Widths and Multitask Architectures

To address this gap, we propose the use of Kolmogorov n-widths, a concept from approximation theory. The n-width measures how well an $n$-dimensional subspace—in our case, the basis functions learned by a neural network—can approximate a target set, which is the manifold of all possible PDE solutions.

Geometric representation of the approximation error between the solution manifold $\mathcal{M}$ and the learned subspace.

Numerical Metric and Regularization

We introduce two primary technical contributions:

  1. Numerical n-Width Metric: We approximate the n-width through a bi-optimization procedure. By freezing the learned basis functions of a trained model, we search for the most challenging problem instance in the solution space that the model approximates most poorly.
  2. Kolmogorov Regularization: We integrate this metric into the training process via a "tri-optimization" (min-max-min) approach. This forces the model to minimize the error on the most difficult possible task, effectively "pulling up the floor" of its performance.

Model Architectures

We evaluate two primary multitask architectures: Multihead PINNs (MH-PINNs) and Physics-Informed DeepONets (PI-DONs). These architectures utilize learned basis functions $\phi_i$ and coefficients $c_i$ to represent the solution $u$.

Comparison of (A) Multihead PINN and (B) Physics-Informed DeepONet architectures.

Experimental Setup

The methods were tested on several multitask PDE problems, including:

  • 1D Poisson Equation: A linear problem with a solution manifold constructed from a sum of five sine functions.
  • 2D Nonlinear Allen-Cahn Equation: A stationary nonlinear problem.
  • Manufactured Solutions: We utilized the method of manufactured solutions to ensure ground-truth accuracy by defining solution manifolds and deriving corresponding forcing terms.

Key Insights and Results

Our analysis revealed several critical findings regarding model robustness and generalization:

  • The Deception of Mean Error: Reporting only sampled mean error can mask significant failures. In the 1D Poisson problem, while a $tanh$-based architecture showed a mean error 3.1x higher than a $sine$-based version, its Kolmogorov n-width (worst-case error) was a staggering 16.2x higher.
  • Activation Function Impact: $Sine$ activation functions demonstrated superior high-frequency generalization compared to $tanh$. While $tanh$ can fit specific periodic features, it fails to learn a generalizable basis as effectively.
  • Richer Basis Functions: Singular value spectra analysis showed that Kolmogorov regularization forces networks to learn more expressive basis functions, covering a larger portion of the solution manifold.
  • Architecture Sensitivity: The gap between average and worst-case performance is more sensitive to network depth than width.

Conclusion

By adopting Kolmogorov n-widths, we provide the first objective metric for comparing multitask PIML architectures. This approach removes uncertainty in model validation caused by selective sampling and overfitting. Furthermore, the proposed Kolmogorov regularization significantly improves model generalizability. Future work will extend these metrics to more complex engineering problems using Finite Element Method (FEM) solutions as reference truths and exploring irregular geometries.

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