---
title: Discontinuity-aware PINN (DPINN)
url: https://www.emergentmind.com/topics/discontinuity-aware-physics-informed-neural-network-dpinn
type: topic
---

# Discontinuity-aware PINN (DPINN)

Discontinuity-aware Physics-Informed Neural Network (DPINN) denotes a class of physics-informed neural-network methods designed for partial differential equations whose solutions contain shocks, contacts, interfaces, boundary layers, or other sharp gradients for which standard smooth-network PINNs are known to perform poorly. In the recent literature, the term has two related but distinct usages. In [2511.23102] and [2507.08338], DPINN explicitly means **Discontinuity-aware Physics-Informed Neural Network**. In [2111.02987], by contrast, DPINN means **Distributed Physics Informed Neural Network**, yet its purpose is likewise to address advection-dominated problems with strong boundary layers and near-discontinuities by decomposing the domain into subdomains. Taken together, these works identify a common design objective: replace globally smooth, strong-form residual minimization by architectures, losses, and interface treatments that localize sharp features, regularize singular residuals, and encode the correct weak or interfacial physics [2111.02987].

## 1. Terminology and conceptual scope

A discontinuity-aware PINN is motivated by a recurrent failure mode of classical PINNs: the network, residual, and optimizer are all biased toward smooth solutions, whereas many conservation laws and interface problems admit only weak solutions with jumps or very steep transition layers. Several papers in the supplied corpus describe this failure in different domains. For advection-dominated advection–diffusion, a global PINN struggles to represent a sharp boundary layer and becomes ill-conditioned as the diffusion coefficient decreases [2111.02987]. For Burgers and Euler equations with shocks, strong-form PINNs are sensitive to discontinuities and can produce smeared or unstable shock profiles unless the formulation is altered [2506.22413]. For phase-field multiphase flow, standard PINNs suffer from spectral bias, gradient-direction conflict, and long-time error accumulation when interfaces are thin and highly nonlinear [2511.23102]. For Maxwell problems in discontinuous media, smooth networks underresolve interface-induced high frequencies unless the interface geometry is explicitly encoded [2407.20833].

The literature therefore treats “discontinuity-aware” not as a single algorithm but as a design principle. A DPINN modifies at least one of the following: the function representation, the loss functional, the domain decomposition, the numerical flux or jump treatment, the viscosity or regularization mechanism, or the training schedule. This suggests that DPINN is best understood as a family of PINN formulations for weak-solution regimes rather than a single canonical architecture.

A terminological ambiguity is important. The thesis “Numerical Approximation in CFD Problems Using Physics Informed Machine Learning” [2111.02987] uses DPINN to mean **Distributed Physics Informed Neural Network**, not discontinuity-aware in name. Yet the thesis explicitly applies domain splitting, interface matching, and subdomain normalization to advection-dominated regimes with sharp layers and square-pulse transport. A plausible implication is that distributed PINNs form one branch of discontinuity-aware methodology even when the acronym originally referred to domain distribution rather than shock awareness.

## 2. Why standard PINNs fail in discontinuous and sharp-gradient regimes

The central issue is the mismatch between smooth neural approximants and low-regularity PDE solutions. Classical PINNs enforce differential operators pointwise through automatic differentiation, but shocks and contacts satisfy the governing equations only in a weak sense. For Burgers and Euler equations, the conservative and non-conservative forms are equivalent for smooth solutions but not for discontinuous ones; Rankine–Hugoniot theory applies to conservative form, and non-conservative forms generally do not select the correct shock speed without special treatment [2506.22413]. Standard PINNs trained on strong-form residuals therefore face large residual spikes near discontinuities, optimization instability, and shock smearing.

Multiple papers isolate different manifestations of this pathology. In advection-dominated steady advection–diffusion, the solution is almost flat in most of the domain and drops sharply near the outflow; Lagaris-style trial-function PINNs fail for strongly advective cases, and Raissi-style PINNs only extend the solvable range modestly [2111.02987]. In discontinuous 1D advection, Fourier features and adaptive loss weighting are introduced specifically because standard PINNs oversmooth jumps and exhibit spectral bias [2601.20978]. In Burgers, Euler, and relativistic hydrodynamics, residual-only PINNs suffer from convergence issues and reduced shock accuracy, which motivates locally linearized or Roe-based modifications of the residual operator [2506.11959]. In Stokes interface problems, pressure is discontinuous and velocity derivatives jump across the interface, so a single smooth input representation is insufficient; the paper instead augments the inputs differently for pressure and velocity [2307.09236].

