When a flexible structure moves through a fluid, such as a heart valve flapping in blood or a beam oscillating behind a cylinder, classical simulators let the computational mesh move too. This is the Arbitrary Lagrangian-Eulerian (ALE) method: the mesh is neither fixed in space nor glued to the material, and its velocity is a free choice the solver makes to keep elements well shaped. That freedom has a price. The mesh motion must satisfy the discrete geometric conservation law (DGCL), a bookkeeping identity stating that the volume a cell gains equals the volume its faces sweep out. If the identity fails, the moving mesh itself injects fake mass and momentum. Neural surrogates for these problems now copy the ALE structure. Fisale, for example, builds a learned "latent ALE grid." Such models treat mesh motion as one more quantity to predict, next to fluid velocity and solid displacement, and they train it by matching data or by soft penalties. None of them enforces the DGCL.
We propose to treat mesh motion as what it actually is: an auxiliary task with no unique correct answer. The network gets its own head that predicts mesh-node displacements. The fluid update is written in a conservative moving-cell form, and the mesh fluxes are computed geometrically from those displacements, so the DGCL holds exactly for any predicted mesh. The mesh head is then trained not to reproduce the reference solver's mesh but to keep elements healthy and make the physics easy to predict. In short, the model is free to choose its own mesh, and exact conservation is what makes that freedom safe. We then ask a narrower multi-task question than prior work does: does the one task pair that plausibly conflicts, mesh quality against physics accuracy, actually produce opposing gradients, and does resolving that conflict matter?
Core Claim
Current neural ALE surrogates spend capacity regressing an arbitrary quantity, namely the solver's particular mesh trajectory. Because their fluid updates are not conservative with respect to mesh motion, any mesh error becomes a physics error, and these errors compound during long rollouts. Enforcing the DGCL by construction removes that coupling. Once it is removed, the mesh can be learned from a quality objective alone. We predict three consequences. First, a uniform flow stays exactly uniform under arbitrary predicted mesh motion. Second, rollouts on large-deformation benchmarks survive longer before elements invert. Third, accuracy at fixed compute is at least as good as regressing the reference mesh. The multi-task contribution is diagnostic and targeted: we measure gradient conflict per task pair instead of assuming it everywhere, and apply conflict-free updates only where the measurements show conflict.
Relation to Prior Work
Two surrogates motivate the gap, and a third line of work frames the pitfall we must avoid. Neural Latent Arbitrary Lagrangian-Eulerian Grids for Fluid-Solid Interaction splits each step into solid update, latent grid update, fluid update and interface reconciliation, and reports stable valve rollouts where other models' geometries "exploded." Its grid is an unconstrained learned object, which is exactly what we replace with a conservative, quality-trained mesh head. HGATSolver treats fluid and solid prediction as jointly learned tasks on a heterogeneous graph. It balances the two with learned uncertainty weights and stabilizes time stepping with a learned relaxation gate. It does not model interior mesh velocity at all, and its gate is soft rather than a guarantee. Learning Mesh-Based Simulation with Graph Networks predicts a sizing field for an external remesher. We keep connectivity fixed and move nodes continuously, which is the ALE regime rather than the remeshing regime.
The conservation requirement comes from classical ALE. High-fidelity sliding mesh method for moving geometries in turbomachinery applications shows that violating the DGCL creates artificial sources, and it enforces the DGCL in a high-order solver. We borrow that requirement and the swept-volume flux idea, not its discretization. Towards a Computational Framework for Modeling the Impact of Aortic Coarctations Upon Left Ventricular Load shows that naive smoothing crushes elements under large ventricular contraction and needs volume- and quality-based stiffening. This constrains us: our mesh quality objective must penalize compression explicitly, not just smoothness.
On the multi-task side, ConFIG computes an update direction that has positive, equal projection on every task gradient. On 3D Beltrami flow it lowers test MSE from 3.648e-4 with Adam to 0.910e-4. RotoGrad instead rotates the shared features per task. Both supply the method we use where conflict appears. Both were validated on physics-informed residuals or vision tasks, not on supervised multi-physics regression, so we do not assume their gains transfer. Measuring whether they do is part of the work.
Research Program
The model is a mesh-based graph surrogate with a shared encoder-processor and three heads. The solid head predicts structural displacement. The mesh head predicts displacements of interior fluid nodes, with interface nodes pinned to the predicted solid boundary. The fluid head predicts face fluxes of mass and momentum.
The fluid state is stored as cell integrals. Let $U_i^n$ be the conserved quantity in cell $i$ at step $n$, $F_f$ the learned physical flux through face $f$, and $\dot V_f$ the volume swept by face $f$ as its nodes move from step $n$ to step $n+1$, computed exactly from node positions. The update is
$$U_i^{n+1} = U_i^n - \Delta t \sum_{f \in \partial i} \left( F_f - \dot V_f \, \hat u_f \right),$$
where $\hat u_f$ is an upwinded face state. Cell volumes are recomputed from the same node positions, so the swept volumes sum exactly to each cell's volume change. This is the DGCL, and for linear 2D elements it holds to machine precision whatever the mesh head outputs.
The mesh head is trained on a quality loss. This loss penalizes element Jacobian determinants approaching zero and high condition numbers, with extra weight on compressed elements following the stiffening idea above. The mesh head also receives gradients from the physics loss through the update equation. Physics targets live on the solver's own moving mesh, so predictions are conservatively transferred to solver nodes before the loss is computed. This transfer adds error, and we measure it separately so it is not hidden.
The multi-task analysis has three steps. We log the cosine similarity between per-task gradients on the shared parameters for every task pair (fluid, solid, mesh quality) over training. We then apply ConFIG to all tasks, to the mesh-versus-physics pair only, or to none. The claim is scientific rather than architectural: conflict should be concentrated in the mesh-versus-physics pair. If that holds, blanket gradient surgery is mostly wasted compute.
Baselines
The naive reference is a static-mesh Eulerian version of the same network: no mesh head, a fixed fluid mesh, and the moving solid represented by node masks. It establishes how much any mesh motion buys.
The strongest existing method is Fisale (Neural Latent Arbitrary Lagrangian-Eulerian Grids for Fluid-Solid Interaction). On Flexible Wing it reports a mean relative L2 error of 0.0136 at 3.10 GiB of GPU memory. On FLUSTRUK-A and Venous Valve no reported numerical error was found on Lacuna, so we will rerun Fisale there from its released configuration, using the same data splits, training steps, and hyperparameter search budget as our model. HGATSolver is the second strong competitor. It reports gains of up to 19.9% over Transolver and AMG on FI-Valve, but no absolute error is reported on Lacuna for FI-Valve or SI-Vessel. We will run it under the same budget on those benchmarks and on NS+EW.
Beating Fisale means three things on Venous Valve and FLUSTRUK-A: lower rollout relative L2 error at matched memory, a longer rollout horizon before the first inverted element, and no regression on Flexible Wing beyond its 0.0136.
Two ablations isolate the key ingredients. The first keeps our architecture but trains the mesh head to regress the solver's mesh positions and drops the conservative update. This is the "regress the gauge" design and isolates the combined contribution. The second keeps the conservative update but supervises the mesh head on solver positions instead of the quality loss. This separates the effect of exact conservation from the effect of gauge freedom. Every multi-task variant, including uncertainty weighting, grid-searched scalar weights, ConFIG on all tasks, and pairwise ConFIG, gets an equal tuning budget.
Why not just…?
Why not just add ConFIG or uncertainty weighting to Fisale? This is the obvious combination, and a skeptic will rightly doubt it. ConFIG's evidence comes from physics-informed losses, where boundary and residual terms are known to fight. In supervised multi-physics regression, a well-tuned scalar weighting may do just as well. We therefore run this directly as a baseline. If Fisale with ConFIG matches our model, the conservation-and-gauge idea adds nothing, and we will report that. Our gradient-cosine logs will show whether fluid and solid gradients in these benchmarks conflict at all.
Why not just move the mesh with classical RBF or spring smoothing driven by the predicted boundary? This is a real threat, because radial-basis interpolation is cheap and runs well on a GPU. The coarctation study shows spring-type smoothing crushing elements under large contraction (Towards a Computational Framework for Modeling the Impact of Aortic Coarctations Upon Left Ventricular Load), but that evidence is not a neural setting. We therefore include a variant that replaces the mesh head with radial-basis smoothing plus the same conservative update. If this variant ties with ours on Venous Valve, the right conclusion is that exact conservation matters and a learned mesh does not. That would still be a useful and simpler result.
Why not just avoid moving meshes with a fixed Eulerian grid? The static-mesh baseline answers this. We expect it to lose near thin, moving interfaces, where fixed grids blur the boundary, as the mesh-based graph work argues (Learning Mesh-Based Simulation with Graph Networks). The margin should shrink on the nearly steady Flexible Wing. We will report where the crossover falls.
Decisive Checks
The first check is freestream preservation. We impose a uniform flow and random admissible mesh motion, then roll out for hundreds of steps. Our model should keep the flow uniform to machine precision, while Fisale and the regression ablation should drift. If ours drifts, the construction is wrong.
The second check is long-rollout survival on Venous Valve, the benchmark with contact and large deformation. We track the step of first element inversion and the integrated spurious mass, alongside relative L2 error, over the full cycle.
The third check is the gradient-conflict map across tasks and benchmarks. It tests whether conflict concentrates in the mesh-versus-physics pair and whether pairwise ConFIG recovers the gains of full ConFIG at lower cost.
Finally, we quantify the error from transferring predictions to solver nodes, so that apparent accuracy losses caused by our free mesh are not confused with modeling error.
References
- Neural Latent Arbitrary Lagrangian-Eulerian Grids for Fluid-Solid Interaction
- HGATSolver: A Heterogeneous Graph Attention Solver for Fluid-Structure Interaction
- Learning Mesh-Based Simulation with Graph Networks
- High-fidelity sliding mesh method for moving geometries in turbomachinery applications
- Towards a Computational Framework for Modeling the Impact of Aortic Coarctations Upon Left Ventricular Load
- ConFIG: Towards Conflict-free Training of Physics Informed Neural Networks
- RotoGrad: Gradient Homogenization in Multi-Task Learning