arXiv:2611.09053math.NANov 2026

Manuscript Offprint

arXiv:2611.09053

Equidistribution of Solution Gradients in Physics-Informed Neural Networks via Coordinate Transformations

Tianchi Yu, Ivan Oseledets

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

TIANCHI YU† AND IVAN OSELEDETS‡

Abstract. Physics-Informed Neural Networks (PINNs) often struggle to approximate solutions with sharp gradients due to optimization difficulties and spectral bias. Motivated by the principle of gradient equidistribution from the stretching approach in grid generation, which redistributes solution gradients to reduce functional complexity, we propose Coordinate Transformation PINNs (CTPINNs), which incorporate learnable coordinate transformations to map the physical domain into a computational domain where the physical solutions become approximately affine, making them easier for neural networks to learn. We propose two constructions of the transformation: an explicit construction based on Majorants and an implicit construction based on invertable neural networks. Experimentally, the explicit construction can improve accuracy for PDEs with available explicit coordinate transformations, and the implicit construction can be combined with other advanced PINN models as an efficient plug-in module to improve performance across a range of challenging PDE benchmarks.

Key words. Physics-Informed Neural Networks, Partial Differential Equations, Moving Mesh Methods

MSC codes. 65N50, 68T07, 65N30

  1. Introduction. Physics-Informed Neural Networks (PINNs) [31] have recently emerged as a powerful framework for solving differential equations by embedding physical laws into neural network training. PINNs have been successfully applied across a wide range of domains, including fluid dynamics [48], structural mechanics [36], power systems [50], biomedical modeling [27], and environmental science [8].

Most existing research on PINNs focuses on designing loss functions [19, 5, 55], network architectures [39, 42, 21], and training strategies [52, 32, 43] to improve the accuracy and efficiency of solving differential equations. In addition, adaptive sampling techniques [49, 12, 41, 22] aim to improve the accuracy with which the loss approximates the underlying integral. However, these approaches primarily address the error between the neural network approximation and the target solution from the perspective of the network and its training: they seek to improve the network's ability to represent the solution or to optimize its approximation more effectively. On the other hand, reducing the complexity of the solution itself has received insufficient attention in the PINN literature.

Mesh generation is a fundamental component of numerical methods for partial differential equations, particularly finite element methods, and related ideas have also been explored in the context of PINNs. Adaptive mesh refinement [3] has been incorporated into PINNs in the form of the aforementioned adaptive sampling methods, which resample points based on residual-related criteria. On the other hand, variational grid generation methods [24] have also been explored in the PINN context. In [51], the authors first train a neural network to approximate the coordinate transformation (CT) by minimizing a variational energy functional and then use the learned

*Submitted to SIAM Journal on Scientific Computing. †Artificial Intelligence Research Institute and Skolkovo Institute of Science and Technology, Moscow, Russia. (tianchi.yu@skoltech.ru). ‡Artificial Intelligence Research Institute and Skolkovo Institute of Science and Technology, Moscow, Russia. (oseledets@airi.net).

T. YU AND I. OSELEDETS

CT to generate transformed grids for subsequent PINN training. In [17], the authors propose an adaptive sampling strategy that employs a monitor function to adjust the random distribution of sampling points. However, these approaches still focus on the network and its training.

In this paper, from the perspective of reducing solution complexity, we propose Coordinate Transformation Physics-Informed Neural Networks (CTPINNs), a novel framework that incorporates learnable coordinate transformations into PINNs. By jointly optimizing the coordinate transformation and solution network, CTPINNs induce an implicit variational objective that promotes gradient equidistribution, stretching the solution toward an approximately affine form and reducing its complexity. This transformation mitigates spectral bias by mapping high-frequency components to lower frequencies, thereby improving accuracy and accelerating optimization.

The main contributions of this paper are as follows:

  • We propose CTPINNs, a novel framework that integrates learnable coordinate transformations into PINNs, enabling the network to solve PDEs in a transformed domain with reduced solution complexity without explicitly changing the form of loss functions.

  • We develop explicit and implicit constructions of the coordinate transformation. The explicit construction uses explicit functions derived from known solution features, whereas the implicit construction represents the transformation by a learnable invertible neural network. Both are optimized jointly with the solution network.

  • We evaluate both constructions on comprehensive PDE benchmarks. The numerical results show that the explicit construction resolves sharp gradients, while the implicit construction, incorporating the implicit coordinate-transformation module into state-of-the-art PINNs, improves accuracy on challenging problems.

2. Methodology.

2.1. Physics-Informed Neural Networks. We begin by revisiting the foundational framework of physics-informed neural networks (PINNs) [31, 20] for solving partial differential equations (PDEs).

Consider a general time-dependent PDE system for the unknown field u(t,x)\boldsymbol{u}(t, \boldsymbol{x}):

∂tu+N[u]=0,t∈[0,T],  x∈Ω,u(0,x)=g(x),x∈Ω,B[u]=0,t∈[0,T],  x∈∂Ω,(2.1)\begin{aligned}\partial_t \boldsymbol{u} + \mathcal{N}[\boldsymbol{u}] &= 0, \quad t \in [0, T], \; \boldsymbol{x} \in \Omega,\\\boldsymbol{u}(0, \boldsymbol{x}) &= \boldsymbol{g}(\boldsymbol{x}), \quad \boldsymbol{x} \in \Omega,\\\mathcal{B}[\boldsymbol{u}] &= 0, \quad t \in [0, T], \; \boldsymbol{x} \in \partial \Omega,\end{aligned} \tag{2.1}

where N\mathcal{N} denotes the differential operator, Ω\Omega is the spatial domain, and B\mathcal{B} enforces boundary conditions. For time-independent problems, the temporal derivative vanishes (∂tu≡0\partial_t \boldsymbol{u} \equiv 0).

PINNs utilize a neural network uθ\boldsymbol{u}^\theta (parameterized by trainable weights and biases) to approximate the unknown solution u\boldsymbol{u}. This is achieved by minimizing a composite loss that enforces the PDE system (2.1) at collocation points:

L(θ)=λicLic(θ)+λbcLbc(θ)+λrLr(θ),\mathcal{L}(\theta) = \lambda_{ic} \mathcal{L}_{ic}(\theta) + \lambda_{bc} \mathcal{L}_{bc}(\theta) + \lambda_r \mathcal{L}_r(\theta),

(2.2) with individual terms defined as

Lr(θ)=1Nr∑i=1Nr∣∂tuθ(tri,xri)+N[uθ](tri,xri)∣2,Lic(θ)=1Nic∑i=1Nic∣uθ(0,xici)−g(xici)∣2,Lbc(θ)=1Nbc∑i=1Nbc∣B[uθ](tbci,xbci)∣2,\begin{align*}\mathcal{L}_{r}(\theta)&=\frac{1}{N_{r}}\sum_{i=1}^{N_{r}}\left|\partial_{t}\boldsymbol{u}^{\theta}\left(t_{r}^{i},\boldsymbol{x}_{r}^{i}\right)+\mathcal{N}\left[\boldsymbol{u}^{\theta}\right]\left(t_{r}^{i},\boldsymbol{x}_{r}^{i}\right)\right|^{2},\\\mathcal{L}_{ic}(\theta)&=\frac{1}{N_{ic}}\sum_{i=1}^{N_{ic}}\left|\boldsymbol{u}^{\theta}\left(0,\boldsymbol{x}_{ic}^{i}\right)-\boldsymbol{g}\left(\boldsymbol{x}_{ic}^{i}\right)\right|^{2},\\\mathcal{L}_{bc}(\theta)&=\frac{1}{N_{bc}}\sum_{i=1}^{N_{bc}}\left|\mathcal{B}\left[\boldsymbol{u}^{\theta}\right]\left(t_{bc}^{i},\boldsymbol{x}_{bc}^{i}\right)\right|^{2},\end{align*}

(2.3)

where λic,λbc,λr\lambda_{ic},\lambda_{bc},\lambda_{r} are positive scalar weights balancing the relative importance of the initial condition, boundary condition, and PDE residual terms; Nic,Nbc,NrN_{ic},N_{bc},N_{r} denote the number of points sampled for the initial condition, boundary condition, and PDE residual, respectively, with corresponding collocation points xici,(tbci,xbci)\boldsymbol{x}_{ic}^{i},(t_{bc}^{i},\boldsymbol{x}_{bc}^{i}), and (tri,xri)(t_{r}^{i},\boldsymbol{x}_{r}^{i}).

2.2. Coordinate Transformations and Majorants. Using coordinate transformations (CTs) to solve PDEs is one of the grid-generation approaches [25]. The main idea is to construct a function T(x)=ξ:Ω→Ω^\boldsymbol{T}(\boldsymbol{x}) = \boldsymbol{\xi} : \Omega \to \hat{\Omega}, where Ω\Omega is the physical domain and Ω^\hat{\Omega} is the computational domain. Classically, T\boldsymbol{T} concentrates resolution in regions with rapid solution variation (e.g., boundary/interior layers and steep gradients), improving accuracy without grid refinement by equidistributing the local truncation error across the domain and reducing the condition number of the resulting linear systems.

Mathematically, the CT function T is a mapping that satisfies the following properties:

  • Bijectivity. The CT function should be a bijection between the physical domain Ω\Omega and the computational domain Ω^\hat{\Omega}, ensuring that each point in Ω\Omega corresponds to exactly one point in Ω^\hat{\Omega} and vice versa.

• Smoothness. The CT function should be at least C1C^{1} continuous.

  • Boundary-fittedness. The CT function should map the boundaries of the physical domain to the boundaries of the computational domain.

In addition to the above properties, CT functions used in numerical methods should satisfy other conditions, including non-degeneracy, gradation (quasi-uniformity), and topological compatibility. These properties are required for the stability of numerical methods. Since PINNs are mesh-free, these additional properties are not necessarily required of CT functions in PINNs. Without loss of generality, in the following discussion, we assume that T:[0,1]d→[0,1]d\boldsymbol{T}:[0,1]^d \to [0,1]^d satisfies the above properties, since the domain can be normalized and transformed to the unit cube [0,1]d[0,1]^d.

2.2.1. Single-variable Majorant Functions. One direct application of this approach, known as the stretching approach in grid generation, is the use of majorant functions [26] to quantify the singular behavior of solutions to singularly perturbed PDEs, which typically contain a small parameter ϵ\epsilon multiplying the highest-order derivatives. These majorants provide ϵ\epsilon-uniform upper bounds on the solution gradients, ensuring that grid clustering is applied only in proportion to the local solution variation.

A function ψ(x),x∈[0,1]\psi(x), x \in [0,1], is a majorant of u(x)u(x) if it is integrable over [0,1][0,1] and satisfies ∣u′(x)∣≤ψ(x)|u'(x)| \leq \psi(x) for all x∈[0,1]x \in [0,1]. We then define the coordinate transformation

T. YU AND I. OSELEDETS

ξ=T(x)\xi = T(x) by

(2.4)

dTdx=cψ(x),T(0)=0.\begin{aligned}\frac{\mathrm{d}T}{\mathrm{d}x}&=c\psi(x),\\T(0)&=0.\end{aligned}

Choosing c so that T(1)=1T(1) = 1 gives

(2.5)

∣dudξ∣=∣dudx⋅dxdξ∣≤1c.\left|\frac{\mathrm{d}u}{\mathrm{d}\xi}\right|=\left|\frac{\mathrm{d}u}{\mathrm{d}x}\cdot\frac{\mathrm{d}x}{\mathrm{d}\xi}\right|\leq\frac{1}{c}.

The following Theorem 2.1 shows that a unique gradient-equidistributing coordinate transformation exists and minimizes the squared L2L^{2} norm of the solution gradient in the computational coordinate.

THEOREM 2.1. Let u∈W1,1([0,1])u \in W^{1,1}([0,1]) with u′(x)≠0u'(x) \neq 0 a.e. on [0,1][0,1], and define the admissible set

(2.6)