A recurring explanation is spectral bias. High-frequency or near-discontinuous content is learned slowly, while low-frequency smooth components dominate early optimization. The discontinuity-aware KAN-based DPINN addresses this with adaptive Fourier-feature embedding and a discontinuity-aware Kolmogorov–Arnold network [2507.08338]. The three-phase-flow DPINN likewise uses Fourier embedding and residual-adaptive blocks to mitigate spectral bias at thin interfaces [2511.23102]. This suggests that discontinuity awareness is as much an optimization problem as a representational one.

## 3. Core design patterns in discontinuity-aware PINNs

Across the cited works, several recurring mechanisms define the DPINN landscape.

**Domain decomposition and local approximation**: In the distributed DPINN of [2111.02987], the domain is partitioned into blocks, each with its own small neural network. Interface losses enforce continuity of value and slope, and optionally flux. The method is motivated by the statement that “Each network has to approximate a simpler function.” By localizing steep gradients to a few blocks and normalizing each subdomain to \([0,1]\), the method handles advection-dominated boundary layers much better than a single global network.

**Residual reweighting near shocks**: The weighted-equation PINN of [2206.03864] introduces a gradient-dependent factor
\[
\lambda = \frac{1}{\varepsilon_2\big(|\nabla\cdot \vec u| - \nabla\cdot \vec u \big) + 1},
\]
or the 1D analogue using \(u_x\), so that residuals in compressive regions are downweighted. The stated goal is to “weaken the expression of the network near discontinuities” and let the network focus on smooth regions. The adaptive-weight-and-viscosity PINN of [2506.22413] uses an analogous compression-aware factor
\[
d = 0.12(|u_x|-u_x)+1
\]
for Euler, dividing the residual by \(d\) so that strongly compressive regions contribute less to the loss.

**Artificial viscosity, but learned and localized**: In [2506.22413], a trainable artificial viscosity field \(\nu(x,t)\) is penalized through \(\mathcal{L}_\nu\) and inserted into Burgers and Euler residuals. In [2507.08338], the KAN-based DPINN uses a learnable local artificial viscosity \(\mu(\mathbf{x})=\nu\,r(\mathbf{x})\,s(\mathbf{x})\), where \(r\) is a spectral radius and \(s\) is a shock sensor. In [2511.23102], the phase-field DPINN uses \(\mu=\nu\,s(c,\phi)\), where \(s(c,\phi)\) is an interface sensor and \(\nu\) is a single trainable scalar. These constructions share the same intent: stabilize training near discontinuities while limiting diffusion away from them.

**Weak-form and jump-aware physics losses**: The hybrid DG–NN method of [2508.16032] replaces strong-form residuals by a DG-inspired RK2 weak-form loss and adds an explicit Rankine–Hugoniot loss
\[
\mathcal{L}_{\mathrm{RH}}
= \frac{1}{N_{\mathrm{RH}}} \sum_{i=1}^{N_{\mathrm{RH}}}
\left| s \cdot \llbracket u_{\theta}\rrbracket
- \llbracket f(u_{\theta})\rrbracket \right|^2.
\]
This directly enforces jump conditions at shocks instead of forcing a pointwise PDE where derivatives are undefined. The hybrid discrete-time PINN of [2112.01696] uses a discontinuity indicator to switch between automatic differentiation in smooth regions and WENO-Z evaluation of the convective derivative in nonsmooth regions.

**Interface-aware feature engineering**: For discontinuous media in Maxwell problems, [2407.20833] enriches the network input with a level-set function \(F(\mathbf{x})\), multiple smoothed Heaviside channels \(S(\beta F)\), and \(\nabla S(\gamma F)\). For Stokes interface problems, [2307.09236] uses two subnetworks with different augmented inputs: an indicator-function input for discontinuous pressure and a cusp-enforced level-set input for velocity derivative jumps. A plausible implication is that, for interface problems, discontinuity awareness often enters through geometry-aware coordinates rather than through PDE residual modification alone.

## 4. Representative formulations and architectures

