---
title: Geometry-Parameterized Dual-Encoder PINN
url: https://www.emergentmind.com/topics/geometry-parameterized-dual-encoder-physics-informed-neural-network-gp-de-pinn
type: topic
---

# Geometry-Parameterized Dual-Encoder PINN

The Geometry-Parameterized Dual-Encoder Physics-Informed Neural Network (GP-DE-PINN) is a neural-operator framework designed for rapid, mesh-free prediction of physical fields in domains with parameterized geometric complexity. By explicitly separating the geometric parameterization from local physical encoding, GP-DE-PINN provides an expressive surrogate model for unsteady flow (and related PDE-constrained problems) on families of shapes, enabling accurate reconstruction, pressure inference, and robust generalization capabilities. This architecture is a synthesis of recent advances in dual-encoder PINNs, geometry-aware neural networks, and neural-operator training on transformed domains [2601.06561][2311.15940][2405.03427].

## 1. Architectural Foundation

GP-DE-PINN implements a dual-encoder scheme in which geometric parameters and spatiotemporal coordinates are independently mapped to high-dimensional latent codes and subsequently fused before decoding into field predictions. Formally, the geometric encoder $g_{\theta_p}$ receives the shape parameter vector $\mathbf d \in \mathbb R^m$ (e.g., sampled boundary radii) and outputs a latent code $\mathbf h_{gp} \in \mathbb R^{N_p}$. The spatiotemporal encoder $g_{\theta_c}$ processes the physical coordinate $\mathbf x = (x, y, t)$, generating $\mathbf h_{coord} \in \mathbb R^{N_c}$. Concatenating these vectors yields $\mathbf h_{concat} = [\mathbf h_{coord} \Vert \mathbf h_{gp}]$, which the manifold decoder $g_{\theta_n}$ maps to predicted fields $[\hat u, \hat v, \hat p]^T$.

The architectural breakdown:

| Encoder               | Input Type                         | Output         |
|-----------------------|------------------------------------|----------------|
| Geometry ($g_{\theta_p}$)     | Shape parameters $\mathbf d$          | Latent $\mathbf z_g$ |
| Spatiotemporal ($g_{\theta_c}$) | Coordinates $(x, y, t)$               | Latent $\mathbf z_{st}$ |
| Decoder ($g_{\theta_n}$)      | Fused code $[\mathbf z_{st}, \mathbf z_g]$ | Field output $(\hat u, \hat v, \hat p)$ |

This architecture enables disentanglement of geometric and physical latent spaces, avoiding the direct concatenation pitfalls of earlier geometry-aware PINNs [2601.06561][2405.03427].

## 2. Governing Equations and Physics-Informed Loss

GP-DE-PINN enforces the dimensionless incompressible Navier–Stokes equations:

\[
\nabla \cdot [u, v] = 0, \qquad
u_t + u u_x + v u_y + p_x - \frac{1}{Re}(u_{xx} + u_{yy}) = 0,
\]
\[
v_t + u v_x + v v_y + p_y - \frac{1}{Re}(v_{xx} + v_{yy}) = 0.
\]

Boundary conditions, including no-slip on obstacles, uniform inlet, and zero-traction outflow, are imposed. Loss function components consist of:

- $L_{res}$: aggregate PDE residual over $N_f$ collocation points,
- $L_{bc}$: boundary condition penalty across $N_b$ sampled locations,
- $L_{data}$: data mismatch over $N_d$ empirical or benchmarked samples.

Total physics-informed loss:

\[
L_{\rm total} = \lambda_{res} L_{res} + \lambda_{bc} L_{bc} + \lambda_{data} L_{data}
\]
with equal weights ($\lambda_{res} = \lambda_{bc} = \lambda_{data} = 1$).

By strictly enforcing these constraints, GP-DE-PINN is capable of inferring pressure fields without explicit pressure supervision [2601.06561].

## 3. Geometry Parameterization

Geometries are encoded as low-dimensional parameter vectors, for instance, petal-shaped cylinder boundaries defined by inner radius $r$, petal count $n$, and outer radius $r_{out}$. The boundary is constructed by B-spline interpolation and rotational duplication, yielding a sampling vector:

\[
\mathbf d = [d_1, d_2, \dots, d_m], \quad m = \frac{360^\circ}{\Delta \theta} - 1
\]

where $\Delta \theta$ is the azimuthal interval. This parametric representation is generalizable to point-cloud, binary image, or principal component encodings as in GADEM and other geometry-aware neural operator frameworks [2405.03427]. The encoder architecture can ingest raw parameters, principal component projections, or variationally encoded boundary representations.

## 4. Training and Implementation Protocol

GP-DE-PINN employs fully connected feed-forward networks for all encoders and the decoder:

