Manuscript Offprint
arXiv:2609.07814Latent-MoE: Domain-Aware Mixture-of-Experts for PDEs with Multi-Regime Physics
Abstract
Physics-informed neural networks (PINNs) struggle on PDEs whose governing physics varies across the domain. We trace this to a structural property of standard coordinate networks: their neural tangent kernel (NTK) is translation-variant and lets training points of large coordinate magnitude disproportionately influence predictions elsewhere, producing long-range coupling and gradient conflict during training. We show analytically and empirically that mixture-of-experts (MoE) architectures with centered, compact-support routers yield a uniformly banded NTK whose kernel-regression weights decay exponentially with distance, localizing the learning. Building on this, we propose Latent-MoE, which interleaves domain-aware MoE blocks within a shared backbone. Unlike FB-PINNs or X-PINNs, which rigidly partition both the domain and the parameters so that the parameters on different subdomains are updated independently, Latent-MoE is designed to preserve the localization benefit of domain-aware routing while allowing capacity to flow across regions through the shared backbone. On standard homogeneous-physics benchmarks Latent-MoE is competitive with established baselines; on benchmarks with multi-stage time-variable physics, where global models and rigid domain decompositions both fall into spurious solutions, it improves over them by more than an order of magnitude, with markedly reduced gradient conflict during training.
1 Introduction
Physics-informed neural networks (PINNs)[1] embed the governing equations of a partial differential equation (PDE) directly into the training objective, allowing a coordinate network to act as a surrogate solution given only partial observations at the boundary or initial time. Modern automatic differentiation frameworks[2, 3, 4] make it straightforward to evaluate PDE residuals by differentiating the network with respect to its input coordinates, yielding a unified loss that enforces both the physics and the available data. This flexibility has made PINNs an attractive alternative to classical solvers, particularly for inverse problems and settings where mesh generation is difficult.
In practice, however, PINNs inherit the optimization pathologies of coordinate networks [5], and the higher-order differentiation in the residual loss amplifies them. A range of architectural and frequency-
Preprint.
aware remedies have been proposed [6, 7, 8, 9, 10], including domain-decomposition methods that partition the spatio-temporal domain and assign a subnetwork to each region [11, 12, 13, 14]. Domain decomposition is conceptually appealing and empirically effective, yet the question of why partitioning helps – and what kind of partitioning is best – has received limited theoretical attention.
In this work we revisit domain decomposition through the lens of the neural tangent kernel (NTK). Our starting point is that the NTK of a standard coordinate network is translation-variant: training points of larger coordinate magnitude exert disproportionate influence on predictions across the domain, even at distant locations. This long-range coupling is benign for spatially homogeneous physics but becomes destructive when the governing equations or forcing change across the domain, since gradients from regions with different dynamics end up competing during optimization. Collapse to spurious solutions is a known PINN failure mode. Even state-of-the-art architectures such as PirateNet fall into it on a homogeneous advection equation[15], and we observe the same collapse on PDEs with multi-stage time-variable physics. We show that domain-aware mixture-of-experts (MoE) architectures with centered, compact-support routers eliminate this coupling by yielding a banded NTK, and we use this observation to motivate an architectural choice that has not, to our knowledge, been explored in the PINNs literature: interleaving sparse domain-aware experts within a shared backbone, rather than partitioning the entire model.
2 Preliminaries
Physics-informed neural networks. Given a PDE operator , a forcing function , a boundary operator , and boundary or initial data on , PINNs train a neural network surrogate to satisfy
by minimizing a weighted sum of residual losses,
where the weights may be fixed or adapted during training to stabilize the multi-objective optimization [16]. The higher-order automatic differentiation required to evaluate makes the residual loss landscape stiff [5] and motivates the architectural and optimization machinery discussed below.
Neural tangent kernel. For a network with parameters , the empirical neural tangent kernel (NTK) [17] is the Gram matrix of parameter-Jacobians,
Under appropriate scaling, converges to a deterministic kernel that remains constant during gradient-descent training [18], and the trained network at any test point becomes a kernel-regression predictor whose weights characterize how training-data influence propagates across the input domain. We analyze the structure of these weights in Section 4.
3 Related Work
Domain decomposition for PINNs. The closest line of work to ours partitions the spatio-temporal domain into subdomains and assigns a separate subnetwork to each. X-PINNs [11] enforce solution and residual agreement on the interfaces between adjacent experts, while FB-PINNs [12] and their multilevel extension [13] use smooth partition-of-unity windows to blend independently parametrized experts. AB-PINNs [14] adapt the partitioning to the residual landscape by setting the domain decomposition parameters learnable. All of these approaches share a common structural choice: the model is split end-to-end, so each subdomain has its own dedicated parameters with no shared computation. This rigid partitioning localizes capacity but prevents capacity from being reallocated across regions whose physics differs in difficulty – a limitation we identify and address.
Mixture-of-experts. Mixture-of-experts (MoE) architectures [19, 20] have recently been revived in large language models as a route to scaling parameter count while keeping per-token compute fixed [21]. Modern MoE designs interleave sparsely activated expert layers within a shared backbone and use learnable, input-agnostic routers trained jointly with the model. Domain-decomposition PINNs can be viewed as a special case of MoE in which a single MoE layer sits at the output and the router is a fixed function of the input coordinates. Our Latent-MoE architecture sits between these two regimes: it borrows the interleaved-with-shared-backbone structure of language-model MoE, but uses fixed, domain-aware routers that exploit the prior geometric structure of the PDE problem.
NTK analysis of PINNs. The neural tangent kernel [17, 22, 18] characterizes the learning dynamics of wide networks under gradient descent and has become a standard tool for analyzing PINN training. Wang et al. [23, 24] use NTK analysis to expose gradient pathologies in the multi-loss PINN objective and to explain spectral bias in Fourier-feature networks. More recent work studies gradient alignment as a second-order optimization signal [25] and the spurious-solution failure mode under stiff physics [15].
Architectures and training strategies for PINNs. Complementary work improves PINN training without changing domain structure, including PirateNet [26], causal training [27], sinusoidal activations [9], and Fourier feature mappings [10]; these are largely orthogonal to ours and Latent-MoE in fact uses Fourier features and causal weighting in its loss.
4 Method
We begin with an analytical diagnosis: standard ReLU coordinate networks have a translation-variant NTK that produces long-range coupling between training points, and this coupling is exactly what makes PINNs struggle when the governing physics varies across the domain (§4.1). Centered, compact-support routing yields a uniformly banded NTK whose kernel-regression weights decay exponentially with distance, eliminating the coupling. We then introduce the Latent-MoE architecture, which interleaves domain-aware MoE blocks within a shared backbone (§4.3), and specify the router (§4.3) and encoder (§4.3).
4.1 NTK analysis: long-range coupling and its localization
Translation-variance and long-range coupling. Consider the simplest non-trivial case: a single-hidden-layer ReLU network with bias scale . A standard arc-cosine calculation [28] (full derivation in Appendix A) yields the closed-form NTK
This kernel is translation-variant: for nearby points , a Taylor expansion (see Eq. (58), Appendix A) gives , so the local kernel value scales with . Two training points at large are strongly correlated even when far apart, while two points near the origin are only weakly correlated. When the input coordinate is time, this means later-time data exerts disproportionate influence on predictions everywhere in the domain – a violation of causality that is benign when the physics is homogeneous but becomes destructive when different temporal regimes have different dynamics, since gradients from competing regimes are forced into a single shared kernel.
Banded NTK from domain-aware routing. Now consider a mixture of experts with disjoint or weakly overlapping supports, blended by a fixed router , so that where is the expert gated by router . For a hard router with non-trainable parameters, the NTK decomposes as
where is the NTK of expert . If the router supports are compact intervals of width tiled across the domain – and, crucially, if each expert is centered on its subdomain so that has the small-magnitude form near the origin – then the empirical kernel matrix becomes uniformly banded: entries vanish for training point pairs separated by more than . Banded positive-definite matrices have a classical inverse-decay property, which we leverage in the following result.
Theorem 1 (Effective-neighborhood bound for centered MoE). Let be evenly spaced points with grid spacing on , and consider an MoE architecture with experts whose routers have compact, uniformly-spaced supports of width that partition with bounded overlap (concretely, the bump router of Eq. (12); see Appendix B.1). Assume the component kernels are continuous on their router's supports, and constructed as translation of the same kernel, and the minimum eigenvalue of is bounded below by . Then there exist constants such that for every evaluation point and training point , the kernel-regression weight , where , satisfies
The decay rate depends on , , the bound on , and the support width .
The proof, given in Appendix A.2, applies the Demko–Moss–Smith inverse-decay theorem [29] to the banded matrix and uses the compact support of to extend the decay from matrix inverses to kernel-regression weights.
Effective neighborhood width. Theorem 1 states that the influence of training points on the prediction at decays exponentially in distance. To quantitatively measure this localization, we define the -effective neighborhood width
the size of the smallest interval containing of the kernel-regression mass. Smaller means more localized learning. For the spatio-temporal setting where only the temporal coordinate is decomposed, an analogous temporal width is defined by integrating out the spatial coordinate (Appendix A.3).
Empirical verification. Figures 1(a,b) confirm that MoE alone does not fix the translation-variant NTK structure, whereas centering the experts produces a uniformly bounded effective neighborhood across the domain; the eigenspectrum (Fig. 1(c)) remains well-spread and well-conditioned. These diagnostics validate the two design choices that drive the rest of the paper: compact-support routing bands the kernel, and centering keeps the exponential decay from the diagonal uniform. Additional kernel and regression-weight visualizations are provided in Appendix A.4.
4.2 From localization to architecture
The NTK analysis says that centered, compact-support routing localizes learning. The most direct way to instantiate this – used by FB-PINNs [12] and X-PINNs [11] – partitions the model end-to-end and blends experts at the output by a fixed partition-of-unity. This is restrictive in two ways: per-subdomain capacity is fixed, so the per-expert width must be set to the worst-case region; and we hypothesize that errors propagate across subdomain boundaries when early-stage experts are capacity-limited. The variable- heatmaps for FB-PINNs in Appendix F (Fig. 15(c,g)) are consistent with this picture.