A:={T∈W1,1([0,1]):T(0)=0,T(1)=1,T′(x)>0 a.e. on [0,1]}.\mathcal{A}:=\left\{T\in W^{1,1}([0,1]):T(0)=0,T(1)=1,T^{\prime}(x)>0{~a.e.~o n~}[0,1]\right\}.

For T∈AT \in \mathcal{A}, let v(ξ):=u(T−1(ξ))v(\xi) := u(T^{-1}(\xi)). Then

(2.7)

∫01∣v′(ξ)∣2dξ=∫01∣u′(x)∣2T′(x)dx.\int_{0}^{1}|v^{\prime}(\xi)|^{2}\mathrm{d}\xi=\int_{0}^{1}\frac{|u^{\prime}(x)|^{2}}{T^{\prime}(x)}\mathrm{d}x.

Moreover, the unique solution to the optimization problem

(2.8)

min⁡T∈A∫01∣u′(x)∣2T′(x)dx\min_{T\in\mathcal{A}}\int_{0}^{1}\frac{|u^{\prime}(x)|^{2}}{T^{\prime}(x)}\mathrm{d}x

is

(2.9)

(T′)∗(x)=∣u′(x)∣∫01∣u′(s)∣ds.(T^{\prime})^{*}(x)=\frac{|u^{\prime}(x)|}{\int_{0}^{1}|u^{\prime}(s)|\mathrm{d}s}.

Although Theorem 2.1 is a classical result that has been widely discussed [7, 9] and proved for certain PDE classes [18], we include it for completeness and provide its proof in Appendix A.

Thus, a function u(x)u(x) whose total variation on [0,1][0,1] is bounded by a constant independent of ϵ\epsilon is transformed into u(T−1(ξ))u(T^{-1}(\xi)), whose first derivative with respect to ξ\xi is uniformly bounded on [0,1][0,1]. In this paper, we introduce and use three types of majorant functions, ψ1\psi_1, ψ2\psi_2, and ψ3\psi_3, and their corresponding coordinate transformations, Tψ1T_{\psi_1}, Tψ2T_{\psi_2}, and Tψ3T_{\psi_3}. Define

(2.10)

dTψidx=ψi(x),x∈[0,1],i=1,2,3.\frac{\mathrm{d}T_{\psi_{i}}}{\mathrm{d}x}=\psi_{i}(x),\quad x\in[0,1],i=1,2,3.

Thus, integrating these expressions gives explicit formulas for Tψi(x)T_{\psi_{i}}(x). We then have: Majorant1.

(2.11)

