TL;DR
Simulating how water flows around a moving ship is notoriously slow, yet existing AI shortcuts either blur critical details near the hull or choke on the sheer number of simulation points. APPSolver introduces a clever middle ground: it uses a quadtree-inspired strategy to group unstructured simulation meshes into smart, variable-sized patches—fine near the ship, coarse out in open water—allowing a standard Transformer to predict fluid flow at a fraction of the computational cost. While it trades off a bit of raw accuracy compared to heavy-duty point-level models, it slashes compute requirements and introduces a neat trick using frozen Large Language Models (LLMs) to digest ship geometry and operating conditions.
What Problem Does This Paper Address?
When naval engineers design a ship, they rely on Computational Fluid Dynamics (CFD) to see how water moves around the hull. Because physics gets chaotic right next to the boat and in its wake, CFD meshes are unstructured and highly non-uniform: millions of points are packed tightly near the hull, while the calm, far-off water gets only a sparse scattering of points.
Traditional CFD solvers are painfully slow, so researchers train deep learning "surrogates" to predict the next time-step of the flow. However, current AI models hit a Catch-22 on ship meshes:
- Regular-grid models (like CNNs or standard Fourier Neural Operators) force you to interpolate the irregular mesh onto a neat, pixel-like grid. This blurs the ultra-fine details near the hull while wasting compute on empty far-field water.
- Point-level neural operators process unstructured points directly, avoiding interpolation. However, running global attention across tens of thousands of raw points is computationally brutal, and extreme density variations trip up standard architectures.
Furthermore, feeding extra context—like hull dimensions or ship speed—usually requires custom, rigid neural modules that don't easily adapt to new setups.
Methods
APPSolver predicts the next time-step of velocity and pressure directly on unstructured 2D free-surface meshes without re-gridding. It wraps a standard Transformer backbone in two novel interfaces:
- Adaptive Patch Partitioning (APP): Instead of treating every mesh point as a token, APP recursively divides the 2D space using a quadtree. Crucially, it uses a near-field refinement strategy based on distance to the ship's center: patches close to the hull are forced to subdivide into much smaller capacities, preserving high resolution where gradients are steep. Out in the far field, patches stay large, and points exceeding a set budget are uniformly downsampled before padding. After the Transformer processes these compact "patch tokens," predictions are mapped back to all original CFD points via distance-weighted $k$-nearest neighbor ($k$-NN) interpolation.
- LLM Condition Token Fusion: To tell the model what ship it's looking at and how fast it's moving, the authors format structured hull geometry and operating parameters as plain text, pass them through a frozen Qwen3.5-0.8B LLM, and project the output into a single "condition token." This token is simply prepended to the patch tokens, letting standard self-attention fuse global ship physics with local fluid patches.
Datasets
- ShipBench (Newly Introduced): Built using OpenFOAM (
interFoam), this dataset captures unsteady, still-water navigation across three classic ship hulls—DTC, KCS, and KVLCC2—at two speed conditions each. Unlike standard 3D grid benchmarks, it exports non-uniform 2D point clouds sliced right along the waterplane (free surface), tracking 3D velocity and pressure. - CFDBench: Four classical 2D fluid mechanics benchmarks (Cavity, Tube, Dam, and Cylinder) used to test general fluid prediction capabilities alongside the ship tasks.
Key Insights and Ideas
- Physics-informed spatial priors beat learned clustering: You might expect a neural network that learns how to group points (like Transolver's soft-assignment slices) to beat a hard-coded geometric rule. Yet, APP’s simple distance-based quadtree outperformed uniform partitioning + learned tokens across all ships—cutting error by nearly 25% on the DTC hull. Respecting the known spatial layout of CFD meshes pays off.
- The Compression–Fidelity Knob: Because APP downsamples far-field points and reconstructs them via $k$-NN, there is a hard ceiling on accuracy before the neural network even runs. By tuning patch size ($S$) and downsampling ratio ($\rho$), engineers get an explicit dial to trade memory/compute against baseline reconstruction error.
- LLMs as zero-engineering parameter encoders: Using an 800M-parameter language model to read numbers like Reynolds number and hull block coefficients sounds like overkill, and the authors admit it doesn't yield "emergent generalization." However, it acts as a remarkably clean, unified interface that slightly edges out custom MLPs and FiLM layers when testing on unseen ship hulls.
Key Results
APPSolver’s standout feature is its accuracy–efficiency trade-off:
- Speed vs. Accuracy: Across all seven benchmark groups (ShipBench + CFDBench), point-level neural operators (like UPT, PCNO, and Transolver) achieved the lowest prediction errors. For instance, on S1-DTC, UPT hit a Mean Absolute Error (MAE) of 0.044, whereas APP-Transformer scored 0.093 (still beating FNO at 0.167 and GNOT at 0.149).
- Massive Compute Savings: That slight dip in accuracy buys huge efficiency gains. On a representative DTC sample, APP-Transformer required just 1.815 GFLOPs per forward pass—comparable to PCNO (1.694 GFLOPs), while slashing compute compared to heavy point-level baselines, which ranged from 7.482 to 53.644 GFLOPs.
- Cross-Hull Generalization: In leave-one-hull-out tests, adding the Qwen3.5 condition token reduced MAE relative to zero conditioning by 3.0% on held-out DTC, 4.5% on KCS, and 1.0% on KVLCC2 (though absolute errors spiked on KVLCC2 for all methods due to its drastically fuller hull shape).
Limitations and Future Work
The authors are refreshingly candid about where APPSolver hits its limits:
- 2D Surface Only: The method currently operates on 2D coordinates sliced at the water's free surface; extending the quadtree to an octree for full 3D volume meshes remains untested.
- Long-Horizon Rollout Drift: While one-step predictions look crisp, running the model autoregressively for 50 time-steps causes errors to snowball—so much so that all tested deep learning models ended up with higher cumulative error than a naive "persistence" baseline (just guessing the flow doesn't change).
- Dataset Scale: ShipBench currently covers only three hull types and two speeds each. Scaling up to broader vessel shapes and sea conditions will be essential to truly test cross-geometry generalization.
Summary updated