# Physics-informed neural decoder

- ID: 468
- Canonical URL: https://synthcore.org/idea/468/physics-informed-neural-decoder
- API JSON: https://synthcore.org/api/idea/468.json
- API Markdown: https://synthcore.org/api/idea/468.md
- Verification status: mech_ok_no_baseline
- Source: [arXiv:2607.06287](https://arxiv.org/abs/2607.06287)
- Category: architecture
- Solves: accuracy, stability
- ML areas: neural-operator, loss, inference-speedup
- Math tags: pde, optimization, kernel-methods, approximation-theory
- Ratings: usefulness 8/10; difficulty 5/10; novelty 6/10

## Idea description

Attach an online PDE-constrained reconstruction layer to a neural operator instead of accepting its raw output field. The layer stays close to the network prediction at sampled output locations while minimizing a differentiable PDE residual and boundary-condition violation, allowing physics correction for each new input without retraining the neural operator.

## Mathematical statement

The paper factors the surrogate as \(\mathcal{A}=A_{\mathrm{on}}\circ A_{\mathrm{off}}\circ S_X\), where \(S_X\) samples the input, \(A_{\mathrm{off}}\) predicts a finite output-observation vector, and \(A_{\mathrm{on}}\) reconstructs a function. For an input \(u\), the exact discretized output is \(\boldsymbol{v}^{\dagger}=S_Y(\mathcal{G}(u))\), while the learned prediction is \(\widehat{\boldsymbol v}=A_{\mathrm{off}}(S_X(u))\); the decoder therefore receives perturbed data. The paper's physics-informed example uses \(-\Delta v(x)=u(x)\) on \(\Omega=(0,1)^2\), with \(v=0\) on \(\partial\Omega\). In the neural adaptation, \(f_\theta\) is a differentiable output-field parameterization, \(Y=\{y_j\}_{j=1}^m\) are data points, \(\widehat v_j\) are network predictions, \(Z=\{z_k\}_{k=1}^{m_{\mathcal L}}\) are PDE collocation points, \(Q=\{q_b\}_{b=1}^{m_\partial}\) are boundary points, \(\mathcal L\) is the PDE operator, and \(\mathcal B\) is the boundary operator. The reconstruction minimizes data mismatch plus PDE and boundary penalties.

## Key formulas

- $$\mathcal{A}=A_{\mathrm{on}}\circ A_{\mathrm{off}}\circ S_X:\mathcal{U}\to\mathcal{V}.$$
- $$\boldsymbol{v}^{\dagger}=S_Y(\mathcal{G}(u)),\qquad \widehat{\boldsymbol v}=A_{\mathrm{off}}(S_X(u))\approx \boldsymbol{v}^{\dagger}.$$
- $$-\Delta v(x)=u(x)\quad\text{on }(0,1)^2,\qquad v=0\quad\text{on }\partial(0,1)^2.$$
- $$\theta^*=\arg\min_{\theta}\left\{\frac{1}{m}\sum_{j=1}^{m}\left|f_\theta(y_j)-\widehat v_j\right|^2+\mu\frac{1}{m_{\mathcal L}}\sum_{k=1}^{m_{\mathcal L}}\left|\mathcal{L}f_\theta(z_k)-u(z_k)\right|^2+\beta\frac{1}{m_{\partial}}\sum_{b=1}^{m_{\partial}}\left|\mathcal{B}f_\theta(q_b)\right|^2\right\}.$$

## Implementation notes

Integrate this as an optional inference-time decoder after an FNO, DeepONet, or operator transformer that outputs field values. For each new sample, take the network prediction \(\widehat v_j\) at output points \(Y\), the input function needed to evaluate the PDE right-hand side, and fixed collocation sets \(Z\subset\Omega\) and \(Q\subset\partial\Omega\). Represent the corrected field with a small coordinate MLP \(f_\theta(x)\), initialized by fitting \(f_\theta(y_j)\) to \(\widehat v_j\), or use \(f_\theta=\widehat v+g_\theta\). Run 10--100 Adam or L-BFGS steps on the displayed objective. Compute \(\mathcal Lf_\theta\) using automatic differentiation; for Poisson, evaluate the Laplacian with second derivatives. Enforce boundary conditions through the penalty or use \(f_\theta(x)=d(x)g_\theta(x)\), where \(d\) vanishes on the boundary. The mathematical terms are data fidelity, PDE residual, and boundary residual; \(\mu\), \(\beta\), and collocation locations are tuned on validation data. First test 2D Poisson with a small FNO baseline, comparing raw output, data-only reconstruction, and physics-informed reconstruction. Record relative \(L_2\) error, PDE residual, boundary error, and inference time. Success means lower error and residual at fixed training cost; saturation at the raw predictor error indicates the decoder has exposed the offline learning bottleneck.

## Verification

- Status: mech_ok_no_baseline
- Mechanism evidence: yes
- Mechanism confirmed: yes
- Practical verdict: harms
- Verdict: Built an inference-time Poisson decoder using a Dirichlet sine basis, with an exact closed-form minimizer for the data-plus-PDE objective. The predicted contraction law 1/(1+mu*lambda^2), the penalty transition at mu*lambda^2=1, and stronger correction of higher-frequency modes were all confirmed to below 5e-16 absolute error; the large-penalty PDE limit reached 1.84e-7 relative error. In a synthetic imperfect-operator comparison, the decoder reduced relative L2 error and PDE residual substantially, but this is a mechanism-level MVP rather than evidence from a trained neural operator.

### Mechanism check

- Verdict: Built an inference-time Poisson decoder using a Dirichlet sine basis, with an exact closed-form minimizer for the data-plus-PDE objective. The predicted contraction law 1/(1+mu*lambda^2), the penalty transition at mu*lambda^2=1, and stronger correction of higher-frequency modes were all confirmed to below 5e-16 absolute error; the large-penalty PDE limit reached 1.84e-7 relative error. In a synthetic imperfect-operator comparison, the decoder reduced relative L2 error and PDE residual substantially, but this is a mechanism-level MVP rather than evidence from a trained neural operator.
- Confidence: 9/10
- Limitations: The predictor was synthetic rather than a trained FNO/DeepONet, and the decoder used a spectral sine basis with a closed-form solve rather than a coordinate MLP with automatic second derivatives and 10-100 inference-time optimization steps. No wall-clock comparison against iterative autodiff decoding, inconsistent RHS robustness test, or full neural-operator training experiment was performed.

### Practical benchmark

- Paired seeds: 8
- Baseline mean: 0
- Idea mean: 0
- p-value: 0.008349582520873956
- Paired wins: 0/8
- Benchmark verdict: no significant win

## Artifacts

- [README.md](https://synthcore.org/code/96/README.md)
- [bench_physics_decoder.py](https://synthcore.org/code/96/bench_physics_decoder.py)
- [bench_report.json](https://synthcore.org/code/96/bench_report.json)
- [custom_poisson_track.py](https://synthcore.org/code/96/custom_poisson_track.py)
- [physics_decoder_experiment.py](https://synthcore.org/code/96/physics_decoder_experiment.py)
- [report.md](https://synthcore.org/code/96/report.md)
- [report_bench_2026-08-30T121406.md](https://synthcore.org/code/96/report_bench_2026-08-30T121406.md)
- [report_bench_2026-08-30T125215.md](https://synthcore.org/code/96/report_bench_2026-08-30T125215.md)
- [results.json](https://synthcore.org/code/96/results.json)
- [run_poisson_bench.py](https://synthcore.org/code/96/run_poisson_bench.py)
- [Download all files as ZIP](https://synthcore.org/download/96)

## Disclaimer

AI-generated research hypothesis, automatically tested. Not peer-reviewed.
