HyperPINN: Learning parameterized differential equations with physics-informed hypernetworks

Filipe de Avila Belbute-Peres, Yi-fan Chen, Fei Sha

TL;DR

Solving parameterized differential equations with standard Physics-Informed Neural Networks (PINNs) typically forces a trade-off: either repeatedly re-train models from scratch or build bloated networks that take parameters as inputs. HyperPINN solves this by using a hypernetwork to generate the weights of a small, dedicated PINN on the fly for any given physical parameterization. This delivers the accuracy of a large model while maintaining fast, lightweight inference across space and time.

What Problem Does This Paper Address?

PINNs have emerged as a powerful tool for scientific computing by embedding differential equation residuals directly into deep learning loss functions. However, standard PINNs are usually fit to a single parameter setting (e.g., a specific fluid viscosity or Reynolds number).

In real-world tasks like design prototyping, sensitivity analysis, and topology optimization, engineers must evaluate systems across a wide range of parameter values. Current solutions fall short:

  1. Re-training the model for every parameter value is computationally prohibitive.
  2. Appending parameters directly as network inputs forces a single network to simultaneously model both the parameter space and the spatiotemporal solution field. This requires larger networks, dramatically increasing evaluation latency at inference time—especially painful when querying millions of coordinates or integrating long trajectories.

Methods

HyperPINN frames parameterized differential equations as a meta-learning problem by dividing the architecture into two distinct components:

  • The Hypernetwork ($f_h$): Takes physical parameters (e.g., viscosity $\nu$ or ODE parameters $\lambda$) as input and outputs the weights $\theta_m$ for the main network.
  • The Main Network ($f_m$): Takes spatiotemporal coordinates (or state variables) and evaluates the actual PDE solution (or system dynamics) using the weights provided by the hypernetwork.
Parameters (λ) ──> [ Hypernetwork: f_h ] ──> Weights (θ_m)
                                                   │
Coordinates (t, x) ────────────────────────> [ Main PINN: f_m ] ──> Solution (û)

Because parameters remain fixed across an entire simulation run, the hypernetwork only needs to execute once per parameter setting. All subsequent space-time queries are evaluated by the lean main network.

The entire framework is end-to-end differentiable and supports standard PINN collocation losses as well as multistep neural network formulations for dynamical systems.

Datasets

The authors evaluate HyperPINN on two synthetic physical benchmarks:

  1. Parameterized 1D Burgers' Equation (PDE):
  2. Viscosity $\nu \in [0.001, 0.1]$ over domain $x \in [-1, 1], t \in [0, 1]$.
  3. Trained on 100 boundary and initial condition points alongside randomly sampled collocation points across space-time and parameter space.
  4. Parameterized Lorenz Attractor (ODE):
  5. System parameters with $\sigma = 10$, $\beta \in [2/3, 8/3]$, and Rayleigh number $\rho \in [0, 28]$ with initial states in $[-10, 10]^3$.
  6. Trajectories simulated using a Runge-Kutta 45 integrator ($\Delta t = 0.01$, duration 25s). Evaluated on 100 test trajectories with unseen parameter and initial condition values.

Key Insights and Ideas

  • Amortizing Parameter Complexity: Spatiotemporal coordinate evaluations outnumber parameter changes by orders of magnitude. Offloading parameter reasoning to a hypernetwork prevents bloating the model evaluated inside innermost loops.
  • Specialized Solution Capacity: Rather than forcing one massive network to represent a complex, multi-modal solution manifold, the hypernetwork instantiates a tailored, compact sub-network for each specific parameter slice.
  • Generality Across Physics Formulations: The approach is modular. It works both for direct PDE field approximation (classical PINNs) and for learning vector field derivatives in chaotic dynamical systems (multistep networks).

Key Results

  • 1D Burgers' PDE:
  • Accuracy: HyperPINN achieved a Mean Squared Error (MSE) of $1.9 \times 10^{-5}$, outperforming both a parameter-matched Large PINN ($2.3 \times 10^{-5}$) and a Small PINN ($3.0 \times 10^{-4}$), successfully capturing steep shock fronts at low viscosities ($\nu = 0.003$).
  • Inference Speed: The HyperPINN main network required only $86\,\mu\text{s}$ per evaluation—roughly $1.8\times$ faster than the Large PINN baseline ($158\,\mu\text{s}$) and even slightly faster than the Small PINN baseline ($92\,\mu\text{s}$). The hypernetwork itself took $158\,\mu\text{s}$, but only ran once upfront.
  • Lorenz System (Multistep ODE):
  • HyperPINN achieved an aggregate squared trajectory error of 17.5, substantially outperforming the small baseline (39.4) and the large baseline (20.6).
  • Qualitatively, HyperPINN correctly preserved chaotic attractor geometries, whereas baselines frequently mischaracterized trajectory regimes on unseen parameters.

Limitations and Future Work

  • Problem Dimensionality: Demonstrations are limited to relatively low-dimensional canonical test cases (1D space for Burgers', 3D state space for Lorenz). Scaling to high-dimensional systems (e.g., 3D Navier-Stokes) remains to be demonstrated.
  • Fixed Boundary/Initial Conditions: In the PDE experiment, boundary conditions were static while only internal equation parameters varied. Future work aims to generalize the hypernetwork to handle diverse, parameterized boundary and initial conditions simultaneously.
  • Chaotic Divergence: For chaotic systems like the Lorenz attractor, small instantaneous derivative errors still compound over time, leading to trajectory divergence over extended integration horizons.

Summary updated

BibTeX
@inproceedings{belbuteperes2021hyperpinn,
  author = {Filipe de Avila Belbute-Peres and Yi-fan Chen and Fei Sha},
  title = {{HyperPINN: Learning parameterized differential equations with physics-informed hypernetworks}},
  booktitle = {DLDE @ NeurIPS},
  year = {2021},
  url = {https://openreview.net/forum?id=LxUuRDUhRjM},
}
Figure