Improved Architectures and Training Algorithms for Deep Operator Networks

Sifan Wang, Hanwen Wang, Paris Perdikaris · DOI

TL;DR

Deep Operator Networks (DeepONets) are powerful tools for learning the solution operators of complex PDEs, but they often struggle with gradient pathologies and a bias toward learning functions with larger magnitudes. This paper introduces a novel Neural Tangent Kernel (NTK)-guided training algorithm and a modified network architecture that dramatically stabilize training. Together, these improvements boost the predictive accuracy of physics-informed DeepONets by 10-50x across a variety of challenging physics benchmarks.

What Problem Does This Paper Address?

In scientific machine learning, DeepONets are used to learn mappings between infinite-dimensional function spaces—for example, mapping the initial conditions or boundary shapes of a physical system to its full spatio-temporal solution. When trained as "physics-informed" models, they can learn these PDE solution operators in a completely self-supervised way, without needing paired input-output data.

However, training these networks is notoriously tricky. The authors identify a "magnitude bias": standard DeepONets prioritize learning target functions with larger magnitudes simply because they produce larger back-propagated gradients during training. Furthermore, the conventional DeepONet architecture can suffer from poor information propagation. Because it processes the input function and the spatial coordinates in completely separate sub-networks that only merge at the very last layer, input signals can vanish, leading to ineffective training and poor predictive performance.

Methods

To solve these training pathologies, the authors introduce two major innovations:

  1. NTK-Guided Adaptive Weighting: The authors use Neural Tangent Kernel (NTK) theory to analyze the training dynamics of physics-informed DeepONets. They propose an adaptive weighting scheme that dynamically adjusts the weight of each individual term in the loss function. By scaling the loss terms based on the diagonal entries of the NTK matrix, the algorithm balances the magnitude of back-propagated gradients and forces all components of the loss to converge at a uniform rate.
  2. Modified DeepONet Architecture: In a standard DeepONet, a "branch" network processes the input function and a "trunk" network processes the evaluation coordinates, merging only via a dot product at the end. The authors propose a new architecture that introduces encoders for both inputs and merges their hidden representations using point-wise multiplication at every hidden layer. This "early fusion" approach ensures much more stable signal propagation through the network.

Datasets

The authors evaluate their methods on several representative benchmarks where conventional physics-informed DeepONets typically struggle:

  • Anti-derivative operator: A simple 1D ODE used as a pedagogical benchmark to demonstrate the magnitude bias.
  • 1D Advection equation: A linear PDE with variable coefficients.
  • 1D Burgers' equation: A nonlinear PDE used to test the model's ability to capture sharp gradients and viscous shocks.
  • 2D Stokes flow: A fluid dynamics problem simulating flow over an obstacle. The obstacle's shape (parameterized as varying ellipses) acts as the input function, testing the model's ability to handle complex, variable geometries.

Key Insights and Ideas

  • Magnitude Bias is a Gradient Problem: DeepONets naturally favor inputs that produce larger outputs because the standard Mean Squared Error (MSE) loss gradient is proportional to the output magnitude. This explains why standard models perform unevenly across different scales of data.
  • NTK as a Diagnostic and Correction Tool: The eigenvalues of the NTK matrix dictate the convergence rate of the training error. By dynamically re-weighting the loss function using the NTK's diagonal entries, you can effectively "de-stiffen" the optimization problem.
  • Adaptive Weights Act Like Attention: Interestingly, the NTK-guided weights naturally form an "attention map" over the computational domain. In regions with sharp, difficult gradients (like the shockwave in Burgers' equation), the algorithm automatically assigns smaller weights. This temporarily relaxes the PDE constraint in hard regions, making the overall loss landscape smoother and easier to navigate.
  • Continuous Fusion is Better: Merging the branch and trunk representations at every layer, rather than just the final layer, drastically improves the network's trainability and its capacity to represent highly non-linear functions.

Key Results

  • The combination of the modified architecture and the NTK-guided weighting scheme consistently outperformed baseline models, achieving a 10x to 50x improvement in relative $L^2$ predictive accuracy.
  • Advection Equation: The baseline model achieved a 9.32% error, while the improved model dropped the error to just 0.73%.
  • Burgers' Equation: The baseline struggled heavily with the viscous shock (30.72% error). The improved model accurately captured the shock dynamics, reducing the error to 1.19%.
  • Stokes Flow: The baseline conventional DeepONet completely failed to predict the correct velocity and pressure fields (74% - 99% error). The improved model achieved excellent agreement with the ground truth, yielding errors between 1.88% and 5.74%.

Limitations and Future Work

  • Computational Overhead: Computing the NTK diagonals and utilizing the modified architecture increases the computational cost. Training the improved models is roughly 3-5x slower than training the baseline models.
  • Theoretical Gaps: While standard DeepONets have proven universal approximation guarantees, the theoretical approximation properties of physics-informed DeepONets (where PDE constraints are encoded in the loss) remain an open question.
  • Optimization Assumptions: The NTK analysis relies on the assumption of full-batch gradient descent with infinitesimally small learning rates. How this theory perfectly translates to the practical use of mini-batch SGD with momentum is still poorly understood.
  • Future Directions: The authors suggest that these highly accurate, differentiable surrogate models could be deployed to accelerate complex PDE-constrained optimization problems, such as design and control tasks in engineering.

Summary updated

BibTeX
@article{wang2022improved,
  author = {Sifan Wang and Hanwen Wang and Paris Perdikaris},
  title = {{Improved Architectures and Training Algorithms for Deep Operator Networks}},
  journal = {J. Sci. Comput.},
  year = {2022},
  doi = {10.1007/s10915-022-01881-0},
}
Figure