The distributed DPINN of [2111.02987] provides a canonical piecewise-strong-form construction. For steady 1D advection–diffusion,
\[
\varepsilon u_{xx}-u_x=0,
\]
each block has a local network \(\phi_i(x;\theta_i)\), and the total loss is
\[
\mathcal{L}=\mathcal{L}_f+\mathcal{L}_b+\mathcal{L}_{\mathrm{vm}}+\mathcal{L}_{\mathrm{sm}},
\]
combining PDE residual, boundary loss, interface value matching, and interface slope matching. The thesis also discusses second-derivative matching and flux matching, concluding that second-derivative matching hurts convergence while flux matching is similar in effect to slope matching. For unsteady square-pulse advection, the domain is split in both space and time, and each block still uses shallow networks, underscoring that decomposition rather than width or depth is the main mechanism [2111.02987].

The KAN-based DPINN of [2507.08338] adopts a standard PINN backbone but inserts an adaptive Fourier-feature layer,
\[
\operatorname{KAF}(\mathbf{x}) = \mathbf{W}_l \operatorname{Gelu}(\mathbf{x}) + \mathbf{W}_h \mathcal{F}(\mathbf{x}),
\]
with learnable Fourier matrix \(\mathbf{B}_f\), followed by a discontinuity-aware KAN whose scalar activation is
\[
\psi(\mathbf{x}) = w_t \tanh\big(a(\mathbf{x}-b)\big) + w_s \sum_i c_i S_i(\mathbf{x}).
\]
The dynamic tanh term is intended to capture steep shock-like behavior, while the spline term provides smooth approximation elsewhere [2507.08338].

The three-phase-flow DPINN of [2511.23102] uses Fourier embeddings,
\[
\mathcal{F}(\mathbf{x})=\frac{1}{\sqrt{m}}
\begin{bmatrix}
\sin(2\pi \mathbf{W}_f\mathbf{x})\\
\cos(2\pi \mathbf{W}_f\mathbf{x})
\end{bmatrix},
\]
then constructs “discontinuity-aware residual-adaptive blocks” with DyT activations and trainable residual mixing coefficients. The total loss combines Allen–Cahn, Cahn–Hilliard, Navier–Stokes, initial-condition, and boundary-condition terms with dynamic balancing based on gradient norms [2511.23102].

The DG-based discontinuity-aware framework of [2508.16032] is structurally different. It uses a weak-form DG loss based on RK2 time stepping, a jump detector with residual weight
\[
d(x,t)=
\begin{cases}
0.1, & \llbracket u \rrbracket > \epsilon,\\
1, & \llbracket u \rrbracket \le \epsilon,
\end{cases}
\]
and temporal progressive learning in which separate neural “columns” are trained on successive time subintervals. Earlier columns are frozen and provide pseudo-labels and lateral connections, which the authors argue reduces long-time error accumulation and improves temporal coherence [2508.16032].

The interface-problem literature adds yet another architectural pattern. In Maxwell problems, a single PINN is augmented with level-set-derived features and smoothed Heaviside material coefficients [2407.20833]. In Stokes interface problems, a “discontinuity and cusp capturing” PINN uses two subnetworks—one for pressure, one for velocity—with different interface-feature augmentations [2307.09236]. This reinforces the view that discontinuity awareness is problem-structured rather than monolithic.

## 5. Training strategies, hyperparameters, and empirical behavior

Several training patterns recur across the papers.

Two-stage optimization is common. The discontinuous-advection PINN of [2601.20978] first optimizes the Fourier-feature parameters while freezing the MLP, then freezes the Fourier features and trains the network weights. During the first stage, the loss term associated with the discontinuous component, such as \(\mathcal{L}_{\mathrm{IC}}\), is assigned a larger weight. During the second stage, adaptive loss balancing is used to equalize gradient magnitudes across PDE, IC, and BC terms. This suggests that separating feature learning from solution fitting can be especially beneficial when discontinuities dominate the early loss landscape.

Adam followed by L-BFGS is another standard schedule. The adaptive-weight-and-viscosity PINN for Burgers and Euler uses Adam and then L-BFGS [2506.22413]. The DG–NN method uses 20k Adam iterations followed by 1k L-BFGS iterations for Burgers, with analogous two-phase training for Euler [2508.16032]. The phase-field DPINN uses AdamW with cosine annealing and adaptive time-marching across subintervals [2511.23102]. The KAN-based DPINN uses Adam for Burgers and L-BFGS for airfoil Euler problems, with markedly different loss weights between PDE and boundary terms in the airfoil setting [2507.08338].