ψ1(x;x0,b,α)=α−1exp⁡(−b∣x−x0∣α).(2.12)\psi_{1}(x;x_{0},b,\alpha)=\alpha^{-1}\exp\left(-\frac{b|x-x_{0}|}{\alpha}\right). \tag{2.12} Tψ1(x;x0,b,α)={1b(1−exp⁡(−b(x−x0)α))+C,x≥x0,−1b(1−exp⁡(−b(x0−x)α))+C,x<x0.T_{\psi_{1}}(x;x_{0},b,\alpha)=\left\{\begin{aligned}&\frac{1}{b}\left(1-\exp\left(-\frac{b(x-x_{0})}{\alpha}\right)\right)+C,&x\geq x_{0},\\ &-\frac{1}{b}\left(1-\exp\left(-\frac{b(x_{0}-x)}{\alpha}\right)\right)+C,&x<x_{0}.\end{aligned}\right.

Majorant2.

(2.13)

ψ2(x;x0,b,α)=αb(α+∣x−x0∣)b+1.(2.14)\psi_{2}(x;x_{0},b,\alpha)=\frac{\alpha^{b}}{(\alpha+|x-x_{0}|)^{b+1}}. \tag{2.14} Tψ2(x;x0,b,α)={1b(1−(αα+x−x0)b)+C,x≥x0,−1b(1−(αα+x0−x)b)+C,x<x0.T_{\psi_{2}}(x;x_{0},b,\alpha)=\begin{cases}\frac{1}{b}\left(1-\left(\frac{\alpha}{\alpha+x-x_{0}}\right)^{b}\right)+C,&x\geq x_{0},\\ -\frac{1}{b}\left(1-\left(\frac{\alpha}{\alpha+x_{0}-x}\right)^{b}\right)+C,&x<x_{0}.\end{cases}

Majorant3.

(2.15)

ψ3(x;x0,α)=1(α+∣x−x0∣)∣log⁡α∣.(2.16)\psi_{3}(x;x_{0},\alpha)=\frac{1}{(\alpha+|x-x_{0}|)|\log\alpha|}. \tag{2.16} Tψ3(x;x0,α)={1∣log⁡α∣log⁡(1+x−x0α)+C,x≥x0,−1∣log⁡α∣log⁡(1+x0−xα)+C,x<x0.T_{\psi_{3}}(x;x_{0},\alpha)=\begin{cases}\frac{1}{|\log\alpha|}\log\left(1+\frac{x-x_{0}}{\alpha}\right)+C,&x\geq x_{0},\\ -\frac{1}{|\log\alpha|}\log\left(1+\frac{x_{0}-x}{\alpha}\right)+C,&x<x_{0}.\end{cases}

Here, α>0\alpha > 0, b>0b > 0, and x0∈[0,1]x_0 \in [0,1] are hyperparameters or trainable parameters. The integration constant CC is determined by normalizing the transformation as Tψi(x)→Tψi(x)−Tψi(0)Tψi(1)−Tψi(0)T_{\psi_i}(x) \to \frac{T_{\psi_i}(x) - T_{\psi_i}(0)}{T_{\psi_i}(1) - T_{\psi_i}(0)}, which ensures that Tψi:[0,1]→[0,1]T_{\psi_i} : [0,1] \to [0,1], Tψi(0)=0T_{\psi_i}(0) = 0, and Tψi(1)=1T_{\psi_i}(1) = 1.

We also summarize the properties and application range of these three majorants in Table 1, which can serve as a guide for selecting an appropriate majorant for a given problem in CTPINNs.

Table 1: Properties and application ranges of three majorants.

MajorantSuitable PDE TypePhysical Scenario Keywords
ψ1\psi_1Parabolic PDEs, Navier-Stokes EquationsHigh Reynolds number, rapidly decaying layer
ψ2\psi_2Thin shell equations, Seepage equationsAdsorbed flow, thin structure deformation
ψ3\psi_3Potential field equations, Orifice flow equationsCorner singularities, slow diffusion

2.2.2. Multi-variable Majorant Functions. Multivariable majorant functions are constructed from the single-variable majorants ψ\psi either by applying majorants independently along each dimension or by using transfinite interpolation along the edges of the domain.

Applying majorants on each dimension. For a dd-dimensional function, we can construct the coordinate transformation by applying a majorant independently along each dimension. Specifically, we define T(x)=(T1(x1),…,Td(xd))\boldsymbol{T}(\boldsymbol{x}) = (T_1(x_1), \ldots, T_d(x_d)), where each TiT_i is a majorant. Examples of transformations constructed by applying Majorant1 with ϵ=0.3\epsilon = 0.3 along each dimension are shown in Figures 1b to 1d.

Transfinite interpolation. The transfinite interpolation method [15] constructs multidimensional coordinate transformations by blending majorants along the domain

T. YU AND I. OSELEDETS

edges. For example, when d = 2, we can define the coordinate transformation as follows:

(2.17)

T1(x,y)=(1−y)T1(0)(x)+yT1(1)(x),T2(x,y)=(1−x)T2(0)(y)+xT2(1)(y),\begin{align*}T_{1}(x,y)&=(1-y)T_{1}^{(0)}(x)+yT_{1}^{(1)}(x),\\T_{2}(x,y)&=(1-x)T_{2}^{(0)}(y)+xT_{2}^{(1)}(y),\end{align*}

where T1(0)T_{1}^{(0)} and T1(1)T_{1}^{(1)} are majorants applied along the edges y = 0 and y = 1, respectively, and T2(0)T_{2}^{(0)} and T2(1)T_{2}^{(1)} are majorants applied along the edges x = 0 and x = 1, respectively. This method ensures that the coordinate transformation transitions smoothly between the different single-variable transformations along the domain edges and has been shown to be effective in practice [10]. Examples of transformations constructed by transfinite interpolation with randomly generated parameters are shown in Figures 1e to 1h. Implicit constructions are naturally more flexible and can be applied to more complex geometries.

Figure

(a) Uniform

(b) (0.0, 0.0)

(c) (0.5, 0.0)

(d) (0.5, 0.5)

Figure

(e) Transfinite

(f) Transfinite

(g) Transfinite

(h) Transfinite

Fig. 1: Examples of coordinate transformations for 2D problems. (a): Uniform grid. (b)–(d): Coordinate transformations constructed by applying Majorant1 with ϵ=0.3\epsilon = 0.3 along each dimension. The labels indicate (x0,y0)(x_0, y_0). (e)–(h): Coordinate transformations constructed by transfinite interpolation with randomly generated parameters.

2.3. CTPINNs: Coordinate Transformation Physics-Informed Neural Networks. We propose Coordinate Transformation Physics-Informed Neural Networks (CTPINNs). Mathematically, let the network output be uθ(x)=NN(x;θ)u^\theta(\boldsymbol{x}) = \mathcal{N}\mathcal{N}(\boldsymbol{x}; \theta), where x\boldsymbol{x} is the network input. After incorporating the CT function T\boldsymbol{T}, the network output in CTPINNs becomes uθ(x)=NN(T(x);θ)u^\theta(\boldsymbol{x}) = \mathcal{N}\mathcal{N}(\boldsymbol{T}(\boldsymbol{x}); \theta). The function T(x)\boldsymbol{T}(\boldsymbol{x}) is designed to satisfy (2.4), thereby making the transformed solution in the computational domain simpler and easier for the neural network to learn.

Figure 2 illustrates the benefits of CTPINNs. Learning the solution in the physical domain can be difficult because of sharp gradients and the spectral bias of neural networks [30]. The CT module maps the physical domain (x,y)∈Ω(x,y) \in \Omega to the computational domain (ξ,η)∈Ωˉ(\xi,\eta) \in \bar{\Omega}, where the solution is simpler and therefore easier for the network to learn.

We next introduce two approaches for constructing T\mathcal{T}. The explicit approach (subsection 2.3.1) directly employs the explicit majorants, whereas the implicit approach (subsection 2.3.2) is designed for more general problems in which explicit majorants are unavailable.

Figure

Fig. 2: Comparison of PINNs (blue line) and CTPINNs (green line) on the 2D boundary-layer problems in subsection 4.1.2. The CT module maps the physical domain x=(x,y)\boldsymbol{x} = (x,y) to the computational domain ξ=(ξ,η)\boldsymbol{\xi} = (\xi,\eta). In PINNs, the network takes (x,y)(x,y) as input and approximates the solution in the physical domain. In CTPINNs, the network takes (ξ,η)(\xi,\eta) as input and approximates the solution in the computational domain. The transformed solution has lower functional complexity (e.g., smaller gradients and fewer high-frequency components) than the solution in the physical domain and is therefore easier for the neural network to learn.

2.3.1. Explicit Construction. The explicit construction directly defines the CT function T\mathcal{T} using explicit majorants. For example, consider the following one-dimensional boundary-layer problem, whose analytical solution is u∗=e−x/ϵu^* = e^{-x/\epsilon}:

(2.18)

ϵuxx+ux=0,x∈[0,1],u(0)=1,u(1)=e−1/ϵ.\begin{aligned}\epsilon u_{xx}+u_{x}&=0,\quad x\in[0,1],\\u(0)&=1,\quad u(1)=e^{-1/\epsilon}.\end{aligned}

Then for PINNs, the loss function is defined as:

(2.19)

L(θ)=1Nr∑i=1Nr∣ϵuxxθ(xi)+uxθ(xi)∣2+12∣uθ(0)−1∣2+12∣uθ(1)−e−1/ϵ∣2.\mathcal{L}(\theta)=\frac{1}{N_{r}}\sum_{i=1}^{N_{r}}|\epsilon u_{xx}^{\theta}(x_{i})+u_{x}^{\theta}(x_{i})|^{2}+\frac{1}{2}|u^{\theta}(0)-1|^{2}+\frac{1}{2}|u^{\theta}(1)-e^{-1/\epsilon}|^{2}.

Consider Majorant1 in (2.11) with α=ϵ\alpha=\epsilon, b=1b=1, and x0=0x_0=0, which is the optimal choice for this problem (by Theorem 2.1). The CT function for this boundary-layer problem is Tbl(x)=−exp⁡(−x/α)T_{\mathrm{bl}}(x)=-\exp(-x/\alpha). After normalization, we have ξ=T(x)=\xi=T(x)=

T. YU AND I. OSELEDETS

Tbl(x)−Tbl(0)Tbl(1)−Tbl(0)\frac{T_{\mathrm{bl}}(x)-T_{\mathrm{bl}}(0)}{T_{\mathrm{bl}}(1)-T_{\mathrm{bl}}(0)}, and the PDE in (2.18) can be transformed into:

(2.20)

ϵ(dTdxuξ)ξdTdx+uξdTdx=0,ξ∈[0,1],⇒ϵα(1−e−1/α)[1−ξ(1−e−1/α)]uξξ+(1−ϵα)uξ=0,ξ∈[0,1],u(0)=1,u(1)=e−1/ϵ.\begin{align*}\epsilon\left(\frac{dT}{dx}u_{\xi}\right)_{\xi}\frac{dT}{dx}+u_{\xi}\frac{dT}{dx}&=0,\quad\xi\in[0,1],\\\Rightarrow\frac{\epsilon}{\alpha(1-e^{-1/\alpha})}\Big[1-\xi(1-e^{-1/\alpha})\Big]u_{\xi\xi}+\left(1-\frac{\epsilon}{\alpha}\right)u_{\xi}&=0,\quad\xi\in[0,1],\\u(0)=1,\quad u(1)=e^{-1/\epsilon}.\end{align*}

If α=ϵ\alpha = \epsilon, the residual equation can be reduced to uξξ=0u_{\xi\xi} = 0, indicating that the solution is linear in the transformed coordinate ξ\xi. However, the transformed residual equation in (2.20) is more complex and introduces stronger coupling between α\alpha and the higher-order derivatives, which can make optimizing α\alpha less stable. This issue becomes even more pronounced for more complex PDEs, such as nonlinear ones. Therefore, for more general PDEs, we retain the original residual equation and leave the PINN loss formulation unchanged in CTPINNs. This is possible because automatic differentiation applies the chain rule to uθ(T(x))u^{\theta}(T(x)), e.g., vxθ(T(x))=vξθ(ξ)dTdxv_{x}^{\theta}(T(x)) = v_{\xi}^{\theta}(\xi)\frac{dT}{dx}, and similarly for higher-order derivatives. Since automatic differentiation handles the transformation implicitly, CTPINNs can be trained with the same loss function, without explicit modification, as follows:

(2.21)

L(θ)=1Nr∑i=1Nr∣ϵuxxθ(T(xi))+uxθ(T(xi))∣2+12∣uθ(T(0))−1∣2+12∣uθ(T(1))−e−1/ϵ∣2.\mathcal{L}(\theta)=\frac{1}{N_{r}}\sum_{i=1}^{N_{r}}|\epsilon u_{x x}^{\theta}(T(x_{i}))+u_{x}^{\theta}(T(x_{i}))|^{2}+\frac{1}{2}|u^{\theta}(T(0))-1|^{2}+\frac{1}{2}|u^{\theta}(T(1))-e^{-1/\epsilon}|^{2}.

The explicit construction is simple and effective, but it requires prior knowledge of the solution behavior derived from the formulas of given PDEs to construct the majorant function, even when adaptivity is allowed. Such prior knowledge may be unavailable when the solution exhibits sharp gradients in several distinct regions. Therefore, we also propose an implicit construction method that does not require prior knowledge of the solution behavior and can be applied to more general problems.

2.3.2. Implicit Construction. The explicit construction can admit countably many identifiable points at which u′=0u' = 0: the domain can be partitioned at these points, and a majorant constructed on each subinterval. However, when the zero set is uncountable or its structure is too complex or unknown, a learnable explicit construction may not be available. This motivates the implicit construction, which represents T\pmb{T} with a learnable neural network Tθ\pmb{T}^{\theta} and trains it jointly with the solution network. Since automatic differentiation also applies to this construction, it can be trained without changing the loss function.

Neural networks have already been investigated as a tool for mesh generation [23]. In [53, 57], the authors propose a neural network that learns mesh-generation mappings from high-accuracy mapping pairs using supervised learning. In [29], the authors propose using PINNs to learn both harmonic PDEs (to generate smooth CT functions) and equations describing mesh requirements. In [34, 47], the authors propose specific loss functions for learning mesh-generation mappings. However, these methods are designed for classical numerical methods, which are not mesh-free and have the additional stability requirements discussed above. They are not designed to train the coordinate transformation jointly with the solution model in PINNs, and their networks are not necessarily differentiable. Accordingly, to construct TθT^{\theta} for CTPINNs, we first introduce invertible neural networks (INNs), which are the cornerstone of the implicit construction.

Invertible neural networks. Invertible neural networks (INNs) are a class of neural networks designed to learn bijective mappings, such that the input can be uniquely recovered from the output. Representative approaches include invertible residual networks [2], normalizing flows [33], and continuous normalizing flows [4]. In CTPINNs, we employ invertible networks based on the following formulation for the implicit construction:

(2.22)

Texpθ(x)=x⊙exp⁡(pfctθ(x)),x∈[0,1]d\mathbf{T}_{\mathrm{e x p}}^{\theta}(\boldsymbol{x})=\boldsymbol{x}\odot\exp\left(p\boldsymbol{f}_{\mathrm{c t}}^{\theta}(\boldsymbol{x})\right),\quad\boldsymbol{x}\in[0,1]^{d}

where fctθ\boldsymbol{f}_{\mathrm{ct}}^{\theta} is a neural network, p>0p > 0 is a hyperparameter, and ⊙\odot denotes element-wise multiplication. A larger value of pp can increase the gradient magnitude of Texpθ\boldsymbol{T}_{\mathrm{exp}}^{\theta}, allowing the transformation to better handle steep gradients. Notably, Texpθ\boldsymbol{T}_{\mathrm{exp}}^{\theta} does not map [0,1]d[0,1]^{d} to itself; instead, it maps [0,1]d[0,1]^{d} to γ[0,1]d\gamma[0,1]^{d}, where γ\gamma is a scaling vector. However, this issue is negligible in CTPINNs because the scaling factor can be regarded as being absorbed into the weights of the downstream network.

Recall the required properties of CT functions T\mathbf{T} in subsection 2.2. The bijectivity of Texpθ\mathbf{T}_{\mathrm{exp}}^{\theta} can be ensured by constraining the Lipschitz constant of fct\mathbf{f}_{\mathrm{ct}}. The smoothness of Texpθ\mathbf{T}_{\mathrm{exp}}^{\theta} can be ensured by using smooth activation functions. Its boundary-fittedness follows from its multiplicative form and injectivity: because each exponential factor is strictly positive, Texp,iθ(x)=0\mathbf{T}_{\mathrm{exp},i}^{\theta}(\mathbf{x}) = 0 if and only if xi=0x_i = 0, so each coordinate face {xi=0}\{x_i = 0\} is mapped to the corresponding boundary portion {ξi=0}\{\xi_i = 0\} of the image domain. Moreover, once the Lipschitz constraint below ensures global injectivity, the smooth map is a homeomorphism from [0,1]d[0,1]^d onto its image ω:=Texpθ([0,1]d)\omega := \mathbf{T}_{\mathrm{exp}}^{\theta}([0,1]^d) and maps the boundary of the cube to the boundary of ω\omega.

Next, we explain how to ensure bijectivity in INNs by constraining the Lipschitz constant.

The key idea is to control the Lipschitz constant to ensure invertibility. In machine learning, Lipschitz-constant control is commonly used in generative adversarial networks (GANs) [14], especially in Wasserstein GANs [1] for the Wasserstein-1 distance. Several methods can control the Lipschitz constant of neural networks, including spectral normalization [28], gradient penalty [16], and weight clipping [1]. In CTPINNs, we use spectral normalization to control the Lipschitz constant of fctθ\boldsymbol{f}_{\mathrm{ct}}^{\theta}.

Spectral normalization normalizes layer weight matrices by their largest singular values to constrain the network's Lipschitz constant. Applied to fctθ\boldsymbol{f}_{\mathrm{ct}}^{\theta}, it bounds the overall Lipschitz constant. Let Jfctθ(x)J_{\boldsymbol{f}_{\mathrm{ct}}^{\theta}}(\boldsymbol{x}) denote the Jacobian of fctθ\boldsymbol{f}_{\mathrm{ct}}^{\theta}. If the weight matrix of each layer is WℓW_{\ell} and the activation has global Lipschitz constant CσC_{\sigma}, then a global upper bound on the Lipschitz constant of fctθ\boldsymbol{f}_{\mathrm{ct}}^{\theta} is

(2.23)

Lfct=∏ℓ∥Wℓ∥2Cσ≥sup⁡x∈[0,1]d∥Jfctθ(x)∥2.L_{f_{\mathrm{c t}}}=\prod_{\ell}\|W_{\ell}\|_{2}C_{\sigma}\geq\operatorname*{s u p}_{\boldsymbol{x}\in[0,1]^{d}}\|J_{\boldsymbol{f}_{\mathrm{c t}}^{\theta}}(\boldsymbol{x})\|_{2}.

Therefore, by choosing LL to satisfy the derived lower bound and replacing fctθ\boldsymbol{f}_{\mathrm{ct}}^{\theta} with fctθ/L\boldsymbol{f}_{\mathrm{ct}}^{\theta}/L, we can ensure that the corresponding transformation Tθ\boldsymbol{T}^{\theta} is invertible on its domain and, consequently, bijective onto its image. We next derive a suitable lower bound for LL for Texpθ\boldsymbol{T}_{\mathrm{exp}}^{\theta}. Its Jacobian can be written as

(2.24)

JTexpθ=Diag(exp⁡(pfctθL))(I+Diag(x)pLJfctθ).J_{\mathbf{T}_{\mathrm{e x p}}}^{\theta}=\mathrm{D i a g}\left(\exp\left(\frac{p\mathbf{f}_{\mathrm{c t}}^{\theta}}{L}\right)\right)\left(I+\mathrm{D i a g}(\boldsymbol{x})\frac{p}{L}J_{\mathbf{f}_{\mathrm{c t}}}^{\theta}\right).

T. YU AND I. OSELEDETS

On [0,1]d[0,1]^d, ∥Diag(x)∥2≤1\|\mathrm{Diag}(\boldsymbol{x})\|_2 \leq 1. Therefore, for a constant ηexp<1\eta_{\mathrm{exp}} < 1, a sufficient condition for bijectivity of the map from [0,1]d[0,1]^d to γ[0,1]d\gamma[0,1]^d is

(2.25)

∥Diag(x)pLJfctθ∥2≤pLfctL≤ηexp<1,\left\|\mathrm{D i a g}(\boldsymbol{x})\frac{p}{L}J_{f_{\mathrm{c t}}}^{\theta}\right\|_{2}\leq\frac{p L_{f_{\mathrm{c t}}}}{L}\leq\eta_{\mathrm{e x p}}<1,

which is ensured by

(2.26)

L≥pLfctηexp.L\geq\frac{p L_{f_{\mathrm{c t}}}}{\eta_{\mathrm{e x p}}}.

In implementation, we set ηexp=0.98\eta_{\mathrm{exp}} = 0.98 and use

(2.27)

L=max⁡{1,pLfctηexp}.L=\max\left\{1,\frac{p L_{f_{\mathrm{c t}}}}{\eta_{\mathrm{e x p}}}\right\}.

Accordingly, we update LL every NupdN_{\mathrm{upd}} iterations using (2.27) to maintain the required bijectivity throughout training.

  1. Theoretical Analysis. Here, we analyze convergence rates using the NTK (subsection 3.1), investigate the implicit tendency toward gradient equidistribution (subsection 3.2), and present the error analysis (subsection 3.3).

The following analysis focuses on training an MLP with tanh activation to solve the one-dimensional boundary-layer problem in (2.18) using the CTPINN framework. Let

(3.1)

u∗(x)=e−x/ϵu^{*}(x)=e^{-x/\epsilon}

denote its analytical solution, and let vθ:[0,1]→Rv^\theta : [0,1] \to \mathbb{R} denote the network after the CT function. The CT function used is

(3.2)

Tα(x):=1−exp⁡(−x/α)1−exp⁡(−1/α),T_{\alpha}(x):=\frac{1-\exp(-x/\alpha)}{1-\exp(-1/\alpha)},

where α>0\alpha > 0 is a fixed or learnable parameter. We define the CTPINN output as

(3.3)

uθ,α(x):=vθ(Tα(x)).u^{\theta,\alpha}(x):=v^{\theta}(T_{\alpha}(x)).

Given a set of distinct interior collocation points X={x1,…,xNr}⊂(0,1)\mathcal{X} = \{x_1, \ldots, x_{N_r}\} \subset (0,1), the loss 1^1 is

L(θ,α):=Lr(θ,α)+Lbc(θ,α),Lr(θ,α):=12Nr∑i=1Nr∣ϵuxxθ,α(xi)+uxθ,α(xi)∣2,Lbc(θ,α):=12∣uθ,α(0)−1∣2+12∣uθ,α(1)−e−1/ϵ∣2.\begin{align*}\mathcal{L}(\theta,\alpha)&:=\mathcal{L}_{r}(\theta,\alpha)+\mathcal{L}_{bc}(\theta,\alpha),\\\mathcal{L}_{r}(\theta,\alpha)&:=\frac{1}{2N_{r}}\sum_{i=1}^{N_{r}}\left|\epsilon u_{xx}^{\theta,\alpha}(x_{i})+u_{x}^{\theta,\alpha}(x_{i})\right|^{2},\\\mathcal{L}_{bc}(\theta,\alpha)&:=\frac{1}{2}\left|u^{\theta,\alpha}(0)-1\right|^{2}+\frac{1}{2}\left|u^{\theta,\alpha}(1)-e^{-1/\epsilon}\right|^{2}.\end{align*}

(3.4)

1^{1}Compared with the convention in (2.2), we include an additional factor of 1/2 in each term to align with the standard NTK gradient-flow formulation.

3.1. NTK Convergence Analysis. We use NTK analysis to compare the local convergence rates of PINNs and CTPINNs. For an L+1L+1-layer MLP with n0=1n_{0}=1 and hidden widths n1,…,nLn_{1},\ldots,n_{L}, we use the width-normalized parameterization

(3.5)

h(0)(ξ)=ξ,h(ℓ)(ξ)=tanh⁡(1nℓ−1W(ℓ)h(ℓ−1)(ξ)+b(ℓ)),ℓ=1,…,L,vθ(ξ)=1nLW(L+1)⊤h(L)(ξ)+b(L+1).\begin{align*}h^{(0)}(\xi)&=\xi,\\h^{(\ell)}(\xi)&=\tanh\bigg(\frac{1}{\sqrt{n_{\ell-1}}}W^{(\ell)}h^{(\ell-1)}(\xi)+b^{(\ell)}\bigg),\qquad\ell=1,\ldots,L,\\v^{\theta}(\xi)&=\frac{1}{\sqrt{n_{L}}}W^{(L+1)\top}h^{(L)}(\xi)+b^{(L+1)}.\end{align*}

At initialization, all entries of W(ℓ)W^{(\ell)} and b(ℓ)b^{(\ell)}, for ℓ=1,…,L+1\ell = 1, \ldots, L + 1, are sampled independently from N(0,σ2)\mathcal{N}(0, \sigma^2), where σ2>0\sigma^2 > 0 is fixed independently of the layer widths. We analyze the limit n1,…,nL→∞n_1, \ldots, n_L \to \infty in the frozen-kernel regime. Define

(3.6)

rα(θ):=({ϵuxxθ,α(xi)+uxθ,α(xi)Nr}i=1Nr,uθ,α(0)−1,uθ,α(1)−e−1/ϵ),Rα,Nr+1f:=f(0),Rα,Nr+2f:=f(1).\begin{align*}\boldsymbol{r}_{\alpha}(\theta):=&\left(\left\{\frac{\epsilon u_{xx}^{\theta,\alpha}(x_{i})+u_{x}^{\theta,\alpha}(x_{i})}{\sqrt{N_{r}}}\right\}_{i=1}^{N_{r}},u^{\theta,\alpha}(0)-1,u^{\theta,\alpha}(1)-e^{-1/\epsilon}\right),\\\mathcal{R}_{\alpha,N_{r}+1}f:=&f(0),\\\mathcal{R}_{\alpha,N_{r}+2}f:=&f(1).\end{align*}

and for i=1,…,Nri = 1, \ldots, N_{r}, define

(3.7)

Rα,if:=1Nr[ϵ(Tα′(xi))2f′′(Tα(xi))+(ϵTα′′(xi)+Tα′(xi))f′(Tα(xi))].\mathcal{R}_{\alpha,i}f:=\frac{1}{\sqrt{N_{r}}}\left[\epsilon\big(T_{\alpha}^{\prime}(x_{i})\big)^{2}f^{\prime\prime}(T_{\alpha}(x_{i}))+\big(\epsilon T_{\alpha}^{\prime\prime}(x_{i})+T_{\alpha}^{\prime}(x_{i})\big)f^{\prime}(T_{\alpha}(x_{i})\big)\right].

Let

(3.8)

Θ(ξ,ζ):=lim⁡n1,…,nL→∞⟨∇θvθ(ξ),∇θvθ(ζ)⟩\Theta(\xi,\zeta):=\lim_{n_{1},\ldots,n_{L}\to\infty}\langle\nabla_{\theta}v^{\theta}(\xi),\nabla_{\theta}v^{\theta}(\zeta)\rangle

be the frozen infinite-width output NTK at initialization. The frozen infinite-width residual NTK Kα∈R(Nr+2)×(Nr+2)K_{\alpha} \in \mathbb{R}^{(N_r+2) \times (N_r+2)} is then defined by

(3.9)

(Kα)ij:=Rα,i(ξ)Rα,j(ζ)Θ(ξ,ζ),i,j=1,…,Nr+2.(K_{\alpha})_{i j}:=\mathcal{R}_{\alpha,i}^{(\xi)}\mathcal{R}_{\alpha,j}^{(\zeta)}\Theta(\xi,\zeta),\qquad i,j=1,\ldots,N_{r}+2.

For Tα(x)T_{\alpha}(x), the identity coordinate transformation is T∞(x):=lim⁡α→∞Tα(x)=xT_{\infty}(x):=\lim_{\alpha\to\infty}T_{\alpha}(x)=x. Accordingly, we define the residual NTK for the identity transformation, and hence for PINNs, as KI:=lim⁡α→∞KαK_{I}:=\lim_{\alpha\to\infty}K_{\alpha}. Define

(3.10)

λI:=λmin⁡(KI),λα:=λmin⁡(Kα).\lambda_{I}:=\lambda_{\min}(K_{I}),\qquad\lambda_{\alpha}:=\lambda_{\min}(K_{\alpha}).

For a fixed coordinate map, continuous-time gradient flow in the frozen-kernel regime satisfies

(3.11)

r˙α(t)=−Kαrα(t),∥rα(t)∥22≤e−2λαt∥rα(0)∥22.\dot{\boldsymbol{r}}_{\alpha}(t)=-K_{\alpha}\boldsymbol{r}_{\alpha}(t),\qquad\|\boldsymbol{r}_{\alpha}(t)\|_{2}^{2}\leq e^{-2\lambda_{\alpha}t}\|\boldsymbol{r}_{\alpha}(0)\|_{2}^{2}.

PROPOSITION 3.1. For the L+1L+1-layer MLP described above, KαK_{\alpha} is continuously differentiable in α∈(0,∞)\alpha \in (0,\infty). Consequently, for αˉ>ϵ\bar{\alpha} > \epsilon and I=[ϵ,αˉ]\mathcal{I} = [\epsilon, \bar{\alpha}], there exists CI>0C_{\mathcal{I}} > 0 such that

(3.12)

∥Kα−Kβ∥2≤CI∣α−β∣,α,β∈I.\|K_{\alpha}-K_{\beta}\|_{2}\leq C_{\mathcal{I}}|\alpha-\beta|,\qquad\alpha,\beta\in\mathcal{I}.

T. YU AND I. OSELEDETS

Here, CIC_{\mathcal{I}} is discussed in the proof.

Based on Theorem 2.1, α=ϵ\alpha = \epsilon is the optimal choice for the coordinate transformation parameter, and its corresponding residual NTK is KϵK_{\epsilon}. Let Nntk:=Nr+2N_{ntk} := N_{r} + 2, and define

(3.13)

κ‾ϵ:=min⁡1≤i≤Nntk((Kϵ)ii−∑1≤j≤Nntkj≠i∣(Kϵ)ij∣),ηϵ:=κ‾ϵ−λI.\begin{align*}\underline{\kappa}_{\epsilon}&:=\min_{1\leq i\leq N_{ntk}}\left((K_{\epsilon})_{ii}-\sum_{\substack{1\leq j\leq N_{ntk}\\ j\neq i}}|(K_{\epsilon})_{ij}|\right),\\\eta_{\epsilon}&:=\underline{\kappa}_{\epsilon}-\lambda_{I}.\end{align*}

PROPOSITION 3.2. If the collocation points set X\mathcal{X} satisfies

(3.14)

κ‾ϵ>λI,\underline{\kappa}_{\epsilon}>\lambda_{I},

then ηϵ>0\eta_{\epsilon} > 0 and λϵ≥λI+ηϵ>λI\lambda_{\epsilon} \geq \lambda_{I} + \eta_{\epsilon} > \lambda_{I}.

Furthermore, for the iith standard basis vector ei∈RNntke_i \in \mathbb{R}^{N_{\mathrm{ntk}}}, define the canonical Gram feature associated with the iith residual component by

(3.15)

gα,i:=Kα1/2ei,i=1,…,Nntk.g_{\alpha,i}:=K_{\alpha}^{1/2}e_{i},\qquad i=1,\ldots,N_{\mathrm{n t k}}.

Here, Kα1/2K_{\alpha}^{1/2} denotes the symmetric positive semidefinite square root of KαK_{\alpha}.

LEMMA 3.3. For every α>0\alpha > 0, the residual NTK KαK_\alpha is real symmetric and positive semidefinite. Hence, by the spectral theorem, if Kα=QΛQ⊤K_\alpha = Q\Lambda Q^\top with Λ≥0\Lambda \geq 0, its unique symmetric positive semidefinite square root is Kα1/2=QΛ1/2Q⊤K_\alpha^{1/2} = Q\Lambda^{1/2}Q^\top.

Then

(3.16)

(Kα)ij=ei⊤Kαej=⟨gα,i,gα,j⟩,i,j=1,…,Nntk.(K_{\alpha})_{i j}=e_{i}^{\top}K_{\alpha}e_{j}=\langle g_{\alpha,i},g_{\alpha,j}\rangle,\qquad i,j=1,\ldots,N_{\mathrm{n t k}}.

Using these features, define

(3.17)

mϵ:=min⁡1≤i≤Nntk∥gϵ,i∥2,Mϵ:=max⁡1≤i≤Nntk∥gϵ,i∥2,μϵ:=max⁡1≤i,j≤Nntki≠j∣⟨gϵ,i,gϵ,j⟩∣∥gϵ,i∥2∥gϵ,j∥2.\begin{align*}m_{\epsilon}&:=\min_{1\leq i\leq N_{ntk}}\|g_{\epsilon,i}\|_{2},\\M_{\epsilon}&:=\max_{1\leq i\leq N_{ntk}}\|g_{\epsilon,i}\|_{2},\\\mu_{\epsilon}&:=\max_{\substack{1\leq i,j\leq N_{ntk}\\ i\neq j}}\frac{|\langle g_{\epsilon,i},g_{\epsilon,j}\rangle|}{\|g_{\epsilon,i}\|_{2}\|g_{\epsilon,j}\|_{2}}.\end{align*}

Then we have the following corollary.

COROLLARY 3.4. If (Kϵ)ii>0(K_{\epsilon})_{ii} > 0 for every i=1,…,Nntki = 1, \ldots, N_{ntk}, equivalently gϵ,i≠0g_{\epsilon,i} \neq 0 and

(3.18)

mϵ2−(Nntk−1)μϵMϵ2>λI,m_{\epsilon}^{2}-(N_{\mathrm{n t k}}-1)\mu_{\epsilon}M_{\epsilon}^{2}>\lambda_{I},

then (3.14) holds, and consequently λϵ>λI\lambda_{\epsilon} > \lambda_{I}.

The rowwise condition in (3.14) permits the feature norms and correlations to vary across collocation points. The more conservative condition in (3.18) instead requires uniformly large norms and low mutual coherence.

THEOREM 3.5. Let I=[ϵ,αˉ]\mathcal{I} = [\epsilon, \bar{\alpha}] for some αˉ>ϵ\bar{\alpha} > \epsilon. Then, for every α∈I\alpha \in \mathcal{I},

(3.19)

λα≥λI+ηϵ−CI(α−ϵ).\lambda_{\alpha}\geq\lambda_{I}+\eta_{\epsilon}-C_{\mathcal{I}}(\alpha-\epsilon).

Furthermore, if the collocation points condition in (3.14) holds, then ηϵ>0\eta_{\epsilon} > 0 and, for any α∈I\alpha \in \mathcal{I} satisfying α−ϵ<ηϵ/CI\alpha - \epsilon < \eta_{\epsilon}/C_{\mathcal{I}}, we have λα>λI\lambda_{\alpha} > \lambda_{I}.

By (3.11), the inequality λα>λI\lambda_\alpha > \lambda_I means that CTPINNs have a strictly faster NTK convergence rate than PINNs for all α∈I\alpha \in \mathcal{I}, as well as means that CTPINNs mitigate spectral bias effects in the training dynamics.

3.2. Implicit Tendency towards Gradient Equidistribution. First, define uθ(t),α(t)(x)=vθ(t)(Tα(t)(x))u^{\theta(t),\alpha(t)}(x)=v^{\theta(t)}(T_{\alpha(t)}(x)) and the physical-domain PDE residual

(3.20)

R(t,x):=ϵuxxθ(t),α(t)(x)+uxθ(t),α(t)(x).R(t,x):=\epsilon u_{x x}^{\theta(t),\alpha(t)}(x)+u_{x}^{\theta(t),\alpha(t)}(x).

Since Tα′′=−Tα′/αT_{\alpha}^{\prime\prime} = -T_{\alpha}^{\prime}/\alpha, the chain rule gives

(3.21)

R(t,x)=ϵ(Tα(t)′(x))2vξξθ(t)(Tα(t)(x))+(1−ϵα(t))Tα(t)′(x)vξθ(t)(Tα(t)(x)).\begin{align*}R(t,x)=\epsilon\left(T^{\prime}_{\alpha(t)}(x)\right)^{2}v^{\theta(t)}_{\xi\xi}(T_{\alpha(t)}(x))\\+\left(1-\frac{\epsilon}{\alpha(t)}\right)T^{\prime}_{\alpha(t)}(x)v^{\theta(t)}_{\xi}(T_{\alpha(t)}(x)).\end{align*}

We use the following successful-training assumption for the coordinate convergence analysis.

ASSUMPTION 3.6. The original training objective converges to zero:

(3.22)

L(θ(t),α(t))→0as t→∞.\mathcal{L}(\theta(t),\alpha(t))\to0\qquad{a s~}t\to\infty.

However, L(θ(t),α(t))\mathcal{L}(\theta(t),\alpha(t)) need not equal zero at any finite time. If it did, there would be no gradient signal to drive further updates of α(t)\alpha(t).

For the analytical solution u∗(x)=e−x/ϵu^{*}(x) = e^{-x/\epsilon}, the unique coordinate transformation that equidistributes the gradient, as given by Theorem 2.1, is

(3.23)

T∗(x)=∫0x∣(u∗)′(s)∣ds∫01∣(u∗)′(s)∣ds=1−e−x/ϵ1−e−1/ϵ=Tϵ(x).T^{*}(x)=\frac{\int_{0}^{x}|(u^{*})^{\prime}(s)|\mathrm{d}s}{\int_{0}^{1}|(u^{*})^{\prime}(s)|\mathrm{d}s}=\frac{1-e^{-x/\epsilon}}{1-e^{-1/\epsilon}}=T_{\epsilon}(x).

Consequently, the exact transformed solution is affine:

(3.24)

vaff(ξ):=u∗((T∗)−1(ξ))=1−(1−e−1/ϵ)ξ.v_{\mathrm{a f f}}(\xi):=u^{*}((T^{*})^{-1}(\xi))=1-(1-e^{-1/\epsilon})\xi.

Because the target solution in computational coordinates is affine, it is represented exactly by the one-layer linear MLP

(3.25)

va,b(ξ)=a+bξ.v^{a,b}(\xi)=a+b\xi.

Theorem 3.7 shows that the coordinate parameter α(t)\alpha(t) converges to ϵ\epsilon when the CTPINN is trained with the one-layer linear MLP.

THEOREM 3.7. Consider gradient flow for the full loss in (3.4) with the one-layer MLP (3.25). If α(0)≥ϵ\alpha(0) \geq \epsilon and Assumption 3.6 holds, then

(3.26)

α(t)→ϵas t→∞.\alpha(t)\to\epsilon\qquad{a s~}t\to\infty.

Theorem 3.7 relies on prior information that the transformed solution is affine and that α=ϵ\alpha = \epsilon. However, if it is not known a priori whether training will drive the learned CT to the exact optimal transformation, the transformed solution need not be affine. We therefore follow standard deep-learning practice and use a multilayer MLP as the solution model rather than imposing an affine profile. The following convergence result applies under successful training when the non-affine defect is controlled relative

T. YU AND I. OSELEDETS

to the coordinate mismatch. Unlike the MLP in subsection 3.1, this MLP is defined as

(3.27)

h(0)(ξ)=ξ,h(ℓ)(ξ)=tanh⁡(B(ℓ)h(ℓ−1)(ξ)+c(ℓ)),ℓ=1,…,L,vθ(ξ)=β⊤h(L)(ξ)+c(L+1),\begin{align*}h^{(0)}(\xi)&=\xi,\\h^{(\ell)}(\xi)&=\tanh\Big(B^{(\ell)}h^{(\ell-1)}(\xi)+c^{(\ell)}\Big),\qquad\ell=1,\ldots,L,\\v^{\theta}(\xi)&=\beta^{\top}h^{(L)}(\xi)+c^{(L+1)},\end{align*}

and decompose its output into the affine part and the non-affine part:

(3.28)

ℓθ(ξ):=(1−ξ)vθ(0)+ξvθ(1),wθ(ξ):=vθ(ξ)−ℓθ(ξ),δ3(θ):=∥wθ∥C3([0,1]).\begin{align*}\ell^{\theta}(\xi)&:=(1-\xi)v^{\theta}(0)+\xi v^{\theta}(1),\\w^{\theta}(\xi)&:=v^{\theta}(\xi)-\ell^{\theta}(\xi),\\\delta_{3}(\theta)&:=\|w^{\theta}\|_{C^{3}([0,1])}.\end{align*}

Here δ3\delta_{3} measures the deviation from the affine regime.

THEOREM 3.8. If there exist Cρ>0C_\rho > 0 and t0≥0t_0 \geq 0 such that Assumption 3.6 holds and, for all t≥t0t \geq t_0, α(t)≥ϵ\alpha(t) \geq \epsilon and δ3(θ(t))≤Cρ∣1−ϵα(t)∣\delta_3(\theta(t)) \leq C_\rho \left|1 - \frac{\epsilon}{\alpha(t)}\right|, then

(3.29)

α(t)→ϵas t→∞.\alpha(t)\to\epsilon\qquad{a s~}t\to\infty.

Remark 3.9. The threshold CρC_{\rho} depends on ϵ\epsilon and the collocation points. An explicit sufficient choice is provided in the proof.

The proportional condition uses the normalized mismatch ∣1−ϵ/α(t)∣=∣α(t)−ϵ∣/α(t)|1-\epsilon/\alpha(t)|=|\alpha(t)-\epsilon|/\alpha(t); it requires neither a local neighborhood nor an upper bound on α\alpha. The one-sided trajectory condition α(t)≥ϵ\alpha(t)\geq\epsilon excludes the under-resolved limit α(t)→0\alpha(t)\to0. For a non-affine MLP, this condition is assumed rather than deduced from the initialization.

3.3. Error Analysis. We finally analyze how the approximation error in the computational domain transfers back to the physical domain for the same boundary-layer problem. Define the exact transformed solution

(3.30)

v∗(ξ):=u∗(Tα−1(ξ)),ξ∈[0,1].v^{*}(\xi):=u^{*}(T_{\alpha}^{-1}(\xi)),\quad\xi\in[0,1].

Define mα:=min⁡x∈[0,1]Tα′(x)m_{\alpha} := \min_{x \in [0,1]} T_{\alpha}^{\prime}(x) and Mα:=max⁡x∈[0,1]Tα′(x)M_{\alpha} := \max_{x \in [0,1]} T_{\alpha}^{\prime}(x).

THEOREM 3.10. Fix ϵ>0\epsilon > 0 and α>0\alpha > 0. Since TαT_{\alpha} is smooth and strictly increasing on [0,1][0,1], 0<mα<Mα<∞0 < m_{\alpha} < M_{\alpha} < \infty. Then

(3.31)

∥u∗−uθ,α∥L2(0,1)≤C1,α∥v∗−vθ∥L2(0,1),\|u^{*}-u^{\theta,\alpha}\|_{L^{2}(0,1)}\leq C_{1,\alpha}\|v^{*}-v^{\theta}\|_{L^{2}(0,1)},

and

(3.32)

∥(u∗−uθ,α)′∥L2(0,1)≤C2,α∥(v∗−vθ)′∥L2(0,1),\|(u^{*}-u^{\theta,\alpha})^{\prime}\|_{L^{2}(0,1)}\leq C_{2,\alpha}\|(v^{*}-v^{\theta})^{\prime}\|_{L^{2}(0,1)},

where C1,α=mα−1/2C_{1,\alpha}=m_{\alpha}^{-1/2} and C2,α=Mα1/2C_{2,\alpha}=M_{\alpha}^{1/2}. Consequently,

(3.33)

∥u∗−uθ,α∥H1(0,1)≤CTα∥v∗−vθ∥H1(0,1),\|u^{*}-u^{\theta,\alpha}\|_{H^{1}(0,1)}\leq C_{T_{\alpha}}\|v^{*}-v^{\theta}\|_{H^{1}(0,1)},

where CTα:=min⁡{max⁡{C1,α,C2,α},2+Mα}C_{T_{\alpha}} := \min \left\{ \max \{C_{1,\alpha}, C_{2,\alpha}\}, \sqrt{2 + M_{\alpha}} \right\}.

Remark 3.11. For the prescribed normalized exponential transformation in (3.2),

(3.34)

Tα′(x)=exp⁡(−x/α)α(1−exp⁡(−1/α)),T_{\alpha}^{\prime}(x)=\frac{\exp(-x/\alpha)}{\alpha(1-\exp(-1/\alpha))},

which is strictly decreasing on [0,1]. Hence the constants in Theorem 3.10 are explicitly

(3.35)

mα=1α(exp⁡(1/α)−1),Mα=1α(1−exp⁡(−1/α)).m_{\alpha}=\frac{1}{\alpha(\exp(1/\alpha)-1)},\qquad M_{\alpha}=\frac{1}{\alpha(1-\exp(-1/\alpha))}.

Consequently,

(3.36)

C1,α=α(exp⁡(1/α)−1),C2,α=1α(1−exp⁡(−1/α)).C_{1,\alpha}=\sqrt{\alpha(\exp(1/\alpha)-1)},\qquad C_{2,\alpha}=\frac{1}{\sqrt{\alpha(1-\exp(-1/\alpha))}}.

Moreover, 2αsinh⁡(1/(2α))>12\alpha \sinh(1/(2\alpha)) > 1 implies C1,α>C2,αC_{1,\alpha} > C_{2,\alpha}. Hence

(3.37)

CTα=min⁡{α(exp⁡(1/α)−1),2+1α(1−exp⁡(−1/α))}.C_{T_{\alpha}}=\min\left\{\sqrt{\alpha(\exp(1/\alpha)-1)},\sqrt{2+\frac{1}{\alpha(1-\exp(-1/\alpha))}}\right\}.

In particular, the second bound grows only as O(α−1/2)O(\alpha^{-1/2}) as α→0\alpha \to 0, avoiding the exponential growth produced by a direct lower-Jacobian estimate.

Theorem 3.10 shows that once the network reduces the approximation error in the computational domain, the physical-domain error remains controlled by a constant determined by TαT_{\alpha}. Since this constant is independent of the number of collocation points NrN_{r}, any convergence rate in NrN_{r} achieved by vθv^{\theta} is preserved by the physical-domain CTPINN prediction.

  1. Experiments. We first study explicit coordinate transformations in subsection 4.1. To evaluate their adaptiveness (i.e., their implicit tendency toward gradient equidistribution), we consider 1D and 2D boundary-layer problems in subsection 4.1.1 and subsection 4.1.2, respectively, and then compare CTPINNs with adaptive sampling methods on Poisson equations in subsection 4.1.3. We next investigate implicit constructions in subsection 4.2, focusing on the effectiveness of the CT module when integrated into advanced models. Specifically, we combine the CT module with PirateNet [42], SPINN [6], and QRPINN [54] and evaluate its impact on their respective benchmarks. Finally, we analyze the computational cost of CTPINNs in subsection 4.3, showing that the lightweight module is efficient and introduces no significant overhead. The hyperparameter details are provided in Appendix E and the repository https://github.com/DUCH714/CTPINN, which will be made public upon publication.

We use the relative L2L^{2} error as the primary evaluation metric and highlight the minimum error in blue in the tables. For a reference solution u and a model prediction uθu^{\theta}, the relative L2L^{2} error is defined as

(4.1)

RelativeL2=∥u−uθ∥L2(Ω)∥u∥L2(Ω).\mathrm{R e l a t i v e}L^{2}=\frac{\|u-u^{\theta}\|_{L^{2}(\Omega)}}{\|u\|_{L^{2}(\Omega)}}.

In discrete form, this corresponds to replacing the L2L^{2} norms by Euclidean norms on evaluation points. Smaller values indicate better approximation accuracy.

T. YU AND I. OSELEDETS

4.1. Explicit Construction. To verify the adaptiveness of CTPINNs and evaluate the performance of explicit constructions, we conduct experiments on 1D and 2D boundary-layer problems, for which optimal coordinate transformations are known. Additionally, we conduct experiments on 2D Poisson equations to evaluate the performance and robustness of CTPINNs when optimal coordinate transformations are unavailable and to compare them with adaptive sampling methods. For 2D problems, we construct the coordinate transformation by applying majorants independently along each dimension.

4.1.1. 1D Boundary Layer Problems. This section focuses on the 1D boundary-layer problem in (2.18), a classical benchmark for evaluating methods that resolve sharp gradients near boundaries. By Theorem 2.1, the optimal coordinate transformation for (2.18) is given by (2.11) with α=ϵ\alpha = \epsilon.

The results are presented in Table 2, where 'N' and 'A' denote results with fixed and adaptive α\alpha, respectively. For ϵ≥10−3\epsilon \geq 10^{-3}, the PINN performs well and successfully solves this simple problem. However, when ϵ<10−3\epsilon < 10^{-3}, the PINN fails to produce accurate predictions. This challenge has also been reported in prior studies on boundary-layer problems [13, 56, 37], which propose methods specifically designed to address this class of problems. Because this experiment is intended to evaluate the performance and adaptiveness of CTPINNs, and our objective is to develop a problem-agnostic framework rather than a method targeting boundary-layer problems specifically, we do not compare against these methods. Nevertheless, we argue that our explicit construction is a competitive approach for solving these problems compared with the aforementioned methods. Additionally, our coordinate transformation module is orthogonal to some of these approaches and can be combined with them to further improve performance.

Table 2 shows that CTPINNs can successfully solve the problem, even when ϵ\epsilon is as small as 10−610^{-6}, with both fixed and adaptive α\alpha, demonstrating their strong performance. For this boundary-layer problem, Majorant1 (2.11) is the theoretically optimal choice. However, Majorant2 (2.13) and Majorant3 (2.15) also achieve comparable results, demonstrating that CTPINNs do not necessarily require optimal CT functions. Notably, when ϵ=10−6\epsilon = 10^{-6}, the best results are achieved by adaptive Majorant1, for which the final α=6.94×10−4\alpha = 6.94 \times 10^{-4} rather than the theoretical optimum α∗=10−6\alpha^* = 10^{-6}. Computing second-order derivatives with Majorant1 and α=10−6\alpha = 10^{-6} causes numerical overflow, so using a larger but still effective α\alpha is more stable for CTPINNs. This also demonstrates the robustness of our adaptive method, which can find a numerically effective α\alpha rather than relying on a theoretical optimum that is unstable to evaluate. The reference solutions and their transformed counterparts are compared in Figure 3, illustrating the implicit tendency. In addition, Figure 4 shows the evolution of α(t)\alpha(t) and the loss during training.

Table 2: Results on 1D boundary layer problems

ϵ\epsilonPINNPINN+Tψ1T_{\psi_1}PINN+Tψ2T_{\psi_2}PINN+Tψ3T_{\psi_3}
NANANA
10−310^{-3}1.60×10−21.60 \times 10^{-2}8.70×10−48.70 \times 10^{-4}5.19×10−45.19 \times 10^{-4}3.33×10−33.33 \times 10^{-3}4.71×10−34.71 \times 10^{-3}9.06×10−39.06 \times 10^{-3}9.18×10−39.18 \times 10^{-3}
10−410^{-4}1.05×1011.05 \times 10^{1}2.83×10−42.83 \times 10^{-4}8.71×10−48.71 \times 10^{-4}9.01×10−39.01 \times 10^{-3}4.56×10−34.56 \times 10^{-3}5.88×10−35.88 \times 10^{-3}7.43×10−27.43 \times 10^{-2}
10−510^{-5}> 11.98×10−41.98 \times 10^{-4}1.44×10−31.44 \times 10^{-3}1.88×10−21.88 \times 10^{-2}6.71×10−36.71 \times 10^{-3}2.88×10−22.88 \times 10^{-2}2.17×1002.17 \times 10^{0}
10−610^{-6}> 11.42×10−21.42 \times 10^{-2}1.74×10−31.74 \times 10^{-3}3.96×10−33.96 \times 10^{-3}5.54×10−35.54 \times 10^{-3}1.98×10−11.98 \times 10^{-1}> 1

Figure

(a) ϵ=10−2\epsilon = 10^{-2}

(b) ϵ=10−4\epsilon = 10^{-4}

(c) ϵ=10−5\epsilon = 10^{-5}

Fig. 3: Reference solutions and reference transformed solutions (adaptive Tψ1T_{\psi_1}) of the 1D boundary layer problem for different values of ϵ\epsilon. The final α\alpha is 3.33×10−23.33 \times 10^{-2}, 6.30×10−46.30 \times 10^{-4}, and 6.94×10−46.94 \times 10^{-4} for ϵ=10−2\epsilon = 10^{-2}, 10−410^{-4}, and 10−510^{-5}, respectively. The transformed solutions stretch the boundary layer region to make the gradient more equidistributed and facilitate learning.

Figure

(a) Dynamic α\alpha

(b) Loss for ϵ=0.1\epsilon = 0.1

(c) Loss for ϵ=0.01\epsilon = 0.01

Fig. 4: Training details for the 1D boundary-layer problem with ϵ=0.1\epsilon = 0.1 and 0.01. (a) shows the evolution of α\alpha for both values of ϵ\epsilon, indicating that α\alpha tends toward ϵ\epsilon during training. (b) and (c) show the loss curves for ϵ=0.1\epsilon = 0.1 and ϵ=0.01\epsilon = 0.01, respectively.

4.1.2. 2D Boundary Layer Problems. We next extend our study to the 2D boundary-layer problem defined by the following PDE:

(4.2)

ϵ(uxx+uyy)+ux+uy=0,(x,y)∈[0,1]2,\epsilon(u_{x x}+u_{y y})+u_{x}+u_{y}=0,\quad(x,y)\in[0,1]^{2},

with Dirichlet boundary conditions and the analytical solution u∗(x,y)=e−(x+y)/ϵu^*(x,y) = e^{-(x+y)/\epsilon}. The solution and its transformed counterpart are shown in Figure 2. Table 3 summarizes the results for different values of ϵ\epsilon. Majorant1 with fixed α\alpha, which is also the theoretically optimal choice for this problem, consistently achieves the best results. However, the other approaches also achieve comparable results, and all CTPINN variants outperform PINNs.

4.1.3. Poisson's Equations. In this section, we consider the following Poisson equation:

(4.3)

Δu(x)=f(x),x∈Ω⊂Rd,u(x)=g(x),x∈∂Ω.\begin{align*}\Delta u(\boldsymbol{x})&=f(\boldsymbol{x}),\quad\boldsymbol{x}\in\Omega\subset\mathbb{R}^{d},\\u(\boldsymbol{x})&=g(\boldsymbol{x}),\quad\boldsymbol{x}\in\partial\Omega.\end{align*}

Here, we set Ω=[0,1]2\Omega = [0,1]^2, define the solution as u(x)=e−ϵ∥x−0.5∥22/2u(\boldsymbol{x}) = e^{-\epsilon\|\boldsymbol{x}-0.5\|_2^2/2} with g=u∣∂Ωg = u|_{\partial\Omega}, and set f(x)=(ϵ2∥x−0.5∥22−2ϵ)e−ϵ∥x−0.5∥22/2f(\boldsymbol{x}) = (\epsilon^2\|\boldsymbol{x}-0.5\|_2^2 - 2\epsilon) e^{-\epsilon\|\boldsymbol{x}-0.5\|_2^2/2}. (4.3) is a classical benchmark problem for adaptive sampling methods for PINNs. Thus, in these experiments, we compare

T. YU AND I. OSELEDETS

Table 3: Results on 2D boundary layer problems

ϵ\epsilonPINNPINN+Tψ1T_{\psi_1}PINN+Tψ2T_{\psi_2}PINN+Tψ3T_{\psi_3}
NANANA
14.48×10−64.48 \times 10^{-6}2.98×10−62.98 \times 10^{-6}4.32×10−64.32 \times 10^{-6}7.62×10−67.62 \times 10^{-6}7.72×10−67.72 \times 10^{-6}4.95×10−64.95 \times 10^{-6}3.79×10−63.79 \times 10^{-6}
10−110^{-1}5.74×10−55.74 \times 10^{-5}3.99×10−53.99 \times 10^{-5}1.90×10−41.90 \times 10^{-4}1.45×10−41.45 \times 10^{-4}1.74×10−41.74 \times 10^{-4}1.30×10−41.30 \times 10^{-4}9.95×10−59.95 \times 10^{-5}
10−210^{-2}9.71×10−49.71 \times 10^{-4}4.80×10−54.80 \times 10^{-5}1.69×10−41.69 \times 10^{-4}1.18×10−31.18 \times 10^{-3}6.06×10−46.06 \times 10^{-4}5.32×10−45.32 \times 10^{-4}6.26×10−46.26 \times 10^{-4}
10−310^{-3}3.70×10−23.70 \times 10^{-2}1.05×10−41.05 \times 10^{-4}1.92×10−41.92 \times 10^{-4}5.10×10−35.10 \times 10^{-3}2.46×10−32.46 \times 10^{-3}7.07×10−37.07 \times 10^{-3}8.01×10−38.01 \times 10^{-3}
10−410^{-4}8.10×1008.10 \times 10^{0}2.01×10−42.01 \times 10^{-4}2.48×10−32.48 \times 10^{-3}9.71×10−39.71 \times 10^{-3}2.28×10−22.28 \times 10^{-2}6.69×10−36.69 \times 10^{-3}5.49×10−15.49 \times 10^{-1}
10−510^{-5}>1>18.17×10−48.17 \times 10^{-4}3.34×10−33.34 \times 10^{-3}4.69×10−24.69 \times 10^{-2}2.42×10−22.42 \times 10^{-2}1.45×10−21.45 \times 10^{-2}1.51×1001.51 \times 10^{0}

Table 4: Results on 2D Poisson's equations

ϵ=1000\epsilon = 1000ϵ=2000\epsilon = 2000ϵ=5000\epsilon = 5000
PINN3.91×10−23.91 \times 10^{-2}1.71×10−21.71 \times 10^{-2}8.14×10−28.14 \times 10^{-2}
RAD2.27×10−22.27 \times 10^{-2}4.15×10−24.15 \times 10^{-2}2.85×10−12.85 \times 10^{-1}
ACLE1.62×10−21.62 \times 10^{-2}3.20×10−23.20 \times 10^{-2}7.73×10−27.73 \times 10^{-2}
PINN+Tψ1T_{\psi_1}(A)1.45×10−21.45 \times 10^{-2}1.49×10−21.49 \times 10^{-2}2.74×10−22.74 \times 10^{-2}

CTPINNs with the adaptive sampling methods RAD [49] and ACLE [22]. We use adaptive Tψ1T_{\psi_1} (denoted by Tψ1T_{\psi_1}(A)) as the CT function.

Figure 5 shows the relative error and the learnable parameters αx\alpha_x and αy\alpha_y during training as CTPINNs with Tψ1T_{\psi_1}(A) solve the 2D Poisson equation. The dynamics of αx\alpha_x and αy\alpha_y show how the coordinate transformation adapts during training to promote gradient equidistribution. In particular, steeper gradients correspond to smaller values of αx\alpha_x and αy\alpha_y, which in turn lead to coordinate transformations that stretch regions with large gradients. We also show the solution and its gradients in the physical and computational domains in Figure 6. These results indicate that CTPINNs with adaptive Tψ1T_{\psi_1} can stretch regions with large gradients and compress regions with small gradients to promote gradient equidistribution. Notably, the fixed CT function Tψ1T_{\psi_1} can be combined with adaptive sampling methods, providing additional flexibility to improve the training efficiency and accuracy of PINNs for problems with steep gradients. The adaptive CT function Tψ1T_{\psi_1} may conflict with an adaptive sampling strategy by changing the solution distribution during training.

4.2. Implicit Construction. In this section, we focus on the implicit construction of the coordinate transformation. For many practical PDEs, some features of the solution are unknown, making explicit construction challenging or infeasible. This motivates learning the transformation implicitly, as described in subsection 2.3.2. The network fθf^\theta is a lightweight, two-layer MLP with tanh activation.

4.2.1. Challenging PDEs. First, we conduct experiments on three PDEs from the JAX-PI benchmark [46]: the Allen-Cahn equation, the Korteweg-De Vries equation, and the lid-driven cavity flow problem. Their formulations and boundary conditions are as follows:

Allen-Cahn. We consider the following Allen-Cahn equation with periodic

Figure

(a) Reference u(x,y)u(x, y)

(b) Predicted u(x,y)u(x, y)

(c) Reference u(ξ,η)u(\xi, \eta)

Fig. 5: Training dynamics for solving the 2D Poisson equation in (4.3) with CTPINNs and adaptive Tψ1T_{\psi_1}. (a) shows the relative error. (b) and (c) show the evolution of αx\alpha_x and αy\alpha_y, respectively. The parameter αx\alpha_x is the learnable parameter of Majorant1 (2.11) in the x-direction, and αy\alpha_y is the corresponding parameter in the y-direction. As ϵ\epsilon increases, the solution gradients become steeper. Accordingly, αx\alpha_x and αy\alpha_y converge to smaller values, yielding coordinate transformations that promote gradient equidistribution.

boundary conditions:

(4.4)

∂u∂t−0.0001∂2u∂x2=0,t∈[0,1],x∈[−1,1],u(0,x)=x2cos⁡(πx),x∈[−1,1].\begin{align*}\frac{\partial u}{\partial t}-0.0001\frac{\partial^{2}u}{\partial x^{2}}&=0,\quad t\in[0,1],x\in[-1,1],\\u(0,x)=x^{2}\cos(\pi x),\quad x\in[-1,1].\end{align*}

Korteweg-De Vries. We consider the following Korteweg-De Vries equation:

(4.5)

∂u∂t+u∂u∂x+(0.022)2∂3u∂x3=0,t∈[0,1],x∈[−1,1],u(x,0)=cos⁡(πx),x∈[−1,1],u(t,−1)=u(t,1),t∈[0,1].\begin{align*}\frac{\partial u}{\partial t}+u\frac{\partial u}{\partial x}+(0.022)^{2}\frac{\partial^{3}u}{\partial x^{3}}&=0,\quad t\in[0,1],x\in[-1,1],\\u(x,0)&=\cos(\pi x),\quad x\in[-1,1],\\u(t,-1)&=u(t,1),\quad t\in[0,1].\end{align*}

Lid-driven cavity flow. We consider the following Navier-Stokes equation for lid-driven cavity flow with Dirichlet boundary conditions:

u⋅∇u+∇p−13200Δu=0,(x,y)∈[0,1]2,∇⋅u=0,(x,y)∈[0,1]2,\begin{align*}\boldsymbol{u}\cdot\nabla\boldsymbol{u}+\nabla p-\frac{1}{3200}\Delta\boldsymbol{u}&=0,\quad(x,y)\in[0,1]^{2},\\\nabla\cdot\boldsymbol{u}&=0,\quad(x,y)\in[0,1]^{2},\end{align*}

(4.6)

u(x,1)=(1−cosh⁡(50(x−0.5))cosh⁡(25),0),(x,y)∈∂[0,1]2,u(x,0)=u(0,y)=u(1,y)=(0,0),(x,y)∈∂[0,1]2.\begin{align*}\boldsymbol{u}(x,1)=\left(1-\frac{\cosh(50(x-0.5))}{\cosh(25)},0\right),\quad(x,y)\in\partial[0,1]^{2},\\\boldsymbol{u}(x,0)=\boldsymbol{u}(0,y)=\boldsymbol{u}(1,y)=(0,0),\quad(x,y)\in\partial[0,1]^{2}.\end{align*}

We use PirateNet [42] as the baseline and compare it with PirateNet combined with TexpθT_{\text{exp}}^{\theta}. Notably, the results in [42] were obtained using PirateNet with several advanced techniques, including random Fourier feature embeddings [40], NTK-based weighting schemes [46], causality [44], curriculum training [39], and random weight factorization [45]. Accordingly, in Table 5, 'PirateNet+AT' denotes PirateNet with these advanced techniques. The 'PirateNet+AT+ TexpθT_{\text{exp}}^{\theta}' implementation also uses these techniques, showing that CTPINNs can be seamlessly integrated with state-of-the-art techniques rather than only with the basic PirateNet architecture. The results in Table 5 show that CTPINNs consistently improve the performance of PirateNet ('PirateNet+AT') on all three equations. The training dynamics of CTPINNs with PirateNet on these three equations are shown in Figure 7.

T. YU AND I. OSELEDETS

Figure

(a) Reference u(x,y)u(x,y)

(b) Predicted u(x,y)u(x,y)

(c) Reference u(ξ,η)u(\xi,\eta)

(d) Predicted u(ξ,η)u(\xi,\eta)

Figure

(e) Predicted ux(x,y)u_{x}(x,y)

(f) Predicted uy(x,y)u_{y}(x,y)

(g) Predicted uξ(ξ,η)u_{\xi}(\xi,\eta)

(h) Predicted uη(ξ,η)u_{\eta}(\xi,\eta)

Fig. 6: Solution of the 2D Poisson equation in (4.3) using CTPINNs with adaptive Tψ1T_{\psi_1}. The variables (x,y)(x, y) and (ξ,η)(\xi, \eta) belong to the physical and computational domains, respectively. CTPINNs successfully solve the problem in the computational domain, and the transferred solution in the physical domain is also accurate. (c) and (d) show that the CT function stretches regions with large solution gradients and compresses regions with small gradients to promote gradient equidistribution. (e)–(h) show the gradients with respect to x, y, ξ\xi, and η\eta, respectively. The gradients in the computational coordinates are more uniform and have smaller maximum magnitudes, which is beneficial for training the network.

Table 5: Results on JAX-PI benchmarks

Allen-CahnKorteweg-De VriesLid-driven cavity flow
PirateNet+AT2.24×10−52.24 \times 10^{-5}4.27×10−44.27 \times 10^{-4}4.21×10−24.21 \times 10^{-2}
PirateNet+AT+ TexpθT_{exp}^{\theta}6.01×10−66.01 \times 10^{-6}2.23×10−42.23 \times 10^{-4}3.75×10−23.75 \times 10^{-2}
Promotion73.2%47.8%10.9%

We further conduct experiments on three 3D PDEs from the SPINN benchmark [6]: the Helmholtz equation, the Klein-Gordon equation, and the Navier-Stokes equation. Their formulations and boundary conditions are as follows:

Helmholtz equation. We consider the following steady Helmholtz equation:

(4.7)

Δu+u=q,x∈[−1,1]3,u(x)=0,x∈∂[−1,1]3.\begin{align*}\Delta u+u=q,\quad\boldsymbol{x}\in[-1,1]^{3},\\u(\boldsymbol{x})=0,\quad\boldsymbol{x}\in\partial[-1,1]^{3}.\end{align*}

We use the analytical solution u(x)=sin⁡(4πx1)sin⁡(4πx2)sin⁡(3πx3)u(\boldsymbol{x}) = \sin(4\pi x_1) \sin(4\pi x_2) \sin(3\pi x_3), with q=−(4π)2u−(4π)2u−(3π)2u+uq = -(4\pi)^2 u - (4\pi)^2 u - (3\pi)^2 u + u.

Klein-Gordon equation. We consider the following inhomogeneous Klein-

Figure

(a) Allen-Cahn

Figure

(b) Korteweg-De Vries

(c) Lid-driven cavity

Figure

(d) Allen-Cahn

Figure

(e) Korteweg-De Vries

(f) Lid-driven cavity

Fig. 7: Training loss and relative error dynamics of JAX-PI benchmark for PirateNet+AT+ TexpθT_{exp}^{\theta}.

Gordon equation:

(4.8)

∂ttu−Δu+u2=f,x∈Ω=[−1,1]3,t∈[0,10],u(x,0)=x1+x2+x3,x∈Ω=[−1,1]3,u(x,t)=g(x),x∈∂Ω=[−1,1]3,t∈[0,10].\begin{aligned}\partial_{tt}u-\Delta u+u^{2}=f,&\quad\boldsymbol{x}\in\Omega=[-1,1]^{3},t\in[0,10],\\u(\boldsymbol{x},0)=x_{1}+x_{2}+x_{3},&\quad\boldsymbol{x}\in\Omega=[-1,1]^{3},\\u(\boldsymbol{x},t)=g(\boldsymbol{x}),&\quad\boldsymbol{x}\in\partial\Omega=[-1,1]^{3},t\in[0,10].\end{aligned}

We use the analytical solution u(x,t)=(x1+x2+x3)cos⁡(t)+x1x2x3sin⁡(t)u(\boldsymbol{x}, t) = (x_1 + x_2 + x_3) \cos(t) + x_1 x_2 x_3 \sin(t); the source term f and boundary data g are obtained from this exact solution.

Navier-Stokes equation. We use the vorticity formulation of the incompressible Navier-Stokes equation with periodic boundary conditions:

(4.9)

∂tω+(u⋅∇)ω=(ω⋅∇)u+0.05Δω+F,x∈[0,2π]3,t∈[0,5],∇⋅u=0,x∈[0,2π]3,t∈[0,5],ω(x,0)=ω0(x),x∈[0,2π]3.\begin{aligned}\partial_{t}\boldsymbol{\omega}+(\boldsymbol{u}\cdot\nabla)\boldsymbol{\omega}&=(\boldsymbol{\omega}\cdot\nabla)\boldsymbol{u}+0.05\Delta\boldsymbol{\omega}+\boldsymbol{F},&\boldsymbol{x}\in[0,2\pi]^{3},t\in[0,5],\\\nabla\cdot\boldsymbol{u}&=0,&\boldsymbol{x}\in[0,2\pi]^{3},t\in[0,5],\\\boldsymbol{\omega}(\boldsymbol{x},0)&=\boldsymbol{\omega}_{0}(\boldsymbol{x}),&\boldsymbol{x}\in[0,2\pi]^{3}.\end{aligned}

The analytical velocity and vorticity fields are

(4.10)

ux=2e−0.45tcos⁡(2x)sin⁡(2y)sin⁡(z),uy=−e−0.45tsin⁡(2x)cos⁡(2y)sin⁡(z),uz=−2e−0.45tsin⁡(2x)sin⁡(2y)cos⁡(z),ωx=−3e−0.45tsin⁡(2x)cos⁡(2y)cos⁡(z),ωy=6e−0.45tcos⁡(2x)sin⁡(2y)cos⁡(z),ωz=−6e−0.45tcos⁡(2x)cos⁡(2y)sin⁡(z).\begin{align*}u_{x}&=2e^{-0.45t}\cos(2x)\sin(2y)\sin(z),\\u_{y}&=-e^{-0.45t}\sin(2x)\cos(2y)\sin(z),\\u_{z}&=-2e^{-0.45t}\sin(2x)\sin(2y)\cos(z),\\\omega_{x}&=-3e^{-0.45t}\sin(2x)\cos(2y)\cos(z),\\\omega_{y}&=6e^{-0.45t}\cos(2x)\sin(2y)\cos(z),\\\omega_{z}&=-6e^{-0.45t}\cos(2x)\cos(2y)\sin(z).\end{align*}

The forcing term F is given by

(4.11)

Fx=−6e−0.9tsin⁡(4y)sin⁡(2z),Fy=−6e−0.9tsin⁡(4x)sin⁡(2z),Fz=6e−0.9tsin⁡(4x)sin⁡(4y).\begin{align*}F_{x}&=-6e^{-0.9t}\sin(4y)\sin(2z),\\F_{y}&=-6e^{-0.9t}\sin(4x)\sin(2z),\\F_{z}&=6e^{-0.9t}\sin(4x)\sin(4y).\end{align*}

T. YU AND I. OSELEDETS

We use SPINN [6] as the baseline method and compare it with SPINN+ TexpθT_{exp}^{\theta}. The results are summarized in Table 6, and we also show the reference and predicted solution distributions of the Navier-Stokes equation in Figure 8.

Table 6: Results on SPINN benchmarks

HelmholtzKlein-GordonNavier-Stokes
SPINN3.22×10−23.22 \times 10^{-2}1.09×10−31.09 \times 10^{-3}3.33×10−33.33 \times 10^{-3}
SPINN+ TexpθT_{exp}^{\theta}1.60×10−21.60 \times 10^{-2}8.51×10−48.51 \times 10^{-4}1.47×10−31.47 \times 10^{-3}
Promotion50.3%21.9%55.9%

Figure

(a) Reference x-y

Figure

(b) Reference x-z

Figure

(c) Reference y-z

Figure

(d) Predicted x-y

Figure

(e) Predicted x-z

Figure

(f) Predicted y-z

Fig. 8: Reference and predicted solution distributions for Navier-Stokes equation in SPINN benchmarks

4.2.2. High-dimensional PDEs. We next demonstrate the performance of the proposed CT module on high-dimensional PDEs. Specifically, we consider the following Sine-Gordon equation in high-dimensional spaces of varying dimension d [38].

(4.12)

Δu+sin⁡(u)=fx∈[0,1]d,u=gx∈∂[0,1]d.\begin{align*}\Delta u+\sin(u)&=f\quad x\in[0,1]^{d},\\u&=g\quad x\in\partial[0,1]^{d}.\end{align*}

We define the reference solution as

(4.13)

u(x;c)=(1d−2∑i=1d−2exp⁡(−cxixi+1xi+2))(1−1d∑i=1dxi2),u(\boldsymbol{x};c)=\left(\frac{1}{d-2}\sum_{i=1}^{d-2}\exp\left(-c x_{i}x_{i+1}x_{i+2}\right)\right)\left(1-\frac{1}{d}\sum_{i=1}^{d}x_{i}^{2}\right),

where cc is a prescribed parameter, f=Δu+sin⁡(u)f = \Delta u + \sin(u), and g=u∣∂[0,1]dg = u|_{\partial[0,1]^d}. Furthermore, to obtain a more uniform set of collocation points in high-dimensional space, we use the Halton low-discrepancy sequence from QRPINNs [54].

The results in Table 7 indicate that CTPINNs consistently achieve better accuracy than QRPINNs, even on high-dimensional problems. We also report the cost analysis in Table 9 and show the error dynamics of QRPINN+TexpθT_{\text{exp}}^{\theta} in Figure 9.

Table 7: Results on high-dimensional Sine-Gordon equations

d=3d=3d=30d=30d=100d=100d=200d=200
QRPINN3.25×10−43.25 \times 10^{-4}4.07×10−34.07 \times 10^{-3}1.26×10−21.26 \times 10^{-2}1.52×10−21.52 \times 10^{-2}
QRPINN+TexpθT_{\text{exp}}^{\theta}2.91×10−42.91 \times 10^{-4}3.91×10−33.91 \times 10^{-3}9.05×10−39.05 \times 10^{-3}9.66×10−39.66 \times 10^{-3}
Promotion10.5%3.9%28.2%36.4%

Figure

(a) d=3d=3

Figure

(b) d=100d=100

Figure

(c) d=200d=200

Fig. 9: Error dynamics of QRPINN+TexpθT_{\text{exp}}^{\theta} for high-dimensional Sine-Gordon equations.

4.3. Cost Analysis. In this section, we analyze the computational cost of CTPINNs. All experiments are conducted on a single NVIDIA A40 GPU using JAX. In the tables below, ∣θ∣|\theta| denotes the number of trainable parameters, and 'Training Time (s)' denotes the total wall-clock training time in seconds.

The training cost of CTPINNs is an important consideration: they can improve performance but also incur additional costs. For explicit constructions, the additional training cost is negligible, especially with fixed majorants, since fixed majorants require only an extra forward pass to compute the transformation. For implicit constructions, CTPINNs incur a moderate additional training cost but provide clear accuracy gains, yielding a favorable trade-off in practice. The ablation results in Table 8 show that simply increasing the network size does not yield the same improvement as adding a CT module with a comparable number of parameters, underscoring the importance of the CT plug-in module.

Furthermore, Table 9 reports the cost for Sine-Gordon problems with different values of dd. The results demonstrate the efficiency and effectiveness of CTPINNs and indicate that the additional time remains moderate and practically acceptable relative to the baseline across low- to high-dimensional problems.

5. Conclusion. In this work, we introduced CTPINNs, a framework that improves PINNs by incorporating fixed or learnable coordinate transformations to reduce solution complexity through gradient equidistribution. For the canonical boundary-layer problem, we show that training CTPINNs with the original loss function drives

T. YU AND I. OSELEDETS

Table 8: Cost analysis for 1D boundary layer problems.

MethodMetricMLP size (depth×width)
5×505 \times 507×507 \times 5010×5010 \times 505×1005 \times 1007×1007 \times 10010×10010 \times 100
PINN∣θ∣|\theta|78011290120551306015080181101
Error1.58×1011.58 \times 10^{1}1.60×10−21.60 \times 10^{-2}1.33×1011.33 \times 10^{1}1.18×1011.18 \times 10^{1}1.17×1011.17 \times 10^{1}5.18×10−25.18 \times 10^{-2}
Training Time (s)2.98×1022.98 \times 10^{2}7.36×1027.36 \times 10^{2}1.16×1031.16 \times 10^{3}3.33×1023.33 \times 10^{2}8.75×1028.75 \times 10^{2}1.52×1031.52 \times 10^{3}
PINN+TexpθT_{exp}^{\theta}∣θ∣|\theta|79001299920649306995089981199
Error7.58×10−37.58 \times 10^{-3}5.81×10−35.81 \times 10^{-3}6.82×10−36.82 \times 10^{-3}1.65×10−21.65 \times 10^{-2}1.41×10−21.41 \times 10^{-2}6.86×10−36.86 \times 10^{-3}
Training Time (s)3.34×1023.34 \times 10^{2}1.09×1031.09 \times 10^{3}1.28×1031.28 \times 10^{3}4.88×1024.88 \times 10^{2}1.46×1031.46 \times 10^{3}1.90×1031.90 \times 10^{3}

Table 9: Cost analysis for Sine-Gordon equations.

ddQRPINNQRPINN+TexpθT_{exp}^{\theta}
∣θ∣|\theta|Training Time (s)∣θ∣|\theta|Training Time (s)
379011.38×1021.38 \times 10^{2}82562.31×1022.31 \times 10^{2}
100127514.24×1034.24 \times 10^{3}229035.62×1035.62 \times 10^{3}
200177511.18×1041.18 \times 10^{4}380031.57×1041.57 \times 10^{4}

the coordinate parameter toward values that make the solution gradient more uniformly distributed. Explicit constructions effectively resolve sharp gradients, empirically exhibit the tendency toward gradient equidistribution, and improve accuracy on Poisson problems even when an optimal CT is not used. For implicit constructions, integrating the CT module into PirateNet, SPINN, and QRPINN improves accuracy across challenging benchmark PDEs. Across a range of PDEs, CTPINNs demonstrate flexibility and effectiveness, with the coordinate transformation TT serving as a plug-in module that offers a favorable trade-off between accuracy and computational cost.

Limitations and future work. Our study suggests a useful module for PINNs: problems with prior knowledge can be effectively handled using explicitly constructed transformations, while more complex cases require flexible implicit constructions. However, neither construction is perfect: explicit transformations rely on prior knowledge of the problem, whereas implicit constructions lack proper normalization and theoretical guarantees. Developing more suitable CT functions is an important direction for future work. Furthermore, for PDEs defined on irregular domains, several studies [11, 35] have used neural networks to map the irregular domain onto a regular one, thereby avoiding direct alterations to the solution distribution on the irregular domain. Building on this idea, a promising direction is to design a CT function that maps an irregular domain to a regular one while simultaneously transforming the solution gradients toward a more uniform distribution.

Acknowledgements. The author T. Yu acknowledges support from the China Scholarship Council under Grant No. 202308090008. The authors acknowledge GPT for its assistance with literature reviews and drafting related-work sections; formulating theorems, algorithms, proofs, and other claims; and writing code and conducting computational experiments. The authors assume responsibility for all content.

References (26)