- $g_{\theta_p}$: 4 layers, 250 neurons each, $\tanh$ activation,
- $g_{\theta_c}$: 3 layers, 50 neurons each, $\tanh$ activation,
- $g_{\theta_n}$: 5 layers, 100 neurons each, $\tanh$ activation with linear output,
- Weights initialized by Xavier normal, biases set to zero.

Sampling protocol:

- $N_f = 2{,}000$ collocation points per geometry across 40 training shapes, totaling 80,000,
- Boundary sets: 5,000 points on each cylinder surface, inlet, and initial time,
- 80,000 velocity samples for empirical loss.

Optimization utilizes full-batch L-BFGS over 50,000 iterations, with fixed loss weights. This regimen facilitates convergence of both geometric and physical latents, robustly enforcing physics constraints [2601.06561][2311.15940].

## 5. Quantitative Evaluation, Generalization, and Sensitivity

Empirical assessment demonstrates GP-DE-PINN's superiority relative to direct-concatenation geometry-aware PINNs:

- On training cases: GP-DE-PINN achieves $u$–RMSE $\approx0.007$–$0.009$, $v$–RMSE $\approx0.006$–$0.008$ (vs. $0.017$ in GP-PINN); $v$ mean relative error (MRE) drops from $\sim26\%$ to $\sim9\%$.
- For unseen geometries ($r=8$ mm, $n=4$–$8$), $u$–MRE improves from $\sim10$–$16\%$ (GP-PINN) to $\sim4$–$10\%$ (GP-DE-PINN), $v$–MRE from $\sim25$–$36\%$ down to $\sim9$–$22\%$.
- GP-DE-PINN sharply reconstructs velocity fields and Kármán vortex streets, retains pressure gradient accuracy, and matches high-variance physical lobes in standard deviation maps.
- Pressure field $\hat p$ is correctly inferred, despite the absence of direct pressure data in training.

Sensitivity analyses show:

| Hyperparameter           | Range          | Impact on MRE             | Robustness           |
|-------------------------|----------------|---------------------------|----------------------|
| Geometric sampling $\Delta\theta$ | $5^\circ$–$30^\circ$ | MRE stable $\leq 20^\circ$, sharp rise at $30^\circ$ | Plateau then degrade |
| Encoder width $N_p$     | $200$, $250$, $500$ | Best at $250$ ($6\%$, $14\%$ MRE) | U-shaped error trend |

Generalization analysis confirms consistent $\sim 60\%$ error reduction over GP-PINN for both $u$ and $v$ on excluded test geometries [2601.06561][2405.03427].

## 6. Connections to Dual-Encoder PINNs and Geometry-Aware Frameworks

GP-DE-PINN is consistent with recent neural-operator and geometry-transformation PINN doctrines. In [2311.15940], the authors introduce a diffeomorphism $\varphi:\Omega_{ref} \to \Omega(\mu)$ that transfers geometric complexity into a reference domain, enabling standard PINN training while allowing geometric parameter variation and optimization. This construction naturally extends to a dual-encoder architecture where a geometry encoder extracts latent codes (possibly via MLP, PCA, or VAE), and a physics encoder processes local coordinates.

Similarly, in [2405.03427], geometry encoders map boundary point-clouds, parameters, or images to latent vectors, which are injected into energy-minimizing neural architectures. These frameworks demonstrate that parametric and latent geometry injection provide systematic generalization to unseen shapes, supporting rapid evaluation and physics-consistent predictions across a design space.

A plausible implication is that GP-DE-PINN architectures, equipped with flexible geometry encoders and physics-constrained loss functions, may be extended to a range of PDE-governed phenomena where shape variability drives solution diversity.

## 7. Significance, Limitations, and Outlook

GP-DE-PINN establishes a mesh-free, modular paradigm for high-fidelity flow field reconstruction, pressure estimation, and neural operator generalization over families of parameterized obstacles. The dual-encoder structure is robust against moderate changes in geometric sampling and encoder width. Direct applications span unsteady fluid mechanics, solid mechanics (with weak form extension), and multi-field physics on alternating domains.

Limitations noted in the data include:

- Sensitivity to extreme geometric sparsity ($\Delta\theta \geq 30^\circ$),
- Slight accuracy degradation for over/under-parameterized geometry encoders.

The method is poised for integration with shape optimization, operator learning, and non-local geometric effects, as previously sketched in diffeomorphism PINNs and geometry-aware deep energy methods [2311.15940][2405.03427]. The separation of geometric and physical encoding, together with strict physics constraints, marks GP-DE-PINN as a robust computational surrogate for parametric engineering and scientific modeling.

Source: https://www.emergentmind.com/topics/geometry-parameterized-dual-encoder-physics-informed-neural-network-gp-de-pinn