Curriculum mechanisms appear in multiple forms. The electromagnetic I-PINN progressively increases the Heaviside sharpness parameter \(\alpha\), starting from a smoother material transition and then sharpening the interface while warm-starting from previous weights [2407.20833]. The phase-field DPINN uses adaptive time-marching across temporal windows [2511.23102]. The DG–NN model uses temporal progressive learning and pseudo-label supervision between tasks [2508.16032]. A plausible implication is that discontinuity-aware training often benefits from staging either geometry sharpness, temporal horizon, or representation bandwidth.

The distributed DPINN thesis provides unusually explicit optimizer and hyperparameter comparisons. For shallow two-neuron-per-block networks, L-BFGS-B gave the best convergence, Adam was second, and tanh performed best among tested activations [2111.02987]. The thesis also reports that increasing blocks in both space and time reduces loss in the square-pulse test, while too many collocation points per block can eventually lead to ill-conditioning. It further notes that PDE loss often dominates in highly advective cases and that increasing boundary and interface weights by factors of \(10\)–\(50\) can restore balance [2111.02987].

## 6. Reported results, capabilities, and limitations

The distributed DPINN of [2111.02987] shows a large extension of solvable advection-dominated regimes. Classical Lagaris-style PINNs work roughly for \(\varepsilon \gtrsim 0.6\), Raissi-style PINNs for \(\varepsilon \gtrsim 0.14\), while DPINN with subdomain normalization and many blocks handles \(\varepsilon\) down to \(0.005\) or even \(0.002\). The thesis describes this as a two-orders-of-magnitude improvement in the practically reachable advection-dominant limit. It also reports that an ELM-based DPINN variant is “non-iterative; solution in a single shot” and can solve advection–diffusion down to \(\varepsilon \approx 0.0025\)–0.003 with high accuracy [2111.02987].

The adaptive-weight-and-viscosity PINN of [2506.22413] reports that for Burgers and Euler, conservative-form and non-conservative-form PINNs-AWV produce essentially the same shock solutions when the adaptive viscosity and residual weighting are used. For the Sod tube, the authors state that “PINNs‑AWV solution is independent of the form of the governing equation used.” They also report that pure adaptive-weight PINNs can obtain the correct shock speed in some cases but may fail to resolve the contact discontinuity, whereas adaptive-viscosity variants perform better [2506.22413].

The DG-based discontinuity-aware method of [2508.16032] reports systematic gains over vanilla PINNs and competitive or better performance than first-order DG and PINNs-WE on Burgers and Euler. For Sod with 256 cells and two temporal tasks, their table gives \(\rho\), \(u\), and \(p\) errors of \(4.05\times 10^{-2}\), \(1.25\times10^{-1}\), and \(3.21\times10^{-2}\), compared with \(9.73\times10^{-2}\), \(4.76\times10^{-1}\), and \(6.21\times10^{-2}\) for a vanilla PINN [2508.16032]. The paper also presents theoretical bounds linking the NN approximation to the DG solution and then the DG solution to the entropy solution.

The KAN-based DPINN of [2507.08338] reports strong shock-resolution gains with far fewer parameters than MLP baselines. For inviscid Burgers, their table lists parameter counts of 744 for DPINN versus 4142 for the MLP baselines, with \(R_2\) error \(0.90\%\) for DPINN versus \(3.06\%\) for MLP + local artificial viscosity. For transonic NACA0012 with \(Ma_\infty=0.7,\alpha=4^\circ\), the reported \(R_2\) error is \(3.80\%\) for DPINN versus \(10.73\%\) for MLP + local AV and \(32.86\%\) for plain MLP. For supersonic \(Ma_\infty=1.3\), DPINN reaches \(R_2=4.63\%\) versus \(6.17\%\) for MLP + local AV [2507.08338].