Figure 1: (a) 1D -effective neighborhood width, . (b) 2D temporal -effective neighborhood width, . (c) Analytical NTK eigenspectrum for 1D models. In all cases, weight scale is 1, and bias scale is 0.05. We set , corresponding to the 90% kernel weight concentration.
We propose Latent-MoE as a remedy. Rather than partitioning the entire model, Latent-MoE interleaves domain-aware MoE blocks within a shared backbone, mirroring the interleaved-with-shared-backbone structure of language-model MoE [21] but replacing learnable, input-agnostic routers with fixed routers that exploit the geometric structure of the PDE problem. The localization benefit, that Theorem 1 theoretically establishes for the idealized model, motivates the design, that is, experts remain strictly subdomain-bound, while the shared backbone allows representational capacity to flow flexibly across regions during training.
4.3 The Latent-MoE architecture
The model alternates two types of residual block. A shared block is a standard two-layer feedforward residual block,
applied uniformly across the input domain. A MoE block replaces the feedforward path with a sparse mixture of experts gated by a fixed domain-aware router (specified in §4.3):

Figure 2: The Latent-MoE architecture (shown with four experts). Domain-aware MoE blocks (with fixed, compact-support routers) are interleaved with shared residual blocks. Only experts whose routers cover the input point contribute to the forward pass.
Note that the router is a function of the input coordinate x rather than the latent z, so the routing pattern is fixed once the input is given and is independent of depth. Because the routers have compact support, only experts whose support contains x contribute, yielding a sparse activation pattern. The full network stacks L alternating shared and MoE blocks on top of an encoder, with a linear readout at the top (see Figure 2):
Domain-aware routers. The router assigns each input coordinate to a small number of experts via a partition-of-unity over the domain. We use compact-support bump functions with a tunable plateau-to-bridge ratio: each expert is assigned an interval on the decomposed coordinate, with a flat plateau where and two smooth bridge regions of width controlled by a polynomial satisfying , , and for :
The plateau ratio controls the overlap between adjacent experts: recovers a hard partition, while smaller yields wider blending regions. The plateau ratio values reported in our experiments use a different convention. They are computed as the plateau length divided by the bridge length, which equals . In higher dimensions we can use a separable router, , which lets the decomposition act on a chosen subset of input coordinates. The router is normalized to a partition of unity, . Visualizations of the bump construction and tiling are provided in Appendix B.
Encoder. The encoder maps raw input coordinates into a feature space suitable for the MoE backbone. We use a periodic spatial embedding followed by a trainable random-Fourier-feature projection [10]; the exact form is given in Appendix B.
The NTK analysis suggests an additional refinement on the encoder side. Centering each expert's input on its subdomain centroid produces a banded NTK (§4.1). We carry the same idea into the encoder by using a per-expert encoder that receives the input shifted by the corresponding subdomain centroid :
where and denote the decomposed and non-decomposed coordinates. We found that a centered and shared encoder outperforms both a centered but independent encoder and an uncentered shared encoder (Appendix D.1). We attribute this to the encoder's role of producing a consistent representation that the shared backbone can process; per-expert encoders with independent random Fourier projections create a fragmented latent space that disrupts this consistency. Centering and weight sharing are therefore both essential.
5 Experiments
We evaluate Latent-MoE on three PDE benchmarks designed to stress architectures with physics that varies vastly across the domain: an advection–diffusion equation with time-dependent coefficients, a damped wave equation with staged forcing, and a layered wave equation with a spatially layered wave speed. The first two stress multi-stage time-variable physics, while the layered wave probes a known spatial domain decomposition. All three have periodic spatial boundary conditions to isolate the effect of the varying physics from the complication from boundary-loss balancing. Reference solutions are obtained on a fine grid; we report the relative error evaluated on a regular grid.
Baselines. We compare against three baselines, all configured to approximately equal total parameter count of the Latent-MoE. ResNet is a widened residual network whose feedforward bottlenecks are widened to reach the target parameter budget. FB-PINNs [12] represents the rigid domain-decomposition family and uses the same domain partitioning as Latent-MoE (temporal on the time-variable benchmarks, spatial on the layered wave). PirateNet [26] is a recent state-of-the-art architecture for challenging PINN problems. We note that on the time-variable benchmarks PirateNet and FB-PINNs are configured with slightly more parameters than Latent-MoE ( vs ); the order-of-magnitude gap reported below is therefore not attributable to capacity. Full hyperparameters and training details are in Appendix C.
Standard benchmarks. To establish that Latent-MoE does not pay a cost on conventional PINN problems, we first evaluate it on Burgers, Allen–Cahn and Korteweg–de Vries, three canonical benchmarks with spatially and temporally homogeneous physics from JAXPI[16]. Table 1 reports the median relative errors across five seeds. All four architectures reach comparably low relative errors, and the Latent-MoE model is competitive to the baseline model performance. The localization machinery in Latent-MoE is benign in this regime: it neither helps nor materially hurts when there is no cross-region gradient conflict to resolve.
These results confirm that on problems where the physics is uniform across the domain, dense global models are already adequate – there is no localization benefit to extract. The interesting question, and the focus of the rest of this section, is what happens when this assumption breaks down: when the
| Benchmark | ResNet | PirateNet | FB-PINNs | Latent-MoE |
|---|---|---|---|---|
| Allen–Cahn | ||||
| KdV | ||||
| Burgers | ||||
| Advection–Diffusion | 0.553 | 0.607 | 0.373 | 0.010 |
| Damped Wave | 0.734 | 0.740 | 0.741 | 0.011 |
| Layered Wave | 0.147 | 0.484 | 0.066 | 0.036 |
Table 1: Median relative error across benchmarks. All models are at comparable total parameter counts within the benchmark. Top block: homogeneous-physics benchmarks (5 seeds), where all architectures perform comparably. Bottom block: heterogeneous-physics benchmarks (5 seeds): multi-stage time-variable physics (advection–diffusion, damped wave), where Latent-MoE outperforms every baseline by more than an order of magnitude, and spatially-layered physics (layered wave), where the domain-decomposition models (FB-PINNs, Latent-MoE) lead the global baselines. Full mean±2 std in Appendix C, Table 5; the high ResNet variance on damped wave reflects bimodal seed behavior, while PirateNet’s tight 0.74 on damped wave indicates a shared trivial-solution attractor.

