[Paper Review] Scaling physics-informed hard constraints with mixture-of-experts
This paper proposes a scalable physics-informed mixture-of-experts (PI-HC-MoE) framework that enforces hard physical constraints—such as conservation laws and PDEs—via localized differentiable optimization across decomposed spatiotemporal domains. By training experts independently on subdomains and leveraging the implicit function theorem for gradient computation, PI-HC-MoE achieves higher accuracy, improved training stability, and sublinear scaling with respect to mesh size, outperforming both soft penalty and standard hard-constraint methods on nonlinear PDEs like Navier-Stokes and diffusion-sorption.
Imposing known physical constraints, such as conservation laws, during neural network training introduces an inductive bias that can improve accuracy, reliability, convergence, and data efficiency for modeling physical dynamics. While such constraints can be softly imposed via loss function penalties, recent advancements in differentiable physics and optimization improve performance by incorporating PDE-constrained optimization as individual layers in neural networks. This enables a stricter adherence to physical constraints. However, imposing hard constraints significantly increases computational and memory costs, especially for complex dynamical systems. This is because it requires solving an optimization problem over a large number of points in a mesh, representing spatial and temporal discretizations, which greatly increases the complexity of the constraint. To address this challenge, we develop a scalable approach to enforce hard physical constraints using Mixture-of-Experts (MoE), which can be used with any neural network architecture. Our approach imposes the constraint over smaller decomposed domains, each of which is solved by an "expert" through differentiable optimization. During training, each expert independently performs a localized backpropagation step by leveraging the implicit function theorem; the independence of each expert allows for parallelization across multiple GPUs. Compared to standard differentiable optimization, our scalable approach achieves greater accuracy in the neural PDE solver setting for predicting the dynamics of challenging non-linear systems. We also improve training stability and require significantly less computation time during both training and inference stages.
Motivation & Objective
- To address the high computational and memory cost of enforcing hard physical constraints in neural PDE solvers.
- To improve training stability and convergence in physics-informed neural networks by decomposing large-scale constraints into smaller, localized optimization problems.
- To enable scalable, parallelizable training and inference for complex dynamical systems governed by PDEs.
- To achieve higher accuracy and lower error than soft constraint penalties and standard hard-constraint optimization.
- To demonstrate sublinear scaling of computation time with increasing mesh resolution, enabling efficient deployment on large domains.
Proposed method
- The framework partitions the spatiotemporal domain into K disjoint subdomains, each handled by a dedicated expert network.
- Each expert performs a local differentiable optimization to enforce physical constraints (e.g., PDEs) on its assigned subdomain using a non-linear least squares formulation.
- Gradients are backpropagated through each expert’s optimization using the implicit function theorem, enabling end-to-end training with independent, parallelizable updates.
- The experts are dynamically selected per input via a router, allowing piecewise linear representations of the solution that better capture local dynamics than global linear combinations.
- The method integrates seamlessly into any neural network architecture, with the hard constraint embedded as a differentiable layer.
- The approach enables both training and inference to scale sublinearly with respect to the number of sampled points, unlike standard hard-constraint methods that scale quadratically.
Experimental results
Research questions
- RQ1Can a mixture-of-experts architecture effectively decompose large-scale PDE constraints to reduce computational cost while maintaining constraint accuracy?
- RQ2Does localizing constraint enforcement improve training stability and convergence in physics-informed neural networks?
- RQ3Can the proposed method achieve lower prediction error than soft constraint penalties and standard hard-constraint optimization on nonlinear PDEs?
- RQ4How does the computational complexity of the proposed method scale with increasing mesh resolution compared to standard differentiable optimization?
- RQ5To what extent does expert specialization enhance the model’s ability to capture fine-scale features in complex physical systems?
Key findings
- On the 256×256×64 test set for the diffusion-sorption problem, PI-HC-MoE achieved a relative L₂ error of 8.298% ± 2.345%, significantly lower than PI-SC (18.081% ± 3.740%) and PI-HC (11.754% ± 2.951%).
- For the 2D Navier-Stokes problem, PI-HC-MoE achieved a 2.117× to 12.838× speedup during training and a 2.538× to 12.864× speedup during inference compared to standard differentiable optimization (PI-HC), with sublinear scaling across increasing mesh sizes.
- PI-HC-MoE demonstrated lower variance in prediction quality across all resolutions, indicating improved robustness and stability.
- The method enabled faster convergence due to smaller, localized non-linear least squares problems per expert, reducing optimization difficulty compared to a single global constraint.
- PI-HC-MoE outperformed PI-HC in capturing fine features at later time steps (e.g., T=5) in the Navier-Stokes simulation, where PI-HC failed to preserve dynamics.
- The framework achieved higher accuracy by expressing piecewise linear combinations of basis functions through experts, unlike PI-HC’s global linear combination, allowing better representation of local physical behavior.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.