The phase-field DPINN of [2511.23102] reports that standard PINNs fail as the interface thickness \(\xi\) decreases, whereas DPINN improves. In the reversed single-vortex test, the paper gives \(R_2 \approx 1.24\times10^{-2}\) for a standard PINN at \(\xi_\phi=0.001\) versus \(R_2 \approx 3.1\times10^{-3}\) for DPINN. In the bubble-rising benchmark, the center-of-mass error at \(\xi=0.0025\) is \(R_2 \approx 0.0974\) for PINN and \(R_2 \approx 0.0140\) for DPINN. The same method is then extended to a three-phase droplet-icing problem with viscosity and density contrasts exceeding 7 and 3 orders of magnitude, respectively [2511.23102].

Limitations are equally explicit. Domain decomposition requires empirical tuning of block numbers, collocation counts, and loss weights [2111.02987]. Artificial-viscosity methods modify the PDE and may still smear contacts or depend on sensor quality [2506.22413, 2507.08338]. Roe-based PINNs preserve shocks sharply but smooth out small-scale vortical structures in 2D interaction regions [2506.11959]. Phase-field DPINNs remain expensive because Allen–Cahn and Navier–Stokes need second derivatives and Cahn–Hilliard needs fourth derivatives [2511.23102]. The DG–NN method notes that over-segmentation in time can degrade performance, with two or three tasks often better than four [2508.16032].

## 7. Relation to adjacent methods and evolving directions

The discontinuity-aware PINN literature sits at the intersection of several older strands: domain-decomposition PINNs, weak-form PINNs, entropy-aware PINNs, shock-capturing numerical schemes, and interface-enriched approximation spaces.

One branch uses decomposition and interface constraints. Distributed PINNs [2111.02987], XPINN/cPINN-like approaches mentioned in [2506.22413], and separation–transfer PINNs [2505.20361] all reduce the complexity of learning multiple discontinuities by breaking the domain into subdomains or stages. ST-PINNs sequentially detect the strongest discontinuity using an intensity measure
\[
I \equiv \frac{|{\mathcal V}_{+} - {\mathcal V}_{-}|}{\Delta \mathbf{x}},
\]
then split the domain and retrain a new PINN via transfer learning on the remaining subproblem. For a 2D shock-refraction case, the paper reports reductions from \(3.55\%\) to \(1.20\%\) in \(L^2\rho\) and from \(6.03\%\) to \(1.33\%\) in \(L^2u\) when comparing GA-PINNs to ST-PINNs [2505.20361]. This suggests a curriculum-on-discontinuities viewpoint complementary to explicit shock-aware residuals.

A second branch embeds discontinuity handling through discrete numerical structure. The hybrid PINN of [2112.01696] uses a discontinuity indicator to switch from AD to WENO-Z in nonsmooth regions. The DG-based method [2508.16032] builds the entire loss from DG residuals and Rankine–Hugoniot conditions. The approximate-Riemann-solver PINNs of [2506.11959] locally replace the Jacobian by shock-speed-modified or Roe-averaged versions to enforce jump physics and conservation. These methods are the closest to classical CFD shock-capturing ideas.

A third branch relies on geometric feature enrichment for interface problems. Maxwell [2407.20833] and Stokes [2307.09236] problems do not primarily involve shocks, but they do involve discontinuous coefficients, discontinuous pressure, and derivative jumps. In these settings, discontinuity awareness comes from level-set features, Heaviside-type inputs, cusp-enforced enrichments, and strong imposition of boundary conditions. This broadens the term DPINN beyond hyperbolic conservation laws.

Recent work also shows that discontinuity-aware PINNs are beginning to separate from strict conservative-form dependence. PINNs-AWV reports that with adaptive viscosity and adaptive weighting, conservative and non-conservative formulations produce essentially the same shock structures for Burgers and Euler [2506.22413]. A plausible implication is that PINNs can partially decouple shock accuracy from conservative discretization if weak-solution regularization is built into the network and loss design. By contrast, the DG-based and Roe-based works indicate that explicit conservation-aware structures remain highly effective for shock-dominated flows [2508.16032, 2506.11959].

Taken together, the literature points toward a composite view of DPINN. A mature discontinuity-aware PINN is likely to combine several ingredients rather than only one: localized approximation or temporal decomposition, residual reweighting near singular regions, learned or numerical diffusion localized by sensors, weak-form or jump-based losses, and geometry-aware or frequency-aware feature enrichment. This suggests that the future of DPINN research will likely be hybrid rather than purely architectural or purely variational.

Source: https://www.emergentmind.com/topics/discontinuity-aware-physics-informed-neural-network-dpinn