d.
e.
f.
g.
h.
i.
Figure 3: Predictions and absolute errors across all three benchmarks. (a, b, c) Ground-truth solutions for advection–diffusion (AD), damped wave (DW), and layered wave (LW); dashed lines mark stage transitions or boundaries. (d, e, f) Latent-MoE predictions and pointwise errors. (g, h, i) Parameter-matched widened ResNet predictions and pointwise errors. ResNet collapses to a near-trivial solution after the first stage transition in both benchmarks with time-variable physics, and fails to learn the fine details brought by the layered medium in LW, while Latent-MoE preserves solution fidelity across stages and layers. Visualizations for FB-PINNs and PirateNet can be found in Appendix C.
governing operator or the forcing changes qualitatively across regions of the domain, forcing a single network to reconcile competing dynamics within a shared parameter set.
5.1 Advection–diffusion with time-variable coefficients
Here we test how architectures handle a time-variable differential operator under zero forcing:
with periodic boundary conditions and the multi-mode initial condition . The advection velocity is a multi-frequency oscillation with a linear drift, and the diffusion coefficient takes three distinct values across the domain joined by smooth tanh ramps at and . The full coefficient profiles are shown in Appendix C, Figure 8.
Table 1 reports relative errors across five random seeds. Latent-MoE achieves a median error of , more than an order of magnitude below all baselines. Figure 3(g) shows that ResNet preserves the early-time dynamics but collapses to a near-trivial solution once the diffusion coefficient grows, whereas Latent-MoE tracks the solution through all three stages. Per-seed distributions are in Appendix C.
5.2 Damped wave equation with staged forcing
The second benchmark adds a time-variable forcing on top of a time-variable operator, testing both the homogeneous and inhomogeneous solution components:
with , a small advection to break axial symmetry of the frequency signature, and periodic boundary conditions. The system has three stages after the initial free propagation: a damping stage with on and zero elsewhere; a forcing stage in which a resonant external drive is ramped on between and and switched off at ; and free evolution afterward. The initial condition is .
This benchmark elicits the spurious-solution failure mode characterized by Wang et al. [15]: ResNet, PirateNet, and FB-PINNs all converge to near-trivial solutions (Table 1, errors above 0.7 relative for all three, with PirateNet's two-standard-deviation band indicating that every seed reaches the same trivial-solution attractor). Figure 3(h) shows that the parameter-matched ResNet fails to capture the resonant excitation introduced by the forcing stage, while Latent-MoE recovers the correct frequency signature throughout. We interpret this as evidence that the shared-backbone-with-localized-experts structure provides enough representational specialization to escape the trivial-solution basin that single-network architectures fall into on stiff time-variable problems.
5.3 Layered wave equation
To test whether Latent-MoE's localization benefit extends to spatially varying physics with known domain decomposition, we evaluate it on a pure wave equation with a spatially layered wave speed:
where is a periodic, piecewise-smooth function that takes four distinct values across four spatial layers. These layers use the same bump functions defined in Eq. (12) (§4.3), with a plateau ratio of 1.5 (the plateau length divided by the bridge length) to render a smooth transition. The initial displacement is a sinusoidal function whose local spatial frequency slightly adapts to the layer structure, with zero initial velocity ; see Appendix C.7 for the full specification. Unlike the AD and DW benchmarks, where stage transitions are temporal and unknown to the model, the layered wave (LW) benchmark decomposes the spatial axis. For FB-PINNs and Latent-MoE, we configure the domain-aware routers and the four experts to align exactly with these spatial layers. Additionally, we evaluate model performance when this architectural bias misaligns with the true physics, either by shifting the expert subdomains with various offsets or by incorrectly configuring the layer overlap ratio.
Table 2 reports median relative errors across three seeds. Thanks to its flexible capacity allocation, Latent-MoE does not require exact alignment with the physical subdomains; a coarse spatial ansatz suffices, significantly reducing implementation overhead. Interestingly, we find that for both MoE models, bump function routers with plateau ratio of 1 outperforms the native bump function with plateau ratio of 1.5 of the actual physics, implying that exact alignment in the domain decomposition perspective may not be optimal for the actual performance.
5.4 Robustness to stage-transition placement
A natural concern with these benchmarks is that the stage transitions might happen to align with the Latent-MoE subdomain boundaries, in which case the method would benefit from a hand-chosen partition. To rule this out, we vary the first transition time over the range – which deliberately misaligns it with the fixed temporal subdomain boundaries used by Latent-MoE. Table 3
| Value | Plateau ratio | Spatial shift | |||||
|---|---|---|---|---|---|---|---|
| 1.000 | 1.500 | 2.000 | 0.000 | 0.050 | 0.100 | 0.125 | |
| FBPINNs | 0.059 | 0.066 | 0.081 | 0.066 | 0.064 | 0.078 | 0.096 |
| L-MoE | 0.025 | 0.036 | 0.065 | 0.036 | 0.062 | 0.042 | 0.038 |
Table 2: Median relative error on the layered-wave benchmark (3 seeds, except for the models with the exact domain decomposition, marked as bold values). Left block: plateau-ratio sensitivity at zero boundary offset, with ground truth ratio 1.5. Right block: sensitivity to a rigid spatial offset of the bump-router boundaries from the physical layer transitions (plateau ratio fixed at 1.5).
| First stage transition | |||||||
|---|---|---|---|---|---|---|---|
| 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | |
| Advection–Diffusion | |||||||
| Latent-MoE | 0.002 | 0.002 | 0.004 | 0.006 | 0.023 | 0.013 | 0.005 |
| ResNet | 0.421 | 0.306 | 0.509 | 0.356 | 0.531 | 0.593 | 0.477 |
| FB-PINNs | 0.192 | 0.239 | 0.288 | 0.424 | 0.409 | 0.403 | 0.393 |
| PirateNet | 0.413 | 0.476 | 0.503 | 0.526 | 0.551 | 0.554 | 0.608 |
| Damped Wave | |||||||
| Latent-MoE | 0.013 | 0.026 | 0.015 | 0.012 | 0.037 | 0.030 | 0.028 |
| ResNet | 0.890 | 0.818 | 0.658 | 0.430 | 0.572 | 0.478 | 0.706 |
| FB-PINNs | 0.877 | 0.803 | 0.748 | 0.655 | 0.664 | 0.664 | 0.724 |
| PirateNet | 0.890 | 0.819 | 0.737 | 0.664 | 0.580 | 0.548 | 0.827 |
Table 3: Median relative error across 3 seeds as the first stage-transition time is shifted, while keeping inter-stage gaps fixed. The Latent-MoE temporal subdomains are held fixed across all values, so most settings deliberately misalign the physical staging with the architectural decomposition. Latent-MoE remains in the regime throughout.
reports median relative error across three seeds for each value.¹ Latent-MoE remains in the range across all settings, while ResNet errors stay above 0.3. Appendix F provides visualizations of the windowed relative -error for the 4 models.
5.5 Gradient conflict and the localization hypothesis
Our central claim is that domain-aware routing eliminates the long-range coupling between training points that pits gradients from different regions against each other. We test this directly by measuring gradient conflict during training. Following the gradient-alignment perspective of Wang et al. [25], we partition the temporal domain into non-overlapping chunks (we use ; see Appendix C.4), compute the residual-loss Jacobian on each chunk, and define the gradient conflict index

(a) Advection–diffusion
(b) Damped wave
Figure 4: Gradient-conflict index over training. Lower is better. L-MoE G-Enc. stands for Latent-MoE with global encoder that is not expert-centered. Latent-MoE consistently exhibits the least cross-chunk cancellation.
¹The column for advection–diffusion and the column for damped wave coincide with the default benchmarks in Table 1. The medians differ slightly because this sweep uses three seeds instead of five.
corresponds to perfectly aligned gradients across chunks; values near 1 indicate that gradients from different temporal regions cancel each other during the optimization step (Appendix C.4 gives an asymptotic NTK interpretation).
Figure 4 shows throughout training for all four architectures and the global-encoder ablation on both benchmarks. Latent-MoE maintains lower conflict than the dense baselines (ResNet, PirateNet) on both problems, with a clear margin on the damped wave and a smaller margin over PirateNet on advection–diffusion, consistent with its localized NTK structure. FB-PINNs registers high on advection–diffusion as well, but for a structurally different reason: its experts have disjoint parameters, so the per-chunk Jacobians have nearly disjoint support and the metric mechanically inflates toward regardless of training dynamics. The diagnostic distinguishes Latent-MoE not just from globally coupled models but also from rigid decompositions: the shared backbone is what enables genuine gradient alignment across regions, rather than mere isolation. Replacing the per-expert centered encoder with a single global encoder (L-MoE G-Enc, Fig. 4) raises the gradient-conflict index toward the dense-baseline range. This isolates centering, not MoE structure alone, as the mechanism that suppresses cross-chunk gradient cancellation – in direct agreement with Theorem 1.
6 Discussion
We have proposed Latent-MoE, a PINN architecture that interleaves domain-aware mixture-of-experts blocks within a shared backbone. The design is motivated by an NTK analysis: standard coordinate networks have translation-variant kernels that produce long-range coupling between training points, and centered compact-support routing localizes learning by yielding a banded NTK whose kernel-regression weights decay exponentially with distance. The shared backbone preserves the flexibility to allocate capacity across regions, which we identify as the central limitation of rigidly partitioned approaches such as FB-PINNs.
The benefit is regime-specific. On standard PINN benchmarks with homogeneous physics, Latent-MoE matches established baselines: when there is no cross-region gradient conflict to resolve, the localization machinery does not help. The advantage emerges when the governing equations or forcing change qualitatively across the domain – the regime in which the global baselines we tested (ResNet, PirateNet) collapse to spurious solutions while Latent-MoE preserves the dynamics, with reduced gradient conflict throughout training. When the heterogeneity is spatial and the domain decomposition is known (the layered wave benchmark), rigid decomposition (FB-PINNs) is also effective; yet Latent-MoE remains competitive without requiring its experts to align exactly with the physical layers, indicating that a coarse spatial ansatz suffices. We view this scope – problems whose physics is well-defined but varies vastly across time or space – as the natural target of the architecture, with practical relevance to wave propagation through layered media, reactive flows with temperature-dependent kinetics, and fluid systems with time-variable forcing.
Limitations. Our quantitative claims rest on three synthetic benchmarks designed to isolate heterogeneous physics – two with multi-stage time-variable physics and one with a spatially layered wave speed – supplemented by Burgers, Allen–Cahn and KdV as homogeneous-physics controls. The variable- and gradient-conflict experiments mitigate cherry-picking concerns, but evaluation on real engineering or geophysical problems remains the natural next step. The router supports are also fixed bump functions tiled along a single (temporal or spatial) axis; adaptive decomposition driven by the residual landscape [14, 30], joint spatio-temporal partitioning, and non-uniform per-expert capacity are straightforward extensions we have not pursued. Finally, the NTK analysis assumes infinite width and squared-error loss; the gradient-conflict diagnostic provides a training-centric proxy that tracks the analytical predictions on our benchmarks, but a finite-width characterization under the residual loss would close a real gap.
Broader Outlook. The broader observation underlying this work is that architectural machinery developed for scaling language models – sparse activation, expert routing, interleaved specialization – can be repurposed for scientific computing when the routing is informed by physical structure rather than learned from scratch, expanding the range of multi-regime problems where PINNs are a viable modeling tool.
Acknowledgments and Disclosure of Funding
This work is supported by the U.S. Department of Energy (DOE), Office of Advanced Scientific Computing Research (ASCR) under award number DE-SC0024563.
References
[1] M. Raissi, P. Perdikaris, and G. E. Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378:686–707, feb 2019.
[2] DeepMind, Igor Babuschkin, Kate Baumli, Alison Bell, Surya Bhupatiraju, Jake Bruce, Peter Buchlovsky, David Budden, Trevor Cai, Aidan Clark, Ivo Danihelka, Antoine Dedieu, Claudio Fantacci, Jonathan Godwin, Chris Jones, Ross Hemsley, Tom Hennigan, Matteo Hessel, Shaobo Hou, Steven Kapturowski, Thomas Keck, Iurii Kemaev, Michael King, Markus Kunesch, Lena Martens, Hamza Merzic, Vladimir Mikulik, Tamara Norman, George Papamakarios, John Quan, Roman Ring, Francisco Ruiz, Alvaro Sanchez, Laurent Sartran, Rosalia Schneider, Eren Sezener, Stephen Spencer, Srivatsan Srinivasan, Miloš Stanojević, Wojciech Stokowiec, Luyu Wang, Guangyao Zhou, and Fabio Viola. The DeepMind JAX Ecosystem, 2020.
[3] Jason Ansel, Edward Yang, Horace He, Natalia Gimelshein, Animesh Jain, Michael Voznesensky, Bin Bao, Peter Bell, David Berard, Evgeni Burovski, Geeta Chauhan, Anjali Chourdia, Will Constable, Alban Desmaison, Zachary DeVito, Elias Ellison, Will Feng, Jiong Gong, Michael Gschwind, Brian Hirsh, Sherlock Huang, Kshiteej Kalambarkar, Laurent Kirsch, Michael Lazos, Mario Lezcano, Yanbo Liang, Jason Liang, Yinghai Lu, C. K. Luk, Bert Maher, Yunjie Pan, Christian Puhrsch, Matthias Reso, Mark Saroufim, Marcos Yukio Siraichi, Helen Suk, Shunting Zhang, Michael Suo, Phil Tillet, Xu Zhao, Eikan Wang, Keren Zhou, Richard Zou, Xiaodong Wang, Ajit Mathews, William Wen, Gregory Chanan, Peng Wu, and Soumith Chintala. PyTorch 2: Faster machine learning through dynamic python bytecode transformation and graph compilation. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, volume 2 of ASPLOS '24, pages 929–947, New York, NY, USA, apr 2024. Association for Computing Machinery.
[4] Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Large-Scale Machine Learning on Heterogeneous Systems, 2015.
[5] Sifan Wang, Yujun Teng, and Paris Perdikaris. Understanding and mitigating gradient flow pathologies in physics-informed neural networks. SIAM J. Sci. Comput., 43(5):A3055–A3081, jan 2021.
[6] Nasim Rahaman, Aristide Baratin, Devansh Arpit, Felix Draxler, Min Lin, Fred Hamprecht, Yoshua Bengio, and Aaron Courville. On the spectral bias of neural networks. In Proceedings of the 36th International Conference on Machine Learning, pages 5301–5310. PMLR, may 2019.
[7] Basri Ronen, David Jacobs, Yoni Kasten, and Shira Kritchman. The convergence rate of neural networks for learned functions of different frequencies. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
[8] Zhi-Qin John Xu, Yaoyu Zhang, and Yanyang Xiao. Training behavior of deep neural network in frequency domain. In Tom Gedeon, Kok Wai Wong, and Minho Lee, editors, Neural Information Processing, pages 264–274, Cham, 2019. Springer International Publishing.
[9] Vincent Sitzmann, Julien Martel, Alexander Bergman, David Lindell, and Gordon Wetzstein. Implicit neural representations with periodic activation functions. In Advances in Neural Information Processing Systems, volume 33, pages 7462–7473. Curran Associates, Inc., 2020.
[10] Matthew Tancik, Pratul Srinivasan, Ben Mildenhall, Sara Fridovich-Keil, Nithin Raghavan, Utkarsh Singhal, Ravi Ramamoorthi, Jonathan Barron, and Ren Ng. Fourier features let networks learn high frequency functions in low dimensional domains. In Advances in Neural Information Processing Systems, volume 33, pages 7537–7547. Curran Associates, Inc., 2020.
[11] Ameya D. Jagtap and George Em Karniadakis. Extended physics-informed neural networks (XPINNs): A generalized space-time domain decomposition based deep learning framework for nonlinear partial differential equations. Communications in Computational Physics, 28(5), nov 2020.
[12] Ben Moseley, Andrew Markham, and Tarje Nissen-Meyer. Finite basis physics-informed neural networks (FBPINNs): a scalable domain decomposition approach for solving differential equations. Adv Comput Math, 49(4):62, jul 2023.
[13] Victorita Dolean, Alexander Heinlein, Siddhartha Mishra, and Ben Moseley. Multilevel domain decomposition-based architectures for physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering, 429:117116, sep 2024.
[14] Jonah Botvinick-Greenhouse, Wael H. Ali, Mouhacine Benosman, and Saviz Mowlavi. AB-PINNs: Adaptive-basis physics-informed neural networks for residual-driven domain decomposition, oct 2025.
[15] Sifan Wang, Shawn Koohy, Yiping Lu, and Paris Perdikaris. When pinns go wrong: Pseudo-time stepping against spurious solutions, 2026.
[16] Sifan Wang, Shyam Sankaran, Hanwen Wang, and Paris Perdikaris. An expert's guide to training physics-informed neural networks, aug 2023.
[17] Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks, feb 2020.
[18] Jaehoon Lee, Lechao Xiao, Samuel Schoenholz, Yasaman Bahri, Roman Novak, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. Advances in neural information processing systems, 32, 2019.
[19] Robert A. Jacobs, Michael I. Jordan, Steven J. Nowlan, and Geoffrey E. Hinton. Adaptive mixtures of local experts. Neural Computation, 3(1):79–87, mar 1991.
[20] Michael I. Jordan and Robert A. Jacobs. Hierarchical mixtures of experts and the EM algorithm. Neural Computation, 6(2):181–214, mar 1994.
[21] William Fedus, Barret Zoph, and Noam Shazeer. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Journal of Machine Learning Research, 23(120):1–39, 2022.
[22] Jaehoon Lee, Yasaman Bahri, Roman Novak, Samuel S Schoenholz, Jeffrey Pennington, and Jascha Sohl-Dickstein. Deep neural networks as gaussian processes. arXiv preprint arXiv:1711.00165, 2017.
[23] Sifan Wang, Xinling Yu, and Paris Perdikaris. When and why PINNs fail to train: A neural tangent kernel perspective. Journal of Computational Physics, 449:110768, jan 2022.
[24] Sifan Wang, Hanwen Wang, and Paris Perdikaris. On the eigenvector bias of fourier feature networks: From regression to solving multi-scale PDEs with physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering, 384:113938, oct 2021.
[25] Sifan Wang, Bowen Li, Paris Perdikaris, et al. Gradient alignment in physics-informed neural networks: A second-order optimization perspective. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
[26] Sifan Wang, Bowen Li, Yuhan Chen, and Paris Perdikaris. Piratenets: Physics-informed deep learning with residual adaptive networks. Journal of Machine Learning Research, 25(402):1–51, 2024.
[27] Sifan Wang, Shyam Sankaran, and Paris Perdikaris. Respecting causality for training physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering, 421:116813, mar 2024.
[28] Youngmin Cho and Lawrence Saul. Kernel methods for deep learning. Advances in neural information processing systems, 22, 2009.
[29] Stephen Demko, William F Moss, and Philip W Smith. Decay rates for inverses of band matrices. Mathematics of computation, 43(168):491–499, 1984.
[30] Hanwen Wang and Paris Perdikaris. Adaptive tokenization for vision transformer pde simulation. In AI { & } PDE: ICLR 2026 Workshop on AI and Partial Differential Equations, 2026.
[31] Daniel Barzilai, Amnon Geifman, Meirav Galun, and Ronen Basri. A kernel perspective of skip connections in convolutional networks, feb 2023.
[32] Yuval Belfer, Amnon Geifman, Meirav Galun, and Ronen Basri. Spectral analysis of the neural tangent kernel for deep residual networks. Journal of Machine Learning Research, 25(184):1–49, 2024.
[33] Jonathan Heek, Anselm Levskaya, Avital Oliver, Marvin Ritter, Bertrand Rondepierre, Andreas Steiner, and Marc van Zee. Flax: A neural network library and ecosystem for JAX, 2024.
[34] Haydn Jones. haydn-jones/SOAP_JAX. https://github.com/haydn-jones/SOAP_JAX, jan 9 2026.
[35] Nikhil Vyas, Depen Morwani, Rosie Zhao, Mujin Kwun, Itai Shapira, David Brandfonbrener, Lucas Janson, and Sham Kakade. SOAP: Improving and stabilizing shampoo using adam, jan 2025.
[36] B. T. Polyak and A. B. Juditsky. Acceleration of stochastic approximation by averaging. SIAM Journal on Control and Optimization, 30(4):838–855, 1992.
[37] Aly-Khan Kassam and Lloyd N Trefethen. Fourth-order time-stepping for stiff pdes. SIAM Journal on Scientific Computing, 26(4):1214–1233, 2005.
[38] T. A Driscoll, N. Hale, and L. N. Trefethen. Chebfun Guide. Pafnuty Publications, 2014.
[39] Sifan Wang, Hanwen Wang, and Paris Perdikaris. Learning the solution operator of parametric partial differential equations with physics-informed deeponets. Science Advances, 7(40):eabi8605, 2021.
A Neural Tangent Kernel Theory
A.1 Preliminaries
Without loss of generality, we only consider single-output neural networks without residual connections; however, the convergence results also apply to multi-output networks and architectures with residual connections[31, 32]. For an -layer fully connected neural network with parameters , let the layer input be for , where is the network input and is the post-activation output of the last hidden layer. Let the weight matrix and bias vector at layer be and , respectively, where is the width of layer . The forward pass is defined as
where is the pre-activation at layer , is the activation function, and are scales of the weight and bias, which themselves are initialized as i.i.d Gaussian. The last layer is a linear readout layer and therefore has no activation. NTK analysis assumes i.i.d. weight and bias initialization. The collection of all parameters is denoted by . The neural tangent kernel is defined as the inner product of Jacobians at two input points over all parameters:
Given a training dataset and corresponding labels , the empirical NTK matrix is defined as
that is, .
We assume that the continuous time gradient descent training follows the dynamics
where is the learning rate (equivalently, the time-scaling factor in continuous time), and is the summed squared-error loss.
Under such training dynamics, the evolution of the network parameters and its predictions on the training set can be described by the following ODE system, linearized around the initialization :
The NTK theory states that under certain conditions, as the width of each layer , the NTK converges to a deterministic kernel matrix and remains constant during the training with continuous gradient descent dynamics. We denote the limiting kernel as . Therefore, the training dynamics of the network predictions can be obtained at the initialization as
and the solution to the ODE is given as
One prominent property of the NTK is translation variance, which implies uneven learning of the target function across the input domain. We use a simple one-hidden-layer fully connected ReLU network to illustrate this property. General recursion formulas for NNGP[22] and NTK[17, 18] can be found in the corresponding literature.
The analysis can be extended to cross-entropy loss as well [17].
Theorem 2 (Recursive NTK formula for Fully Connected Networks). Let the neural tangent kernel at layer be denoted as , and the covariance matrix of the pre-activation at layer be denoted as , and the covariance matrix of the pre-activation derivatives at layer be denoted as , then the NTK at layer can be computed recursively as
where and is the input dimension.
Proof. See section 4.1 of Jacot et al. [17].
In this corollary, we provide the exact closed-form expression for the NTK of a two-layer ReLU network with bias, which is used in the main text to analyze NTK locality and the effect of bias on kernel structure. The proof technique is based on the well-known arc-cosine kernel .
Corollary 1 (Analytic NTK for Single-Layer ReLU Networks). Consider a one hidden layer neural network defined above with ReLU activation , unit Gaussian initialization for weights and , and Normal bias initialization with zero mean and standard deviation . That is, the network is defined as
its limiting NTK is given by
Proof. Let and . Since the weights and biases are initialized i.i.d. from , we have that and are jointly Gaussian with zero mean and covariance matrix , where , , and , and the correlation coefficient
We first derive NTK component for the first layer weights at infinite width. By the Strong Law of Large Numbers, as ,
Similarly for the first layer bias , as ,
Given that the is a step function from 0 to 1 at 0, is an indicator function of the event that z > 0 and . Therefore, we can geometrically compute that
Due to the scale-invariance of the ReLU activation, the initialization variance offset for the inner and outer weights can be absorbed into the bias initialization.
We then derive the NTK component for the second layer weights at infinite width.
(37)
(38)
Let be two standard Gaussian random variables with correlation coefficient , then
Using Price's theorem, we compute the derivative of with respect to as
We can then integrate the above equation with respect to to obtain
Using the boundary condition of when , we can solve for the constant and derive the final expression for as
Summing up the above components, we have that the NTK of the two-layer ReLU network at infinite width is
where the last line is obtained by plugging in the definition of , , and simplifying.
With the analytic NTK formula, we can quantitatively show that the NTK kernel is highly translation-variant with scale growing quadratically with the input magnitude.
Corollary 2 (Linearized NTK approximation for Single-Layer ReLU Networks). With , where and is a perturbation term that is sufficiently small, then
Proof. Again we denote . Then
Using the smaller angle approximation for sufficiently small , we have that
Plugging the above approximation and into the NTK formula in Corollary 1, we have that
□
Corollary 2 suggests that the linearized NTK approximation grows with input magnitude when is small and dominates. This trend is clearer when the inner bias scale is set to 0, in which case the NTK reduces to if and 0 otherwise, and the linearized approximation is exactly . When the input is time, this implies that the NTK assigns higher correlation to temporally distant data points, which can induce spurious correlations and violate causality. Theorem 1 shows that by centering each expert at its subdomain center and making its support compact, the NTK becomes banded and its kernel-regression weights exhibit translation-based exponential decay with distance between the evaluation point and training points. In short, domain decomposition mitigates the network's tendency to disproportionately emphasize later temporal data by localizing experts to specific subdomains.
A.2 Proof of Theorem 1
Proof. Let be the composite NTK matrix of the MoE architecture evaluated on the training dataset . By the assumption of a positive minimum eigenvalue , we have that is positive definite and therefore invertible, since it is a Gram matrix of the Jacobian at the datapoints with respect to the parameters. Let be two training points in . Then
Given that are supported on evenly spaced compact intervals of uniform width , the off-block entries of are zeroed. That is, if , then . The NTK matrix is therefore -banded.
By assumption, each is continuous on the compact support of , hence uniformly bounded by some . The translational construction of the subdomains (each is the same kernel translated to centroid ) gives a common bound , independent of the discretization. Since at most two routers are active at any point, uniformly on the domain.
Demko-Moss-Smith theorem [29] states that for such a banded matrix that is positive definite, bounded, and boundedly invertible, the entries of its inverse also decay exponentially away from the diagonal. More formally, there exists constants and such that for any ,
Similarly, given an evaluation point , the partial kernel is also banded with the same bandwidth , since the router is supported on compact intervals of width . Therefore, if , then . Let . Then for the any evaluation point , . The equivalent kernel regression weight for a training point
A.3 2D effective neighborhood width
Similar to the 1D effective width ( 4.1), we define the temporal width for a 2D space-time model in which only the temporal domain is partitioned. Let the input be , where is time and is space, and let denote the NTK-regression weight matrix with shape . We define the temporal -effective neighborhood width as
A.4 NTK diagnosis
To complement the analytical results in Corollary 1, Corollary 2, and Theorem 1, we visualize the NTK and the corresponding kernel-regression weights for a non-MoE model as well as MoE models with varying numbers of experts, both centered and non-centered. Figure 5 shows that while the non-centered MoE suppresses off-diagonal correlations in the Jacobian, the unboundedness of the diagonal and near-diagonal elements still produces inhomogeneous kernel-regression weights across the domain. In contrast, the subdomain-centric centering successfully introduces translational invariance into the kernel-regression weights. Figure 6 further demonstrates that increasing the number of experts progressively uniformizes the learning behavior.
a.

b.
d.
e.
c.
f.
Figure 5: NTK analysis for domain decomposition MoE. (a-c) NTKs of a one-hidden-layer ReLU network, centered MoE, and non-centered MoE. (d-f) NTK regression weights of the same architectures. In all cases, weight scale is 1, and bias scale is 0.05.
MoE NTK, centered

MoE NTK kernel-regression absolute weights, centered
MoE NTK, non-centered
MoE NTK kernel-regression absolute weights, non-centered
Figure 6: NTK and absolute kernel regression weights for MoE models with various numbers of experts. Rows are (1) centered NTK, (2) centered NTK kernel-regression absolute weights , (3) non-centered NTK, and (4) non-centered NTK kernel-regression absolute weights . Centering produces more localized and more regular structures across expert counts.
B Architecture Details
B.1 Domain-aware Routers

(a) Single bump with two bridges and one plateau.
(b) Overlapping bumps across the domain.
Figure 7: Bump-router construction used for soft domain decomposition. Overlap between neighboring bumps enables smooth blending of experts through partition-of-unity bump weights.
Figure 7 shows how the bump function is designed and tiled to softly partition the domain into overlapping subdomains. In this work, we use two types of bump-bridge functions. The first is a bridge, whose first derivative vanishes at both ends.
The second is a bridge, whose first and second derivatives vanish at both ends. It is used for benchmarks whose differential operator is second order in time.
B.2 Encoder
We use periodic spatial encoding for both models. That is, given spatial coordinate x and temporal coordinate t, the periodic encoding is defined as
And we choose for Advection-Diffusion, Damped-Wave, and Layered-Wave benchmarks, and for standard JAXPI benchmarks. For the standard JAXPI benchmarks the spatial domain is , so the embedding uses and instead. The spatially periodic embedding is then followed by a Gaussian random projection and Fourier embedding. That is,
and are the spatial and temporal random Fourier-feature scales. We set both to 4, except for the KdV benchmark where both are 8. The matrix W is learnable during training. A trainable linear layer then maps to the backbone width.
For Burgers equation with Dirichlet boundary condition instead of periodic boundary condition, we remove the periodic embedding in Equation (73) and directly apply the random Fourier features as
C Experimental Details
We use JAX ecosystem[2], Flax[33] in Python3.11 to implement the experiments in this paper.
All experiments use an unofficial JAX implementation [34] of the SOAP optimizer [35]. Table 4 summarizes the training hyperparameters shared across all experiments.
Table 4: Training hyperparameters shared across all experiments.
| Component | Value |
|---|---|
| Init LR | |
| Peak LR | |
| Min LR | |
| Warmup steps | 1000 |
| Decay factor / interval | 0.90 every 2000 steps |
| Weight decay | |
| SOAP preconditioner update | Every 2 steps |
| Residual collocation points | 4096 |
| Initial-condition points | 1024 |
| Initial-velocity points (wave benchmarks) | 1024 |
| Boundary points (Burgers) | 1024 |
| Activation function | swish |
| Polyak averaging rate [36] | 0.01 |
We set the width of the networks to be 128, and each backbone has 4 residual blocks, where, for the Latent-MoE, two of them are MoE blocks with chosen number of experts. The width of the corresponding blocks in the non-MoE architecture is widened to keep the total number of parameters comparable, up to some small difference due to the additional bias terms in the MoE blocks.
In addition to the widened ResNet, we also compare against FB-PINNs and PirateNet. As discussed in the main manuscript, FB-PINNs directly follow the NTK intuition behind MoE localization, whereas PirateNet is considered a strong state-of-the-art architecture across multiple problems.
For all of the benchmarks without analytical solutions, the ground truth is generated by a RK4 or ETDRK4 solver[37]. We verified the solver against the chebfun package[38], which generates the ground truth for the standard JAXPI benchmarks, and the two solutions agree to at least single precision.
Damped-Wave and Advection-Diffusion We configure FB-PINNs with width 100 across all layers. For the damped-wave and advection-diffusion benchmarks (including their time-variable variants), PirateNet uses four Pirate blocks, each with width 192. FB-PINNs and Latent-MoE use 6 temporal experts. The total parameter count for both ResNet and Latent-MoE is around 480,000, while the baselines FB-PINNs and PirateNet are around 550,000; this gap further strengthens the observed performance advantage. Each experiment is trained for 250000 steps to balance training cost and convergence.
Layered-Wave To align the actual domain decomposition, we use the 4 experts variant of the FB-PINNs, Latent-MoE, and widened ResNet, as well as the narrower PirateNet with width 160 to match the parameter counts. Latent-MoE and ResNet have approximately 347,000 parameters, FB-PINNs has approximately 365,000, and PirateNet has approximately 387,000. We follow the Damped-Wave and Advection-Diffusion for train related hyperparameter choice. Additionally, we use wrapping bump function routers to enforce the periodicity on the FB-PINNs and the Latent-MoE models. The global baseline models still use the periodic encoding. See Figure 11 for the wrapping bump-router weights and expert centering.
Standard JAXPI benchmarks For standard JAXPI benchmarks, we reduce the number of experts for FB-PINNs and Latent-MoE to 4, and narrow PirateNet to width 160 because these benchmarks are simpler. We also reduce training to 150,000 steps based on loss and error convergence trend. Latent-MoE and ResNet have approximately 347,000 parameters, FB-PINNs has approximately 365,000, and PirateNet has approximately 387,000.
C.1 Huber loss function
To prevent diminishing or exploding gradient, we employ the Huber loss that is linear on both small and large error magnitude.
We set and E = 1000 in all experiments.
C.2 Causality Enforcement
We modify the original causality-enforcement method proposed by Wang et al. [27], where the causality coefficient is fixed or manually scheduled throughout training. The original causality weights for losses are formulated as
where has to be carefully tuned to balance the mitigation of error propagation and the vanishing gradient issue. In our experiments, we use relative causality weights, where the weights are calculated with respect to the first time step loss . That is,
where is the number of temporal chunks. Furthermore, to avoid vanishing causality weights when the early time losses are not properly optimized, when the last time step weights is smaller than a threshold , we use the following alternative formulation for the causality weights:
that is, all temporal-chunk losses still receive subtle but meaningful gradients even when early-time losses are not yet optimized, and the causality weights are automatically adjusted to avoid vanishing gradients. In our experiments, we set . The ablation of the relative causal coefficient is reported in Appendix D. We use 8 causal chunks for all experiments, and collocation points are sampled uniformly at random from the spatio-temporal domain for each chunk to compute .
For standard JAXPI benchmarks ( ), we keep the unnormalized causal weighting in Equation (77). In our implementation the cumulative sum in Equation (77) is also divided by T. For the other benchmarks, we use the dynamic causal weighting in Equation (79).
C.3 Loss balancing
We adopt the loss balancing method used in [16] to balance the PDE residual loss with the initial and boundary condition losses. Let be the gradient tensor of the losses, where is the number of loss terms and is the number of parameters. The weight for each loss term is calculated as
where the small added term is used to avoid the dominance of the convergent loss term with minimal gradient magnitude. In our experiments, we set . The weights are then normalized to sum to one and smoothed by an exponential moving average with rate 0.01, updated every 1000 steps.
C.4 Gradient Conflict Index
In the main text, we defined the gradient conflict index on the gradients of the PDE residual loss evaluated on the temporal residual chunks as
serves as a proxy for Jacobian correlation, which is central to NTK theory. When the number of points sampled for the -th chunk approaches infinity, the Jacobian converges to the expectation
where is the PDE residual at point . Then
Then the numerator of the gradient-conflict index can be asymptotically viewed as
and the denominator can be asymptotically viewed as
Therefore, the gradient-conflict index can be viewed as a function of the NTK
when the network width and the number of data points for each chunk both approach infinity. Although these asymptotic conditions are difficult to attain exactly, the gradient-conflict index is still a practical proxy to quantify the negative correlation and tracks real training dynamics and loss evolution.
C.5 Advection-Diffusion
Figure 8 shows the time-variable coefficient profiles used in the advection-diffusion benchmark. The advection speed is , while the diffusion coefficient is a piecewise function that has different constant values in three stages, with smooth transitions between stages. The transitions are tanh ramps of the form with widths and , for the 2 transitions.
C.6 Damped Wave Equation with forcing
Figure 9 shows the force-injection profile used in the damped-wave benchmark, where forcing is injected in the middle stage of the time domain, following the damping stage, and the system evolves freely in the first stage before the damping and the last stage after the force injection. The forcing term ramps up linearly over the first third of the force-injection stage and then stays constant until that stage ends.
C.7 Layered Wave Equation
The layered-wave benchmark solves the pure second-order wave equation
with periodic spatial boundary conditions. The wave speed is a periodic, piecewise-smooth function defined by four spatial layers with speeds , , , . The initial displacement is a sine wave whose local spatial frequency varies with the layer structure: in each layer, the frequency is set proportionally to the spatial Fourier modes , producing a -smooth initial condition by construction. The initial velocity is zero, . Figure 10 shows the wave speed profile and initial condition.

(a) Time-variable advection speed . (b) Time-variable diffusion coefficient .
Figure 8: Coefficient profiles used in the advection-diffusion benchmark. The diffusion plot uses log scale, and dashed lines indicate stage boundaries at t = 0.5 and t = 4/3.

Figure 9: Force-injection profile used in the damped-wave benchmark. Dashed lines mark the boundaries between stages.
Initial condition We use a cosine ramp to connect different local frequencies of adjacent layers. Given an interval where the frequency ramps up from to , we construct the effective frequency
Let , , , the initial condition is
where the scaling ensures the periodicity of the initial condition. For this benchmark we decompose the spatial axis into four expert subdomains. The bump-router boundaries are tiled uniformly on with the same plateau ratio (the plateau length divided by the bridge length) used to define the physical layers; the spatial shift in Table 2 rigidly offsets all router boundaries by to probe sensitivity to misalignment. Figure 11 shows the corresponding bump-router weights and expert centering.

(a)
(b)
Figure 10: Layered-wave benchmark: (a) wave speed and (b) initial condition.

(a)

(b)
Figure 11: Wrapped domain decomposition to preserve periodicity for the Layered-Wave benchmark. (a) Wrapping bump functions: To enforce periodic boundary conditions, the first bump function (blue) wraps around the domain limits, smoothly connecting the left and right boundaries. (b) Wrapped expert centering: The local coordinate mapping for the experts. The spatial input for the first expert is similarly wrapped, ensuring continuous and consistent centering across the periodic boundary.
C.8 Baseline model visualizations
We provide additional error visualizations for the FB-PINNns and PirateNet baselines in Figure 13, where the median prediction error across random seeds is visualized for each model and benchmark. The ground truth visualizations for all three benchmarks are shown in Figure 12.

(a)
(b)
(c)
Figure 12: Ground-truth visualizations for the (a) advection-diffusion (AD), (b) damped-wave (DW), and (c) layered-wave (LW) benchmarks.
C.9 Detailed model statistics
Table 5 reports the relative error statistics for all models and benchmarks. The mean and standard deviation are calculated across 5 random seeds, and the median is also provided to mitigate the

(a) AD: FB-PINNs.

(b) AD: PirateNet.
FBPINNs
(c) DW: FB-PINNs.

(d) DW: PirateNet.

FB-PINNs
(e) LW: FB-PINNs.
PirateNet


(f) LW: PirateNet.
Figure 13: Median prediction-error visualizations for FB-PINNs and PirateNet arranged by benchmark: top row advection-diffusion (AD), middle row damped-wave (DW), bottom row layered-wave (LW).
influence of outliers. All the visualizations are evaluated on the trained model with the median error within its class.
| Model | Mean ± 2 std | Median | |
|---|---|---|---|
| AC | FB-PINNs | 3.032e-05 ± 1.485e-05 | 2.735e-05 |
| L-MoE | 2.881e-05 ± 8.749e-06 | 2.739e-05 | |
| PirateNet | 2.256e-05 ± 3.744e-06 | 2.197e-05 | |
| ResNet | 2.145e-05 ± 1.536e-06 | 2.172e-05 | |
| KdV | FB-PINNs | 8.610e-05 ± 5.639e-05 | 8.754e-05 |
| L-MoE | 1.315e-04 ± 5.004e-05 | 1.290e-04 | |
| PirateNet | 1.032e-04 ± 6.231e-05 | 9.398e-05 | |
| ResNet | 6.329e-05 ± 4.931e-05 | 4.957e-05 | |
| Burgers | FB-PINNs | 4.130e-05 ± 1.698e-06 | 4.126e-05 |
| L-MoE | 4.117e-05 ± 3.196e-06 | 4.044e-05 | |
| PirateNet | 4.026e-05 ± 6.032e-08 | 4.027e-05 | |
| ResNet | 4.034e-05 ± 5.145e-07 | 4.023e-05 | |
| AD | FB-PINNs | 3.448e-01 ± 1.723e-01 | 3.732e-01 |
| L-MoE | 1.423e-02 ± 2.562e-02 | 1.019e-02 | |
| PirateNet | 6.030e-01 ± 7.287e-02 | 6.067e-01 | |
| ResNet | 5.302e-01 ± 2.001e-01 | 5.532e-01 | |
| DW | FB-PINNs | 7.431e-01 ± 1.084e-02 | 7.406e-01 |
| L-MoE | 1.058e-02 ± 9.643e-03 | 1.056e-02 | |
| PirateNet | 7.394e-01 ± 6.675e-03 | 7.396e-01 | |
| ResNet | 5.446e-01 ± 6.684e-01 | 7.345e-01 | |
| LW | FB-PINNs | 6.932e-02 ± 1.454e-02 | 6.622e-02 |
| L-MoE | 4.264e-02 ± 2.084e-02 | 3.637e-02 | |
| PirateNet | 5.067e-01 ± 2.275e-01 | 4.835e-01 | |
| ResNet | 1.814e-01 ± 1.689e-01 | 1.471e-01 |
Table 5: Relative error statistics for Allen–Cahn (AC), KdV, Burgers, advection-diffusion (AD), damped wave (DW), and layered wave (LW). The mean and standard deviation are calculated across 5 random seeds. The median is also provided to mitigate the influence of outliers. The best performance for each benchmark is highlighted in bold.
D Ablation study
We perform ablations on several key design choices in our method. The process is greedy. That is, we start from a manually chosen hyperparameter set, then ablate one hyperparameter at a time while keeping others fixed. The best choice from each round is carried to the next round. We run ablations on both advection-diffusion and damped-wave benchmarks. Because the ablation grid is extensive, we use a fixed random seed and do not run multiple seeds per setting to avoid conflating trends with initialization noise. The following tables report relative error for each design on Latent-MoE. AD denotes advection-diffusion and DW denotes damped wave.
D.1 Encoder
Table 6 shows encoder-design ablations. The regular encoder is a periodic embedding followed by random Fourier features. We find that the centered, weight-shared MoE encoder performs best on both benchmarks. The centered-but-independent encoder (separate per subdomain) does substantially worse, as does the uncentered MoE encoder. We conjecture that the encoder defines the base coordinate representation; while random Fourier features enrich it, independent random projections per expert can introduce representation misalignment across experts.
Regular A regular encoder processes the input coordinate uniformly without per-subdomain adjustment.
Shared MoE, centered A MoE encoder with only a set of parameter that is shifted to the centroid of each subdomain is described in the main manuscript (§ 4.3).
MoE, centered A truly MoE encoder with centering further uses different encoders for -th subdomain, in addition to the per-subdomain shift.
where , denote the decomposed and non-decomposed coordinates, and has the same encoder architecture but a distinctive set of parameters that dedicates to the -th subdomain.
MoE, uncentered Uncentered MoE encoder removes the per expert centering. That is,
Table 6: Encoder ablation.
| Encoder | AD | DW |
|---|---|---|
| Regular | 0.21985 | 0.69486 |
| Shared MoE, centered | 0.00285 | 0.0049675 |
| MoE, centered | 0.4816 | 0.73586 |
| MoE, uncentered | 0.28402 | 0.73568 |
D.2 Bump function plateau ratio
Table 7 shows the ablation results for the bump function plateau ratio, which controls the extent of the overlap between neighboring experts. We find that the best plateau ratio is 1, which means that the width of the plateau is the same as the width of the bridge. The plateau ratio here is the plateau length divided by the bridge length, so a ratio of 0 gives pure bridges with maximal overlap and the partition becomes fully disjoint as the ratio goes to infinity.
Table 7: Bump function plateau ratio ablation.
| Plateau ratio | AD | DW |
|---|---|---|
| 0 | 0.004108 | 0.005607 |
| 1 | 0.002391 | 0.004967 |
| 2 | 0.003808 | 0.018568 |
| 3 | 0.010355 | 0.052192 |
D.3 Relative causality coefficient
Table 8 shows the ablation results for the relative causality coefficient . We find that the best is 4 for the advection-diffusion benchmark and 2 for the damped wave benchmark. However, we do note that the performance is not very sensitive to the choice of within a reasonable range.
Table 8: Relative causality coefficient ablation.
| AD | DW | |
|---|---|---|
| 0 | 0.002504 | 0.0048625 |
| 2 | 0.002807 | 0.004506 |
| 4 | 0.002482 | 0.0096405 |
| 8 | 0.003511 | 0.01152 |
E Scaling experiments
In addition to hyperparameter ablations, we study the scalability of ResNet and Latent-MoE, whose parameter counts can be matched. Figure 14 shows that Latent-MoE benefits clearly from scaling the number of experts. By contrast, widening the corresponding feedforward layers in ResNet yields only marginal improvement. This suggests that Latent-MoE provides a more principled scaling path than naive widening.

(a) AD: Scaling.
(b) DW: Scaling.
Figure 14: Scaling diagnostics for advection-diffusion (AD) and damped wave (DW), reported with the same protocol used in Section 5. Each data point is the median among the 3 random seeds.
F Variable stage transition experiments
In addition, Figure 15 shows windowed relative -error heatmaps for both benchmarks across all four architectures (ResNet, PirateNet, FB-PINNs, and Latent-MoE), where each horizontal slice corresponds to one benchmark under different stage-transition times. That is,
(93) where is the window size ( ). The heatmaps show that sharp stage transitions challenge all baselines; however, Latent-MoE remains markedly more robust, with errors that are more localized around transition boundaries. We also observe that subdomain boundaries do not necessarily induce elevated error, even when stage transitions are misaligned with the soft subdomain boundaries.

(a) AD: ResNet.
(b) AD: PirateNet.
(c) AD: FB-PINNs.
(d) AD: Latent-MoE.

(e) DW: ResNet.
(f) DW: PirateNet.
(g) DW: FB-PINNs.
(h) DW: Latent-MoE.
Figure 15: Windowed relative error for variable stage transitions. Top row: advection-diffusion (AD). Bottom row: damped wave (DW). In each row, we compare ResNet, PirateNet, FB-PINNs, and Latent-MoE under the same transition-shift settings.

(a) Advection-diffusion (AD).
(b) Damped wave (DW).
Figure 16: Median relative error of the models trained for variable cutoffs for the advection-diffusion (left) and damped-wave (right) benchmarks. PirateNet and ResNet are competitive or even better at short horizons before the first stage transition, but their errors increase sharply as extends into the multi-stage regime. Latent-MoE exhibits a markedly more consistent error across the full range of .
G Variable time horizon experiments
Figure 16 reports the median relative error as a function of the evaluation cutoff , sweeping from a short horizon—where the dynamics are dominated by pure wave propagation before the diffusion or damping regime activates—to the full benchmark duration. At short time horizons, PirateNet and ResNet achieve competitive or even lower errors, benefiting from the relative simplicity and homogeneity of the early wave-propagation phase. However, as grows and the physics transitions into the multi-stage regime, both baselines exhibit a rapid and sustained rise in error, indicating that their single-network representations struggle to accommodate the change in dynamics. Latent-MoE, by contrast, maintains a substantially more consistent error profile across the full range of , demonstrating that its latent domain decomposition effectively absorbs the increasing complexity introduced by later-stage dynamics.
H Sensitivity against random seeds
Table 1 and Figure 17 shows that sensitivity to initialization exists for all benchmarks, especially for ResNet. In this section, we visualize training instability through full training trajectories. Figure 18 shows relative trajectories for all random seeds of each benchmark-architecture combination. Although Latent-MoE may appear to have larger variance on the log-scale axis, its convergence trend remains consistent. Larger relative values are often due to slower early convergence, and the trajectories still exhibit a steadily decreasing trend at the training cutoff.

(a) Advection-diffusion.
(b) Damped wave.
(c) Layered wave.
Figure 17: Test-error boxplots over random seeds for the compared models on all benchmarks.

(a) AD: ResNet.
(b) AD: PirateNet.
(c) AD: FB-PINNs.
(d) AD: Latent-MoE.

(e) DW: ResNet.
(f) DW: PirateNet.
(g) DW: FB-PINNs.
(h) DW: Latent-MoE.

(i) LW: ResNet.
(j) LW: PirateNet.
(k) LW: FB-PINNs.
(l) LW: Latent-MoE.
Figure 18: Relative trajectories of different random seeds for the four models on all benchmarks. Top row: advection-diffusion (AD). Middle row: damped wave (DW). Bottom row: layered wave (LW).
I Computational cost
All models are trained on a single NVIDIA RTX 6000 Ada Generation GPU. 250,000 training steps on 500,000 parameters models take approximately 2 hours per model, and 150,000 training steps on smaller models (350,000 parameters) take approximately 1 hours per model. In this section, we report computational cost, including training cost and inference cost with all experts active of the larger models. Table 9 shows training and inference time for each model at different widths (widening factor for ResNet, number of experts for Latent-MoE and FB-PINNs), evaluated on the damped-wave benchmark. For FB-PINNs and Latent-MoE, inference can also be run sparsely on non-overlapping subdomains, so at most two experts are active per evaluation point. Figure 19 illustrates that the Latent-MoE model is more computationally efficient than the FB-PINNs, thanks to the shared backbone.
Table 9: Training and inference compute cost. The training cost is evaluated as an average of 1000 steps with the training batch size, and the inference time is evaluated as an average of 200 steps, each with 4096 points.
| Architecture | Width | Train (ms) | Inference (ms) |
|---|---|---|---|
| ResNet | 2 | 14.442 | 0.218 |
| 4 | 17.999 | 0.242 | |
| 6 | 22.884 | 0.297 | |
| 8 | 28.062 | 0.327 | |
| Latent MoE | 2 | 20.308 | 0.208 |
| 4 | 23.517 | 0.249 | |
| 6 | 27.070 | 0.298 | |
| 8 | 30.423 | 0.372 | |
| FB-PINNs | 2 | 22.712 | 0.228 |
| 4 | 27.021 | 0.267 | |
| 6 | 31.832 | 0.361 | |
| 8 | 36.453 | 0.411 | |
| PirateNet | - | 29.395 | 0.376 |
Figure 19 provides the corresponding compute-cost visualizations for training and inference.

(a) Training cost
(b) Inference cost.
Figure 19: Compute-cost curves across model families and widths for the damped-wave benchmark.
J Reproducibility Statement
All experiments are seeded with jax.random.PRNGKey in JAX. However, exact reproducibility is still not guaranteed because GPU operations are not fully deterministic, and this effect is amplified by the stiff PINN loss landscape. As a result, outcomes may vary slightly across runs even with the same seed, especially across hardware accelerators, software versions, and operating systems.
K Declaration of LLM usage
We used publicly available LLMs for coding assistance, writing assistance, and proofreading. We carefully audited all LLM outputs and manually ran the experiments so that the LLMs had no access to experimental results. The tables are generated by a Python script that reads the raw data and formats it into LaTeX code.
L Broader Impact
Multi-regime physics – wave propagation through layered media, reactive flows with temperature-dependent kinetics, structures driven by staged forcing – is where many engineering and geoscience applications of PINNs are heading, and where standard architectures fail silently: as we show, even state-of-the-art baselines converge to plausible-looking spurious solutions on staged dynamics. By characterizing this failure mode through the NTK and providing an architectural remedy, this work expands the regime in which PINNs are a defensible modeling tool. Extensions such as physics-informed neural operators [39] make the same machinery applicable to families of PDEs with varying coefficients and boundary conditions, broadening practical reach to settings such as climate modeling, fluid dynamics, and materials science. The same property is double-edged: improved apparent fidelity does not substitute for validation against reference solvers or experimental data, and PINN-based surrogates should not be deployed in safety-critical settings without independent verification. We see no specific dual-use risk associated with the methods presented here.