Manuscript Offprint

arXiv:2610.10897

Gen-PINNs: Generative Adversarial Physics Informed Neural Networks for solving partial differential equations

Muhammad M. Akmal, Kamy Sepehrnoori, Michael J. Pyrcz

Abstract

Physics-Informed Neural Networks (PINNs) are a widely used data-free method for solving Partial Differential Equations (PDEs) using machine learning. With recent advances in Generative Adversarial Networks (GANs), adversarial learning has shown strong capabilities for modeling complex data-driven problems; however, the use of GANs in deterministic physics-informed PDE solutions remains limited. In this work, we first identify limitations of standard PINNs for solving PDEs, including spectral bias, loss imbalance, and optimizer stagnation. We then propose Generative Adversarial Physics-Informed Neural Networks (Gen-PINNs), a unified deterministic residual-adversarial framework designed to improve data-free solutions of PDEs with sharp or shock-front behavior. The generator learns the underlying PDE solution using dynamically weighted physics-informed loss components, while separate discriminators evaluate complementary PDE residual features against ideal zero-residual states. The framework further develops and adapts several methodological components, including a Fourier representation for resolving high-frequency spatial content, an orthonormal spectral diagnostic for quantifying frequency-dependent solution errors, and a modified gradient-based dynamic weighting system for physics, initial-condition, boundary-condition, and adversarial loss objectives. Gen-PINNs is tested against standard PINNs on nonlinear and higher-order PDEs, including the Burgers, Allen-Cahn, and Kuramoto-Sivashinsky equations. The results demonstrate substantial improvements in accuracy and convergence across sharp-front, stiff, and higher-order PDE solutions, highlighting the potential of deterministic residual-adversarial learning as an effective approach for solving challenging nonlinear PDEs.

Keywords: Physics Informed Neural Networks, Generative Adversarial Networks, Partial Differential Equations, Computational Physics, Deep Learning, Scientific Machine Learning

1. Introduction

The accurate and efficient modeling of Partial Differential Equations (PDEs) is a key component of scientific research and engineering design. PDEs underpin a plethora of applications in heat transfer, fluid dynamics, climate models, and numerical reservoir simulation (Bird, Stewart, & Lightfoot, 2014; Ertekin, 2005; Hansen et al., 1983). Classically, numerical solvers such as finite difference methods, finite element methods, and spectral methods are used to solve PDEs, providing robust and accurate solutions. However, the computational cost, in terms of memory and time, scales quickly in high-dimensional, non-linear, or multi-scale problems where a dense mesh or domain-specific discretization strategies are needed (Lu et al., 2021; Markidis, 2021; Sepehrnoori et al., 2020). This, along with advances in machine learning and GPU processing, has motivated many researchers over the years to investigate alternate PDE solvers (Dissanayake and Phan-Thien, 1994; Lagaris et al., 1997).

Raissi et al. (2017a, 2017b) introduce Physics Informed Neural Networks (PINNs), which have emerged as a solution-independent alternative to traditional PDE solvers. In PINNs the PDE equation is checked at observation locations and times, along with the initial and boundary conditions, which are embedded into a loss function, and using an optimizer, the best fit solution to satisfy the PDE conditions is found (Cuomo et al., 2022; Raissi et al., 2019). PINNs have been shown to perform well across various Scientific Machine Learning (SciML) applications (Hao et al., 2023; Jalili et al., 2024; Liu and Pyrcz, 2022; Morales et al., 2025; Nabian et al., 2021; Zhang et al., 2024; Zhu et al., 2022; Zucker et al., 2025). Despite the success in inference-based problems, PINNs tend to suffer from training stiffness (small changes in the network parameters cause large changes in PDE solution error) resulting in convergence issues, often resorting to trivial solutions of shock-front bearing (stiff) PDEs (Leiteritz and Pflüger, 2021; Wang et al., 2022). This typically manifests as a zero solution across the domain to satisfy the PDE and a matching solution only at known initial or boundary conditions. Moreover, PINNs tend to suffer from spectral bias, often favoring low-frequency over high-frequency solution regions (Rohrhofer et al., 2021; Tancik et al., 2020).

To overcome the limitations in the convergence of PINNs, many variations of the standard (vanilla) PINNs are proposed (Raissi et al., 2024). These PINN extensions include adaptive training methods such as self-adaptive point weighting in SA-PINNs by McClenny and Braga-Neto (2020), adaptive transfer learning in AtPINNs by Liu et al. (2023), and failure-informed adaptive methods in FI-PINNs by Gao et al. (2023). Furthermore, improved decomposition strategies include XPINNs for extended space-time areas by Jagtap and Karniadakis (2020) and FBPINNs by Dolean et al. (2024), where multilevel frequency-based decomposition shows a marked improvement over the standard PINNs method. Improved NN architectures include transformer-based approaches such as in PINNsFormer by Zhao et al. (2023), multiscale Fourier feature spatio-temporal architecture in Wang et al. (2021), and point neural PINNs by Bi and Abhayapala (2024) with strict solution enforcement of a PDE solution and Wasserstein-driven generative adversarial, GAN, PINNs with gradient penalty in WGAN-GP by Yang et al. (2018). Despite many PINN-based variants, whether adaptive in weights, network structure, or input parametrization, there is a notable lack of generalizable approaches (Torres et al., 2025). Many of the PINN extensions aim to address individual PDE modeling challenges one at a time – such as stiffness, high-frequency solution regions, and long-time solution integration – while not considering other modeling difficulties simultaneously (Nasir et al., 2025). This often results in longer training times, complex loss landscapes, poor optimizer performance, and exaggerated hyperparameters' sensitivity (Luo et al., 2025). Therefore, there is a gap in the generic modeling of PDEs using current PINN-based extensions, and a method that overcomes multiple PDE modeling challenges together is needed.

