Physics-ML · CFD Surrogates · Transformers
How a transformer learns to predict flow around a car in one shot — by grouping mesh points that share a physical state, then paying attention among the groups.
A neural surrogate replaces a slow computational fluid dynamics (CFD) solve with a single fast forward pass of a network. Transformers are a natural fit, but their all-to-all attention costs too much when a car mesh has millions of points. Transolver fixes this with Physics-Attention: it learns to group mesh points that share a physical state into a small fixed number of "slices," runs attention among the slices, and scatters the result back — turning quadratic cost into linear. GeoTransolver keeps that idea and adds a reusable, geometry-aware context so the model stays accurate when shapes and operating conditions change.
The goal is a neural surrogate: a network that looks at a car geometry and predicts a physical field over its whole surface and surrounding volume — the pressure pushing on every panel, the velocity of air in every part of the flow — all in one forward pass.
Today those fields come from a CFD solver, which grinds through the fluid equations on a fine grid and can take hours or days per design. A surrogate is trained on many solved cases and then predicts the answer for a new shape in seconds. It does not replace CFD; it lets engineers screen many design variations quickly and reserve the expensive solver for the promising ones.
The geometry arrives as a mesh or point cloud: a collection of N points in space, each carrying coordinates and perhaps a few features (a surface normal, a signed distance, a marker for the inlet or wall). For a detailed vehicle, N can climb into the millions. Whatever architecture we choose has to swallow that many points and produce one prediction per point.
N points and their coordinates + features.N points (for example surface pressure, wall-shear-stress, or volume velocity).N is very large.Transformers are built around self-attention, where every element looks at every other element to decide what matters. That is exactly the "everything talks to everything" behaviour you want for physics — but it comes at a price.
If there are N points, standard self-attention forms a comparison between every pair of points. That is N × N comparisons — the cost grows like N² (quadratic). The trouble is easy to see with real numbers:
A car mesh sits at the bad end of that scale. So the raw transformer, for all its appeal, is simply unworkable here without a change to how attention is computed. The rest of this article is about that change.
Anything that scales as N² dies when N is in the millions. The winning surrogates all find a way to make the cost grow roughly linearly in the number of points instead.
Transolver (Wu, Luo, Wang & Long, Tsinghua University, ICML 2024) starts from a physical observation: points in similar physical states behave alike. Two mesh points sitting in the same calm wake, or in the same high-pressure stagnation region, will respond to their surroundings in nearly the same way.
So instead of treating all N points as separate individuals, the model groups points that share a physical state and treats them together. It learns to softly assign each mesh point to one of a small, fixed number M of slices — soft clusters of physically-similar points. "Soft" means a point is not forced into exactly one slice; it gets a weight for each slice, and the model learns those weights from data rather than from a hand-drawn rule.
Once the points are gathered into M slice tokens, attention runs among the slices, not among the raw points. Because M is small and fixed (think tens or low hundreds), that attention is cheap. The result for each slice is then scattered back to the points that belong to it.
M slices, the small set of slice tokens attend to each other globally, and the outcome is scattered back to every point. The expensive all-to-all step happens only among the few slices, never among the millions of points.A single Physics-Attention block does four things. Stack several of them, the way a normal transformer stacks its layers, and you have Transolver's core.
M slices.M slice tokens. This is like a cross-attention where the slices ask the points, "what is your state?"M slice tokens attend to each other. This is where global physical interactions are modelled — and it is cheap because M is small.M slices. Stack blocks to build depth, exactly like transformer layers.The two heavy operations — gathering N points into M slices, and scattering back — each cost about N × M. The attention in the middle costs about M × M, which is tiny. So the total is dominated by N × M, and since M is a small fixed number, the block scales linearly with N instead of quadratically. That is the difference between "runs on a million points" and "runs out of memory." Recent work frames this Physics-Attention as a form of linear attention, connecting it to the broader family of efficient transformers.
Zoom out from the single block and Transolver looks just like a transformer, with Physics-Attention swapped in for ordinary attention.
Because the whole stack is linear in N, it can be applied to large, real geometries rather than toy grids.
The Transolver paper reports state-of-the-art accuracy across a suite of standard partial-differential-equation (PDE) benchmarks, with about a 22% average reduction in relative error across six of them versus prior methods. It is shown to work on industrial car and airfoil designs, not just clean academic domains. A follow-up, Transolver++, extends the same slicing idea to million-scale geometries, pushing the approach toward the point counts real vehicles demand.
These figures are what the authors report on their chosen benchmarks. They are a strong signal, not a guarantee for your data. A surrogate's real test is always how it does on shapes it has never seen — see §07.
GeoTransolver (NVIDIA, released in PhysicsNeMo, 2025) keeps everything good about Transolver — the physics-aware attention on learned slices — and adds a strong sense of geometry and operating conditions that a plain slice attention can miss.
The core change is GALE (Geometry-Aware Latent Embeddings). Where Transolver's block does plain attention among slices, GeoTransolver adds cross-attention to a shared context. That context is a compact latent representation that encodes:
The context is built once and reused in every block, so the model does not have to re-derive "what shape am I looking at, and under what conditions" at every layer. It is computed from multi-scale ball queries around points — an idea borrowed from DoMINO: for each location you gather neighbours at several radii, so you capture both the fine near-surface detail (small radius) and the far-field effects (large radius) at the same time.
| Aspect | Transolver | GeoTransolver |
|---|---|---|
| Slice attention | Physics-Attention on learned slices | Kept — same physics-aware slices |
| Geometry signal | Implicit, via point features | Explicit shared context (GALE) |
| Global params / BCs | Not a first-class input | Encoded into the shared context |
| Neighbourhood scale | — | Multi-scale ball queries (DoMINO idea) |
| Context reuse | — | Built once, reused in every block |
| Reported strengths | SOTA on PDE benchmarks | Better accuracy, robustness, data efficiency |
The practical benefits are better accuracy, more robustness when the geometry or the operating regime shifts away from the training set, and better data efficiency (good results from less training data). It is benchmarked on DrivAerML and the Luminary SHIFT-SUV / SHIFT-Wing datasets against DoMINO, Transolver, and AB-UPT, comparing both integrated quantities (drag and lift) and Relative L1 field errors.
M is a capacity dial — more slices mean more expressive power and more compute; fewer means faster and lighter. Tune it for your problem.A surrogate interpolates from the shapes it was trained on — importance is not physics. On a genuinely new geometry or operating point, it can be confidently wrong. Treat predictions as fast screening and validate the shortlisted designs against a real CFD solve before you trust them.
Wu, Luo, Wang & Long (2024). Transolver: A Fast Transformer Solver for PDEs on General Geometries. ICML 2024. arXiv:2402.02366.
Luo et al. (2025). Transolver++: An Accurate Neural Solver for PDEs on Million-Scale Geometries. arXiv:2502.02414.
GeoTransolver: Learning Physics on Irregular Domains Using Multi-scale Geometry-Aware Physics Attention Transformer. arXiv:2512.20399.
NVIDIA PhysicsNeMo — Transformer Models for External Aerodynamics on Irregular Meshes (documentation).