Auto-PINN: Understanding and Optimizing Physics-Informed Neural Architecture

Yicheng Wang, Xiaotian Han, Chia-Yuan Chang, Daochen Zha, Ulisses Braga-Neto, Xia Hu

TL;DR

Auto-PINN is an automated neural architecture search (NAS) framework tailored specifically for Physics-Informed Neural Networks (PINNs). By demonstrating that key hyperparameters can be decoupled sequentially and that training loss reliably tracks true solution error, Auto-PINN navigates a space of over 10,000 configurations in at most 261 trials—delivering higher accuracy and vastly superior stability compared to standard hyperparameter search algorithms.

What Problem Does This Paper Address?

Physics-Informed Neural Networks (PINNs) solve partial differential equations (PDEs) by embedding physical laws and boundary conditions directly into the neural network's loss function. While widely used across fluid dynamics, materials science, and bioengineering, PINNs are notoriously sensitive to hyperparameter choices—such as network depth, layer width, activation functions, and optimizer scheduling (e.g., when to switch from Adam to L-BFGS).

Tuning these settings manually is labor-intensive, while automated machine learning (AutoML) encounters two major roadblocks:

  1. Combinatorial explosion: The joint search space over continuous and discrete architectural choices is massive.
  2. Missing ground truth: In real-world scientific problems, the exact analytical solution is unknown. Without an error metric against ground truth, selecting a reliable search objective is difficult.

Methods

Auto-PINN introduces a step-by-step decoupling strategy driven by empirical pre-experiments:

  • Search Space: MLPs with depths from 3 to 10 layers, widths from 8 to 512 neurons, four activation functions (Tanh, Sigmoid, ReLU, Swish), and a "changing point" hyperparameter controlling when the optimizer switches from Adam to the second-order L-BFGS optimizer (from 10% to 50% of the training budget).
  • The Search Objective: Instead of requiring exact PDE solutions, Auto-PINN uses the minimum training loss reached during optimization as its objective.
  • Sequential Decoupling Strategy:
  • Step 0: Fix the Adam-to-L-BFGS transition at 0.5.
  • Step 1 (Activation Search): Sample a sparse grid of widths and depths across candidate activations; select the dominant activation via median loss.
  • Step 2 (Width & Depth Search): Coarsely evaluate width intervals to isolate the top two performing width regions, then finely search all depths within those regions to select the top five candidate configurations.
  • Step 3 (Changing Point Search): Fine-tune the Adam/L-BFGS transition point for the candidate architectures.
  • Step 4 (Verification): Retrain candidates across multiple initializations and select the best median performer.

Datasets

The authors evaluated Auto-PINN on seven standard PDE benchmarks encompassing diverse differential operators and boundary conditions:

  • Heat_0 & Heat_1: Diffusion equations with Dirichlet and Neumann boundary conditions, respectively.
  • Wave: Second-order wave equation with mixed boundary conditions.
  • Burgers’: Nonlinear fluid flow/shock equation.
  • Advection_0 & Advection_1: Transport equations with discontinuous initial conditions.
  • Reaction: Nonlinear chemical reaction equation.

To evaluate robustness, each PDE was coupled with multiple spatio-temporal data sampling schemes (pseudo-random and uniform grid distributions across different point densities).

Key Insights and Ideas

  • Training Loss Strongly Predicts Test Error: Across different architectures, there is a strong linear correlation ($R^2$ up to 0.96) between log training loss and log relative $L_2$ error. Overfitting is virtually absent in standard PINN formulations, meaning the unsupervised physics loss functions as a dependable proxy objective.
  • "Deeper and Wider" is Not a Universal Rule: While diffusion problems (Heat equations) favored wider networks (e.g., width > 200) and showed indifference to depth, the Wave equation favored shallow architectures and performed poorly with deeper models.
  • Decoupling Prevents Exponential Search Cost: Specific hyperparameters dominate performance independently. An activation function that performs best on a low-resolution architecture remains the best choice at scale, allowing the search space to be collapsed into linear stages.
  • Insensitivity to Learning Rate and Epochs: Architectures discovered by Auto-PINN remained optimal across reasonable variations in learning rate ($10^{-5}$ to $10^{-3}$) and training epochs (5,000 to 15,000), meaning training schedules do not need re-optimization for every architectural trial.

Key Results

  • Search Efficiency: Out of 10,080 possible configurations, Auto-PINN required at most 261 trials (only 2.59% of the full space) to locate top-performing architectures.
  • Accuracy and Stability: When benchmarked against Random Search and HyperOpt (each given a higher budget of 300 trials), Auto-PINN consistently found configurations with median relative $L_2$ errors matching or surpassing the baselines, while drastically reducing performance variance across runs.

Limitations and Future Work

  • Constrained Architectural Space: Auto-PINN was developed exclusively on standard fully-connected Multi-Layer Perceptrons (MLPs). It does not explore advanced scientific deep learning backbones such as Fourier neural operators, residual connections, or attention mechanisms.
  • Static Sampling Assumptions: The pre-experiments demonstrated that optimal architectures change when point sampling schemes change. The current framework tunes architectures for a fixed dataset and does not yet integrate adaptive or residual-based resampling techniques directly into the search loop.

Summary updated

BibTeX
@inproceedings{wang2023auto,
  author = {Yicheng Wang and Xiaotian Han and Chia-Yuan Chang and Daochen Zha and Ulisses Braga-Neto and Xia Hu},
  title = {{Auto-PINN: Understanding and Optimizing Physics-Informed Neural Architecture}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=xJFITn0hRx},
}
Figure