Moreover, many physical systems modeled by PDEs exhibit one or more unique structural features in the solution space. These include discontinuities, moving shock-fronts, periodic boundaries, and complex spatial-temporal oscillations (LeVeque, 1992). Capturing all the distinct features is not just an aesthetic requirement but a fundamental necessity for accurate, robust, and interpretable modeling in Scientific Machine Learning, SciML (Thiyagalingam et al., 2022). Normally, performance improvements of an approach are evaluated by benchmarking new PINNs extensions against the standard PINNs for a series of select PDEs. These PDEs typically include the Burgers equation, Allen-Cahn equation, advection-diffusion equation, Buckley-Leverett equation, and, most recently, the Kuramoto-Sivashinsky equation (Braga-Neto, 2022; Coutinho et al., 2023; Rodriguez-Torrado et al., 2022; Wang et al., 2024). Despite the continued progress, most PINN extensions tend to perform well.

for a particular set of such PDEs, at fixed conditions; however, they struggle to maintain accuracy when the underlying solution characteristics vary significantly. Hence, there exists a need for a more adaptable modeling paradigm where the method does not require redesigning for each new instance of a PDE, whether it is a different PDE, initial or boundary conditions, or simply coefficients within the same PDE.

In a different yet similar machine learning setting, Generative Adversarial Networks (GANs), demonstrate an excellent ability in generating realistic, complex high-dimensional data in the form of images starting from random noise inputs (Goodfellow et al., 2014). More recently, GANs were also shown to perform well in modeling many tasks, including sharp discontinuities, oscillations in target distributions, and multi-scale structures in the output space; features which are commonly encountered in PDE solutions (Karras et al., 2018; Ledig et al., 2016; Wang et al., 2018). Proposed by Yang et al. (2018), physics-informed GANs (PI-GANs) are shown to perform well for high-dimensional stochastic PDEs. A few other researchers worked on GAN-based PINN extensions, including developing Physics-Informed Enhanced Super-Resolution GANs (PIESRGANs), by Bode et al. (2021), quantifying uncertainty in physics-informed Wasserstein GANs (WGANs) by Gao and Ng (2022), and using a hybrid physics-informed-data-driven approach to train a GAN model by Ciftci and Hackl (2024). Despite the performance improvements of using GANs with a physics-based loss, research in this area remains scarce. Nonetheless, GAN-based PINN extensions represent a potential direction for general-purpose SciML modeling for PDEs.

In this work, we first illustrate the limitations of standard PINNs for modeling shock-front bearing PDEs. These include spectral bias towards resolving low-frequency solution modes, complex loss landscapes with constant loss-weight multipliers, poor convergence with 1st1^{st} order optimizers, and limited sensitivity of the mean square error to heterogeneous error distributions Building on this analysis, we propose a multi-physics adversarial framework where a deterministic coordinate conditioned generator approximates the PDE solution while multiple discriminators evaluate complementary multi-physics residual features against their ideal zero-residual states. Several supporting mechanism adapted from concepts introduced in prior PINN extensions are reformulated into the Gen-PINNs framework to address specific representation and optimization pathologies including Fourier input feature embeddings, dynamic loss weights, and staged optimization. We also examine multiple formulations of the training loss function and develop a strategy tailored for generator-discriminator training algorithms for solving PDEs. The resulting Generative Adversarial Physics-Informed Neural Network (Gen-PINNs) provides a flexible framework for deterministic PDE solution while integrating physical constraints of standard PINNs. Finally, we demonstrate the improved accuracy of the Gen-PINNs approach against standard PINNs across non-linear and higher order PDE configurations, demonstrating improved accuracy and convergence in multiple challenging solution regimes.

The paper is structured in the following way. In Section 2, we summarize standard PINNs going over fundamental information needed for the proceeding analysis. We then use a benchmark PDE to examine several limitations of standard PINNs, including spectral bias, imbalance between the loss terms, and optimizer stagnation. We also develop Dirichlet-compatible spectral-error and per-mode convergence diagnostics to track the representation and learning of individual solution frequencies during training. In Section 3, we describe the methodology used in the Gen-PINNs, including the deterministic residual adversarial approach and the representation and optimization components.

used with the framework, and discuss the relevant mathematical implications. In Section 4, we discuss the training and optimization approach used for solving various PDEs, including a structured approach for selecting components and hyperparameter tuning in Gen-PINNs summarized in Algorithm. 1. and apply the Gen-PINNs method against a series of PDEs with increasing solution complexity, examine its performance across non-linear, stiff and high order PDEs and compare the resulting solutions with standard PINNs. Finally, in Section 5, we summarize the findings of the work and discuss the limitations and potential opportunities of future research for residual adversarial physics informed methods.

References (100)

Couldn't load all references. Reload the page to try again.