When and Why Adversarial Training Improves PINNs: A Neural Tangent Kernel Perspective

Yuan-dong Cao, Chi Chiu So, Jun-Min Wang, He WangNeurIPS 2026

TL;DR

Physics-informed neural networks (PINNs) paired with Generative Adversarial Networks (GANs) shouldn't work according to classical theory, yet in practice, they solve difficult differential equations remarkably well. By viewing this adversarial dance through the lens of Neural Tangent Kernels, the authors uncover why this happens—showing that a sub-optimal discriminator acts as a dynamic weight controller rather than a static judge—and turn this insight into a simple "rollback" algorithm that boosts PINN accuracy by orders of magnitude without painful hyperparameter tuning.

What Problem Does This Paper Address?

Partial Differential Equations (PDEs) describe everything from fluid flow to heat diffusion, and Physics-Informed Neural Networks (PINNs) train neural nets to solve them by baking the equations directly into the loss function. Unfortunately, PINNs are notoriously finicky. When faced with high-frequency or stiff multiscale physics, training often stalls out completely due to spectral bias.

Recently, researchers started pairing PINNs with GANs: the PINN acts as a "generator" outputting PDE residuals (prediction errors), while a "discriminator" tries to distinguish those errors from the ideal target—exact zero. Empirically, this works wonders. Theoretically, it is a paradox. Classical GAN theory assumes an optimal discriminator minimizing statistical divergence. Because initial PINN errors are far from zero, the real and generated distributions don't overlap, meaning gradients should vanish and training should fail immediately. Because static theory fails to explain reality, practitioners have been flying blind when designing and tuning adversarial PINNs.

Methods

To resolve this paradox, the authors shift from a static viewpoint to a dynamical one using the Neural Tangent Kernel (NTK)—a mathematical framework that approximates wide neural networks as linear models in function space, letting us track how outputs evolve step-by-step during gradient descent.

Using NTK, they derive the coupled dynamics of the generator (PINN) and a transient, sub-optimal discriminator across standard GAN, Least-Squares GAN (LSGAN), and Wasserstein GAN (WGAN). They discover that the entire adversarial interaction boils down to a single scalar rate of residual-energy change: $S(t) = r^\top K_{rr}^G \gamma$. Here, $r$ is the PDE error vector, $K_{rr}^G$ is the PINN's tangent kernel, and $\gamma$ is a sample-wise weighting vector shaped by the discriminator's input gradients. When $S(t) < 0$, total error energy drops; when $S(t) > 0$, training actively gets worse.

Building on this, the authors introduce a novel, plug-and-play Rollback (RB) training algorithm:

  • Discriminator step: Freeze the PINN, run several discriminator updates, and keep only the state that produces the most negative $S(t)$ score (best alignment with error reduction).
  • Generator step: Freeze that winning discriminator, update the PINN, and keep only the state that achieves the lowest actual residual energy $\frac{1}{2}\|r\|^2$.

Datasets

Because PINNs are equation solvers rather than data-hungry classifiers, there are no traditional datasets; instead, models are evaluated on collocation points sampled directly from mathematical domains. No new PDE benchmarks are introduced. Instead, the authors evaluate on five standard, diverse benchmark equations covering linear/nonlinear and stationary/time-dependent regimes: Poisson, Laplace, viscous Burgers, Reaction–Diffusion, and Klein–Gordon.

Key Insights and Ideas

  • The Goldilocks Zone of Alternating Updates: Adversarial PINNs succeed precisely because the discriminator is never allowed to become optimal. Plotting error against Generator-to-Discriminator ($G:D$) update ratios reveals a sharp U-shaped curve. Overtrain $D$, and gradients vanish (matching classical GAN fears); undertrain $D$, and its feedback is misaligned garbage.
Figure 1: Laplace equation: final converged train- ing and validation errors under different generator- to-discriminator update ratios (G:D).
  • The Discriminator is a Spectral Preconditioner: Rather than just outputting a scalar pass/fail score, the discriminator reshapes PINN training via its input gradient ($\gamma$). As easy, low-frequency error modes decay, a good discriminator dynamically shifts weight toward stubborn, high-frequency modes.
  • Diagnosing Failure via $r^\top K_{rr}^G \gamma$: Tracking $S(t)$ cleanly separates healthy training from pathology—visually distinguishing smooth energy descent from persistent misalignment ($S(t) > 0$), gradient collapse ($S(t) \approx 0$), and wild oscillations.
Figure 2: Left: successful training regimes under balanced or moderately imbalanced G : D ratios. Right: three representative failure modes caused by extreme update imbalance.
  • Unifying Prior Art: Several specialized methods (like SA-PINN, LA-PINN, and WAN) turn out to be special cases of this exact NTK framework, just with discriminators restricted to simpler function classes.

Key Results

Adding the Rollback (+RB) mechanism to standard GAN and LSGAN consistently crushes baselines by several orders of magnitude—all using a default $10^{-3}$ learning rate, bypassing the exhaustive hyperparameter sweeps required by prior state-of-the-art methods like DEQGAN:

  • Reaction–Diffusion: GAN+RB slashes validation error from 9.81e-08 down to 1.40e-13 (surpassing tuned DEQGAN at 2.92e-09).
  • Klein–Gordon: GAN+RB drops validation error by eight orders of magnitude, from 1.65e-02 to 4.75e-10.
  • Poisson & Laplace: LSGAN+RB achieves 5.86e-13 and 3.49e-12 validation errors, respectively, revealing the rarely used LSGAN as a powerhouse for PINNs.
  • Exception: Rollback provides mixed or weaker results on WGAN-GP (e.g., 7.15e-02 vs 2.13e-02 on Reaction–Diffusion), likely because WGAN's gradient penalty already regularizes the discriminator in a way that clashes with the first-order rollback score.

Limitations and Future Work

The theoretical spectral analysis assumes an infinitely wide network with a constant NTK ($K_{rr}^G$). In real, finite-width networks—especially on strongly nonlinear PDEs—this kernel evolves during training. While the practical rollback algorithm side-steps this by recomputing the current kernel at each iteration, the fixed-kernel theory cannot fully explain everything; notably, training oscillations still crop up on certain PDEs despite rollback. Future work aims to drop the constant-NTK assumption to build update schedules tailored to an evolving kernel spectrum.

Summary updated

Abstract

Physics-informed neural networks (PINNs) are powerful surrogates for differential equations but are notoriously difficult to train due to spectral bias, stiffness, and poor accuracy on high-frequency or multiscale solutions. Adversarial training based on generative adversarial networks (GANs) has recently gained surprisingly strong empirical results in improving training, but the underlying mechanisms remain elusive. To this end, we propose a new analysis framework for adversarially trained PINNs, based on the key observation of how the discriminator in GANs can influence the training dynamics of PINNs. The framework first provides a much needed theoretical grounding to why and when adversarial training is effective in PINNs, then presents a unified analysis of GANs variants in such training, and finally leads to a new, practical, efficient training algorithm for PINNs. Empirical results demonstrate that our method can significantly reduce the pathology of PINNs training, thereby providing better models with superior performances, often several magnitudes more accurate than alternative methods.
BibTeX
@inproceedings{cao2026when,
  author = {Yuan-dong Cao and Chi Chiu SO and Jun-Min Wang and He Wang},
  title = {{When and Why Adversarial Training Improves PINNs: A Neural Tangent Kernel Perspective}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=PtBaGypLzm},
}
Figure